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
"GCC no longer accepts the -fwritable-strings option. Use named character arrays when you need a writable string."
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"
i havent had any luck making a patch and upstream looks to be busy rewriting it all in c++...
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
*** Bug 146783 has been marked as a duplicate of this bug. ***
*** Bug 146993 has been marked as a duplicate of this bug. ***
*** Bug 147082 has been marked as a duplicate of this bug. ***
should not be in portage marked as stable , as long it doesnt compile with the default GCC !!!!
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?
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?
That's very likely. If we don't come up with a patch soon, this will likely be masked, then removed from the tree.
(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?
It's package masked already.
Removed from the tree.