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

Martin Ward macros_the_black at ntlworld.com
Tue Jun 11 15:35:20 PDT 2013


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




More information about the Clfs-support mailing list