Arch/arm64/crypto에서 Linux 커널 크로스 컴파일이 실패합니다.

Arch/arm64/crypto에서 Linux 커널 크로스 컴파일이 실패합니다.

Ubuntu 18.04에서 Linux 커널 v.5.0.0을 크로스 컴파일하는 동안 오류가 발생했습니다.

v7.4.0과 v5.5.0 의 두 가지 다른 버전을 테스트했지만 aarch64-linux-gnu-gcc둘 다 동일한 오류가 발생했습니다.

다음은 내가 설치한 종속성과 커널을 컴파일하기 위해 실행한 명령입니다.

$ sudo apt install libssl-dev libelf-dev build-essentials libncurses5-dev flex bison gcc-arm-linux-gnueabi gcc-arm-none-eabi gcc-arm-linux-gnueabihf   gcc-arm-none-eabi-source
$ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make defconfig
$ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j

내가 받은 오류 메시지는 다음과 같습니다.

  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  AR      init/built-in.a
  AR      built-in.a
  LD      vmlinux.o
  MODPOST vmlinux.o
arch/arm64/crypto/sha2-ce-glue.o: In function `sha256_base_do_update':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:82: undefined reference to `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:82:(.text+0x220): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:75: undefined reference to `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:75:(.text+0x2bc): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
arch/arm64/crypto/sha2-ce-glue.o: In function `sha256_base_do_finalize':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:111: undefined reference to `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:111:(.text+0x4ec): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:106: undefined reference to `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:106:(.text+0x598): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
arch/arm64/crypto/sha2-ce-glue.o: In function `sha256_base_do_update':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:82: undefined reference to `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:82:(.text+0x694): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
arch/arm64/crypto/sha2-ce-glue.o:/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:75: more undefined references to `sha256_block_data_order' follow
arch/arm64/crypto/sha2-ce-glue.o: In function `sha256_base_do_update':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:75:(.text+0x6cc): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
arch/arm64/crypto/sha2-ce-glue.o: In function `sha256_base_do_finalize':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:111:(.text+0x79c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:106:(.text+0x908): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
arch/arm64/crypto/sha256-glue.o: In function `sha256_base_do_update':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:82:(.text+0x158): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:75:(.text+0x190): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `sha256_block_data_order'
arch/arm64/crypto/sha256-glue.o: In function `sha256_base_do_finalize':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:111:(.text+0x218): additional relocation overflows omitted from the output
arch/arm64/crypto/sha256-glue.o: In function `sha256_base_do_update':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:82: undefined reference to `sha256_block_neon'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:75: undefined reference to `sha256_block_neon'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:75: undefined reference to `sha256_block_data_order'
arch/arm64/crypto/sha256-glue.o: In function `sha256_base_do_finalize':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:111: undefined reference to `sha256_block_neon'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:111: undefined reference to `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:106: undefined reference to `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:106: undefined reference to `sha256_block_neon'
arch/arm64/crypto/sha256-glue.o: In function `sha256_base_do_update':
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:82: undefined reference to `sha256_block_data_order'
/home/shpark/git.kernel.org/arm64/linux/./include/crypto/sha256_base.h:75: undefined reference to `sha256_block_data_order'
arch/arm64/crypto/sha256-glue.o: In function `__ksymtab_sha256_block_data_order':
sha256-glue.c:(___ksymtab+sha256_block_data_order+0x0): undefined reference to `sha256_block_data_order'
Makefile:1021: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1

이 문제를 어떻게 해결할 수 있나요? 실패 이유를 모르겠네요;;

감사해요!

관련 정보