Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468950 - sys-devel/sparse-9999 - /usr/lib64/llvm/libLLVMSupport.a(Signals.o): In function `PrintStackTrace(void*)': (.text+0xfb): undefined reference to `dladdr'
Summary: sys-devel/sparse-9999 - /usr/lib64/llvm/libLLVMSupport.a(Signals.o): In funct...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-05-07 21:54 UTC by Antonio Quartulli
Modified: 2013-05-08 15:42 UTC (History)
1 user (show)

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


Attachments
fixed ebuild (sparse-9999.ebuild,1.09 KB, text/plain)
2013-05-07 21:55 UTC, Antonio Quartulli
Details
build log (build.log,16.17 KB, text/plain)
2013-05-08 08:21 UTC, Antonio Quartulli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Quartulli 2013-05-07 21:54:35 UTC
Current git version does not compile unless -Wl,--as-needed has been filtered out.
Moreover a proper $PREFIX has to be set to avoid the ebuild to install sparse in a funny "homedir" directory created in the wrong place.

Reproducible: Always
Comment 1 Antonio Quartulli 2013-05-07 21:55:14 UTC
Created attachment 347652 [details]
fixed ebuild
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-07 22:58:39 UTC
Comment on attachment 347652 [details]
fixed ebuild

--- sparse-9999.ebuild  2012-05-24 07:42:34.000000000 +0200
+++ -   2013-05-08 00:58:03.512724497 +0200
@@ -2,9 +2,9 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/sys-devel/sparse/sparse-9999.ebuild,v 1.11 2012/05/24 02:37:51 vapier Exp $

-EAPI="2"
+EAPI="4"

-inherit eutils multilib toolchain-funcs
+inherit eutils multilib toolchain-funcs flag-o-matic
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/sparse/sparse.git"
        inherit git-2
@@ -31,16 +31,15 @@
        gtk? ( virtual/pkgconfig )
        xml? ( virtual/pkgconfig )"

+pkg_setup() {
+       filter-ldflags -Wl,--as-needed
+}
+
 src_prepare() {
-       sed -i \
-               -e '/^PREFIX=/s:=.*:=/usr:' \
-               -e "/^LIBDIR=/s:/lib:/$(get_libdir):" \
-               -e '/^CFLAGS =/{s:=:+=:;s:-O2 -finline-functions::}' \
-               Makefile || die
        export MAKEOPTS+=" V=1 CC=$(tc-getCC) HAVE_GTK2=$(usex gtk) HAVE_LIBXML=$(usex xml)"
 }

 src_install() {
-       emake DESTDIR="${D}" install || die
+       emake PREFIX=/usr DESTDIR=${D} V=1 install
        dodoc FAQ README
 }


Removing --as-needed is not the fix.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-07 22:59:37 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info' output in a comment.
Comment 4 Antonio Quartulli 2013-05-08 08:20:23 UTC
Portage 2.1.11.62 (default/linux/amd64/13.0, gcc-4.8.0, glibc-2.15-r3, 3.9.0+ x86_64)
=================================================================
System uname: Linux-3.9.0+-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     8142916 total,   5834752 free
KiB Swap:    8388604 total,   8160904 free
Timestamp of tree: Wed, 08 May 2013 07:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.7.2-r1, 4.8.0
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo java-overlay bitcoin s3d ordexlandia
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA skype-eula Intel-SDP dlj-1.1 skype-4.0.0.7-copyright PUEL Oracle-BCLA-JavaSE AdobeFlash-11.x spin-educational"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ http://de-mirror.org/distro/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java-overlay /var/lib/layman/bitcoin /var/lib/layman/s3d /usr/local/portage"
SYNC="rsync://rsync2.at.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi aio alsa amd64 amr ao apng avahi bash-completion berkdb bluetooth bzip2 cairo cdda cdparanoia cli cracklib crypt cscope cups cxx dbus dga djvu dri exif faac fbcon ffmpeg flac fortran gallium gdbm gif gimp git gles gnutls gpg gpm graphviz gsm hwdb iconv icu ieee1394 ipv6 java jpeg jpeg2k kmod lame lcms libcaca libkms lzma lzo mad mercurial mikmod mmx mng mod modules mp3 mp4 mpi mudflap multilib musepack ncurses nls nptl offensive ogg opengl openmp openrc pcre pdf perl png python readline samba sasl scanner schroedinger session smp socks5 srtp sse sse2 sse3 sse4 sse41 sse42 sse4_1 ssl ssse2 ssse3 subversion svg tcpd theora threads tiff truetype umfpack unicode v4l v4l2 vaapi vim-syntax vorbis wavpack wifi wma wmf x264 xinerama xmp xpm xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 Antonio Quartulli 2013-05-08 08:21:51 UTC
Created attachment 347714 [details]
build log
Comment 6 Antonio Quartulli 2013-05-08 08:22:19 UTC
Attached. However I guess that the PREFIX variable has to be set anyway to avoid the installer to fail.
Comment 7 SpanKY gentoo-dev 2013-05-08 15:42:16 UTC
if you're using live ebuilds, then you should expect random breakage.  you should also know that you should be talking to *upstream* about breakage in their source tree.

the latest sparse version (0.4.3) builds fine.