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

Bug 358147

Summary: multilib.eclass:multilib_toolchain_setup: doesnt work properly with more than 2 ABIs (sys-apps/sandbox fails with n32/n64/o32 mips multilib)
Product: Gentoo Linux Reporter: Matt Turner <mattst88>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: mips
Priority: Normal    
Version: unspecified   
Hardware: MIPS   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
config-n64.log.gz
config-o32.log.gz
multilib profile used
emerge --info -v
multilib_toolchain_setup.patch

Description Matt Turner gentoo-dev 2011-03-09 22:51:43 UTC
Created attachment 265375 [details]
build.log

sandbox on multilib mips fails to compile.

It compiles find for the first ABI, but for the second it appears to just append a new -mabi= flag to the end of the previous ABI's config. So, o32 fails to compile because it tries with gcc -mabi=64 -mabi=32. See attached logs.
Comment 1 Matt Turner gentoo-dev 2011-03-09 22:52:27 UTC
Created attachment 265377 [details]
config-n64.log.gz
Comment 2 Matt Turner gentoo-dev 2011-03-09 22:52:47 UTC
Created attachment 265379 [details]
config-o32.log.gz
Comment 3 Matt Turner gentoo-dev 2011-03-09 22:55:33 UTC
Created attachment 265383 [details]
multilib profile used

This is the multilib profile I'm using when I get the sandbox error.
Comment 4 SpanKY gentoo-dev 2011-03-09 23:32:19 UTC
and your `emerge --info` ?
Comment 5 Matt Turner gentoo-dev 2011-03-09 23:40:42 UTC
Created attachment 265385 [details]
emerge --info -v
Comment 6 SpanKY gentoo-dev 2011-03-10 00:15:58 UTC
multilib_toolchain_setup seems to really only work two abis, and the order has to be non-default abi followed by default abi.  at any rate, i dont see this as a bug in sandbox at all.
Comment 7 SpanKY gentoo-dev 2011-03-10 00:26:12 UTC
Created attachment 265389 [details, diff]
multilib_toolchain_setup.patch

try this patch ... seems to do what i had intended originally
Comment 8 Matt Turner gentoo-dev 2011-03-10 01:28:13 UTC
(In reply to comment #7)
> Created attachment 265389 [details, diff]
> multilib_toolchain_setup.patch
> 
> try this patch ... seems to do what i had intended originally

This works for me. :)