LFS Version SVN-20060501 - GCC-4.0.3 - compilation fails

Jim Gifford lfs at jg555.com
Fri May 12 12:47:41 PDT 2006


Mag. Leonhard Landrock wrote:
> Hi!
>
> I am once again at this point where compilation of gcc fails. :-(
>
> What did I so far in this chapter?
>
>     cd /sources
>     cd ./gcc-4.0.3
>     sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
>     sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in
>     sed -i 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
>     sed -i 's/@have_mktemp_command@/yes/' gcc/gccbug.in
>     cd ..
>     mv ./gcc-build/ ./2-pass.gcc-build
>     mkdir -v ./gcc-build
>     cd ./gcc-build
>     ../gcc-4.0.3/configure --prefix=/usr \
>         --libexecdir=/usr/lib --enable-shared \
>         --enable-threads=posix --enable-__cxa_atexit \
>         --enable-clocale=gnu --enable-languages=c,c++
>     make
>
> And here comes (part of) the result:
>
> rm -f include/syslimits.h
> if [ -f include/limits.h ]; then \
>   mv include/limits.h include/syslimits.h; \
> else \
>   cp ../../gcc-4.0.3/gcc/gsyslimits.h include/syslimits.h; \
> fi
> chmod a+r include/syslimits.h
> echo timestamp > stmp-fixinc
> rm -f mm_malloc.h
> cat ../../gcc-4.0.3/gcc/config/i386/pmm_malloc.h > mm_malloc.h
> if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
> for file 
> in .. ../../gcc-4.0.3/gcc/ginclude/float.h ../../gcc-4.0.3/gcc/ginclude/iso646.h ../../gcc-4.0.3/gcc/ginclude/stdarg.h ../../gcc-4.0.3/gcc/ginclude/stdbool.h ../../gcc-4.0.3/gcc/ginclude/stddef.h ../../gcc-4.0.3/gcc/ginclude/varargs.h ../../gcc-4.0.3/gcc/unwind.h ../../gcc-4.0.3/gcc/config/i386/mmintrin.h ../../gcc-4.0.3/gcc/config/i386/mm3dnow.h ../../gcc-4.0.3/gcc/config/i386/xmmintrin.h ../../gcc-4.0.3/gcc/config/i386/emmintrin.h ../../gcc-4.0.3/gcc/config/i386/pmmintrin.h 
> mm_malloc.h; do \
>   if [ X$file != X.. ]; then \
>     realfile=`echo $file | sed -e 's|.*/\([^/]*\)$|\1|'`; \
>     echo timestamp > include/$realfile; \
>     rm -f include/$realfile; \
>     cp $file include; \
>     chmod a+r include/$realfile; \
>   fi; \
> done
> rm -f include/limits.h
> cp xlimits.h include/limits.h
> chmod a+r include/limits.h
> rm -f include/README
> cp ../../gcc-4.0.3/gcc/../fixincludes/README-fixinc include/README
> chmod a+r include/README
> echo timestamp > stmp-int-hdrs
> objext='.o' \
> LIB1ASMFUNCS='' \
> LIB2FUNCS_ST='_eprintf __gcc_bcmp' \
> LIBGCOV='_gcov _gcov_merge_add _gcov_merge_single _gcov_merge_delta _gcov_fork 
> _gcov_execl _gcov_execlp _gcov_execle _gcov_execv _gcov_execvp _gcov_execve' 
> \
> LIB2ADD='' \
> LIB2ADD_ST='' \
> LIB2ADDEH='../../gcc-4.0.3/gcc/unwind-dw2.c ../../gcc-4.0.3/gcc/unwind-dw2-fde-glibc.c ../../gcc-4.0.3/gcc/unwind-sjlj.c ../../gcc-4.0.3/gcc/gthr-gnat.c ../../gcc-4.0.3/gcc/unwind-c.c' 
> \
> LIB2ADDEHSTATIC='../../gcc-4.0.3/gcc/unwind-dw2.c ../../gcc-4.0.3/gcc/unwind-dw2-fde-glibc.c ../../gcc-4.0.3/gcc/unwind-sjlj.c ../../gcc-4.0.3/gcc/gthr-gnat.c ../../gcc-4.0.3/gcc/unwind-c.c' 
> \
> LIB2ADDEHSHARED='../../gcc-4.0.3/gcc/unwind-dw2.c ../../gcc-4.0.3/gcc/unwind-dw2-fde-glibc.c ../../gcc-4.0.3/gcc/unwind-sjlj.c ../../gcc-4.0.3/gcc/gthr-gnat.c ../../gcc-4.0.3/gcc/unwind-c.c' 
> \
> LIB2ADDEHDEP='unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c' \
> LIBUNWIND='' \
> LIBUNWINDDEP='' \
> SHLIBUNWIND_LINK='' \
> SHLIBUNWIND_INSTALL='' \
> FPBIT='' \
> FPBIT_FUNCS='_pack_sf _unpack_sf _addsub_sf _mul_sf _div_sf _fpcmp_parts_sf 
> _compare_sf _eq_sf _ne_sf _gt_sf _ge_sf _lt_sf _le_sf _unord_sf _si_to_sf 
> _sf_to_si _negate_sf _make_sf _sf_to_df _sf_to_tf _thenan_sf _sf_to_usi 
> _usi_to_sf' \
> LIB2_DIVMOD_FUNCS='_divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4' 
> \
> DPBIT='' \
> DPBIT_FUNCS='_pack_df _unpack_df _addsub_df _mul_df _div_df _fpcmp_parts_df 
> _compare_df _eq_df _ne_df _gt_df _ge_df _lt_df _le_df _unord_df _si_to_df 
> _df_to_si _negate_df _make_df _df_to_sf _df_to_tf _thenan_df _df_to_usi 
> _usi_to_df' \
> TPBIT='' \
> TPBIT_FUNCS='_pack_tf _unpack_tf _addsub_tf _mul_tf _div_tf _fpcmp_parts_tf 
> _compare_tf _eq_tf _ne_tf _gt_tf _ge_tf _lt_tf _le_tf _unord_tf _si_to_tf 
> _tf_to_si _negate_tf _make_tf _tf_to_df _tf_to_sf _thenan_tf _tf_to_usi 
> _usi_to_tf' \
> MULTILIBS=`/sources/gcc-build/gcc/xgcc -B/sources/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include --print-multi-lib` 
> \
> EXTRA_MULTILIB_PARTS='' \
> SHLIB_LINK='/sources/gcc-build/gcc/xgcc -B/sources/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs -Wl,--soname=@shlib_base_name at .so.1 -Wl,--version-script=@shlib_map_file@ -o 
> @multilib_dir@/@shlib_base_name at .so.1.tmp @multilib_flags@ @shlib_objs@ -lc 
> && rm -f @multilib_dir@/@shlib_base_name at .so && if [ -f 
> @multilib_dir@/@shlib_base_name at .so.1 ]; then mv -f 
> @multilib_dir@/@shlib_base_name at .so.1 
> @multilib_dir@/@shlib_base_name at .so.1.backup; else true; fi && mv 
> @multilib_dir@/@shlib_base_name at .so.1.tmp 
> @multilib_dir@/@shlib_base_name at .so.1 && ln -s @shlib_base_name at .so.1 
> @multilib_dir@/@shlib_base_name at .so' \
> SHLIB_INSTALL='$(mkinstalldirs) 
> $(DESTDIR)$(slibdir)@shlib_slibdir_qual@; /tools/bin/install -c -m 644 
> @multilib_dir@/@shlib_base_name at .so.1 
> $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so.1; rm -f 
> $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so; ln -s 
> @shlib_base_name at .so.1 
> $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so' \
> SHLIB_EXT='.so' \
> SHLIB_MULTILIB='' \
> SHLIB_MKMAP='../../gcc-4.0.3/gcc/mkmap-symver.awk' \
> SHLIB_MKMAP_OPTS='' \
> SHLIB_MAPFILES='../../gcc-4.0.3/gcc/libgcc-std.ver ../../gcc-4.0.3/gcc/config/libgcc-glibc.ver' 
> \
> SHLIB_NM_FLAGS='-pg' \
> MULTILIB_OSDIRNAMES='' \
> ASM_HIDDEN_OP='' \
> mkinstalldirs='/bin/sh ../../gcc-4.0.3/gcc/../mkinstalldirs' \
>   /bin/sh mklibgcc > tmp-libgcc.mk
> mv tmp-libgcc.mk libgcc.mk
> TARGET_CPU_DEFAULT="" \
> HEADERS="ansidecl.h" DEFINES="" \
> /bin/sh ../../gcc-4.0.3/gcc/mkconfig.sh tconfig.h
> /sources/gcc-build/gcc/xgcc -B/sources/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc-4.0.3/gcc -I../../gcc-4.0.3/gcc/. -I../../gcc-4.0.3/gcc/../include -I../../gcc-4.0.3/gcc/../libcpp/include   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer 
> \
>    -c ../../gcc-4.0.3/gcc/crtstuff.c -DCRT_BEGIN \
>   -o crtbegin.o
> In file included from ../../gcc-4.0.3/gcc/crtstuff.c:64:
> ../../gcc-4.0.3/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory
> ../../gcc-4.0.3/gcc/tsystem.h:93:23: error: sys/types.h: No such file or 
> directory
> ../../gcc-4.0.3/gcc/tsystem.h:96:19: error: errno.h: No such file or directory
> ../../gcc-4.0.3/gcc/tsystem.h:103:20: error: string.h: No such file or 
> directory
> ../../gcc-4.0.3/gcc/tsystem.h:104:20: error: stdlib.h: No such file or 
> directory
> ../../gcc-4.0.3/gcc/tsystem.h:105:20: error: unistd.h: No such file or 
> directory
> In file included from /sources/gcc-build/gcc/include/syslimits.h:7,
>                  from /sources/gcc-build/gcc/include/limits.h:11,
>                  from ../../gcc-4.0.3/gcc/tsystem.h:108,
>                  from ../../gcc-4.0.3/gcc/crtstuff.c:64:
> /sources/gcc-build/gcc/include/limits.h:122:61: error: limits.h: No such file 
> or directory
> In file included from ../../gcc-4.0.3/gcc/crtstuff.c:64:
> ../../gcc-4.0.3/gcc/tsystem.h:111:18: error: time.h: No such file or directory
> make[1]: *** [crtbegin.o] Error 1
> make[1]: Leaving directory `/sources/gcc-build/gcc'
> make: *** [all-gcc] Error 2
>
>
> To me it looks like having quite the same problem once again (compare: 
> http://archives.linuxfromscratch.org/mail-archives/lfs-support/2006-April/030566.html).
>
> This time I for sure did the logon as lfs user right.
>
> Might there be a problem with "crt*" ("crtstuff.c", "crtbegin.o") and 
> with "tsystem.h"?
>
> I really hope, that anyone can help.
>
> Maybe the problem startetd already with "6.9. Glibc-2.3.6" (compare: 
> http://archives.linuxfromscratch.org/mail-archives/lfs-support/2006-May/030763.html)
>
> I still hope that there is anyone who has some good idea. 
>
> Kind regards,
> Leonhard.
>   
Looks like your glibc is not getting installed properly. Check to see is 
/usr/include/sys directory exists, if it doesn't make install was not 
ran during the glibc build.



More information about the lfs-support mailing list