专栏底层软件J5内核单独编译报错

J5内核单独编译报错

已解决
danyxnever2022-12-05
88
4

用户您好,请详细描述您所遇到的问题。

1.硬件获取渠道:

2.当前系统镜像版本:matrix5_1-M5.1_LNX5.10_PL3.0_V0.2.0_20220715 v0.2.0

3.当前天工开物版本:

4.问题定位:

danny@sh-l-040415:~/J5/build$ lunch

You're building on Linux echo

Lunch menu... pick a combo:

1. horizon_j5-fpga.64

2. horizon_j5-debug.64

3. horizon_j5-debug_gcc9.64

4. horizon_j5-release.64

5. horizon_j5-release_gcc9.64

6. horizon_matrix5-debug.64

7. horizon_matrix5-debug_gcc9.64

8. horizon_matrix5-release.64

9. horizon_matrix5-release_gcc9.64

lunch 2,6可正常编译通过,lunch 3,7无法编译通过,报如下log错误

5.开发的demo/案例:

6.需要提供的解决方案:

MODPOST vmlinux.symvers

MODINFO modules.builtin.modinfo

GEN modules.builtin

LD .tmp_vmlinux.kallsyms1

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/core/spacc_dev.o: in function `spacc_dev_ioctl2.isra.13':

(.text+0x7c8): undefined reference to `__stack_chk_guard'

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/core/spacc_dev.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

(.text+0x7c8): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: (.text+0x7d0): undefined reference to `__stack_chk_guard'

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: (.text+0x8a0): undefined reference to `__stack_chk_guard'

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/core/cryptoapi.o: in function `spacc_sgs_to_ddt':

(.text+0x1e0): undefined reference to `__stack_chk_guard'

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/core/cryptoapi.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

(.text+0x1e0): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: (.text+0x1e8): undefined reference to `__stack_chk_guard'

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/core/cryptoapi.o:(.text+0x2ac): more undefined references to `__stack_chk_guard' follow

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/core/cryptoapi-aead.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/core/cryptoapi-aead.o: in function `spacc_aead_setkey':

(.text+0x120): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/pdu/pdu.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/pdu/pdu.o: in function `pdu_ddt_add':

(.text+0x2c4): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc.o: in function `spacc_xof_stringsize_autodetect':

(.text+0x834): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc.o: in function `store_reg':

(.text+0xb8c): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc.o: in function `show_reg':

(.text+0xc14): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc.o: in function `spacc_kernel_irq_ioctl':

(.text+0xe94): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc.o: in function `spacc_compute_xcbc_key':

(.text+0x1794): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc.o: in function `spacc_pop_packets':

(.text+0x1c04): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc.o: in function `spacc_pop_jobs':

(.text+0x1c84): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc.o: in function `spacc_probe':

(.text+0x21b0): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc_ctx_manager.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc_ctx_manager.o: in function `spacc_dump_ctx':

(.text+0x78): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc_ctx_manager.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc_ctx_manager.o: in function `spacc_read_rc4_context':

(.text+0x3ec): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc_ctx_manager.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc_ctx_manager.o: in function `spacc_read_context':

(.text+0x4d4): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc_ctx_manager.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc_ctx_manager.o: in function `spacc_write_rc4_context':

(.text+0x818): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc_ctx_manager.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc_ctx_manager.o: in function `spacc_write_context':

(.text+0x900): dangerous relocation: unsupported relocation

/home/danny/J5/prebuilts/host/gcc-ubuntu-9.3.0-2020.03-x86_64-aarch64-linux-gnu/bin/aarch64-linux-gnu-ld: drivers/crypto/hobot/spacc/spacc_autodetect.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard' which may bind externally can not be used when making a shared object; recompile with -fPIC

drivers/crypto/hobot/spacc/spacc_autodetect.o: in function `spacc_autodetect':

(.text+0x14): dangerous relocation: unsupported relocation

Makefile:1179: recipe for target 'vmlinux' failed

make: *** [vmlinux] Error 1

make failed

底层软件
征程5
+1
评论4
0/1000
  • 新手村
    Lv.4

    您好:

    切换GCC版本进行编译之前,需要clean,所以建议你重新开一个窗口,进行配置并lunch;

    谢谢

    2022-12-05
    2
    0
  • 费小财
    Lv.5

    您好,

    你这边编译切换是怎么切的,是直接编完2 6就遍3 7吗

    2022-12-05
    0
    0
  • 船到桥头
    Lv.1

    您好:

    1、先清除根目录下的out/文件夹,可以重命名未out-before

    2、lunch配置

    3、编译

    应该可以解决该问题

    祝好~

    2022-12-05
    0
    0
  • danyxnever
    Lv.1

    感谢,需要clean,在重新编译

    2022-12-06
    0
    0