Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 510248

Summary: dev-libs/mpc and dev-libs/mpfr - add multilib support
Product: Gentoo Linux Reporter: Thibaud CANALE <thican>
Component: [OLD] Core systemAssignee: Multilib team <multilib+disabled>
Severity: normal CC: toolchain
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 454644, 477956    
Attachments: emerge --info

Description Thibaud CANALE 2014-05-13 16:41:41 UTC
Created attachment 376844 [details]
emerge --info


When I am trying to switch between profiles with/without x86_x32 support, gcc will fail to compile because ld can't find dev-libs/mpc and dev-libs/mpfr with the new targeted ABI_X86 support.

For example, trying to compile sys-devel/gcc-4.7.3-r1 after switching from hardened/linux/amd64/x32 to hardened/linux/amd64:
/usr/x86_64-pc-linux-gnux32/bin/ld: cannot find -lmpc
/usr/x86_64-pc-linux-gnux32/bin/ld: cannot find -lmpfr

Therefore, with the lack of handling different ABIs, I can't change of cross compile for another architecture/profile.

Reproducible: Always

Steps to reproduce:
1. Switching between x32 and no-x32 profile;
2. emerge package with deps to dev-libs/mpc and/or dev-libs/mpfr like sys-devel/gcc.

For information, I tried to compile dev-libs/mpc and dev-libs/mpfr on there own, just after switching to no-x32 profile; mpfr succeed but mpc:
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI (including static vs shared).

but mpfr's files were under /usr/lib64/

Thanks for support.

(for my emerge --info, I switched back to hardened/linux/amd64/x32 profile until I found how to resolve the bug)
Comment 1 SpanKY gentoo-dev 2014-11-01 07:24:39 UTC
Commit message: Add multilib support
Comment 2 SpanKY gentoo-dev 2014-11-01 07:35:01 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add multilib support