gpt4 book ai didi

linux - gcc:错误:选项 ‘-mabi=aapcs-linux’中无法识别的参数

转载 作者:IT王子 更新时间:2023-10-29 00:44:03 24 4
gpt4 key购买 nike

首先安装跨工具,然后构建工具链,然后构建内核,但是在为RAM编译内核2.6.34时,反复出现错误

    root@kali:~/felabs/sysdev/tinysystem/linux-2.6.34# make ARCH=arm CROSS-COMPILE=arm-linux-
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Generating include/generated/mach-types.h
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
/root/felabs/sysdev/tinysystem/linux-2.6.34/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:986: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

最佳答案

您应该将TOOLCHAIN_PREFIX添加到您的行中,以显示确切使用的编译器:

〜/ felabs / sysdev / tinysystem / linux-2.6.34#make ARCH = arm CROSS-COMPILE = arm-linux- TOOLCHAIN_PREFIX = / gcc-linaro-SOMETHIN-x86_64_arm-linux-gnueabihf / bin / arm-linux-gnueabihf-

只要确保在末尾有-。

亲切的问候!

关于linux - gcc:错误:选项 ‘-mabi=aapcs-linux’中无法识别的参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36852922/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com