(no subject)

tgarnsey at swiftdsl.com.au tgarnsey at swiftdsl.com.au
Thu Jan 8 01:24:30 PST 2004


Hi All,
I've been having trouble with the very first gcc compilation in chapter
five (LFS v5.0) on an Athlon 64. Not sure if this architecture has
anything to do with the problem, but I did notice some posts implying not
many people had tried LFS on it yet, and their might be some problems.

I run:
make BOOT_LDFLAGS="-static" bootstrap

The machine shows a few hundred pages of text and then dies with the error
make[2]: *** [crtbegin.o] Error 1
There seems to be a number of errors with this file on the LFS support
list, but they are mostly from the ch6 gcc compile, or are to do with
?Unknown pseudo-op: '.hidden'?

All source / patches downloaded via .torrent file on main site, the three
gcc-3.1.1 patches were applied. Full error text:


<snip> ....
rm -rf include; mkdir include
chmod a+rx include
(TARGET_MACHINE='x86_64-unknown-linux-gnu'; srcdir=`cd
../../gcc-3.3.1/gcc; ${PWDCMD-pwd}`; \
SHELL='/bin/sh' ;\
export TARGET_MACHINE srcdir SHELL ; \
rm -f include/syslimits.h; \
if [ -f include/limits.h ]; then \
  mv include/limits.h include/syslimits.h; \
else \
  cp ../../gcc-3.3.1/gcc/gsyslimits.h include/syslimits.h; \
fi; \
chmod a+r include/syslimits.h)
if [ "/usr/include" = "/tools/x86_64-unknown-linux-gnu/sys-include" ] \
   && [ -d /tools/x86_64-unknown-linux-gnu/sys-include ]; then \
  if [ -d /tools/lib ] ; then true ; else mkdir /tools/lib ; fi; \
  if [ -d /tools/lib/gcc-lib ] ; then true ; else mkdir
/tools/lib/gcc-lib; fi; \
  if [ -d /tools/lib/gcc-lib/x86_64-unknown-linux-gnu ] ; then true ; else
mkdir /tools/lib/gcc-lib/x86_64-unknown-linux-gnu ; fi; \
  if [ -d /tools/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.1 ] ; then true
; else mkdir /tools/lib/gcc-lib/x86_64-unknown-linux-gnu/3.3.1 ; fi; \
else true; fi
echo timestamp > stmp-fixinc
if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
for file in .. ../../gcc-3.3.1/gcc/ginclude/float.h
../../gcc-3.3.1/gcc/ginclude/iso646.h
../../gcc-3.3.1/gcc/ginclude/stdarg.h
../../gcc-3.3.1/gcc/ginclude/stdbool.h
../../gcc-3.3.1/gcc/ginclude/stddef.h
../../gcc-3.3.1/gcc/ginclude/varargs.h ../../gcc-3.3.1/gcc/unwind.h
../../gcc-3.3.1/gcc/config/i386/mmintrin.h
../../gcc-3.3.1/gcc/config/i386/xmmintrin.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
echo timestamp > stmp-int-hdrs
objext='.o' \
LIB1ASMFUNCS='' \
LIB2FUNCS_1='_muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _ffsdi2 _clz
_cmpdi2 _ucmpdi2 _floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi
_fixdfdi _fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi' \
LIB2FUNCS_2='_floatdixf _fixunsxfsi _fixtfdi _fixunstfdi _floatditf
_clear_cache _trampoline __main _exit _absvsi2 _absvdi2 _addvsi3 _addvdi3
_subvsi3 _subvdi3 _mulvsi3 _mulvdi3 _negvsi2 _negvdi2 _ctors' \
LIB2FUNCS_ST='_eprintf _bb __gcc_bcmp' \
LIB2ADD='' \
LIB2ADD_ST='' \
LIB2ADDEH='../../gcc-3.3.1/gcc/unwind-dw2.c
../../gcc-3.3.1/gcc/unwind-dw2-fde-glibc.c
../../gcc-3.3.1/gcc/unwind-sjlj.c ../../gcc-3.3.1/gcc/unwind-c.c' \
LIB2ADDEHDEP='unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c' \
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=` ./xgcc -B./ -B/tools/x86_64-unknown-linux-gnu/bin/ -isystem
/tools/x86_64-unknown-linux-gnu/include -isystem
/tools/x86_64-unknown-linux-gnu/sys-include --print-multi-lib` \
EXTRA_MULTILIB_PARTS='crtbegin.o crtend.o crtbeginS.o crtendS.o
crtbeginT.o' \
SHLIB_LINK=' ./xgcc -B./ -B/tools/x86_64-unknown-linux-gnu/bin/ -isystem
/tools/x86_64-unknown-linux-gnu/include -isystem
/tools/x86_64-unknown-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs
-Wl,--soname=@shlib_so_name at .so.1 -Wl,--version-script=@shlib_map_file@ -o
@shlib_dir@@shlib_so_name at .so.1 @multilib_flags@ @shlib_objs@ -lc && rm -f
@shlib_base_name at .so && ln -s @shlib_dir@@shlib_so_name at .so.1
@shlib_base_name at .so' \
SHLIB_INSTALL='$(SHELL) $(srcdir)/mkinstalldirs
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@; /usr/bin/install -c -m 644
@shlib_dir@@shlib_so_name at .so.1
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_so_name at .so.1; rm -f
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so; ln -s
@shlib_so_name at .so.1
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so' \
SHLIB_EXT='.so' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='../../gcc-3.3.1/gcc/mkmap-symver.awk' \
SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='../../gcc-3.3.1/gcc/libgcc-std.ver
../../gcc-3.3.1/gcc/config/i386/libgcc-x86_64-glibc.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='../lib64 ../lib' \
mkinstalldirs='/bin/sh ../../gcc-3.3.1/gcc/mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TM_DEFINES="" \
HEADERS="ansidecl.h  i386/biarch64.h i386/i386.h i386/unix.h i386/att.h
dbxelf.h elfos.h svr4.h linux.h                  i386/x86-64.h
i386/linux64.h defaults.h" XM_DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh ../../gcc-3.3.1/gcc/mkconfig.sh tconfig.h
./xgcc -B./ -B/tools/x86_64-unknown-linux-gnu/bin/ -isystem
/tools/x86_64-unknown-linux-gnu/include -isystem
/tools/x86_64-unknown-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -I. -I. -I../../gcc-3.3.1/gcc -I../../gcc-3.3.1/gcc/.
-I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include  -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-omit-frame-pointer -fno- _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=` ./xgcc -B./ -B/tools/x86_64-unknown-linux-gnu/bin/ -isystem
/tools/x86_64-unknown-linux-gnu/include -isystem
/tools/x86_64-unknown-linux-gnu/sys-include --print-multi-lib` \
EXTRA_MULTILIB_PARTS='crtbegin.o crtend.o crtbeginS.o crtendS.o
crtbeginT.o' \
SHLIB_LINK=' ./xgcc -B./ -B/tools/x86_64-unknown-linux-gnu/bin/ -isystem
/tools/x86_64-unknown-linux-gnu/include -isystem
/tools/x86_64-unknown-linux-gnu/sys-include -O2  -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs
-Wl,--soname=@shlib_so_name at .so.1 -Wl,--version-script=@shlib_map_file@ -o
@shlib_dir@@shlib_so_name at .so.1 @multilib_flags@ @shlib_objs@ -lc && rm -f
@shlib_base_name at .so && ln -s @shlib_dir@@shlib_so_name at .so.1
@shlib_base_name at .so' \
SHLIB_INSTALL='$(SHELL) $(srcdir)/mkinstalldirs
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@; /usr/bin/install -c -m 644
@shlib_dir@@shlib_so_name at .so.1
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_so_name at .so.1; rm -f
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so; ln -s
@shlib_so_name at .so.1
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so' \
SHLIB_EXT='.so' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='../../gcc-3.3.1/gcc/mkmap-symver.awk' \
SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='../../gcc-3.3.1/gcc/libgcc-std.ver
../../gcc-3.3.1/gcc/config/i386/libgcc-x86_64-glibc.ver' \
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='../lib64 ../lib' \
mkinstalldirs='/bin/sh ../../gcc-3.3.1/gcc/mkinstalldirs' \
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TM_DEFINES="" \
HEADERS="ansidecl.h  i386/biarch64.h i386/i386.h i386/unix.h i386/att.h
dbxelf.h elfos.h svr4.h linux.h                  i386/x86-64.h
i386/linux64.h defaults.h" XM_DEFINES="POSIX" \
TARGET_CPU_DEFAULT="" \
/bin/sh ../../gcc-3.3.1/gcc/mkconfig.sh tconfig.h
./xgcc -B./ -B/tools/x86_64-unknown-linux-gnu/bin/ -isystem
/tools/x86_64-unknown-linux-gnu/include -isystem
/tools/x86_64-unknown-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include  -I. -I. -I../../gcc-3.3.1/gcc -I../../gcc-3.3.1/gcc/.
-I../../gcc-3.3.1/gcc/config -I../../gcc-3.3.1/gcc/../include  -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-omit-frame-pointer
-fno-asynchronous-unwind-tables \
   -c ../../gcc-3.3.1/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from ../../gcc-3.3.1/gcc/crtstuff.c:62:
../../gcc-3.3.1/gcc/tsystem.h:72:19: stdio.h: No such file or directory
../../gcc-3.3.1/gcc/tsystem.h:75:23: sys/types.h: No such file or directory
../../gcc-3.3.1/gcc/tsystem.h:78:19: errno.h: No such file or directory
../../gcc-3.3.1/gcc/tsystem.h:85:20: string.h: No such file or directory
../../gcc-3.3.1/gcc/tsystem.h:89:20: stdlib.h: No such file or directory
../../gcc-3.3.1/gcc/tsystem.h:90:20: unistd.h: No such file or directory
In file included from include/syslimits.h:7,
                 from include/limits.h:11,
                 from ../../gcc-3.3.1/gcc/tsystem.h:93,
                 from ../../gcc-3.3.1/gcc/crtstuff.c:62:
include/limits.h:122:75: limits.h: No such file or directory
In file included from ../../gcc-3.3.1/gcc/crtstuff.c:62:
../../gcc-3.3.1/gcc/tsystem.h:96:18: time.h: No such file or directory
../../gcc-3.3.1/gcc/crtstuff.c: In function `__do_global_dtors_aux':
../../gcc-3.3.1/gcc/crtstuff.c:280: warning: passing arg 1 of
`__deregister_frame_info' discards qualifiers from pointer target type
../../gcc-3.3.1/gcc/crtstuff.c: In function `frame_dummy':
../../gcc-3.3.1/gcc/crtstuff.c:316: warning: passing arg 1 of
`__register_frame_info' discards qualifiers from pointer target type
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2

Any help much appreciated!
-Tim



More information about the lfs-support mailing list