Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162386 - dev-lisp/gcl-2.6.7-r2 dies with LD_FLAGS that have "-s" in them
Summary: dev-lisp/gcl-2.6.7-r2 dies with LD_FLAGS that have "-s" in them
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-01-16 16:53 UTC by Justace Clutter
Modified: 2007-01-16 19:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Justace Clutter 2007-01-16 16:53:04 UTC
I tried to emerge gcl and received the following error:

      echo '(load "../tkl.o")(TK::GET-AUTOLOADS (directory "*.lisp"))' | ../../unixport/saved_gcl)
GCL (GNU Common Lisp)  2.6.7 CLtL1    Jan 15 2007 21:39:18
Source License: LGPL(gcl,gmp), GPL(unexec,bfd,xgcl)
Binary License:  GPL due to GPL'ed components: (XGCL READLINE BFD UNEXEC)
Modifications of this banner must retain notice of a compatible license
Dedicated to the memory of W. Schelter

Use (help) to get some basic information on how to use GCL.
Temporary directory for compiler files set to /var/tmp/portage/dev-lisp/gcl-2.6.7-r2/temp/

Loading ../tkl.o
Cnil_body is undefined

Error: Cannot get relocated section contents

Fast links are on: do (si::use-fast-links nil) for debugging
Error signalled by EVAL.
Broken at LOAD.  Type :H for Help.
Error: The function TK::GET-AUTOLOADS is undefined.
Fast links are on: do (si::use-fast-links nil) for debugging
Error signalled by EVALHOOK.
Backtrace: system:universal-error-handler > EVALHOOK

Broken at LOAD.
>>make[1]: *** [all] Error 255
make[1]: Leaving directory `/var/tmp/portage/dev-lisp/gcl-2.6.7-r2/work/gcl-2.6.7/gcl-tk'
make: *** [do-gcl-tk] Error 2

!!! ERROR: dev-lisp/gcl-2.6.7-r2 failed.
Call stack:, line 1580:   Called dyn_compile, line 945:   Called src_compile
  gcl-2.6.7-r2.ebuild, line 63:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant. 

When I built it by hand I received no such error.  I have subsequintly found by attempting to reporoduce the build environment that the "-s" in my LD_FLAGS was causing the problem.  I removed the -s from the flags in the make.conf and it then built correctly (except for failure at known bug 161041).  I am posting this as a bug since all the other applications of my system built with my original portage setup.  My original emerge --info is the following:

Portage 2.1.2_rc3-r6 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.17-suspend2-r2 i686)
System uname: 2.6.17-suspend2-r2 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.7
Last Sync: Tue, 09 Jan 2007 15:30:01 +0000
distcc 2.18.3 i686-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.30
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
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.16.1-r2, 2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -ftracer -pipe"
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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv"
LDFLAGS="-ldl -Wl,-O1 -Wl,--sort-common -s"
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"
PORTDIR_OVERLAY="/usr/local/portage_trees/personal /usr/portage/local/personal /usr/portage/local/layman/break-my-gentoo-main /usr/portage/local/layman/science /usr/portage/local/layman/gentopia /usr/portage/local/layman/xeffects"
USE="X a52 aac acl acpi aim alsa alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts bluetooth bonobo browserplugin bzip2 cairo calendar cdparanoia cdr clamav cli cpdflib cracklib crypt css cups dbus dio directfb divx4linux dlloader dri dv dvb dvd dvdr dvdread dynagraph eds elibc_glibc emboss encode esd evo exif expat fam fbcon fbsplash ffmpeg fftw foomaticdb fortran ftp gd gdbm gif glitz gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal iconv icq ieee1394 imagemagick imap imlib input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog jabber java javascript jpeg kde kerberos kernel_linux lapack lcms ldap libedit libg++ libvisual libwww lm_sensors mad mbox mikmod mime mmap mmx mng motif mozilla mp3 mpeg mpi msn ncurses nls nptl nsplugin ofx ogg oggvorbis openal opengl oscar oss pam pcmcia pcre pda pdflib perl plotutils png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sasl sdl session sndfile sox speex spell spl sse sse2 ssl subversion svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev usb userland_GNU v4l vcd video_cards_nv video_cards_nvidia video_cards_vesa vorbis wifi win32codecs wmf x86 xine xinerama xml xml2 xorg xosd xpm xprint xv yahoo zeroconf zlib"

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2007-01-16 16:56:16 UTC
So don't set absurd flags? 

My gut tells me RESOLVED, INVALID.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2007-01-16 17:03:50 UTC
"Loading ../tkl.o 
Cnil_body is undefined"

I take it as because you told ld to strip all symbols, including Cnil_body with -s.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-01-16 19:01:06 UTC
Closing, we don't care. Get this "fixed" upstream; portage strips binaries as needed.