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

Bug 147216

Summary: sci-mathematics/ginac-1.3.4 fails to compile with -fvisibility-inlines-hidden on gcc 4.1.1
Product: Gentoo Linux Reporter: Alexander Smith <alexander.smith>
Component: [OLD] GCC PortingAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Smith 2006-09-11 12:03:58 UTC
With "-fvisibility-inlines-hidden" in my CXXFLAGS, ginac fails to compile with the error below. If I remove the flag, it compiles properly (and allows sci-mathematics/octave-forge to be built with the "ginac" USE flag). I just recently completed upgrading to GCC 4 now that it has gone stable. The transition went smoothly. Only a few packages (like this one) gave me troubles.

The end of the compilation output is:

Making all in ginsh
make[2]: Entering directory `/var/tmp/portage/ginac-1.3.4/work/ginac-1.3.4/ginsh'
sed -n -f ./ginsh_fcn_help.sed <ginsh.1 >ginsh_fcn_help.h
sed -n -f ./ginsh_op_help.sed <ginsh.1 >ginsh_op_help.h
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -DIN_GINAC    -O2 -mtune=pentium3 -pipe -momit-leaf-frame-pointer -fvisibility-inlines-hidden -MT ginsh_lexer.o -MD -MP -MF ".deps/ginsh_lexer.Tpo" \
  -c -o ginsh_lexer.o `test -f 'ginsh_lexer.cc' || echo './'`ginsh_lexer.cc; \
then mv -f ".deps/ginsh_lexer.Tpo" ".deps/ginsh_lexer.Po"; \
else rm -f ".deps/ginsh_lexer.Tpo"; exit 1; \
fi
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I./../ginac -I../ginac -DIN_GINAC    -O2 -mtune=pentium3 -pipe -momit-leaf-frame-pointer -fvisibility-inlines-hidden -MT ginsh_parser.o -MD -MP -MF ".deps/ginsh_parser.Tpo" \
  -c -o ginsh_parser.o `test -f 'ginsh_parser.cc' || echo './'`ginsh_parser.cc; \
then mv -f ".deps/ginsh_parser.Tpo" ".deps/ginsh_parser.Po"; \
else rm -f ".deps/ginsh_parser.Tpo"; exit 1; \
fi
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-g++  -O2 -mtune=pentium3 -pipe -momit-leaf-frame-pointer -fvisibility-inlines-hidden  -Wl,-O1 -Wl,--sort-common -o ginsh  ginsh_parser.o ginsh_lexer.o ../ginac/libginac.la -lreadline -lncurses  -L/usr/lib -lcln -lgmp
mkdir .libs
i686-pc-linux-gnu-g++ -O2 -mtune=pentium3 -pipe -momit-leaf-frame-pointer -fvisibility-inlines-hidden -Wl,-O1 -Wl,--sort-common -o .libs/ginsh ginsh_parser.o ginsh_lexer.o  ../ginac/.libs/libginac.so -lreadline -lncurses -L/usr/lib /usr/lib/libcln.so /usr/lib/libgmp.so
ginsh_parser.o:(.rodata._ZTVN5GiNaC9containerISt4listEE[vtable for GiNaC::container<std::list>]+0x4c): undefined reference to `GiNaC::container<std::list>::info(unsigned int) const'
ginsh_parser.o:(.rodata._ZTVN5GiNaC9containerISt6vectorEE[vtable for GiNaC::container<std::vector>]+0x4c): undefined reference to `GiNaC::container<std::vector>::info(unsigned int) const'
collect2: ld returned 1 exit status
make[2]: *** [ginsh] Error 1
make[2]: Leaving directory `/var/tmp/portage/ginac-1.3.4/work/ginac-1.3.4/ginsh'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ginac-1.3.4/work/ginac-1.3.4'
make: *** [all] Error 2

!!! ERROR: sci-mathematics/ginac-1.3.4 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 608:   Called die

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



My emerge info is:

Gentoo Base System version 1.12.4
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Pentium III (Coppermine)
Last Sync: Mon, 11 Sep 2006 00:20:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
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-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium3 -pipe -momit-leaf-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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=pentium3 -pipe -momit-leaf-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ ftp://cs.ubishops.ca/pub/gentoo http://adelie.polymtl.ca/ ftp://gentoo.risq.qc.ca/ ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/ ftp://planetmirror.com/pub/gentoo/"
LANG="en_CA"
LC_ALL="en_CA"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="en_CA en en_GB en_US"
MAKEOPTS="-j2"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac acpi akode alsa amr apache2 arts asf async audiofile bash-completion berkdb bindist bitmap-fonts bjam blas browserplugin bzip2 cairo cddb cdparanoia cdr cli cpudetection crypt css cups curl cvs djbfft dlloader dmi dri dts dv dvb dvd dvdread edl elibc_glibc encode exif extraengine fame ffmpeg flac font-server foomaticdb fortran fpx fuse gd gdbm gif glitz glut gnutls gphoto2 gpm graphviz gs gtk gtk2 hal i8x0 idn ieee1394 imagemagick imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse isdnlog ithreads java javascript jbig joystick jpeg jpeg2k kde kdehiddenvisibility kernel_linux kqemu latex libg++ linguas_en linguas_en_CA linguas_en_GB linguas_en_US live lzo mad mbrola mikmod mjpeg mmap mmx mng modplug motif mozsvg mp3 mp4 mpeg mpi mplayer musepack musicbrainz mysql nas ncurses network nls nptl nptlonly nsplugin oav ogg oggvorbis openal openexr opengl oss pam pcre pdf perl physfs plotutils png portaudio povray ppds pppd python qhull qt3 qt4 quicktime rar rdesktop readline real reflection rle rtc samba scanner sdl session slp sndfile sox speex spell spl sse ssl stencil-buffer subtitles svg szip tcl tcltk tcpd tetex tga theora threads tiff timidity tk truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 vcd video_cards_i810 video_cards_v4l video_cards_vesa video_cards_vga vorbis win32codecs winbind wmf wxwindows x264 xine xml xmms xorg xpm xprint xscreensaver xv xvid xvmc yv12 zeroconf zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-16 08:51:58 UTC

*** This bug has been marked as a duplicate of 127020 ***