Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 119844 - games-fps/doomlegacy-1.42 emerge fails with sys-devel/gcc-4.0.2
Summary: games-fps/doomlegacy-1.42 emerge fails with sys-devel/gcc-4.0.2
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL: http://sourceforge.net/tracker/index....
Whiteboard: Pending removal 13 Jan 2007 (mr_bones)
Keywords: PMASKED
: 146783 146993 147082 (view as bug list)
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-01-21 11:06 UTC by Avuton Olrich
Modified: 2007-02-02 01:05 UTC (History)
12 users (show)

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 Avuton Olrich 2006-01-21 11:06:25 UTC
Problem:

-fwritable-strings is deprecated in gcc-3.4.5 (emerge suceeds)
-fwritable-strings is obsolete in 4.0.x (emerge fails)

gcc -DLINUX -DOLD_SOUND_DRIVER -DMUSSERV -DSNDSERV -DHWRENDER -DDIRECTFULLSCREEN -DVID_X11  -I. -I/usr/X11R6/include -DUSEASM  -fwritable-strings -march=i686 -O2 -ffast-math -pipe -L/usr/X11R6/lib -Wall  -c linux_x/i_video_xshm.c -o ../objs/i_video_xshm.o
gcc -DLINUX -DOLD_SOUND_DRIVER -DMUSSERV -DSNDSERV -DHWRENDER -DDIRECTFULLSCREEN -DVID_X11  -I. -I/usr/X11R6/include -DUSEASM  -fwritable-strings -march=i686 -O2 -ffast-math -pipe -L/usr/X11R6/lib -Wall  -c linux_x/dosstr.c -o ../objs/dosstr.o
gcc -DLINUX -DOLD_SOUND_DRIVER -DMUSSERV -DSNDSERV -DHWRENDER -DDIRECTFULLSCREEN -DVID_X11  -I. -I/usr/X11R6/include -DUSEASM  -fwritable-strings -march=i686 -O2 -ffast-math -pipe -L/usr/X11R6/lib -Wall  -c linux_x/searchp.c -o ../objs/searchp.o
gcc -DLINUX -DOLD_SOUND_DRIVER -DMUSSERV -DSNDSERV -DHWRENDER -DDIRECTFULLSCREEN -DVID_X11  -I. -I/usr/X11R6/include -DUSEASM  -fwritable-strings -march=i686 -O2 -ffast-math -pipe -L/usr/X11R6/lib -Wall  -c linux_x/endtxt.c -o ../objs/endtxt.o
cc1: error: unrecognized command line option "-fwritable-strings"
cc1: error: unrecognized command line option "-fwritable-strings"
cc1: error: unrecognized command line option "-fwritable-strings"
cc1: error: unrecognized command line option "-fwritable-strings"
make: *** [../objs/endtxt.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [../objs/i_video_xshm.o] Error 1
make: *** [../objs/searchp.o] Error 1
make: *** [../objs/dosstr.o] Error 1

emerge --info:
Portage 2.1_pre3-r1 (default-linux/x86/2005.0, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-rc5-mm1 i686)
=================================================================
System uname: 2.6.15-rc5-mm1 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
Gentoo Base System version 1.12.0_pre14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -ffast-math -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=i686 -O2 -ffast-math -pipe"
DISTDIR="/usr/distfiles"
FEATURES="autoconfig ccache digest distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac aalib acl acpi aim alsa ao apache2 audiofile avi bash-completion berkdb bitmap-fonts bootsplash bzip2 c++ cairo calendar cardbus cdda cddb cdparanoia cdr cgi chroot crypt css cups curl dbus dhcp dvd dvdread encode ethereal exif expat fam ffmpeg firefox flac foomaticdb ftp gd gdbm gif gimp glut gmp gnutls gpm gstreamer gzip hal http httpd icecast iconv icq idn imagemagick imlib imlib2 irssi jabber java javascript jp2 jpeg jpeg2k kde lcms libgd libwww logrotate mad mhash mikmod mime mmx mng mono motif mouse moznomail mozsvg mp3 mpeg mpeg2 mplayer mpm-prefork msn mysql ncurses net network nfs nls no-old-linux no-suexec nocd nptl nptlonly nsplugin ntfs offensive ogg opengl openssl oscar pam pcmcia pcre pda pdf pdflib perl php png python qt quicktime rar readline real reiser4 reiserfs rtc scp sdl search-screen sharedmem slang speex spell ssl subversion svg svgz sysfs szip tcltk tetex theora threads tiff transcode truetype truetype-fonts type1 type1-fonts udev unicode usb utf8 uudeview vidix vim vim-pager vim-with-x vorbis wifi win32codecs wma123 wmf wordperfect xfs xine xosd xrandr xscreensaver xv xvid yahoo zip zlib elibc_glibc kernel_linux userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Marcelo Goes (RETIRED) gentoo-dev 2006-01-21 11:16:13 UTC
"GCC no longer accepts the -fwritable-strings  option. Use named character arrays when you need a writable string."
Comment 2 Bret Towe 2006-01-22 17:53:18 UTC
i added the following to the ebuild to get rid of that issue
but the code itself needs some work  im seeing about making
a patch now 

sed -i \
	-e "s:-fwritable-strings::" \
	makefile \
	|| die "sed failed"
Comment 3 Bret Towe 2006-01-23 12:15:29 UTC
i havent had any luck making a patch 
and upstream looks to be busy rewriting it all in c++...
Comment 4 Patrizio Bassi 2006-03-04 11:38:30 UTC
after deleting the obsolete switch...it compiles a bit stopping in :

g_game.c:2324: error: invalid lvalue in increment
g_game.c:2325: error: invalid lvalue in increment
g_game.c:2326: error: invalid lvalue in increment
g_game.c:2327: error: invalid lvalue in increment
g_game.c:2335: error: invalid lvalue in increment
g_game.c:2337: error: invalid lvalue in increment
g_game.c:2341: error: invalid lvalue in increment
g_game.c:2343: error: invalid lvalue in increment
g_game.c:2346: error: invalid lvalue in increment
g_game.c:2350: error: invalid lvalue in increment
g_game.c:2352: error: invalid lvalue in increment
g_game.c: In function ‘G_DoPlayDemo’:
g_game.c:2523: error: invalid lvalue in increment
make: *** [../objs/g_game.o] Error 1
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-09-08 00:51:40 UTC
*** Bug 146783 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-09-09 14:09:36 UTC
*** Bug 146993 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-09-10 11:34:02 UTC
*** Bug 147082 has been marked as a duplicate of this bug. ***
Comment 8 Markus Giese 2006-10-04 14:33:10 UTC
should not be in portage marked as stable , as long it doesnt compile with the default GCC !!!!
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-04 15:14:53 UTC
Sure, it should.  We do not go around marking things back to testing.  When this package was marked stable, it worked.  Now that GCC 4.1 has been marked stable, it does not.  That doesn't mean that this package is suddenly unstable.

Anyway, the best course of action is a patch.  Have one?
Comment 10 Xake 2006-12-10 06:11:20 UTC
The correct way is masking it since it no longer works by default and place a comment about why it masked if no patch/fix avaible?
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-12 08:08:38 UTC
That's very likely.  If we don't come up with a patch soon, this will likely be masked, then removed from the tree.
Comment 12 Scott McClung 2006-12-19 21:28:55 UTC
(In reply to comment #11)
> That's very likely.  If we don't come up with a patch soon, this will likely be
> masked, then removed from the tree.

How much time normally passes before this kind of breakage is removed from the tree?

Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2006-12-19 23:45:42 UTC
It's package masked already.
Comment 14 Tristan Heaven (RETIRED) gentoo-dev 2007-02-02 01:05:11 UTC
Removed from the tree.