MadNoah n00b
Joined: 16 May 2018 Posts: 24
|
Posted: Mon Mar 23, 2020 4:42 pm Post subject: cross compiling the kernel fails |
|
|
I am trying to build a kernel for a current uclibc-stage3 but i consistently get the following error message no matter which kernel version i am using.
I think I missed something, any idea what?
Code: | # make ARCH=x86 CROSS_CCOMPILE=x86_64-unknown-linux-uclibc-
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTCC scripts/kconfig/util.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --syncconfig Kconfig
HOSTCC arch/x86/tools/relocs_64.o
In file included from arch/x86/tools/relocs_64.c:18:
arch/x86/tools/relocs.c: In function 'rel_type':
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'?
201 | REL_TYPE(R_X86_64_PC64),
| ^~~~~~~~~~~~~
arch/x86/tools/relocs.c:197:22: note: in definition of macro 'REL_TYPE'
197 | #define REL_TYPE(X) [X] = #X
| ^
arch/x86/tools/relocs.c:201:12: note: each undeclared identifier is reported only once for each function it appears in
201 | REL_TYPE(R_X86_64_PC64),
| ^~~~~~~~~~~~~
arch/x86/tools/relocs.c:197:22: note: in definition of macro 'REL_TYPE'
197 | #define REL_TYPE(X) [X] = #X
| ^
arch/x86/tools/relocs.c:201:12: error: array index in initializer not of integer type
201 | REL_TYPE(R_X86_64_PC64),
| ^~~~~~~~~~~~~
arch/x86/tools/relocs.c:197:22: note: in definition of macro 'REL_TYPE'
197 | #define REL_TYPE(X) [X] = #X
| ^
arch/x86/tools/relocs.c:201:12: note: (near initialization for 'type_name')
201 | REL_TYPE(R_X86_64_PC64),
| ^~~~~~~~~~~~~
arch/x86/tools/relocs.c:197:22: note: in definition of macro 'REL_TYPE'
197 | #define REL_TYPE(X) [X] = #X
| ^
arch/x86/tools/relocs.c: In function 'do_reloc64':
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'?
802 | case R_X86_64_PC64:
| ^~~~~~~~~~~~~
| R_X86_64_64
make[1]: *** [scripts/Makefile.host:124: arch/x86/tools/relocs_64.o] Error 1
make: *** [arch/x86/Makefile:272: archscripts] Error 2 | [/code] |
|