gav-0.7.3 fails to compile with the following error: g++ `sdl-config --cflags` -g -Wall -O3 -march=athlon-xp -funroll-loops -pipe -I/var/tmp/portage/gav-0.7.3/work/gav-0.7.3 -I/var/tmp/portage/gav-0.7.3/work/gav-0.7.3/menu -I/var/tmp/portage/gav-0.7.3/work/gav-0.7.3/net -I/var/tmp/portage/gav-0.7.3/work/gav-0.7.3/automa -c -o StatePlaying.o StatePlaying.cpp NetServer.cpp: In member function `int NetServer::WaitClients(int)': NetServer.cpp:53: warning: `char pl' might be used uninitialized in this function ld -r NetClient.o NetServer.o -o net_module.o make[1]: Leaving directory `/var/tmp/portage/gav-0.7.3/work/gav-0.7.3/net' make -C automa make[1]: Entering directory `/var/tmp/portage/gav-0.7.3/work/gav-0.7.3/automa' ld -r AutomaMainLoop.o StateClient.o StatePlaying.o -o automa_module.o StatePlaying.o: file not recognized: File truncated make[1]: *** [automa_module.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/gav-0.7.3/work/gav-0.7.3/automa' make: *** [automa/automa_module.o] Error 2 make: *** Waiting for unfinished jobs.... ld -r AutomaMainLoop.o StateClient.o StatePlaying.o -o automa_module.o make[1]: Leaving directory `/var/tmp/portage/gav-0.7.3/work/gav-0.7.3/automa' !!! ERROR: games-arcade/gav-0.7.3 failed. !!! Function games_src_compile, Line 122, Exitcode 2 !!! emake failed Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.2) ================================================================= System uname: 2.6.2 i686 AMD Athlon(TM) XP 2400+ Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /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/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ ftp://ibiblio.org/pub/Linux/distributions/gentoo/ http://www.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib alsa apm avi berkdb crypt cups doc dvd encode fbcon foomaticdb gdbm gif gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl pam pdflib perl png python qt quicktime readline sdl slang sse ssl svga tcltk tcpd tetex truetype x86 xinerama xml2 xmms xv zlib"
The problem ws solved with the patch as follows
Created attachment 25574 [details, diff] patch to gav-0.7.3 to gav-0.7.3-r1
So, the patch is taking out the replacing of the default C++ flags with the user C++ flags in the ebuild and this fixes...what? I don't think so. The ebuild works fine for me as is. Can you try with different CXXFLAGS and see what is actually causing the problem for you please?
My original CXXFLAGS was "-O3 -march=athlon-xp -funroll-loops -pipe" (= CFLAGS, actually) I've tried all combinations and the gav emerge only works without the "-pipe" argument. So, now it's working with CXXFLAGS="-O3 -march=athlon-xp -funroll-loops" This is really strange...any ideas?
How much memory, how much swap and how much drive space do you have. Seems like it might be running out of memory or something. If fails when you try just CXXFLAGS="-pipe" ?
yep, it fails with "-pipe" only. I don't think it's a memory/hd problem...( since I've just compilled k3b/kdeutils/qt with all CXXFLAGS) anyway... mem: 520mb swap: 420mb I don't know how to give you really usefull "usage" values (since "free" doesn't show exactly the available memory). HD: 12G available on / It must not be a HD problem, since without "-pipe" it uses temp variables (instead of pipes).
There is definitely something odd going on with your system I believe. StatePlaying.o: file not recognized: File truncated That seems pretty serious to me. The fact that it works fine for me with very similar setup and flags also makes me think it's unique to your situation.
Hmmm, try it with your usual CXXFLAGS but use MAKEOPTS="-j1" so: MAKEOPTS="-j1" emerge gav
It worked with MAKEOPTS="-j1" any guess on who is messing up this? I would say it's a make or g++ problem... but that should break up everything, not only gav, right?
Buggy makefiles. Fixed in CVS. Wait a bit, resync and all should be fine, at least as far as this bug is concerned.