x86_64-pc-linux-gnu-gcc -o .libs/mzscheme .libs/main.o -Wl,--as-needed -rdynamic ./.libs/libmzscheme.so ./.libs/libmzgc.so -ldl -lm -Wl,--rpath -Wl,/usr/lib64 ./.libs/libmzscheme.so: undefined reference to `log' ./.libs/libmzscheme.so: undefined reference to `sqrt' ./.libs/libmzscheme.so: undefined reference to `dlerror' ./.libs/libmzscheme.so: undefined reference to `ceil' ./.libs/libmzscheme.so: undefined reference to `floor' ./.libs/libmzscheme.so: undefined reference to `dlclose' ./.libs/libmzscheme.so: undefined reference to `fmod' ./.libs/libmzscheme.so: undefined reference to `cos' ./.libs/libmzscheme.so: undefined reference to `sin' ./.libs/libmzscheme.so: undefined reference to `atan2' ./.libs/libmzscheme.so: undefined reference to `dlopen' ./.libs/libmzscheme.so: undefined reference to `pow' ./.libs/libmzscheme.so: undefined reference to `dlsym' ./.libs/libmzscheme.so: undefined reference to `exp' ./.libs/libmzscheme.so: undefined reference to `tan' ./.libs/libmzscheme.so: undefined reference to `atan' ./.libs/libmzscheme.so: undefined reference to `asin' ./.libs/libmzscheme.so: undefined reference to `acos' collect2: ld returned 1 exit status make[4]: *** [mzscheme] Error 1 make[4]: Leaving directory `/var/tmp/portage/dev-scheme/drscheme-360-r2/work/plt-360/src/mzscheme' make[3]: *** [normal-bin] Error 2 make[3]: Leaving directory `/var/tmp/portage/dev-scheme/drscheme-360-r2/work/plt-360/src/mzscheme' make[2]: *** [bin] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-scheme/drscheme-360-r2/work/plt-360/src/mzscheme' make[1]: *** [mz] Error 2 make[1]: Leaving directory `/var/tmp/portage/dev-scheme/drscheme-360-r2/work/plt-360/src' make: *** [all] Error 2 !!! ERROR: dev-scheme/drscheme-360-r2 failed. Call stack: ebuild.sh, line 1615: Called dyn_compile ebuild.sh, line 972: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile drscheme-360-r2.ebuild, line 61: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/dev-scheme/drscheme-360-r2/temp/build.log'. # emerge --info Portage 2.1.2.7 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.18-gentoo-r7-20070427 x86_64) ================================================================= System uname: 2.6.18-gentoo-r7-20070427 x86_64 AMD Athlon(tm) 64 Processor 3700+ Gentoo Base System release 1.12.10 Timestamp of tree: Tue, 15 May 2007 16:20:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-java/java-config: 1.3.7, 2.0.32 dev-lang/python: 2.5-r2 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 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 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3.90.1/env /usr/kde/3.90.1/share/config /usr/kde/3.90.1/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="candy distlocks parallel-fetch sandbox sfperms strict userpriv userpriv_fakeroot usersandbox" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LANG="en_US.utf8" LC_ALL="en_US.utf8" LDFLAGS="-Wl,--as-needed" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/g-cpan /usr/portage/local/layman/xeffects /usr/portage/local/layman/kde /usr/portage/local/misc" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X aac acpi alsa amd64 bitmap-fonts bzip2 cairo cdinstall cdr cjk cli cracklib crypt cups dbus dri dvb dvd dvdr dvdread emboss encode evo fam firefox flac fortran gif gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kdeenablefinal kdehiddenvisibility libg++ mad midi mikmod mmx mp3 mpeg mplayer ncurses nls nptl nptlonly nvidia ogg opengl pam pcre pdf perl png pppd python qt3 qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode userlocales vorbis xine xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv vga" Unset: CTARGET, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always
Merging with LDFLAGS='' works, so it really seems to be related to --as-needed.
Please confirm the issue also exists in 360-r1
Yes, same problem with 360-r1
Created attachment 125980 [details, diff] patch for this issue Well, really... It should have been upstreamed quite awhile ago. Anyway, with this patch it seems to build fine for me.
OK, some new input. New ebuild - drscheme-370.6_p20070725 works with this patch. What's more, drscheme from this ebuild does not work: normalize-path: #<path:/usr/share/doc/drscheme-370.6_p20070725> (within the input path) is not a directory or does not exist === context === /usr/lib/plt/collects/mzlib/file.ss:85:16: normalize get-help-url and exits (mred seems to work, though)
(In reply to comment #5) > OK, some new input. > New ebuild - drscheme-370.6_p20070725 works with this patch. Thanks, I've send it upstream. > What's more, drscheme from this ebuild does not work: > normalize-path: #<path:/usr/share/doc/drscheme-370.6_p20070725> (within the > input path) is not a directory or does not exist > > === context === > /usr/lib/plt/collects/mzlib/file.ss:85:16: normalize > get-help-url > > and exits (mred seems to work, though) I've fixed this issue. Unfortunately there is a segfault a little later. I've masked this version for now and mailed upstream. Find me in #gentoo-lisp if you want to help.
Just wanted to add that the patch is still needed and works for 371.
Fixed.