Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156911 - drscheme-360-r1 fails because of LDFLAGS without "-Wl,"
Summary: drscheme-360-r1 fails because of LDFLAGS without "-Wl,"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
: 156910 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-02 07:04 UTC by TGL
Modified: 2007-01-04 05:28 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,6.97 KB, text/plain)
2006-12-02 07:06 UTC, TGL
Details
drscheme-360-r1-ebuild--fix_LDFLAGS.patch (drscheme-360-r1-ebuild--fix_LDFLAGS.patch,639 bytes, patch)
2006-12-02 07:21 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2006-12-02 07:04:24 UTC
Tried to install drscheme-360-r1 today, and it failed at configure time:

-------------------------------------------
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --loc
alstatedir=/var/lib --enable-mred --enable-shared --enable-lt=/usr/bin/libtool --disable-backtrace --enable-cairo --enable-libjpeg --enable-gl --
disable-perl --enable-libpng --disable-sgc --build=i686-pc-linux-gnu
=== Shared libraries enabled
=== Libtool program: /usr/bin/libtool
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
-------------------------------------------

In the config.log (that i will attach), it's obvious that the error comes from LDFLAGS having lost their "-Wl," prefixes (at the begining of the "src_compile()" ebuild function).  This LDFLAGS forging in the ebuild is, i guess, an attempt at fixing bug #141925.  But it is done too early: the mzscheme linker is not used in "src_compile()", but in "src_install()".  At the contrary, gcc is used for linking in "src_compile()", hence the failure with the forged LDFLAGS.

I will attach a patch which removes the LDFLAGS forging from where it doesn't belong, and instead sets MZSCHEME_DYNEXT_LINKER_FLAGS in "src_install()" (this variable is used by the mzscheme linker when set, instead of LDFLAGS).
Comment 1 TGL 2006-12-02 07:05:28 UTC
Oops, forgot "emerge --info"...

Portage 2.1.2_rc2-r3 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.17-beyond3 i686)
=================================================================
System uname: 2.6.17-beyond3 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.12.6
Last Sync: Sat, 02 Dec 2006 10:50:01 +0000
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-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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -ggdb"
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/cursors/xorg-x11/default /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/dev.d /etc/env.d /etc/env.d/java/ /etc/gconf /etc/hotplug /etc/hotplug.d /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/sgml /etc/sound /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -O2 -pipe -ggdb"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="autoconfig distlocks fixpackages parallel-fetch sandbox sfperms splitdebug userpriv usersandbox"
GENTOO_MIRRORS="        ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/    http://pandemonium.tiscali.de/pub/gentoo/       http://distro.ibiblio.org/pub/linux/distributions/gentoo         ftp://ftp.ussg.iu.edu/linux/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1  -Wl,--sort-common"
LINGUAS="fr fr_FR en en_US"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="/var/portage/tree"
PORTDIR_OVERLAY="/var/portage/overlays/crossdev /var/portage/overlays/bugzilla /var/portage/overlays/tgl /var/portage/overlays/demexp /var/portage/overlays/camelis"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac aalib acpi adns alsa apache2 audiofile avahi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 cairo cdparanoia cdr cli cracklib cross crypt cscope cups curl dba dbus dga dlloader dpms dri dvd dvdr dvdread elibc_glibc emboss encode exif expat faad fam fame fastcgi fbcon ffmpeg firefox flac foomaticdb freetype gcj gd gdbm ggz gif gimp gnome gnomedb gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal iconv imagemagick imap imlib imlib2 input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog java jpeg junit kernel_linux ladspa lcms leim libcaca libg++ libnotify linguas_en linguas_en_US linguas_fr linguas_fr_FR lirc lirc_devices_sir logrotate lzo mad mailwrapper matroska mbox memlimit mikmod mjpeg mmx mng mono mozilla mp3 mpeg musepack musicbrainz ncurses network nls nodrm nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl oss pam pcre pdf plotutils png pnp postgres ppds pppd python quicktime readline real reflection ruby scanner sdl session slang slp smime smooth sndfile sox speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg sysfs syslog tcltk tcpd tetex theora threads tiff timidity tmpfs truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vhosts video_cards_dummy video_cards_radeon vim-syntax vorbis webdav wifi win32codecs wmf wxwindows x264 xface xinerama xml xml2 xorg xosd xpm xscreensaver xsl xv xvid zeo zlib"
Unset:  CTARGET, INSTALL_MASK
Comment 2 TGL 2006-12-02 07:06:19 UTC
Created attachment 103210 [details]
config.log

The config.log of the failure.
Comment 3 TGL 2006-12-02 07:21:43 UTC
Created attachment 103213 [details, diff]
drscheme-360-r1-ebuild--fix_LDFLAGS.patch
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-12-02 07:21:58 UTC
*** Bug 156910 has been marked as a duplicate of this bug. ***
Comment 5 Patrick McLean gentoo-dev 2007-01-04 05:28:01 UTC
Fixed in CVS, thanks for the patch.