Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153138 - dev-libs/nettle-1.13-r1 fails with LDFLAGS="-Wl,--as-needed"
Summary: dev-libs/nettle-1.13-r1 fails with LDFLAGS="-Wl,--as-needed"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-10-28 06:27 UTC by Michael Cramer
Modified: 2006-10-31 11:57 UTC (History)
0 users

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


Attachments
first command (log1,118.70 KB, text/plain)
2006-10-28 16:24 UTC, Michael Cramer
Details
second command (log2,116.61 KB, text/plain)
2006-10-28 16:25 UTC, Michael Cramer
Details
nettle-1.13-make-as-needed.patch (nettle-1.13-make-as-needed.patch,471 bytes, patch)
2006-10-31 11:22 UTC, Alon Bar-Lev (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cramer 2006-10-28 06:27:47 UTC
with LDFLAGS="-Wl,-O1 -Wl,--sort-common" it compiles fine


i686-pc-linux-gnu-gcc -I.. -I..  -DHAVE_CONFIG_H -O2 -march=pentium3 -pipe -fomit-frame-pointer  -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fpic -MT rsa-encrypt.o -MD -MP -MF rsa-encrypt.o.d -c rsa-encrypt.c
i686-pc-linux-gnu-gcc -I.. -I..  -DHAVE_CONFIG_H -O2 -march=pentium3 -pipe -fomit-frame-pointer  -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -fpic -MT rsa-decrypt.o -MD -MP -MF rsa-decrypt.o.d -c rsa-decrypt.c
i686-pc-linux-gnu-gcc -O2 -march=pentium3 -pipe -fomit-frame-pointer  -Wall -W   -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast -Wnested-externs -L.. -Wl,-O1 -Wl,--sort-common -Wl,--as-needed nettle-benchmark.o nettle-openssl.o io.o \
        -lnettle -lgmp  -lcrypto -o nettle-benchmark
rsa-encrypt.c: In function 'write_uint32':
rsa-encrypt.c:66: warning: pointer targets in passing argument 3 of 'write_string' differ in signedness
rsa-encrypt.c: In function 'write_bignum':
rsa-encrypt.c:88: warning: pointer targets in passing argument 3 of 'write_string' differ in signedness
rsa-encrypt.c: In function 'process_file':
rsa-encrypt.c:125: warning: pointer targets in passing argument 3 of 'write_string' differ in signedness
rsa-encrypt.c:146: warning: pointer targets in passing argument 3 of 'write_string' differ in signedness
rsa-decrypt.c: In function 'process_file':
rsa-decrypt.c:151: warning: pointer targets in passing argument 3 of 'write_string' differ in signedness
rsa-decrypt.c:174: warning: pointer targets in passing argument 3 of 'write_string' differ in signedness
../libnettle.so: undefined reference to `__gmpz_clear'
../libnettle.so: undefined reference to `__gmpz_add_ui'
../libnettle.so: undefined reference to `__gmpz_init_set'
../libnettle.so: undefined reference to `__gmpz_probab_prime_p'
../libnettle.so: undefined reference to `__gmpz_tstbit'
../libnettle.so: undefined reference to `__gmpz_divexact'
../libnettle.so: undefined reference to `__gmpz_mul_2exp'
../libnettle.so: undefined reference to `__gmpz_set'
../libnettle.so: undefined reference to `__gmpz_cmp'
../libnettle.so: undefined reference to `__gmpz_gcd'
../libnettle.so: undefined reference to `__gmpz_mul'
../libnettle.so: undefined reference to `__gmpz_set_ui'
../libnettle.so: undefined reference to `__gmpz_sub_ui'
../libnettle.so: undefined reference to `__gmpz_powm'
../libnettle.so: undefined reference to `__gmpz_com'
../libnettle.so: undefined reference to `__gmpz_cmp_ui'
../libnettle.so: undefined reference to `__gmpz_init'
../libnettle.so: undefined reference to `__gmpz_fdiv_r'
../libnettle.so: undefined reference to `__gmpz_ior'
../libnettle.so: undefined reference to `__gmpz_fdiv_r_2exp'
../libnettle.so: undefined reference to `__gmpz_add'
../libnettle.so: undefined reference to `__gmpz_setbit'
../libnettle.so: undefined reference to `__gmpz_sizeinbase'
../libnettle.so: undefined reference to `__gmpz_fdiv_ui'
../libnettle.so: undefined reference to `__gmpz_invert'
../libnettle.so: undefined reference to `__gmpz_init_set_ui'
../libnettle.so: undefined reference to `__gmpz_sub'
collect2: ld returned 1 exit status
make[1]: *** [nettle-benchmark] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/dev-libs/nettle-1.13-r1/work/nettle-1.13/examples'
make: *** [all] Error 2

!!! ERROR: dev-libs/nettle-1.13-r1 failed.
Call stack:
  ebuild.sh, line 1568:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  nettle-1.13-r1.ebuild, line 37:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-28 07:36:58 UTC
Works for me:
USE="gmp ssl" CFLAGS="-march=pentium3" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" ebuild nettle-1.13-r1.ebuild clean install

Also with USE="-gmp -ssl"

Please paste emerge --info.
Comment 2 Michael Cramer 2006-10-28 10:19:30 UTC
Portage 2.1.2_pre3-r9 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-2006.0 i686)
=================================================================
System uname: 2.6.18-gentoo-2006.0 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.5
Last Sync: Sat, 28 Oct 2006 04:00:03 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.18
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer"
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/lib/mozilla/defaults/pref /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=pentium3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/local/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X Xaw3d a52 aac aalib accessibility acl acpi addbookmarks aiglx akode alias alsa amr ao aoss apache2 arts artswrappersuid async audiofile authfile automount autoreplace avahi bcmath bcp beagle berkdb big-tables bitmap-fonts bjam bluetooth bookmarks bzip2 cairo calendar caps cdb cdr cgi chm cjk clamav cli cluster connectionstatus contactnotes cracklib crypt css ctype cups curl curlwrappers cvs dbus dcraw depth32 dga directfb diskio djbfft djvu dlloader dmi dmx doc dri dts dv dvd dvdr dvdread ecc eds elf elibc_glibc emacs emboss encode esd evo examples exif expat extraengine extrafilters faad fam fame fbcon ffmpeg fftw filepro firebird firefox flac flatfile fontconfig fortran fpx ft ftp gadu galago gcj gd gdbm ggi gif glep glibc-omitfp glitz gmp gnokii gnome gnutls gphoto2 gpm graphviz groupwise gs gstreamer gtk gtkhtml guile hal hash highlight history howl-compat hpn ical iconv idea idled idn ieee1394 ifsession imagemagick imap imlib immqt inifile input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 irc irda isdnlog ithreads jack jack-tmpfs java javascript jbig jce joystick jpeg jpeg2k kcal kde kdeenablefinal kdehiddenvisibility kdrive kerberos kernel_linux keyring kig-scripting latex lcms ldap leim libcaca libg++ libnotify linguas_de linguas_en lirc lirc_devices_serial lm_sensors lua lzo lzw mad max-idx-128 mbrola memlimit mfd-rewrites mhash mikmod mime ming mjpeg mmap mmx mng mono motif mozcalendar mozdevelop mp3 mp4 mpeg mpm-prefork mssql mudflap musepack musicbrainz mysql mysqli nas ncurses neXt netjack netmeeting netpbm network new-login nfs nis nls nntp no-old-linux nowlistening nptl nptlonly nsplugin numeric oav objc objc++ objc-gc ocaml odbc ogg ole openct openexr opengl opensslcrypt oss overlays pam pam_chroot pam_console pam_timestamp pcntl pcre pcsc-lite pda pdf pdo pear perl php physfs pic pike png portaudio posix postgres povray ppds pppd pwdb pyste python qt3 qt4 quicktime quotas rdesktop readline reflection rewrite rle rpm rrdcgi ruby samba sametime sample sasl scanner script sdl seamonkey sensord serial session shaper sharedmem simplexml sitemisc skey slp smartcard sms smux sndfile snmp soap sockets socks5 softquota speex spell spl sql sqlite sqlite3 srp sse ssl statistics subversion svg svga swat symlink sysfs syslog sysvipc tcl tcltk tcpd test tetex texteffect theora threads threadsafe tidy tiff timidity tk tokenizer toolbar tools translator transmitter truetype truetype-fonts type1-fonts ucs2 udev unicode unzip usb userland_GNU utempter vcd video_cards_r128 video_cards_vesa vorbis vorbis-psy vroot wddx webpresence wifi win32codecs winbind winpopup wmf wxwindows x264 xcomposite xinerama xinetd xml xml2 xmldoclet xmlreader xmlrpc xmlwriter xorg xpm xprint xscreensaver xsl xv xvid yaz yv12 zeroconf zip zlib"
Unset:  CTARGET, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-28 15:00:37 UTC
I cannot figure out what is wrong/different.

Can you please try:

$ MAKEOPTS="-j1" emerge --oneshot nettle

And if also fail, let's try exactly the same command, send me the output.

$ MAKEOPTS="-j4" USE="gmp ssl" CFLAGS="-march=pentium3" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" ebuild /usr/portage/dev-libs/nettle-1.13-r1.ebuild clean install

Thanks.
Comment 4 Michael Cramer 2006-10-28 16:24:59 UTC
Created attachment 100671 [details]
first command
Comment 5 Michael Cramer 2006-10-28 16:25:27 UTC
Created attachment 100672 [details]
second command
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-29 06:29:00 UTC
Any reason why you use none stable glibc, binutils, autoconf, automake?
Please try to use stable glibc, if it works I will reassign to glib maintainer.
Comment 7 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-31 10:56:01 UTC
Please reopen, if you have some result with stable components.
Thanks.
Comment 8 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-31 11:22:12 UTC
I cannot reproduce, but can you please check the following patch?
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-31 11:22:41 UTC
Created attachment 100910 [details, diff]
nettle-1.13-make-as-needed.patch
Comment 10 Alon Bar-Lev (RETIRED) gentoo-dev 2006-10-31 11:57:13 UTC
OK.
I added this patch to 1.14, please retry and see if problem exists.