Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 131412

Summary: sourcenav 5.2_beta2 fails to build w/ gcc-4.1
Product: Gentoo Linux Reporter: Kerie <jkeiren>
Component: [OLD] GCC PortingAssignee: Steve Arnold <nerdboy>
Status: RESOLVED FIXED    
Severity: normal CC: rhill
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    
Attachments: sourcenav-5.2_beta2-gcc4.patch

Description Kerie 2006-04-27 00:01:23 UTC
On AMD64, using GCC-4.1.0 sourcenav 5.2_beta2 fails to build with the following error:
cc1: error: unrecognized command line option "-fwritable-strings"
make[3]: *** [tixClass.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sourcenav-5.2_beta2/work/sourcenav-5.2b2/tix/unix/tk8.3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sourcenav-5.2_beta2/work/sourcenav-5.2b2/tix/unix'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/sourcenav-5.2_beta2/work/sourcenav-5.2b2/tix'
make: *** [all] Error 1

!!! ERROR: dev-util/sourcenav-5.2_beta2 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  sourcenav-5.2_beta2.ebuild, line 63:   Called die

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


emerge --info:
Portage 2.1_pre9-r4 (default-linux/amd64/2005.1, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo x86_64)
=================================================================
System uname: 2.6.16-gentoo x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre18
dev-lang/python:     2.4.2-r1
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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://mirror.nutsmaas.nl/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/ebuildexchange /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 16bit 64bit 7zip X a52 aac aalib acl acpi akode alsa apache2 asf async automount avi bash-completion bdf beagle berkdb bidi bigger-fonts bonjour bootsplash boundschecking browserplugin bzip2 cairo calendar cdda cddb cdinstall cdio cdparanoia cdr cdrom chm chroot clamav clamd cli cpudetection cracklib crypt css cups daap dbus dga dio directfb dlloader dmi doc dri dvd dvdr dvdread emul-linux-x86 encode examples exif extensions fam fame fat fbcon ffmpeg firefox flac foomaticdb ftp gecko-sdk gif gimp gimpprint glut glx gpm gs gstreamer gtk gtk2 hal haskell id3 idn ieee1394 imagemagick imap imlib imlib2 inifile innodb input_devices_evdev input_devices_keyboard input_devices_mouse irc isdnlog jack java jp2 jpeg jpeg2k kerberos lame latex lesstif libclamav libsamplerate lm_sensors logrotate mad maildir math memlimit mikmod mime mjpeg mmap mng motif mozcalendar mozdevelop mozilla moznocompose moznoirc mozsvg mp3 mp4live mpeg mpeg2 mpi mplayer msn msnextras musicbrainz mysql ncurses netboot nis no-old-linux nocardbus nocd nodrm nowin nptl nptlonly nsplugin ntfs ntlm nvidia offensive ogg openal opengl osc pam pascal pcntl pcre pdf pdflib perl php player png posix postfix povray ppds pppd python qt quicktime readline reflection reiserfs rrdtool samba sasl sblive screen sdl sensord session sftp sharedmem sndfile sockets socks5 soundtouch sox spell spl sql sqlite ssl subtitles subversion svg swat sysvipc tagwriting tcltk tcpd tetex threads tidy tiff tokenizer tos transcode truetype truetype-fonts type1 type1-fonts unicode urandom usb v4l v4l2 vcd verbose vhosts video_cards_nv video_cards_nvidia video_cards_vga vorbis wma wmf wxwindows xanim xine xinerama xml xml2 xmms xorg xosd xpm xprint xsl xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2006-05-06 17:26:14 UTC
this affects 4.0 as well.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2006-05-06 17:44:39 UTC
-fwritable-strings was an obscure compiler option needed by Tcl 8.1.  Since we don't have any version in portage that still requires it, i'm testing a patch to simply remove the CFLAG from the configure files.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2006-05-06 18:15:00 UTC
Created attachment 86321 [details, diff]
sourcenav-5.2_beta2-gcc4.patch

this'll get sourcenav compiling.  can you give it a test run and make sure everything is still working?
Comment 4 Steve Arnold archtester gentoo-dev 2006-05-07 13:24:43 UTC
filter-flags doesn't work in this case, since the Makefiles throw it on *after* CFLAGS, so the patch is in.  Thanks...