Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190325 - dev-libs/icu fails with -Wl,--as-needed"
Summary: dev-libs/icu fails with -Wl,--as-needed"
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-26 18:42 UTC by Ingmar Vanhassel (RETIRED)
Modified: 2007-09-06 16:40 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info,3.11 KB, text/plain)
2007-08-26 18:43 UTC, Ingmar Vanhassel (RETIRED)
Details
/var/log/portage/dev-libs:icu-3.6-r1:20070906-162148.log (dev-libs:icu-3.6-r1:20070906-162148.log,242.51 KB, text/plain)
2007-09-06 16:40 UTC, Arfrever Frehtes Taifersar Arahesis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ingmar Vanhassel (RETIRED) gentoo-dev 2007-08-26 18:42:48 UTC
Verified with both dev-libs/icu-3.6 and dev-libs/icu-3.4.1. After removing --as-needed from my LDFLAGS it compiles fine.

Attaching emerge --info ...
Comment 1 Ingmar Vanhassel (RETIRED) gentoo-dev 2007-08-26 18:43:30 UTC
Created attachment 129256 [details]
emerge --info
Comment 2 Ingmar Vanhassel (RETIRED) gentoo-dev 2007-08-26 18:58:25 UTC
bah
Comment 3 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-09-06 13:00:57 UTC
icu-3.6-r1 failed with --as-needed to me as well. Ingmar, how could you make it work?
Comment 4 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-09-06 13:08:37 UTC
After sucessfully installing icu, reemerge it with --as-needed worked well. I guess it got missing symbols from /usr/lib. Bad bad bad.

Just filter out --as-needed, please.
Comment 5 Ingmar Vanhassel (RETIRED) gentoo-dev 2007-09-06 13:18:18 UTC
(In reply to comment #4)
> After sucessfully installing icu, reemerge it with --as-needed worked well. I
> guess it got missing symbols from /usr/lib. Bad bad bad.
> 
> Just filter out --as-needed, please.

I initially closed the bug because I forgot to post (and save) error messages, and after re-emerging, to post them after all, I couldn't reproduce this anymore.

I agree that filtering is probably a good idea.
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-09-06 15:33:20 UTC
In my case it builds with --as-needed without any problems. I tried with ICU unmerged.
Comment 7 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-09-06 15:39:50 UTC
(In reply to comment #6)
> In my case it builds with --as-needed without any problems. I tried with ICU
> unmerged.
> 

What gcc version were you using?

Mine was gcc 4.1.1 (binutils 2.16.1-r3, libtool 1.5.22). I built with ccache enabled. I'll try later without ccache for sure.
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-09-06 16:34:25 UTC
(In reply to comment #7)
> What gcc version were you using?

$ CFLAGS="-march=athlon64 -pipe -O2" CXXFLAGS="-march=athlon64 -pipe -O2" emerge --info
Portage 7725-svn (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-suspend2-r1-AFTA i686)
=================================================================
System uname: 2.6.22-suspend2-r1-AFTA i686 AMD Sempron(tm) Processor 2800+
Timestamp of tree: Thu, 06 Sep 2007 14:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2"
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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildsyspkg ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://gentoo.ynet.sk/pub http://mirror.gentoo.no http://mirrors.evolva.ro/gentoo http://ftp.du.se/pub/os/gentoo http://ftp.linux.ee/pub/gentoo/distfiles ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://ftp.lug.ro/gentoo http://src.gentoo.pl"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed,--hash-style=gnu,--sort-common,-z,relro"
LINGUAS="pl en la lt"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/manifest1_obsolete --prune-empty-dirs"
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/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi alsa apache2 arts audiofile bash-completion berkdb bzip2 cairo caps cddb cdparanoia cdr cracklib crypt cscope ctype cups curl curlwrappers dbus directfb dri dts dvb dvd dvdr dvdread emboss encode exif expat fam fbcon ffmpeg firefox flac foomaticdb ftp gcj gd gdbm ggi gif glut gmp gnutls gpm graphviz gstreamer gtk guile hal hardened iconv idn imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lash lcms ldap libcaca lm_sensors mad matroska matrox memlimit mhash mikmod mime mmap mmx mng motif mp3 mpeg mpi mplayer musepack ncurses netcdf nls nptl nsplugin odbc ogg openal openexr opengl pam pcntl pcre pda pdf perl png portaudio posix ppds profile python qt3 qt4 quicktime rdesktop readline recode ruby sasl scanner sdl session sharedmem shorten simplexml slang slp sndfile soap sockets speex spell sqlite sqlite3 sse sse2 ssl svg svga symlink szip tcl tcpd theora threads tiff tk truetype unicode usb vcd vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xcomposite xine xml xmlrpc xpm xprint xsl xv xvid zlib" ALSA_CARDS="hda-intel virmidi" ALSA_PCM_PLUGINS="adpcm alaw copy dshare dsnoop extplug file hooks ladspa lfloat linear meter mulaw multi null rate route share shm" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="pl en la lt" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

> Mine was gcc 4.1.1 (binutils 2.16.1-r3, libtool 1.5.22). I built with ccache
> enabled. I'll try later without ccache for sure.

--as-needed is linker's option. ccache is only related to compilation, not linking.
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-09-06 16:40:11 UTC
Created attachment 130178 [details]
/var/log/portage/dev-libs:icu-3.6-r1:20070906-162148.log

Log created using `CFLAGS="-march=athlon64 -pipe -O2" CXXFLAGS="-march=athlon64 -pipe -O2" LC_ALL="C" emerge -atv icu`.

Before installation I again uninstalled ICU.