1 |
On 10/31/17 9:36 AM, Jeremi Piotrowski wrote: |
2 |
> On Sat, Oct 28, 2017 at 01:17:57PM -0400, Anthony G. Basile wrote: |
3 |
>> I know its not what you are trying to do, but do you know if the |
4 |
>> stage3's in experitmental/arm/musl have the same problem? |
5 |
>> |
6 |
> I do not have the same issue with the stage3's in experimental/arm/musl - |
7 |
> those allow static linking without issues. But I debugged further and |
8 |
> found the issue: the ebuild uses the wrong strip command (host one) when |
9 |
> stripping the built cross-musl. This makes it bug #552616 and I should |
10 |
> have found it sooner because there are lots of messages like the following |
11 |
> in the build-log: |
12 |
> |
13 |
> x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/cross-armv7a-hardfloat-linux-musleabi/musl-1.1.16/image/usr/armv7a-hardfloat-linux-musleabi/usr/lib/libc.a(cabs.o)' |
14 |
> |
15 |
> For now I solved the issue with RESTRICT="strip" but manual stripping |
16 |
> similar to glibc probably should be added at some point. |
17 |
> |
18 |
> There's also another issue with the ebuild and cross-compiling: the |
19 |
> getconf/getent/iconv tools get built before a libc is available and so |
20 |
> fail to compile. They shouldn't even be built when cross-compiling, |
21 |
> because there's a check in src_install to prevent them from being |
22 |
> installed. Below is my patch to the ebuild to make things work. Would be |
23 |
> nice to atleast get the src_compile() part commited. |
24 |
> |
25 |
I'm not going to add RESTRICT="strip". Do that locally. The rest is |
26 |
okay. I'll add it to 1.1.18. |
27 |
|
28 |
-- |
29 |
Anthony G. Basile, Ph.D. |
30 |
Gentoo Linux Developer [Hardened] |
31 |
E-Mail : basile@××××××××××.net |
32 |
GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA |
33 |
GnuPG ID : F52D4BBA |