Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48014 - Duke3d compile failed due to makefile not building the source/buildengine/ directory before the source/ directory
Summary: Duke3d compile failed due to makefile not building the source/buildengine/ di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-16 01:41 UTC by Robert McGinley
Modified: 2004-04-21 13:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert McGinley 2004-04-16 01:41:54 UTC
When emergeing duke3d it seems that the work/duke3d/source/buildengine directory is not being built before the work/duke3d/source directory. I got the following error when emerging:
make[1]: Leaving directory `/var/tmp/portage/duke3d-20030817-r1/work/duke3d/source/audiolib'
gcc actors.o animlib.o control.o config.o game.o gamedef.o global.o keyboard.o menues.o player.o premap.o rts.o scriplib.o sector.o sounds.o dukemusc.o audiolib/audiolib.a buildengine/cache1d.o buildengine/engine.o buildengine/sdl_driver.o buildengine/mmulti.o buildengine/pragmas.o buildengine/unix_compat.o buildengine/buildgl.o buildengine/a_gnu.o buildengine/a_nasm.o -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL -lSDL_mixer  -o duke3d
gcc: buildengine/buildgl.o: No such file or directory
make: *** [duke3d] Error 1

I read up on the site that building from source, you must execute 'make all' inside the duke3d/source/buildengine directory and build those objects before you build the actual duke3d binary.

After doing that, everything built fine. Now lets figure out how to get the wad's in there...

Reproducible: Always
Steps to Reproduce:
1. emerge duke3d (ebuild as of April 16 2004)


Actual Results:  
While making the final duke3d binary:

gcc actors.o animlib.o control.o config.o game.o gamedef.o global.o keyboard.o
menues.o player.o premap.o rts.o scriplib.o sector.o sounds.o dukemusc.o
audiolib/audiolib.a buildengine/cache1d.o buildengine/engine.o
buildengine/sdl_driver.o buildengine/mmulti.o buildengine/pragmas.o
buildengine/unix_compat.o buildengine/buildgl.o buildengine/a_gnu.o
buildengine/a_nasm.o -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL
-lSDL_mixer  -o duke3d
gcc: buildengine/buildgl.o: No such file or directory
make: *** [duke3d] Error 1

(Total Makefile error)

Expected Results:  
duke3d to be complied via emerge.


Was able to build by executing 'make all' first in
/var/tmp/portage/duke3d-20030817-r1/work/duke3d/source/buildengine and then in
/var/tmp/portage/duke3d-20030817-r1/work/duke3d/source

Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo)
=================================================================
System uname: 2.4.25-gentoo i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc noauto noclean notitles sandbox
userpriv"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo
ftp://gentoo.ccccom.com ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aalib alsa apm arts avi berkdb cdr crypt cups encode esd
foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad
mikmod mmx mmxext motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib
perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd
truetype x86 xml2 xmms xv zlib"
Comment 1 Robert McGinley 2004-04-16 01:51:48 UTC
Note: After the initial post I went through the buildengine Makefile and discovered that the problem was in line 50 where useopengl := true is commented out and useopengl := false is not. 
After fixing the Makefile in work/duke3d/source/buildengine I executed 'make all' in the work/duke3d/source/buildengine directory and did the same for work/duke3d/source and everything compiled fine.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2004-04-18 00:23:45 UTC
I think I might have broken this ebuild.  Please resync and try version 1.13
of the ebuild.

Thanks.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-04-21 13:41:14 UTC
Yep.  Seems to be working fine now.