Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510892 - >=dev-libs/check-0.9.12 ABI_X86=32 USE=subunit - ld: cannot find -lsubunit
Summary: >=dev-libs/check-0.9.12 ABI_X86=32 USE=subunit - ld: cannot find -lsubunit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gx86-multilib
  Show dependency tree
 
Reported: 2014-05-20 22:09 UTC by Bertrand Jacquin
Modified: 2016-09-28 15:21 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,39.50 KB, text/plain)
2014-05-20 22:12 UTC, Bertrand Jacquin
Details
emerge --info (info.log,18.00 KB, text/plain)
2014-05-20 22:12 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2014-05-20 22:09:45 UTC
Nice recently, dev-libs/check is multible ABI aware, and this work nice if you don't enable subunit USE flag.

When you enable it, you then get the following error. Here native ABI is x86_64 and ABI_X86 is define to "32 64"

# USE=subunit ABI_X86=32 emerge -v =dev-libs/check-0.9.12

[ebuild   R    ] dev-libs/check-0.9.12  USE="subunit* -static-libs" ABI_X86="32 (64) (-x32)" 0 kB
(..)
libtool: link:  x86_64-pc-linux-gnu-gcc -m32 -shared  -fPIC -DPIC  .libs/check.o .libs/check_error.o .libs/check_list.o .libs/check_log.o .libs/check_msg.o
.libs/check_pack.o .libs/check_print.o .libs/check_run.o .libs/check_str.o  -Wl,--whole-archive ../lib/.libs/libcompat.a -Wl,--no-whole-archive  -Wl,--as-needed -lsubunit -lrt -lm  -m32 -pthread -march=native -O2 -Wl,-O1   -pthread -Wl,-soname -Wl,libcheck.so.0 -Wl,-version-script -Wl,.libs/libcheck.ver -o .libs/libcheck.so.0.0.0
libtool: link: (cd .libs/libcheckinternal.lax/libcompat.a && ar x "/var/tmp/portage/dev-libs/check-0.9.12/work/check-0.9.12-x86/src/../lib/.libs/libcompat.a")
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../libsubunit.so when searching for -lsubunit
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libsubunit.so when searching for -lsubunit
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lsubunit
collect2: error: ld returned 1 exit status
libtool: link: ar cru .libs/libcheckinternal.a .libs/check.o .libs/check_error.o .libs/check_list.o .libs/check_log.o .libs/check_msg.o .libs/check_pack.o .libs/check_print.o .libs/check_run.o .libs/check_str.o   .libs/libcheckinternal.lax/libcompat.a/libcompat.o
Makefile:476: recipe for target 'libcheck.la' failed
make[2]: *** [libcheck.la] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: link: ranlib .libs/libcheckinternal.a
libtool: link: rm -fr .libs/libcheckinternal.lax
libtool: link: ( cd ".libs" && rm -f "libcheckinternal.la" && ln -s "../libcheckinternal.la" "libcheckinternal.la" )
make[2]: Leaving directory '/var/tmp/portage/dev-libs/check-0.9.12/work/check-0.9.12-x86/src'
Makefile:555: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/check-0.9.12/work/check-0.9.12-x86'
Makefile:400: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: dev-libs/check-0.9.12::gentoo failed (compile phase):
 *   emake failed
 *

In fact, when you enable subunit USE flag, then dev-python/subunit is needed as a DEPEND, but dev-python/subunit is not multiple ABI aware.

Full log attached, and emerge --info

Reproducible: Always
Comment 1 Bertrand Jacquin 2014-05-20 22:12:10 UTC
Created attachment 377314 [details]
build.log
Comment 2 Bertrand Jacquin 2014-05-20 22:12:23 UTC
Created attachment 377316 [details]
emerge --info
Comment 3 Nathan Phillip Brink (binki) (RETIRED) gentoo-dev 2014-06-12 04:57:21 UTC
Still exists in dev-libs/check-0.9.13.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-12 19:21:22 UTC
+*check-0.9.13-r1 (12 Jun 2014)
+
+  12 Jun 2014; Michał Górny <mgorny@gentoo.org> +check-0.9.13-r1.ebuild:
+  Depend on multilib version of dev-python/subunit, bug #510892.

Though I had to drop ~amd64-fbsd. Suggest turning this into KEYWORDREQ.
Comment 5 Bertrand Jacquin 2014-06-13 21:24:02 UTC
(In reply to Michał Górny from comment #4)
> +*check-0.9.13-r1 (12 Jun 2014)
> +
> +  12 Jun 2014; Michał Górny <mgorny@gentoo.org> +check-0.9.13-r1.ebuild:
> +  Depend on multilib version of dev-python/subunit, bug #510892.
> 
> Though I had to drop ~amd64-fbsd. Suggest turning this into KEYWORDREQ.

ACK, work fine here
Comment 6 Pacho Ramos gentoo-dev 2016-09-28 15:21:54 UTC
thanks for feedback