Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594754 - dev-libs/boehm-gc-7.4.2 when cross-compiling: /usr/lib/libdl.so: file not recognized: File format not recognized
Summary: dev-libs/boehm-gc-7.4.2 when cross-compiling: /usr/lib/libdl.so: file not rec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-22 09:16 UTC by Xavier Miller (RETIRED)
Modified: 2018-01-26 22:34 UTC (History)
0 users

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


Attachments
build.log (build.log,40.93 KB, text/plain)
2016-09-22 09:16 UTC, Xavier Miller (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2016-09-22 09:16:29 UTC
Created attachment 447306 [details]
build.log

# armv6j-hardfloat-linux-gnueabi-emerge -1av boehm-gc

[...]

libtool: warning: relinking 'libgccpp.la'
libtool: install: (cd /var/tmp/portage/dev-libs/boehm-gc-7.4.2/work/gc-7.4.2; /bin/sh "/var/tmp/portage/dev-libs/boehm-gc-7.4.2/work/gc-7.4.2/libtool"  --tag CXX --mode=relink armv6j-hardfloat-linux-gnueabi-g++ -fexceptions -O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer -version-info 1:3:0 -no-undefined -Wl,-O1 -Wl,--as-needed -o libgccpp.la -rpath /usr/lib gc_cpp.lo ./libgc.la -inst-prefix-dir /var/tmp/portage/dev-libs/boehm-gc-7.4.2/image/)
libtool: relink: armv6j-hardfloat-linux-gnueabi-g++  -fPIC -DPIC -shared -nostdlib /usr/armv6j-hardfloat-linux-gnueabi/usr/lib/crti.o /usr/lib/gcc/armv6j-hardfloat-linux-gnueabi/5.4.0/crtbeginS.o  .libs/gc_cpp.o   -L/var/tmp/portage/dev-libs/boehm-gc-7.4.2/image//usr/lib -L/usr/lib -lgc -lpthread -ldl -L/usr/lib/gcc/armv6j-hardfloat-linux-gnueabi/5.4.0 -L/usr/lib/gcc/armv6j-hardfloat-linux-gnueabi/5.4.0/../../../../armv6j-hardfloat-linux-gnueabi/lib -L/usr/armv6j-hardfloat-linux-gnueabi/lib -L/usr/armv6j-hardfloat-linux-gnueabi/usr/lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/armv6j-hardfloat-linux-gnueabi/5.4.0/crtendS.o /usr/armv6j-hardfloat-linux-gnueabi/usr/lib/crtn.o  -O2 -march=armv6j -mfpu=vfp -mfloat-abi=hard -Wl,-O1 -Wl,--as-needed   -Wl,-soname -Wl,libgccpp.so.1 -o .libs/libgccpp.so.1.0.3
/usr/libexec/gcc/armv6j-hardfloat-linux-gnueabi/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
/usr/lib/libdl.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'libgccpp.la' with the above command before installing it
make[2]: *** [Makefile:1208: install-libLTLIBRARIES] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/boehm-gc-7.4.2/work/gc-7.4.2'
make[1]: *** [Makefile:2286: install-am] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-libs/boehm-gc-7.4.2/work/gc-7.4.2'
make: *** [Makefile:1716: install-recursive] Error 1
 * ERROR: dev-libs/boehm-gc-7.4.2::gentoo failed (install phase):
 *   emake failed
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2016-09-22 09:17:00 UTC
# armv6j-hardfloat-linux-gnueabi-emerge --info boehm-gc
Portage 2.3.1 (python 2.7.12-final-0, default/linux/arm/13.0/armv6j, gcc-5.4.0, glibc-2.23-r2, 4.7.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.7.4-gentoo-x86_64-Intel-R-_Celeron-R-_2957U_@_1.40GHz-with-gentoo-2.3
KiB Mem:     3967644 total,    998716 free
KiB Swap:    2097148 total,   2097124 free
Timestamp of repository gentoo: Tue, 20 Sep 2016 08:30:01 +0000
sh bash 4.3_p46
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 x86_64-gentoo-linux-gnu [disabled]
app-shells/bash:          4.3_p46::gentoo
dev-lang/python:          3.4.5::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage/overlay
    masters: gentoo proaudio gentoo-kodi-overlay
    priority: 0

gentoo-kodi-overlay
    location: /usr/local/portage/gentoo-kodi-overlay
    masters: gentoo
    priority: 1

proaudio
    location: /var/lib/layman/proaudio
    masters: gentoo
    priority: 50

xmw
    location: /var/lib/layman/xmw
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="@FREE as-is freedist"
CBUILD="x86_64-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer"
CHOST="armv6j-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -fomit-frame-pointer"
DISTDIR="/data/raspi_root/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg"
FCFLAGS="-O2 -pipe -march=armv6j"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv6j"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -l2"
PKGDIR="/data/raspi_root/var/portage/packages"
PORTAGE_CONFIGROOT="/usr/armv6j-hardfloat-linux-gnueabi/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="arm bzip2 cli cracklib crypt cxx dri iconv modules ncurses nls nptl openmp pcre readline seccomp session sqlite ssl tcpd unicode xattr zlib" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Larry the Git Cow gentoo-dev 2018-01-26 22:34:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f5d710c9c3091cee46005ec0a323095b8e0d0c8

commit 4f5d710c9c3091cee46005ec0a323095b8e0d0c8
Author:     Mike Frysinger <vapier@gentoo.org>
AuthorDate: 2018-01-26 22:32:54 +0000
Commit:     Mike Frysinger <vapier@gentoo.org>
CommitDate: 2018-01-26 22:34:31 +0000

    dev-libs/boehm-gc: add elibtoolize for cross-compiling relink hack #594754
    
    Closes: https://bugs.gentoo.org/594754

 dev-libs/boehm-gc/boehm-gc-7.4.0.ebuild | 6 +++++-
 dev-libs/boehm-gc/boehm-gc-7.4.2.ebuild | 6 +++++-
 dev-libs/boehm-gc/boehm-gc-7.6.0.ebuild | 7 ++++++-
 dev-libs/boehm-gc/boehm-gc-7.6.2.ebuild | 7 ++++++-
 dev-libs/boehm-gc/boehm-gc-7.6.4.ebuild | 7 ++++++-
 5 files changed, 28 insertions(+), 5 deletions(-)