Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel duplicate definition compile error #140

Open
mihaimacarie98 opened this issue Apr 19, 2023 · 2 comments
Open

kernel duplicate definition compile error #140

mihaimacarie98 opened this issue Apr 19, 2023 · 2 comments

Comments

@mihaimacarie98
Copy link

xxx:/mnt/sdb1/aosp-raspi3/kernel/rpi$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage scripts/kconfig/conf --syncconfig Kconfig CALL scripts/checksyscalls.sh HOSTLD scripts/dtc/dtc /usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition ofyylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:99: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:638: scripts/dtc] Error 2
make: *** [Makefile:1130: scripts] Error 2
`

@mihaimacarie98
Copy link
Author

Fixed that but now I get this:


  CC      kernel/bounds.s
  CC      arch/arm/kernel/asm-offsets.s
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/empty.o
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  CHK     include/generated/compile.h
  CC      init/main.o
/tmp/cc6JuMj4.s: Assembler messages:
/tmp/cc6JuMj4.s:2106: Error: selected processor does not support `cpsid i' in ARM mode
/tmp/cc6JuMj4.s:2248: Error: selected processor does not support `cpsid i' in ARM mode
/tmp/cc6JuMj4.s:2308: Error: selected processor does not support `cpsie i' in ARM mode
/tmp/cc6JuMj4.s:2640: Error: selected processor does not support `cpsie i' in ARM mode
/tmp/cc6JuMj4.s:2723: Error: selected processor does not support `cpsid i' in ARM mode
/tmp/cc6JuMj4.s:2734: Error: selected processor does not support `dmb ishst' in ARM mode
/tmp/cc6JuMj4.s:2743: Error: selected processor does not support `dmb ishst' in ARM mode
make[1]: *** [scripts/Makefile.build:334: init/main.o] Error 1
make: *** [Makefile:1116: init] Error 2

@reuelqueiroz
Copy link

I think you need to verify if you have linaro toolchain installed correctly

Download https://releases.linaro.org/components/toolchain/binaries/7.4-2019.02/arm-linux-gnueabihf/ gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf.tar.xz

I had the same problem because I didn't install linaro toolchain correctly but when I fixed it, it started working well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants