Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cross compiling the kernel fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
MadNoah
n00b
n00b


Joined: 16 May 2018
Posts: 24

PostPosted: Mon Mar 23, 2020 4:42 pm    Post subject: cross compiling the kernel fails Reply with quote

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]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum