[Clfs-support] Build Error for GCC-4.8.1 (chpt 6.9 )

Martin Ward macros_the_black at ntlworld.com
Tue Jun 11 23:26:52 PDT 2013


On 12/06/13 02:40, Daniel King wrote:
> On 06/11/2013 06:35 PM, Martin Ward wrote:
>> On 11/06/13 22:35, Daniel King wrote:
>>> On 06/11/2013 01:44 PM, Martin Ward wrote:
>>>> On 11/06/13 16:14, William Harrington wrote:
>>>>>
>>>>> On Jun 10, 2013, at 10:56 PM, Daniel King wrote:
>>>>>
>>>>>> g++ -c   -g -O2 -DIN_GCC -fno-exceptions -fno-rtti 
>>>>>> -fasynchronous-unwind-tables -W -Wall -Wno-narrowing 
>>>>>> -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic 
>>>>>> -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings 
>>>>>> -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild 
>>>>>> -I../../gcc-4.8.1/gcc -I../../gcc-4.8.1/gcc/build 
>>>>>> -I../../gcc-4.8.1/gcc/../include 
>>>>>> -I../../gcc-4.8.1/gcc/../libcpp/include 
>>>>>> -I../../gcc-4.8.1/gcc/../libdecnumber 
>>>>>> -I../../gcc-4.8.1/gcc/../libdecnumber/bid -I../libdecnumber 
>>>>>> -I../../gcc-4.8.1/gcc/../libbacktrace -DCLOOG_INT_GMP    \
>>>>>>        -o build/genconstants.o ../../gcc-4.8.1/gcc/genconstants.c
>>>>>> In file included from 
>>>>>> /usr/include/x86_64-linux-gnu/sys/resource.h:25:0,
>>>>>>                 from ../../gcc-4.8.1/gcc/system.h:395,
>>>>>>                 from ../../gcc-4.8.1/gcc/genconstants.c:28:
>>>>>> /usr/include/x86_64-linux-gnu/bits/resource.h:131:18: error: 
>>>>>> declaration does not declare anything [-fpermissive]
>>>>>
>>>>>
>> Hi
>>
>> Can you do this go through 6.9 as far as the sed to prevent it 
>> looking in the wrong directories
>>
>> then instead of
>>
>> make AS_FOR_TARGET="${AS}" \
>>     LD_FOR_TARGET="${LD}"
>>
>> can you run this command make configure-host
>>
>> then
>>
>> show the output of
>> grep NATIVE_SYSTEM_HEADER_DIR gcc/Makefile
>>
>> and
>> grep CROSS_SYSTEM_HEADER_DIR gcc/Makefile
>>
>>
>> trying to find out why its picking up headers from the host system
>>
>> martin
>>
>> _______________________________________________
>> Clfs-support mailing list
>> Clfs-support at lists.cross-lfs.org
>> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
>>
> I have removed everythingand started over.  Here is the output of the 
> two grep commands.
>
> clfs at end-times1-ubuntu:/mnt/clfs/sources/gcc-build$ grep 
> NATIVE_SYSTEM_HEADER_DIR gcc/Makefile
> NATIVE_SYSTEM_HEADER_DIR = /tools/include
> SYSTEM_HEADER_DIR = `echo $(NATIVE_SYSTEM_HEADER_DIR) | sed -e :a -e 
> 's,[^/]*/\.\.\/,,' -e ta`
> -DNATIVE_SYSTEM_HEADER_DIR=\"$(NATIVE_SYSTEM_HEADER_DIR)\" \
> clfs at end-times1-ubuntu:/mnt/clfs/sources/gcc-build$ grep 
> CROSS_SYSTEM_HEADER_DIR gcc/Makefile
> CROSS_SYSTEM_HEADER_DIR = $(gcc_tooldir)/sys-include
> -DCROSS_INCLUDE_DIR=\"$(CROSS_SYSTEM_HEADER_DIR)\" \
>
>
> Daniel
>
>
>
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
That looks correct, should be looking in /tools/include for the headers 
then something has gone wrong earlier, did you have libgmp-dev 
libmpfr-dev libmpc-dev installed when you started the build ?


Martin



More information about the Clfs-support mailing list