When I emerge -e system or emerge media-libs/freetype, the link fails, with the message quoted further down. I am in the process of upgrading from gcc 2.95.x to 3.2 - gcc, libc and bintools are updated, but I need to finish the system upgrade. Reproducible: Always Steps to Reproduce: 1. emerge media-libs/freetype Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) media-libs/freetype-2.1.2-r2 to / >>> md5 ;-) freetype-2.1.2.tar.bz2 >>> Unpacking source... >>> Unpacking freetype-2.1.2.tar.bz2 to /var/tmp/portage/freetype-2.1.2-r2/work * Applying freetype-2.1.1-enable-ft2-bci.patch... [ ok ] * Applying freetype-2.1.1-primaryhints.patch... [ ok ] * Applying freetype-2.1.2-slighthint.patch... [ ok ] * Applying freetype-2.1.2-bluefuzz.patch... [ ok ] * Applying freetype-2.1.2-stdw.patch... [ ok ] * Applying freetype-2.1.2-transform.patch... [ ok ] * Applying freetype-2.1.2-autohint.patch... [ ok ] * Applying freetype-2.1.2-leftright.patch... [ ok ] >>> Source unpacked. FreeType build system -- automatic system detection The following settings are used: platform ansi compiler gcc configuration directory ./builds/ansi configuration rules ./builds/ansi/ansi.mk If this does not correspond to your system or settings please remove the file `config.mk' from this directory then read the INSTALL file for help. Otherwise, simply type `make' again to build the library. cc -I./objs -I./builds/ansi -I./include -O2 -mcpu=i686 -pipe -o objs/ftsystem.o src/base/ftsystem.c cc -I./objs -I./builds/ansi -I./include -O2 -mcpu=i686 -pipe -o objs/ftdebug.o src/base/ftdebug.c //usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [objs/ftsystem.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [objs/ftdebug.o] Error 1 !!! ERROR: media-libs/freetype-2.1.2-r2 failed. !!! Function src_compile, Line 54, Exitcode 2 !!! (no error message) Expected Results: It should have successfully installed. gcc, glibc, and bintools updated. system not yet updated as freetype is part of system. Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r2,2.3.1-r2) ================================================================= System uname: 2.4.19-rmap14a i686 Celeron (Coppermine) GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts tetex nas bonobo svga tcltk java guile mysql postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla cdr scanner" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
just for fun, clear or disable ccache and retry?
ccache isn't installed.
do you have another gcc version around you can gcc-config switch to ? See if that works. Your compile output is a lot different then mine, i have no idea why.. did you cut things out of the output or something ? I'd like to see the configure steps etc. Main point is that for me it picks 'unix' as platform and not 'ansi', i don't know why that happens but it's most likely the reason you see it fail.
That's the entire output. I have gcc 2.95, but as I'm only part-way through a emerge -e system, due to this and another bug, so I don't know if I'll be damaging my system horribly if I change it back.
hmm no keep it as it is.. but still it obviously tries to use 3.2.2 which is not good. I get it you are rebuilding your system with 2.95, but used to have 3.2.2 ?
No, other way. 2.95 => 3.2
hmm did you follow a guide for the gcc transition ?
how is things here ? got around it or something ?
Sorry, I got frustrated by this bug and several others, so I switched to Debian. Maybe I'll use Gentoo sometime, but for now I don't feel it's stable enough.
do what you feel is best, but you could've closed the bug.