gcc-4.1.1 pass2 cannot find limits.h

Andrew Benton b3nt at ukonline.co.uk
Fri Jun 30 00:38:03 PDT 2006


f.l. wrote:
> hi,
> i'm using gcc-4.1.1 to build the tool chain,
> while it blocked at pass 2,
> and gcc reported no limits.h was found.
> 
> my patch to gcc source:
> in gcc/configure:
> change STMP_FIXINC=stmp-fixinc
> to STMP_FIXINC=
> 
> in gcc/cppdefaults.h:
> added
>    #undef STANDARD_INCLUDE_DIR
>    #define STANDARD_INCLUDE_DIR 0
> 
> and changed various string values in header files in gcc/config/i386/,
> as mentioned in gcc-specs-patch
> 
> and i find there is a
> #include_next <limits.h>
> which caused the problem,
> 
> anyone have the same problem?

No, gcc-4.1.1 works fine here. How did you apply the specs patch? What 
works for me is these commands

sed -i 's,r /l,r /tools/l,g'  gcc/config/sh/linux.h
sed -i 's,R "/l,R "/tools/l,g' gcc/config/i386/linux.h
cat >> gcc/config/linux.h << "EOF"
#undef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR 0
EOF

Andy



More information about the lfs-support mailing list