1 |
So I went and re-installed my ppc64 rap prefix. After
|
2 |
some back and forth I finally reached the end successfully \o/
|
3 |
|
4 |
I have a few things to say but I decided to split this particular
|
5 |
issue because it has wider implication.
|
6 |
|
7 |
The OS is SuSE linux Enterprise Server 11 SP1 and it has kernel
|
8 |
2.6.32. SP3 and SP4 have 3.0 and would also be affected I believe.
|
9 |
2.6.32 is also the kernel of redhat/centos 6 which is still in wide
|
10 |
use.
|
11 |
|
12 |
So rap tried to install glibc 2.25 which was still the highest
|
13 |
version available at the time. Compile went apparently fine until
|
14 |
the install stage. When glibc told me politely but firmly:
|
15 |
FATAL KERNEL TOO OLD
|
16 |
And looking back at the log, it was initially configured to use
|
17 |
2.6.32 as the oldest kernel but the configure script changed that
|
18 |
to 3.10 (If I remember correctly) later during configuration.
|
19 |
|
20 |
After masking 2.25 I did try 2.24, the message was not as clear, there was
|
21 |
a “FATAL” but I don’t think my kernel got insulted that time but it was
|
22 |
the same place. And configure again rewrote the required minimal kernel
|
23 |
version supported.
|
24 |
|
25 |
Masking 2.24 I got down to 2.23 which in the end worked (after some massaging
|
26 |
more about that later).
|
27 |
|
28 |
So message #1 if you have an older kernel (<3.10) the latest glibc
|
29 |
available to you is 2.23. That probably should be in the wiki.
|
30 |
|
31 |
The compiling actually didn’t go without problems. Courtesy of binutils-2.29.1.
|
32 |
There was two issues:
|
33 |
* http://lists.busybox.net/pipermail/buildroot/2017-August/199812.html
|
34 |
glibc 2.23 and 2.24 were affected by this issue, I think 2.25 was OK.
|
35 |
glibc takes user patch from etc/portage/patches so adding this was easy.
|
36 |
* an assembly bug specific to ppc that plagued all versions and apparently
|
37 |
was spotted starting binutils-2.27.51. I can send a link to that one as well
|
38 |
but it potentially just affects me unlike the first one.
|
39 |
|
40 |
# message #2 if you are stuck with an older glibc, it may need patching
|
41 |
to deal with newer binutils and possibly other toolchain elements.
|
42 |
|
43 |
Cheers,
|
44 |
François |