1 |
Neither linux-5.4.28-gentoo nor linux-5.4.38-gentoo would compile, with the following error: |
2 |
|
3 |
> CFLAGS="-Wno-error=undef" make && make modules_install |
4 |
> HOSTCC scripts/basic/fixdep |
5 |
> HOSTCC arch/x86/tools/relocs_32.o |
6 |
> HOSTCC arch/x86/tools/relocs_64.o |
7 |
> In file included from arch/x86/tools/relocs_64.c:18: |
8 |
> arch/x86/tools/relocs.c: In function 'rel_type': |
9 |
> arch/x86/tools/relocs.c:201:12: error: 'R_X86_64_PC64' undeclared (first use in this function); did you mean 'R_X86_64_64'? |
10 |
> 201 | REL_TYPE(R_X86_64_PC64), |
11 |
> | ^~~~~~~~~~~~~ |
12 |
> arch/x86/tools/relocs.c:197:22: note: in definition of macro 'REL_TYPE' |
13 |
> 197 | #define REL_TYPE(X) [X] = #X |
14 |
> | ^ |
15 |
> arch/x86/tools/relocs.c:201:12: note: each undeclared identifier is reported only once for each function it appears in |
16 |
> 201 | REL_TYPE(R_X86_64_PC64), |
17 |
> | ^~~~~~~~~~~~~ |
18 |
> arch/x86/tools/relocs.c:197:22: note: in definition of macro 'REL_TYPE' |
19 |
> 197 | #define REL_TYPE(X) [X] = #X |
20 |
> | ^ |
21 |
> arch/x86/tools/relocs.c:201:12: error: array index in initializer not of integer type |
22 |
> 201 | REL_TYPE(R_X86_64_PC64), |
23 |
> | ^~~~~~~~~~~~~ |
24 |
> arch/x86/tools/relocs.c:197:22: note: in definition of macro 'REL_TYPE' |
25 |
> 197 | #define REL_TYPE(X) [X] = #X |
26 |
> | ^ |
27 |
> arch/x86/tools/relocs.c:201:12: note: (near initialization for 'type_name') |
28 |
> 201 | REL_TYPE(R_X86_64_PC64), |
29 |
> | ^~~~~~~~~~~~~ |
30 |
> arch/x86/tools/relocs.c:197:22: note: in definition of macro 'REL_TYPE' |
31 |
> 197 | #define REL_TYPE(X) [X] = #X |
32 |
> | ^ |
33 |
> arch/x86/tools/relocs.c: In function 'do_reloc64': |
34 |
> arch/x86/tools/relocs.c:802:7: error: 'R_X86_64_PC64' undeclared (first use in this function); did you mean 'R_X86_64_64'? |
35 |
> 802 | case R_X86_64_PC64: |
36 |
> | ^~~~~~~~~~~~~ |
37 |
> | R_X86_64_64 |
38 |
> make[1]: *** [scripts/Makefile.host:124: arch/x86/tools/relocs_64.o] Error 1 |
39 |
> make: *** [arch/x86/Makefile:232: archscripts] Error 2 |
40 |
|
41 |
I did not find anything relevant on Gentoo forums or on this mailing |
42 |
list. Configuration is a little non-standard. The first lines of |
43 |
emerge --info: |
44 |
|
45 |
> Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.0/uclibc/hardened, gcc-9.3.0, uclibc-ng-1.0.33, 4.19.97-gentoo-poseidon x86_64) |
46 |
> ================================================================= |
47 |
> System uname: Linux-4.19.97-gentoo-poseidon-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L9400_@_1.86GHz-with-gentoo-2.6 |
48 |
> KiB Mem: 1929164 total, 152428 free |
49 |
> KiB Swap: 0 total, 0 free |
50 |
> Timestamp of repository gentoo: Fri, 08 May 2020 05:00:01 +0000 |
51 |
> Head commit of repository gentoo: 92957d0a4e66217194d92beb864ef7b9f2c04cbb |
52 |
> sh bash 5.0_p17 |
53 |
> ld GNU ld (Gentoo 2.33.1 p2) 2.33.1 |
54 |
> ccache version 3.7.7 [enabled] |
55 |
> app-shells/bash: 5.0_p17::gentoo |
56 |
> dev-lang/perl: 5.30.1::gentoo |
57 |
> dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo |
58 |
> dev-util/ccache: 3.7.7-r1::gentoo |
59 |
> dev-util/cmake: 3.16.5::akater |
60 |
> sys-apps/baselayout: 2.6-r1::gentoo |
61 |
> sys-apps/openrc: 0.42.1::gentoo |
62 |
> sys-apps/sandbox: 2.13::gentoo |
63 |
> sys-devel/autoconf: 2.69-r4::gentoo |
64 |
> sys-devel/automake: 1.16.1-r1::gentoo |
65 |
> sys-devel/binutils: 2.33.1-r1::gentoo |
66 |
> sys-devel/gcc: 9.3.0::gentoo |
67 |
> sys-devel/gcc-config: 2.2.1::gentoo |
68 |
> sys-devel/libtool: 2.4.6-r6::gentoo |
69 |
> sys-devel/make: 4.2.1-r4::gentoo |
70 |
> sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers) |
71 |
> sys-libs/uclibc-ng: 1.0.33::akater |
72 |
|
73 |
Please help. |