Opened 16 years ago

Closed 16 years ago

#2182 closed defect (invalid)

error when compiling GCC-4.1.2, LFS-BOOK-6.3 - command make on page 107

Reported by: Muhammad Fajar Shidiq Owned by:
Priority: high Milestone:
Component: Book Version: 6.3
Severity: major Keywords:
Cc:

Description

where run make command like on LFS-BOOK-6.3 page 107,

gcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -fomit-frame-pointer -DHAVE_CONFIG_H -o cpp gcc.o cppspec.o intl.o \

prefix.o version.o ../libcpp/libcpp.a ../libiberty/libiberty.a

/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 -dumpspecs > tmp-specs mv tmp-specs specs if [ -f echo /usr/include | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta/limits.h ] ; then \

cat ../../gcc-4.1.2/gcc/limitx.h ../../gcc-4.1.2/gcc/glimits.h ../../gcc-4.1.2/gcc/limity.h > tmp-xlimits.h; \

else \

cat ../../gcc-4.1.2/gcc/glimits.h > tmp-xlimits.h; \

fi

mv tmp-xlimits.h xlimits.h (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 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -DGCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=@shlib_base_name@.so.1 -Wl,--version-script=@shlib_map_file@ -o @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_flags@ @shlib_objs@ -lc && rm -f @multilib_dir@/@shlib_base_name@.so && if [ -f @multilib_dir@/@shlib_base_name@.so.1 ]; then mv -f @multilib_dir@/@shlib_base_name@.so.1 @multilib_dir@/@shlib_base_name@.so.1.backup; else true; fi && mv @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_dir@/@shlib_base_name@.so.1 && ln -s @shlib_base_name@.so.1 @multilib_dir@/@shlib_base_name@.so' \

SHLIB_MULTILIB=; \ gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -fomit-frame-pointer -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -DSTANDARD_STARTFILE_PREFIX=\"../../../\" -DSTANDARD_EXEC_PREFIX=\"/usr/lib/gcc/\" -DSTANDARD_LIBEXEC_PREFIX=\"/usr/lib/gcc/\" -DDEFAULT_TARGET_VERSION=\"4.1.2\" -DDEFAULT_TARGET_MACHINE=\"i686-pc-linux-gnu\" -DSTANDARD_BINDIR_PREFIX=\"/usr/bin/\" -DTOOLDIR_BASE_PREFIX=\"../../../../\" test "X${SHLIB_LINK}" = "X" || test "yes" != "yes" || echo "-DENABLE_SHARED_LIBGCC" test "X${SHLIB_MULTILIB}" = "X" || echo "-DNO_SHARED_LIBGCC_MULTILIB" \

-I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include ../../gcc-4.1.2/gcc/cp/g++spec.c)

gcc -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute -fomit-frame-pointer -DHAVE_CONFIG_H -o g++ \

gcc.o g++spec.o intl.o prefix.o version.o ../libcpp/libcpp.a ../libiberty/libiberty.a

echo | /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 -E -dM - | \

sed -n -e 's/#define \([_][a-zA-Z0-9_]*\).*/\1/p' \

-e 's/#define \(_[_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \

sort -u > tmp-macro_list

/bin/sh ../../gcc-4.1.2/gcc/../move-if-change tmp-macro_list macro_list echo timestamp > s-macro_list rm -rf include; mkdir include chmod a+rx include (TARGET_MACHINE='i686-pc-linux-gnu'; srcdir=cd ../../gcc-4.1.2/gcc; ${PWDCMD-pwd}; \

SHELL='/bin/sh'; MACRO_LIST=${PWDCMD-pwd}/macro_list ; \ export TARGET_MACHINE srcdir SHELL MACRO_LIST && \ cd ../build-i686-pc-linux-gnu/fixincludes && \ /bin/sh -c true ../../gcc/include \

echo /usr/include | sed -e :a -e "s,[^/]*/\.\.\/,," -e ta )

rm -f include/syslimits.h if [ -f include/limits.h ]; then \

mv include/limits.h include/syslimits.h; \

else \

cp ../../gcc-4.1.2/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.1.2/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.1.2/gcc/ginclude/float.h ../../gcc-4.1.2/gcc/ginclude/iso646.h ../../gcc-4.1.2/gcc/ginclude/stdarg.h ../../gcc-4.1.2/gcc/ginclude/stdbool.h ../../gcc-4.1.2/gcc/ginclude/stddef.h ../../gcc-4.1.2/gcc/ginclude/varargs.h ../../gcc-4.1.2/gcc/config/i386/mmintrin.h ../../gcc-4.1.2/gcc/config/i386/mm3dnow.h ../../gcc-4.1.2/gcc/config/i386/xmmintrin.h ../../gcc-4.1.2/gcc/config/i386/emmintrin.h ../../gcc-4.1.2/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 cp ../../gcc-4.1.2/gcc/unwind-generic.h include/unwind.h chmod a+r include/limits.h rm -f include/README cp ../../gcc-4.1.2/gcc/../fixincludes/README-fixinc include/README chmod a+r include/README echo timestamp > stmp-int-hdrs creating as echo timestamp > stamp-as creating collect-ld echo timestamp > stamp-collect-ld creating nm echo timestamp > stamp-nm 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 _gcov_interval_profiler _gcov_pow2_profiler _gcov_one_value_profiler' \ LIB2ADD= \ LIB2ADD_ST= \ LIB2ADDEH='../../gcc-4.1.2/gcc/unwind-dw2.c ../../gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c ../../gcc-4.1.2/gcc/unwind-sjlj.c ../../gcc-4.1.2/gcc/gthr-gnat.c ../../gcc-4.1.2/gcc/unwind-c.c' \ LIB2ADDEHSTATIC='../../gcc-4.1.2/gcc/unwind-dw2.c ../../gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c ../../gcc-4.1.2/gcc/unwind-sjlj.c ../../gcc-4.1.2/gcc/gthr-gnat.c ../../gcc-4.1.2/gcc/unwind-c.c' \ LIB2ADDEHSHARED='../../gcc-4.1.2/gcc/unwind-dw2.c ../../gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c ../../gcc-4.1.2/gcc/unwind-sjlj.c ../../gcc-4.1.2/gcc/gthr-gnat.c ../../gcc-4.1.2/gcc/unwind-c.c' \ LIB2ADDEHDEP='unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c' \ LIB2_SIDITI_CONV_FUNCS= \ 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 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -DGCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=@shlib_base_name@.so.1 -Wl,--version-script=@shlib_map_file@ -o @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_flags@ @shlib_objs@ -lc && rm -f @multilib_dir@/@shlib_base_name@.so && if [ -f @multilib_dir@/@shlib_base_name@.so.1 ]; then mv -f @multilib_dir@/@shlib_base_name@.so.1 @multilib_dir@/@shlib_base_name@.so.1.backup; else true; fi && mv @multilib_dir@/@shlib_base_name@.so.1.tmp @multilib_dir@/@shlib_base_name@.so.1 && ln -s @shlib_base_name@.so.1 @multilib_dir@/@shlib_base_name@.so' \ SHLIB_INSTALL='$(mkinstalldirs) $(DESTDIR)$(slibdir)@shlib_slibdir_qual@; /tools/bin/install -c -m 644 @multilib_dir@/@shlib_base_name@.so.1 $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so.1; rm -f $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so; ln -s @shlib_base_name@.so.1 $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so' \ SHLIB_EXT='.so' \ SHLIB_MULTILIB= \ SHLIB_MKMAP='../../gcc-4.1.2/gcc/mkmap-symver.awk' \ SHLIB_MKMAP_OPTS= \ SHLIB_MAPFILES='../../gcc-4.1.2/gcc/libgcc-std.ver ../../gcc-4.1.2/gcc/config/libgcc-glibc.ver' \ SHLIB_NM_FLAGS='-pg' \ MULTILIB_OSDIRNAMES= \ ASM_HIDDEN_OP= \ GCC_FOR_TARGET='/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' \ mkinstalldirs='/bin/sh ../../gcc-4.1.2/gcc/../mkinstalldirs' \

/bin/sh mklibgcc > tmp-libgcc.mk

mv tmp-libgcc.mk libgcc.mk TARGET_CPU_DEFAULT="" \

HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \ /bin/sh ../../gcc-4.1.2/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 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/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.1.2/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o

In file included from ../../gcc-4.1.2/gcc/crtstuff.c:68: ../../gcc-4.1.2/gcc/tsystem.h:90:19: error: stdio.h: No such file or directory ../../gcc-4.1.2/gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory ../../gcc-4.1.2/gcc/tsystem.h:96:19: error: errno.h: No such file or directory ../../gcc-4.1.2/gcc/tsystem.h:103:20: error: string.h: No such file or directory ../../gcc-4.1.2/gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory ../../gcc-4.1.2/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.1.2/gcc/tsystem.h:108, from ../../gcc-4.1.2/gcc/crtstuff.c:68:

/sources/gcc-build/./gcc/include/limits.h:122:61: error: limits.h: No such file or directory In file included from ../../gcc-4.1.2/gcc/crtstuff.c:68: ../../gcc-4.1.2/gcc/tsystem.h:111:18: error: time.h: No such file or directory make[2]: * [crtbegin.o] Error 1 make[2]: Leaving directory `/sources/gcc-build/gcc' make[1]: * [all-gcc] Error 2 make[1]: Leaving directory `/sources/gcc-build' make: * [all] Error 2 root:/sources/gcc-build#

Attachments (1)

error.txt (12.4 KB ) - added by Muhammad Fajar Shidiq 16 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Muhammad Fajar Shidiq, 16 years ago

Owner: changed from lfs-book@… to Muhammad Fajar Shidiq
Status: newassigned

comment:2 by Muhammad Fajar Shidiq, 16 years ago

Owner: Muhammad Fajar Shidiq removed
Status: assignednew

by Muhammad Fajar Shidiq, 16 years ago

Attachment: error.txt added

comment:3 by bdubbs@…, 16 years ago

Resolution: invalid
Status: newclosed

multilib is not supported on LFS-6.3.

Try to confirm bugs on lfs-support before creating a ticket.

Note: See TracTickets for help on using tickets.