Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594032 - sys-libs/libcxxrt[libunwind]: build fails on amd64 multilib
Summary: sys-libs/libcxxrt[libunwind]: build fails on amd64 multilib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-17 05:32 UTC by Yuta SATOH
Modified: 2016-09-26 10:33 UTC (History)
2 users (show)

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


Attachments
sample patch for libcxxrt-{0.0_p20150423-r1,9999}.ebuild (libcxxrt-multilib.patch,1.04 KB, patch)
2016-09-17 05:35 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2016-09-17 05:32:06 UTC
The following message is displayed and fails to compile.

$ ABI_X86="32 64" USE="libunwind" emerge sys-libs/libcxxrt
<snip>

>>> Compiling source in /var/tmp/portage/sys-libs/libcxxrt-0.0_p20150423-r1/work/libcxxrt-0.0_p20150423 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_compile

<snip>

x86_64-pc-linux-gnu-g++ -m32 -fPIC -nodefaultlibs -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,defs -shared -Wl,-soname,libcxxrt.so.1 -o libcxxrt.so.1 dynamic_cast.So exception.So guard.So stdexcept.So typeinfo.So memory.So auxhelper.So libelftc_dem_gnu3.So -ldl -lunwind -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../libunwind.so when searching for -lunwind
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../libunwind.a when searching for -lunwind
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libunwind.so when searching for -lunwind
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libunwind.a when searching for -lunwind
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lunwind
collect2: error: ld returned 1 exit status
Makefile:20: recipe for target 'libcxxrt.so.1' failed
make: *** [libcxxrt.so.1] Error 1



sys-libs/libunwind does not support ABI_X86.
sys-libs/llvm-libunwind support ABI_X86, version 3.9.0 or later.

I think it is better to change RDEPEND.


$ ABI_X86="32 64" ACCEPT_KEYWORDS=~amd64 emerge -pv sys-libs/libunwind
[ebuild  N     ] sys-libs/libunwind-1.2_rc1:7::gentoo  USE="static-libs -debug -debug-frame -doc -libatomic -lzma" 1145 KiB

$ ABI_X86="32 64" ACCEPT_KEYWORDS=~amd64 emerge -pv --nodeps sys-libs/llvm-libunwind
[ebuild  N    #] sys-libs/llvm-libunwind-3.9.0::gentoo  USE="static-libs -debug" ABI_X86="32 (64) (-x32)" 61 KiB
Comment 1 Yuta SATOH 2016-09-17 05:35:33 UTC
Created attachment 446046 [details, diff]
sample patch for libcxxrt-{0.0_p20150423-r1,9999}.ebuild
Comment 2 Alexis Ballier gentoo-dev 2016-09-26 10:33:41 UTC
merged, thx