Gentoo Archives: gentoo-mips

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-mips@l.g.o
Subject: Re: [gentoo-mips] multilib problems on mips64 profiles
Date: Sat, 13 Sep 2014 13:52:15
Message-Id: 54144CA7.80500@gentoo.org
In Reply to: [gentoo-mips] multilib problems on mips64 profiles by Markos Chandras
1 On 09/13/14 05:47, Markos Chandras wrote:
2 > -----BEGIN PGP SIGNED MESSAGE-----
3 > Hash: SHA512
4 >
5 > Hi,
6 >
7 > Here is some weirdness with eg mips64/n32 multilib profile when trying
8 > a world update
9 >
10 > [ebuild U ] sys-devel/libtool-2.4.2-r1:2 [2.4.2:2]
11 > USE="-static-libs {-test} -vanilla" ABI_MIPS="(n32%*) o32%* -n64%" 0 kB
12 >
13 > As you can see n32 and o32 are enabled but n64 is not. Obviously this
14 > is not full mips64 multilib. This is probably due the portage profile
15 > stacking/inheritance problems on mips64, where the mips64/multilib
16 > profiles inherit the default o32 one. Michal (multilib CC'd) can
17 > provide more information on what exactly goes wrong since he
18 > understands the problem better than me. Michal also said that on
19 > amd64, the multilib profiles defaults to 64-bit only. I believe this
20 > contradicts with what someone expects from MIPS64 where all three ABIs
21 > need to be present *by default* unless you override the ABI_MIPS
22 > variable in make.conf. Correct?
23 >
24 > - --
25 > Regards,
26 > Markos Chandras
27 > -----BEGIN PGP SIGNATURE-----
28 > Version: GnuPG v2
29 >
30 > iQF8BAEBCgBmBQJUFBLFXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
31 > ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGRDlGMzA4MUI2MzBDODQ4RDBGOEYxMjQx
32 > RjEwRUQ0QjgxREVCRjE5AAoJEB8Q7UuB3r8Z6JQH/AkuGs0pE5mshn/pGiz3cb/p
33 > 43Ksh/ZBd7z9gB54o/QeK/GnqxgkG5y4koX0rs+35SAjYCkYS3Nc7Aa0DSA0o/Mz
34 > z6FGkOxBRBwb6jmJ8ujKYZXC6rMgHY1kA9xx2qLK+WplIsLE5tx/Tsixqa4/6XuK
35 > 28BN41A1W4kaeB9Rtlv9Mt9OFEfTPiUqSkzyHpm1fKT60O6kq0Jba3Mh15w7IKJn
36 > HUWCy92doVpcpip+wn//reoV+logtRL8616juHGNVRMXN4ZuLHl99IJXzjh/4Fu2
37 > 9KOb+H7NgpSQIUklg8l8XV577dZAYOaZUp+sqgu0ymbZmmO1mOButiOceXxAh/Q=
38 > =8P/6
39 > -----END PGP SIGNATURE-----
40 >
41
42 Yes I know the issue but have not gotten around to fixing it and won't
43 anytime soon since I' struggling with real life (like getting the
44 electric company to fix my power!)
45
46 I don't agree that we want all three abi's by default on all binaries.
47 What we want is the three abis for the toolchain, and the option to turn
48 on/off the other abis besides the default abi which should be on.
49 Ideally this should be
50
51 ABI_MIPS="(n32%*) -o32%* -n64%"
52
53 Needs to be done is
54
55 1) add -abi_mips_o32 to use.force in
56 /usr/portage/profiles/arch/mips/mips64/n32 and similarly for the other
57 profiles. This allows one to turn off o32, otherwise its forced on.
58
59 2) add USE="${USE} -abi_mips_o32" to make.default. This turns it off by
60 default, but the user can turn it back on.
61
62 You should do this for all the mips64/multilibs and mips64el's.
63
64 --
65 Anthony G. Basile, Ph.D.
66 Gentoo Linux Developer [Hardened]
67 E-Mail : blueness@g.o
68 GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA
69 GnuPG ID : F52D4BBA