Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41530 - gav-0.7.3 fails to compile
Summary: gav-0.7.3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-13 22:14 UTC by Fernando Serboncini (RETIRED)
Modified: 2004-02-23 10:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to gav-0.7.3 to gav-0.7.3-r1 (gav.patch,380 bytes, patch)
2004-02-13 22:16 UTC, Fernando Serboncini (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Serboncini (RETIRED) gentoo-dev 2004-02-13 22:14:16 UTC
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"
Comment 1 Fernando Serboncini (RETIRED) gentoo-dev 2004-02-13 22:14:45 UTC
The problem ws solved with the patch as follows
Comment 2 Fernando Serboncini (RETIRED) gentoo-dev 2004-02-13 22:16:04 UTC
Created attachment 25574 [details, diff]
patch to gav-0.7.3 to gav-0.7.3-r1
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-02-22 22:05:05 UTC
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?
Comment 4 Fernando Serboncini (RETIRED) gentoo-dev 2004-02-23 04:59:56 UTC
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?
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2004-02-23 05:21:39 UTC
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" ?
Comment 6 Fernando Serboncini (RETIRED) gentoo-dev 2004-02-23 06:03:11 UTC
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).

Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2004-02-23 06:39:21 UTC
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.
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2004-02-23 06:43:28 UTC
Hmmm, try it with your usual CXXFLAGS but use MAKEOPTS="-j1"

so:

MAKEOPTS="-j1" emerge gav
Comment 9 Fernando Serboncini (RETIRED) gentoo-dev 2004-02-23 09:35:08 UTC
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?
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2004-02-23 10:42:38 UTC
Buggy makefiles.  Fixed in CVS.  Wait a bit, resync and all should be fine,
at least as far as this bug is concerned.