Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147086 - [GCC 4.1] games-roguelike/noegnud-nethack-0.8.3 fails to compile
Summary: [GCC 4.1] games-roguelike/noegnud-nethack-0.8.3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on: 125902
Blocks: 117482
  Show dependency tree
 
Reported: 2006-09-10 10:56 UTC by Heiko Baums
Modified: 2007-03-14 18:19 UTC (History)
1 user (show)

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


Attachments
GCC-4.1 patch (noegnud_gcc41.patch,595 bytes, patch)
2007-01-18 13:19 UTC, René 'Necoro' Neumann
Details | Diff
ebuild doing the patching (noegnud-nethack-0.8.3-r1.ebuild,1.97 KB, text/plain)
2007-01-18 13:22 UTC, René 'Necoro' Neumann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Baums 2006-09-10 10:56:16 UTC
I know it's hard masked but I thought I should file this bug anyway.

games-roguelike/noegnud-nethack-0.8.3 fails to compile with this error message:

gcc -O2 -ffast-math -DNETHACK_3_4_3 -fomit-frame-pointer -I../include `sdl-config --cflags` -c ../win/tty/wintty.c
gcc -O2 -ffast-math -DNETHACK_3_4_3 -fomit-frame-pointer -I../include `sdl-config --cflags`   -c -o ../win/noegnud/noegnud_interface.o ../win/noegnud/noegnud_interface.c
gcc -O2 -ffast-math -DNETHACK_3_4_3 -fomit-frame-pointer -I../include `sdl-config --cflags`   -c -o ../win/noegnud/noegnud_common.o ../win/noegnud/noegnud_common.c
gcc -O2 -ffast-math -DNETHACK_3_4_3 -fomit-frame-pointer -I../include `sdl-config --cflags`   -c -o ../win/noegnud/noegnud_glfuncs.o ../win/noegnud/noegnud_glfuncs.c
gcc -O2 -ffast-math -DNETHACK_3_4_3 -fomit-frame-pointer -I../include `sdl-config --cflags`   -c -o ../win/noegnud/noegnud_collection.o ../win/noegnud/noegnud_collection.c
gcc -O2 -ffast-math -DNETHACK_3_4_3 -fomit-frame-pointer -I../include `sdl-config --cflags`   -c -o ../win/noegnud/noegnud_tilesets.o ../win/noegnud/noegnud_tilesets.c
gcc -O2 -ffast-math -DNETHACK_3_4_3 -fomit-frame-pointer -I../include `sdl-config --cflags`   -c -o ../win/noegnud/noegnud_gui.o ../win/noegnud/noegnud_gui.c
../win/noegnud/noegnud_gui.c: In function noegnud_gui_create_button:
../win/noegnud/noegnud_gui.c:635: error: invalid lvalue in assignment
make[2]: *** [../win/noegnud/noegnud_gui.o] Error 1
make[2]: Leaving directory `/usr/var/portage/noegnud-nethack-0.8.3/work/noegnud-0.8.3/variants/nethack-3.4.3/src'
make[1]: *** [noegnud-0.8.0-nethack-3.4.3] Error 2
make[1]: Leaving directory `/usr/var/portage/noegnud-nethack-0.8.3/work/noegnud-0.8.3/variants/nethack-3.4.3'
make: *** [nh343] Error 2

!!! ERROR: games-roguelike/noegnud-nethack-0.8.3 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  noegnud-nethack-0.8.3.ebuild, line 38:   Called die

!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge --info:

Gentoo Base System version 1.12.4
Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(tm) XP 1600+
Last Sync: Sun, 10 Sep 2006 11:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/usr/var"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac aalib accessibility acpi alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts bluetooth bzip2 cairo cdda cddb cdparanoia cdr chipcard cli crypt cups curl dga directfb divx4linux dlloader doc dri dv dvb dvd dvdr dvdread eds effects elibc_glibc emacs emboss encode expat extrafilters fam fame fbcon ffmpeg firefox flac foomaticdb fortran ftp gcc-libffi gcj gd gdbm geldkarte gif gimp glitz gmp gpm graphviz gs gstreamer gtk gtk2 gtkhtml hbci iconv idn imagemagick imlib inkjar input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irmc isdnlog jce jpeg kde kernel_linux lcms ldap leim libg++ linguas_de lirc lirc_devices_devinput live mad mailwrapper mbox mbrola mikmod mjpeg mmx mmx2 mmxext mng modplug motif mozilla mp3 mp4 mpeg mplayer mysql mysqli nas ncurses network nls nptl nptlonly nsplugin ntfs nvidia objc objc++ objc-gc odbc offensive ofx ogg oggvorbis opengl oss pam pcre pdf pdflib perl php plugin png ppds pppd print python qt qt3 qt4 quicktime quotes readline real reflection reiserfs rtc rtsp scanner sdl session slang slideshow smime speex spell spl sqlite sse sse-filters ssl svg svga tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer tools truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vdr video_cards_nvidia video_cards_v4l vidix visualization vlm vorbis win32codecs wmf xcomposite xine xml xml2 xmms xorg xpm xv xvid yv12 zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeff 2006-09-13 12:42:30 UTC
(In reply to comment #0)
> I know it's hard masked but I thought I should file this bug anyway.

I'm getting the same deal. ACK! Could this have anything to do with the move to gcc-4.1 me wonders?
Comment 2 Heiko Baums 2006-09-13 15:01:30 UTC
I guess that's why this bug is set to block bug #117482. ;-)
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2006-12-27 20:59:21 UTC
not work fixing if it's going to stay masked.
Comment 4 René 'Necoro' Neumann 2007-01-18 13:19:06 UTC
Created attachment 107370 [details, diff]
GCC-4.1 patch

Here is a patch for this problem. I found the hint for it while googling... I don't know if it creates a bug - but it should not as it only deletes a cast.
Comment 5 René 'Necoro' Neumann 2007-01-18 13:22:18 UTC
Created attachment 107371 [details]
ebuild doing the patching

And here is an ebuild doing the patch. As the noegnud-directory-structure is a little bit strange I had to look around for a while to make it work...
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2007-03-14 18:19:44 UTC
in portage.  thanks for the bug report and patch.