没有规则可以创建kernel/bounds.s需要的目标kernel/bounds.c的基本解决方案

没有规则可以创建kernel/bounds.s需要的目标kernel/bounds.c

方案1:
sudo apt-get install linux-source
sudo apt-get install glibc-source

方案2:

从新下一个内核之后再新的内核下make

arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:40: LSE atomics not supported by binutils scripts/kconfig/conf --syncconfig Kconfig arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum arch/arm64/Makefile:40: LSE atomics not supported by binutils CC kernel/bounds.s arm-buildroot-linux-gnueabihf-gcc.br_real: error: unrecognized command line option '-mgeneral-regs-only' Kbuild:21: recipe for target 'kernel/bounds.s' failed make[1]: *** [kernel/bounds.s] Error 1 make[1]: *** 正在等待未完成的任务.... Makefile:1245: recipe for target 'prepare0' failed make: *** [prepare0] Error 2 make: *** 正在等待未完成的任务.... CC scripts/mod/empty.o CC scripts/mod/devicetable-offsets.s arm-buildroot-linux-gnueabihf-gcc.br_real: error: unrecognized command line option '-mgeneral-regs-only' scripts/Makefile.build:333: recipe for target 'scripts/mod/empty.o' failed make[2]: *** [scripts/mod/empty.o] Error 1 make[2]: *** 正在等待未完成的任务.... arm-buildroot-linux-gnueabihf-gcc.br_real: error: unrecognized command line option '-mgeneral-regs-only' scripts/Makefile.build:131: recipe for target 'scripts/mod/devicetable-offsets.s' failed make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1 scripts/Makefile.build:637: recipe for target 'scripts/mod' failed make[1]: *** [scripts/mod] Error 2 make[1]: *** 正在等待未完成的任务.... Makefile:1211: recipe for target 'scripts' failed make: *** [scripts] Error 2
最新发布
11-09
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 ‘-mno-thumb-interwork’ gcc: error: unrecognized command line option ‘-mfpu=vfp’ scripts/Makefile.build:258: recipe for target 'scripts/mod/empty.o' failed make[2]: *** [scripts/mod/empty.o] Error 1 scripts/Makefile.build:403: recipe for target 'scripts/mod' failed make[1]: *** [scripts/mod] Error 2 make[1]: *** Waiting for unfinished jobs.... HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o Generating include/generated/mach-types.h SHIPPED scripts/dtc/dtc-lexer.lex.c SHIPPED scripts/dtc/dtc-parser.tab.h SHIPPED scripts/dtc/dtc-parser.tab.c HOSTCC scripts/dtc/dtc-lexer.lex.o 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 ‘-mno-thumb-interwork’ gcc: error: unrecognized command line option ‘-mfpu=vfp’ Kbuild:43: recipe for target 'kernel/bounds.s' failed make[1]: *** [kernel/bounds.s] Error 1 Makefile:990: recipe for target 'prepare0' failed make: *** [prepare0] Error 2 make: *** Waiting for unfinished jobs.... HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/dtc Makefile:555: recipe for target 'scripts' failed make: *** [scripts] Error 2
04-01
鸿蒙l0设备上适配恒玄开发版适配libmodbus报错[OHOS ERROR] [44/124] gcc cross compiler obj/third_party/libmodbus/src/libmodbus_static.modbus-rtu.o [OHOS ERROR] FAILED: obj/third_party/libmodbus/src/libmodbus_static.modbus-rtu.o [OHOS ERROR] ccache arm-none-eabi-gcc -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D__LITEOS__ -D__LITEOS_M__ -DSECUREC_IN_KERNEL=0 -D_BSD_SOURCE=1 -I../../../third_party/libmodbus -I../../../third_party/libmodbus/src -I../../../device/soc/bestechnic/aos_bsp/include/rtos/liteos/liteos_m/kal/cmsis -I../../../device/soc/bestechnic/aos_bsp/rtos/liteos/liteos_m -I../../../device/soc/bestechnic/aos_bsp/platform/hal -I../../../commonlibrary/utils_lite/include -I../../../base/iothardware/peripheral/interfaces/inner_api -I../../../kernel/liteos_m/arch/arm/common -I../../../kernel/liteos_m/arch/arm/cortex-m33/gcc/NTZ -I../../../kernel/liteos_m/arch/arm/include -I../../../kernel/liteos_m/arch/include -I../../../kernel/liteos_m/kernel/include -I../../../kernel/liteos_m/kal/libc/newlib/porting/include -I../../../third_party/bounds_checking_function/include -I../../../kernel/liteos_m/kal/posix/include -I../../../kernel/liteos_m/components/backtrace -I../../../kernel/liteos_m/components/cpup -I../../../kernel/liteos_m/components/exchook -I../../../kernel/liteos_m/components/fs/vfs -I../../../third_party/littlefs -I../../../third_party/littlefs/bd -I../../../kernel/liteos_m/components/fs/littlefs -I../../../device/soc/bestechnic/bes2600/liteos_m/components/net/lwip-2.1/porting/include -I../../../kernel/liteos_m/components/net/lwip-2.1/porting/include -I../../../third_party/lwip/src/include -I../../../kernel/liteos_m/components/power -I../../../kernel/liteos_m/components/signal -I../../../kernel/liteos_m/utils -Igen/device/board/fnlink/shields/v200zr-evb-t1 -I../../../device/soc/bestechnic/aos_bsp/rtos/liteos/liteos_m/kal/cmsis -I../../../device/soc/bestechnic/aos_bsp/platform/cmsis/inc -I../../../device/soc/bestechnic/aos_bsp/platform/drivers/ana -I../../../device/soc/bestechnic/aos_bsp/services/wifi_app/wifi_console -I../../../device/soc/bestechnic/aos_bsp/utils/crc32 -I../../../device/soc/bestechnic/aos_bsp/utils/kfifo -I../../../device/soc/bestechnic/aos_bsp/net/wifi -I../../../device/soc/bestechnic/aos_bsp/platform/hal/best2003 -I../../../device/soc/bestechnic/aos_bsp/services/norflash_api -I../../../device/soc/bestechnic/aos_bsp/utils/eshell -I../../../device/soc/bestechnic/aos_bsp/services/aiot/ota_secboot -I../../../device/soc/bestechnic/aos_bsp/net -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/display/hal -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/flash -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/mipi_dsi -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/touch -I../../../device/soc/bestechnic/bes2600/liteos_m/components/drivers/touch/include -I../../../device/soc/bestechnic/bes2600/liteos_m/components/fs -I../../../device/soc/bestechnic/bes2600/liteos_m/components/ui -I../../../device/soc/bestechnic/bes2600/liteos_m/components/utils/include -I../../../device/soc/bestechnic/bes2600/liteos_m/components/bt/inc -Os -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -fdata-sections -mthumb -mthumb-interwork -DPLAYER_TOOL -DCHIP_BEST2003 -DOS_HEAP_SIZE=0x600000 -DCHIP_HAS_UART=3 -DRTOS -DDEBUG=1 -DCMSIS_OS_VER=2 -DOS_HWI_MAX_NUM=96 -DCONFIG_DISPLAY_A064 -DLFS_MAX_OPEN_DIRS=32 -DMBEDTLS_CMSIS_FILE=\"rtos/liteos/liteos_m/kal/cmsis/cmsis_os.h\" -DMINE_HARMONY_SOFTBUS -DLOSCFG_BASE_CORE_HILOG -DPTHREAD_KEYS_MAX=128 -DWIFI_STATE_NOT_AVALIABLE=0 -DTCP_USER_TIMEOUT=18 -D_stext=__text_start__ -D_etext=__text_end__ -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -fdata-sections -mthumb -mthumb-interwork -DPLAYER_TOOL -DCHIP_BEST2003 -DOS_HEAP_SIZE=0x600000 -DCHIP_HAS_UART=3 -DRTOS -DDEBUG=1 -DCMSIS_OS_VER=2 -DOS_HWI_MAX_NUM=96 -DCONFIG_DISPLAY_A064 -DLFS_MAX_OPEN_DIRS=32 -DMBEDTLS_CMSIS_FILE=\"rtos/liteos/liteos_m/kal/cmsis/cmsis_os.h\" -DMINE_HARMONY_SOFTBUS -DLOSCFG_BASE_CORE_HILOG -DPTHREAD_KEYS_MAX=128 -DWIFI_STATE_NOT_AVALIABLE=0 -DTCP_USER_TIMEOUT=18 -D_stext=__text_start__ -D_etext=__text_end__ -mcpu=cortex-m33 -fno-common -fno-builtin -fno-strict-aliasing -Wall -fsigned-char -fstack-protector-all -imacros /home/zkxi/workspace/L0_332/src/out/v200zr/display_demo/config.h -std=c99 -c ../../../third_party/libmodbus/src/modbus-rtu.c -o obj/third_party/libmodbus/src/libmodbus_static.modbus-rtu.o [OHOS ERROR] In file included from ../../../third_party/libmodbus/src/modbus-rtu-private.h:19, [OHOS ERROR] from ../../../third_party/libmodbus/src/modbus-rtu.c:18: [OHOS ERROR] /root/toolchain/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/termios.h:4:10: fatal error: sys/termios.h: No such file or directory [OHOS ERROR] 4 | #include <sys/termios.h> [OHOS ERROR] | ^~~~~~~~~~~~~~~ [OHOS ERROR] compilation terminated. 这是怎么回事,给出具体的修改方案?
09-10
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值