gcc -m32 -W -Wall -march=i386 -Os -fomit-frame-pointer -I../com32/include -c -o chain.o chain.c rm -f libcom32.a ar cq libcom32.a conio.o atou.o skipatou.o printf.o c32exit.o ranlib libcom32.a ld -m elf_i386 -Ttext 0x101000 -e _start -o hello.elf c32entry.o hello.o libcom32.a ld -m elf_i386 -Ttext 0x101000 -e _start -o hello2.elf c32entry.o hello2.o libcom32.a ld -m elf_i386 -Ttext 0x101000 -e _start -o filetest.elf c32entry.o filetest.o libcom32.a hello.o(.text+0x14): In function `__start': hello.c: undefined refereld -m elf_i386 -Ttext 0x101000 -e _start -o c32echo.elf c32entry.o c32echo.o libcom32.a hello2.o(.text+0x15): In function `writemsg': hello2.c: undefined reference to `__guard' hello2.o(.text+0x79):hello2.c: undefined reference to `__guard' hello2.o(.text+0x8d):hello2.c: undefined reference to `__stack_smash_handler' hello2.o(.text+0xae): In function `__start': hello2.c: undefined reference to `__guard' hello2.o(.text+0xef):hello2.c: undefined reference to `__stack_smash_handler' c32echo.o(.text+0x15): In function `make[1]: *** [hello2.elf] Error 1 filetest.onmake[1]: *** Waiting for unfinished jobs.... ce to `__guard' (.texthello.o(.text+0x65):hello.c: undefined reference to `__guard' hello.o(.text+0x7b):hello.c: undefined reference to `__stack_smash_handler' +0x13): In function `printregs': filetest.c: undefined refere__startmake[1]: *** [hello.elf] Error 1 nce to `__guard' ': c32echo.c: undefined reference to `__guard' filetest.o(.text+0x6b):filetest.c: undefined reference to `__stack_smash_handler' c32echo.o(.text+0x89):c32echo.c: undefined reference to `__guard' c32echo.o(.text+0x9f):c32echo.c: undefined reference to `__stack_smash_handler' filetest.o(.text+0x8f): In function `__start': filetest.c: undefined reference to `make[1]: *** [c32echo.elf] Error 1 __guard' filetest.o(.text+0x2a2)make: *** [samples] Error 2 :filetest.c: undefined reference to `__guard' filetest.o(.text+0x2b8):filetest.c: undefined !!! ERROR: sys-boot/syslinux-2.11 failed. !!! Function src_compile, Line 26, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. reference to `__stack_smash_handler' libcom32.a(conio.o)(.text+0x15): In function `putchar': conio.c: undefined reference to `__guard' libcom32.a(conio.o)(.text+0x74):conio.c: undefined reference to `__stack_smash_handler' libcom32.a(conio.o)(.text+0x96): In function `puts': conio.c: undefined reference to `__guard' libcom32.a(conio.o)(.text+0xbd):conio.c: undefined reference to `__guard' libcom32.a(conio.o)(.text+0xd2):conio.c: undefined reference to `__stack_smash_handler' libcom32.a(printf.o)(.text+0x17): In function `number': printf.c: undefined reference to `__guard' libcom32.a(printf.o)(.text+0x21c):printf.c: undefined reference to `__stack_smash_handler' libcom32.a(printf.o)(.text+0x23f): In function `vsprintf': printf.c: undefined reference to `__guard' libcom32.a(printf.o)(.text+0x570):printf.c: undefined reference to `__guard' libcom32.a(printf.o)(.text+0x589):printf.c: undefined reference to `__stack_smash_handler' libcom32.a(printf.o)(.text+0x5aa): In function `sprintf': printf.c: undefined reference to `__guard' libcom32.a(printf.o)(.text+0x5db):printf.c: undefined reference to `__stack_smash_handler' libcom32.a(printf.o)(.text+0x5ff): In function `printf': printf.c: undefined reference to `__guard' libcom32.a(printf.o)(.text+0x64e):printf.c: undefined reference to `__stack_smash_handler' libcom32.a(skipatou.o)(.text+0x15): In function `skip_atou': skipatou.c: undefined reference to `__guard' libcom32.a(skipatou.o)(.text+0x64):skipatou.c: undefined reference to `__stack_smash_handler' Happens on both P4 and AMD. Reproducible: Always Steps to Reproduce: 1. 2. 3. please ~ # emerge info Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r3 i686) ================================================================= System uname: 2.6.9-gentoo-r3 i686 AMD Athlon(tm) MP 2000+ Gentoo Base System version 1.6.7 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Aug 20 2004, 19:09:18)] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r5, 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.91.0.2, 2.15.94.0.1 sys-devel/libtool: 1.5.2-r7 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-mp -O3 -fweb -ftracer -ffast-math -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-mp -O3 -fweb -ftracer -ffast-math -pipe -fomit-frame-pointer -fvisibility-inlines-hidden" DISTDIR="/usr/local/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages nodoc noinfo sandbox sfperms" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.binarycompass.org http://gentoo.ccccom.com http://gentoo.llarian.net/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/local/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/ebuilds" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowex M X aac aalib aim alsa apache2 arts artswrappersuid atlas avi ba-completion berkdb bitmap-fonts blas bootspla bzlib cddb cdparanoia cdr crypt cscope cups curl curlwrappers dga directfb divx4linux djbfft dmx dnd dv dvd encode erandom f77 faac faad fam fbcon ffmpeg fftw flac foomaticdb fortran freetype gd gdbm ggi gif gimpprint gnome gnuplot gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml hal imagemagick imap imlib imlib2 ithreads java javascript jikes jp2 jpeg jpeg2k kde lapack lcmslibg++ live lmtp lzo lzw lzw-tiff mad mikmod mmx mmx2 mng mozdomi moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mpeg4 mplayer ncurses netcdf network nls no-old-linux nptl nptlonly nvidiaodbc offensive oggvorbis opengl oss pam passfile pcap pcre pdflib perl pic plotutils png ppds python qt qtmt quicktime readline real recode rtc samba sdl slang snmp spell sqlite sse sse2 ssl stencil-buffer svg svga tcpd tetex threads tiff transcode truetype type1 usb wmf x86 xanim xine xml xml2 xv xvid xvmc yahoo zlib"
upgrade to gcc-config-1.3.7-r5, unset GCC_SPECS, re-run gcc-config and you should be all set
Both of those things are already true for me and it still fails (same errors above, not shown here): !!! ERROR: sys-boot/syslinux-2.11 failed. !!! Function src_compile, Line 26, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. laptop ~ # emerge -pv gcc-config These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-devel/gcc-config-1.3.7-r5 0 kB Total size of downloads: 0 kB laptop ~ # echo $GCC_SPECS
Yikes, it's too early in the morning. Missed the "re-run gcc-config" part. WOrks fine now, thanks.