Summary: | sci-mathematics/yacas-1.0.63 fails to build with --as-needed | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrizio Bassi <patrizio.bassi> |
Component: | New packages | Assignee: | Gentoo Science Mathematics related packages <sci-mathematics> |
Status: | RESOLVED LATER | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 129413 | ||
Attachments: |
files/yacas-1.0.63-as-needed.patch
yacas-1.0.63.ebuild patch |
Description
Patrizio Bassi
2007-02-18 09:04:44 UTC
Hi Patrizio, Thanks for the note! I've been aware of this for some time now but simply haven't had the time to fix it. Thanks, Markus Created attachment 117953 [details, diff]
files/yacas-1.0.63-as-needed.patch
Created attachment 117954 [details, diff]
yacas-1.0.63.ebuild patch
doesn't work. x86_64-pc-linux-gnu-gcc -O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse -Wall -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=both -o .libs/example3 example3.o -L/mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libcyacas.so /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacasplatform.so /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacasnumbers.so /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacas.so ../libltdl/.libs/libltdlc.a -ldl -lm -lstdc++ -Wl,--rpath -Wl,/usr/lib64 x86_64-pc-linux-gnu-gcc -O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse -Wall -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=both -o .libs/example1 example1.o -L/mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libcyacas.so /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacasplatform.so /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacasnumbers.so /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacas.so ../libltdl/.libs/libltdlc.a -ldl -lm -lstdc++ -Wl,--rpath -Wl,/usr/lib64 /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacas.so: undefined reference to `__cxa_begin_catch' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libcyacas.so: undefined reference to `__cxa_pure_virtual' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacasplatform.so: undefined reference to `__cxa_allocate_exception' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libcyacas.so: undefined reference to `__gxx_personality_v0' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacasplatform.so: undefined reference to `__cxa_throw' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacas.so: undefined reference to `__cxa_end_catch' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libyacasplatform.so: undefined reference to `typeinfo for int' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libcyacas.so: undefined reference to `vtable for __cxxabiv1::__class_type_info' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.0.63/work/yacas-1.0.63/src/.libs/libcyacas.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info' collect2: ld returned 1 exit status make[2]: *** [example3] Error 1 make[2]: *** Waiting for unfinished jobs.... .. Hi Timothy, Great and thanks a bunch! Your fix works fine for me and yacas compiles through with -as-needed now. @Patrizio: Could you please try compiling it without the "-Wl,--hash-style=both" and possibly CFLAGS/CXXFLAGS="-O2 -march=..." only. Thanks, Markus i tried with all possible combinations, but only deleting -as-needed i can get it compiled. Folks, I've committed Timothy's patch to cvs since it fixes all as-needed problems on my two dev boxes. @Patrizio: Could you please re-sync the tree and emerge yacas-1.0.63 with LDFLAGS="" CFLAGS/CXXFLAGS="-O2 -pipe -march=nocona" and post the output of your failed emerge to this bug; please include the link line so I can check if the autotools do anything bad. Thanks, Markus markus with empty LDFLAGS works. and even with all flags i have, all but -as-needed. so i didn't understand how and what do you want me to test. the error with your flag (+ as-needed) is exactly the same posted before.. Hi Patrizio, I had a closer look again at your linking errors. The patch I applied fixes the problem reported in your first post. The errors reported in comment #4 (__cxa_* et al.) come from libstdc++ and are probably due to issues in your toolchain, probably caused by -Wl,--hash-style=both which is not supported by Gentoo. Hence, in order to rid of yourself of this remaining issue you could try recompiling your toolchain without the hash flags. Best, Markus i don't know seems so strange. if i do not include the --as-needed flag it works....even with the hash flag. and this really the only package giving me this problem, i have something like 5k packages... Is this still an issue or has this been resolved? Thanks, Markus no Makus, still there: /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.1.0/work/yacas-1.1.0/src/.libs/libyacas.so: undefined reference to `__cxa_begin_catch' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.1.0/work/yacas-1.1.0/src/.libs/libcyacas.so: undefined reference to `__cxa_pure_virtual' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.1.0/work/yacas-1.1.0/src/.libs/libyacasplatform.so: undefined reference to `__cxa_allocate_exception' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.1.0/work/yacas-1.1.0/src/.libs/libcyacas.so: undefined reference to `__gxx_personality_v0' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.1.0/work/yacas-1.1.0/src/.libs/libyacasplatform.so: undefined reference to `__cxa_throw' /mnt/Dati/Gentoo/tmp/portage/sci-mathematics/yacas-1.1.0/work/yacas-1.1.0/src/.libs/libyacas.so: undefined reference to `__cxa_end_catch' Portage 2.1.3.7 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22.1 x86_64) ================================================================= System uname: 2.6.22.1 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz Gentoo Base System release 1.12.10 Timestamp of tree: Sat, 25 Aug 2007 09:00:10 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.18 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/run/dspam" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="39" LC_ALL="it_IT.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=both" LINGUAS="it" MAKEOPTS="-j4" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/mnt/Dati/Gentoo/tmp/" PORTDIR="/mnt/Dati/Gentoo/portage/" PORTDIR_OVERLAY="/usr/local/portage/myportage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="64bit 7zip X X509 Xaw3d a52 aac aalib accessibility ace acl acpi activefilter adns aiglx aio alsa amd amd64 amr amrr amuled ao aoss apache2 arj asf aspnet2 async atk audacious audiofile authfile automount bash-completion berkdb bidi binary-drivers bitmap-fonts bittorrent bootsplash browserplugin bzip2 cairo calendar caps cdda cddb cdio cdparanoia cdr cgi charconv chardet chroot ciao clamav clearcase cli client codecs corba cracklib crypt cscope css ctype cups curl cvs daemon dar64 dba dbus depth32 dga dhcp dio directfb diskio divx djbfft dmi dri dvd dvdr dvdread edl encode ethereal exif expat extraengine faac faad fam fastbuild fbcon ffmpeg fftw firefox flac flash foreign-package fortran ftp gcj gd gdbm geometry ggi gif gimp gimpprint glibc-omitfp glitz glut glx gnokii gnome gnutls gphoto2 gpm graphviz gs gtk gtk2 gtkhtml guile h264 hal hddtemp iconv idea idn imagemagick imap innodb ipod ipv6 irda irmc isdnlog jack java java5 javamail javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kdehiddenvisibility kerberos kqemu lame lcd lcms ldap libcaca libclamav libgda libusb lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb mhash midi mikmod mime mmx mmx2 mmxext mng mono mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mpm-prefork msn msnextras mudflap musepack mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin nv nvidia oav odbc ogg openal opengl openmp openssl operanom2 pam pcre pda pdf pdo pear perl php pmu png pnp postgres pppd pthreads pulseaudio python qemu-fast qhull qt3 qt4 quicktime quotas readline reflection rrdtool rtc ruby samba scanner sdl server session sftplogging sguil slang slp smp snortsam soap sockets socks5 softmmu softquota spamassassin speex spell spl sqlite3 sse sse2 sse3 ssl ssse3 subject-rewrite svg tao tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts unicode usb userlocales vorbis wma wmf wmv wsconvert wxwindows x264 xanim xchatdccserver xchattext xcomposite xine xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid xvm xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vga nv nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Hi Patrizio, Thanks a lot for checking and too bad! I can't reproduce this at all on any of my machines, unfortunately. Best, Markus hi Markus, what's your idea to go on so? can i produce more debug info? Well, the symbols you're missing are from libstdc++; you have pretty bleeding edge CFLAGS/LDFLAGS so it is hard to tell where this could come from, i.e., yacas itself, toolchain, etc. Maybe you can post your complete emerge log so I can scan through it. Thanks, Markus i'm closing it as 1.2.2 works ok :) Thanks :) cheers, Markus |