Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28753 - freedroid-1.0.2 fails to compile
Summary: freedroid-1.0.2 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-14 20:29 UTC by teidakankan
Modified: 2003-09-15 08:23 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 teidakankan 2003-09-14 20:29:29 UTC
Using sys-devel/gcc-3.2.3-r1

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




>>> md5 src_uri ;-) freedroid-1.0.2.tar.gz
>>> Unpacking source...
>>> Unpacking freedroid-1.0.2.tar.gz to /var/tmp/portage/freedroid-1.0.2/work
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for sin in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configure: Checking for compulsory SDL libraries:
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.3... yes
checking for SDL_Init in -lSDL... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for png_read_png in -lpng... yes
checking for IMG_LoadJPG_RW in -lSDL_image... yes
configure: Checking for optional SDL libraries:
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking for ov_open in -lvorbis... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking return type of signal handlers... void
checking for memset... yes
checking for sqrt... yes
checking for strstr... yes
checking for strtok... yes
checking for strcspn... yes
checking for strspn... yes
checking for rand... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/freedroid-1.0.2/work/freedroid-1.0.2'
Making all in src
make[2]: Entering directory
`/var/tmp/portage/freedroid-1.0.2/work/freedroid-1.0.2/src'
source='menu.c' object='menu.o' libtool=no \
depfile='.deps/menu.Po' tmpdepfile='.deps/menu.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O3 -march=pentium3 -pipe -mfpmath=sse 
-I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT 
-DFD_DATADIR='"/usr/share/games/freedroid"' -c `test -f 'menu.c' || echo './'`menu.c
source='graphics.c' object='graphics.o' libtool=no \
depfile='.deps/graphics.Po' tmpdepfile='.deps/graphics.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O3 -march=pentium3 -pipe -mfpmath=sse 
-I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT 
-DFD_DATADIR='"/usr/share/games/freedroid"' -c `test -f 'graphics.c' || echo
'./'`graphics.c
source='map.c' object='map.o' libtool=no \
depfile='.deps/map.Po' tmpdepfile='.deps/map.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O3 -march=pentium3 -pipe -mfpmath=sse 
-I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT 
-DFD_DATADIR='"/usr/share/games/freedroid"' -c `test -f 'map.c' || echo './'`map.c
source='init.c' object='init.o' libtool=no \
depfile='.deps/init.Po' tmpdepfile='.deps/init.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O3 -march=pentium3 -pipe -mfpmath=sse 
-I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT 
-DFD_DATADIR='"/usr/share/games/freedroid"' -c `test -f 'init.c' || echo './'`init.c
source='ship.c' object='ship.o' libtool=no \
depfile='.deps/ship.Po' tmpdepfile='.deps/ship.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O3 -march=pentium3 -pipe -mfpmath=sse 
-I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT 
-DFD_DATADIR='"/usr/share/games/freedroid"' -c `test -f 'ship.c' || echo './'`ship.c
source='takeover.c' object='takeover.o' libtool=no \
depfile='.deps/takeover.Po' tmpdepfile='.deps/takeover.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O3 -march=pentium3 -pipe -mfpmath=sse 
-I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT 
-DFD_DATADIR='"/usr/share/games/freedroid"' -c `test -f 'takeover.c' || echo
'./'`takeover.c
source='bullet.c' object='bullet.o' libtool=no \
depfile='.deps/bullet.Po' tmpdepfile='.deps/bullet.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -O3 -march=pentium3 -pipe -mfpmath=sse 
-I/usr/X11R6/include -I/usr/include/SDL -D_REENTRANT 
-DFD_DATADIR='"/usr/share/games/freedroid"' -c `test -f 'bullet.c' || echo
'./'`bullet.c
bullet.c: In function `CheckBlastCollisions':
bullet.c:532: unable to find a register to spill in class `SSE_REGS'
bullet.c:532: this is the insn:
(insn 73 71 76 (set (subreg:SF (reg/v:DI 29 rmm0 [69]) 0)
        (minus:SF (reg:SF 24 exmm3 [77])
            (reg:SF 26 exmm5 [243]))) 547 {*fop_sf_1_sse} (insn_list 68 (nil))
    (nil))
bullet.c:532: confused by earlier errors, bailing out
make[2]: *** [bullet.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/freedroid-1.0.2/work/freedroid-1.0.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/freedroid-1.0.2/work/freedroid-1.0.2'
make: *** [all] Error 2

!!! ERROR: games-rpg/freedroid-1.0.2 failed.
!!! Function games_src_compile, Line 110, Exitcode 2
!!! emake failed
Comment 1 SpanKY gentoo-dev 2003-09-14 20:36:59 UTC
try it without -mfpmath=sse

-march=pentium4 -O2 -frename-registers -fomit-frame-pointer -pipe -mfpmath=sse -mmmx -msse -msse2 -fdelete-null-pointer-checks -funroll-loops -ffast-math worked for me, but with 3.3.1
Comment 2 teidakankan 2003-09-14 23:29:47 UTC
That fixed it!!  Thanks a lot.
Comment 3 SpanKY gentoo-dev 2003-09-15 08:23:15 UTC
added the following to cvs:
[ "`gcc-fullversion`" == "3.2.3" ] && filter-mfpmath sse

you should be all set now