Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336373 - lvm2-2.02.73-r1 fails to build due to --no-export-dynamic
Summary: lvm2-2.02.73-r1 fails to build due to --no-export-dynamic
Status: RESOLVED DUPLICATE of bug 332905
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 17:56 UTC by Jeremy Huddleston Sequoia
Modified: 2021-01-24 21:01 UTC (History)
1 user (show)

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


Attachments
build log (sys-fs:lvm2-2.02.73-r1:20100907-163116.log,174.46 KB, text/plain)
2010-09-07 17:59 UTC, Jeremy Huddleston Sequoia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston Sequoia 2010-09-07 17:56:48 UTC
i686-pc-linux-gnu-gcc -march=i686 -O2 -pipe -march=pentium4 -fomit-frame-pointer -O2 -pipe -march=i686 -O2 -pipe -march=pentium4 -fomit-frame-pointer -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -O2 -march=i686 -O2 -pipe -march=pentium4 -fomit-frame-pointer -O2 -pipe -fPIC -Wall -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wmissing-noreturn -Wformat-security -Wredundant-decls -O2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -L./libdm -L./lib -L./daemons/dmeventd -Wl,-O1 -Wl,--as-needed -Wl,--export-dynamic -L../libdm -L../lib -L../daemons/dmeventd -Wl,--no-export-dynamic -static -L../libdm/ioctl \
              -o dmsetup.static dmsetup.o -ldevmapper  -ludev -lm  -ludev
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--no-export-dynamic'
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[1]: *** [dmsetup.static] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.73-r1/work/LVM2.2.02.73/tools'
make: *** [tools.device-mapper] Error 2



Portage 2.2_rc67 (hardened/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.32-hardened-r3 i686)
=================================================================
System uname: Linux-2.6.32-hardened-r3-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 07 Sep 2010 09:15:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3, 2.20.1-r1
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -march=pentium4 -fomit-frame-pointer -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=i686 -O2 -pipe -march=pentium4 -fomit-frame-pointer -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
FEATURES="assume-digests distlocks fixpackages loadpolicy news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en es ja"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/lib/layman/anarchy /var/lib/layman/hardened-development /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acl alsa amrnb ao apache2 asf audiofile avahi bash-completion berkdb bidi bitmap-fonts bl browserplugin bzip2 cairo cdda cddb cdparanoia cjk clamav clamdtop cli consolekit cracklib crypt cups curl cxx dba dbus deprecated device-mapper dga dri dts dv dvd eds elf emacs enca encode enscript erandom esd exif expat fam fame fat ffmpeg firefox flac flash font-server fontconfig fortran fpx ftp fts3 gd gd-external gdbm gdu gif git glibc-omitfp glut glx gmp gnome gnutls gpm graphviz gs gstreamer gtk gtk2 gtkhtml guild guile gzip hal hardened hardenedphp hdri i8x0 iconv icq idn imap imlib imlib2 iproute2 ipsec ipv6 jack java jbig jp2 jpeg jpeg2k kcal kde lame lcms libcaca libclamav libgda libvisual linuxthreads-tls live lm_sensors logitech-mouse logrotate lzo mad maildir md5sum mdnsresponder-compat mercurial mhash ming mixer mjpeg mmx mmxext mng mod_python modperl modules mouse mp2 mp3 mp4 mpeg mpeg2 mplayer mudflap multislot musepack musicbrainz mysql mysqli ncurses network networking new-login nfs nls nptl nsplugin oav objc ocaml ogg oggvorbis openal opendoc openexr opengl openmp oss pam pam_chroot pcre perl php pic png pnm policykit portaudio postfix povray ppds pppd pvr python pyzor q32 qca qt qt3 qt3support qt4 quicktime quotas radio rar razor readline realmedia reflection regex rtc samba sasl sdk sdl semantic-desktop sensord session sndfile sockets sox spamassassin speex spell spl sql sqlite sqlite3 srt sse sse2 ssl startup-notification subtitles subversion suexec suhosin svg sysfs syslog tcpd teletext tga theora tiff timidity tivo transcode truetype type1 udev unicode urandom usb utf8 vcd vcdimager vfat vidix vim vim-pager vim-with-x virus-scan visualization vorbis webkit win32codecs wma wmf wxwindows x264 x86 xanim xchat xfs xft xine xinetd xml xml2 xmlreader xorg xpm xrandr xscreensaver xulrunner xv xvid xvmc yahoo zip zlib zoran" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 	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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest authn_dbd dbd ident imagemap" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es ja" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeremy Huddleston Sequoia 2010-09-07 17:58:09 UTC
#332905 marked this as "fixed", but it is not fixed.
Comment 2 Jeremy Huddleston Sequoia 2010-09-07 17:59:42 UTC
Created attachment 246378 [details]
build log
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-09-07 18:01:03 UTC
(In reply to comment #1)
> #332905 marked this as "fixed", but it is not fixed.
> 

It is fixed. Switch to stable binutils-2.20.

unique lightdm-0.1.1 # binutils-config -l
 [1] x86_64-pc-linux-gnu-2.20.1 *
unique lightdm-0.1.1 # ld -V
GNU ld (GNU Binutils) 2.20.1.20100303



*** This bug has been marked as a duplicate of bug 332905 ***
Comment 4 Jeremy Huddleston Sequoia 2010-09-07 18:11:55 UTC
THIS is *NOT* a dupe of bug #332905.  This is a regression caused by the fix to that bug!

The problem is with the active binutils.  Updating from 2.18 to 2.20.1 addresses the problem.

Perhaps you should add a check in the ebuild to ensure that the active binutils supports it.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-09-07 18:13:30 UTC
(In reply to comment #4)
> THIS is *NOT* a dupe of bug #332905.  This is a regression caused by the fix > to that bug!

There is no regression, you just need to maintain a sane toolchain, i.e. use stable binutils.

*** This bug has been marked as a duplicate of bug 332905 ***
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-09-07 18:29:55 UTC
>=sys-devel/binutils-2.20.1-r1 added to DEPEND on lvm2-2.02.73-r1.