csky-elfabiv2-g++: error trying to exec ‘cc1plus‘: execvp: 没有那个文件或目录

在尝试编译LiteOSCSKY架构的项目时遇到了编译错误,具体表现为无法执行cc1和cc1plus编译器。通过查找cc1的位置并添加到PATH环境变量中解决了找不到cc1的问题,但随后出现了新的错误。这表明编译环境中可能存在配置不完整或依赖缺失的情况。
摘要由CSDN通过智能技术生成
FAILED: obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_event.o 
ccache csky-elfabiv2-gcc -DFAULT_EVENT_FILE_SIZE\ =\ 1024 -DUE_EVENT_FILE_SIZE\ =\ 1024 -DSTAT_EVENT_FILE_SIZE\ =\ 1024 -DEVENT_CACHE_SIZE\ =\ 256 -DHIVIEW_HIEVENT_FILE_BUF_SIZE\ =\ 128 -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D__LITEOS__ -D__LITEOS_M__ -DHIVIEW_FILE_DIR\ =\ \"\" -DSECUREC_IN_KERNEL=0 -I../../../base/hiviewdfx/hievent_lite/interfaces/native/innerkits -I../../../base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite -I../../../base/hiviewdfx/hiview_lite -I../../../utils/native/lite/include -I../../../third_party/bounds_checking_function/include -I../../../foundation/distributedschedule/samgr_lite/interfaces/kits/samgr -I../../../kernel/liteos_m/arch/csky/v2/gcc -I../../../device/soc/winnermicro -I../../../third_party/bounds_checking_function/include -I../../../kernel/liteos_m/utils -I../../../kernel/liteos_m/kernel/include -I../../../utils/native/lite/include -I../../../base/hiviewdfx/hiview_lite -I../../../foundation/distributedschedule/samgr_lite/interfaces/kits/samgr -I../../../base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite -I../../../kernel/liteos_m/arch/csky/v2/gcc -I../../../kernel/liteos_m/arch/include -I../../../kernel/liteos_m/kernel/include -I../../../third_party/cmsis/CMSIS/Core/Include -I../../../third_party/cmsis/CMSIS/RTOS2/Include -I../../../third_party/cmsis/CMSIS/DSP/Include -I../../../third_party/cmsis/CMSIS/DSP/PrivateInclude -I../../../kernel/liteos_m/kal/cmsis -I../../../third_party/musl/porting/liteos_m/kernel/include -I../../../third_party/bounds_checking_function/include -I../../../kernel/liteos_m/kal/posix/include -I../../../kernel/liteos_m/components/fs/vfs -I../../../third_party/littlefs -I../../../third_party/littlefs/bd -I../../../kernel/liteos_m/components/fs/littlefs -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 -I../../../device/soc/winnermicro/wm800/board -I../../../device/soc/winnermicro/wm800/board/include -I../../../device/soc/winnermicro/wm800/board/include/app -I../../../device/soc/winnermicro/wm800/board/include/arch/xt804 -I../../../device/soc/winnermicro/wm800/board/include/arch/xt804/csi_core -I../../../device/soc/winnermicro/wm800/board/include/arch/xt804/csi_dsp -I../../../device/soc/winnermicro/wm800/board/include/bt -I../../../device/soc/winnermicro/wm800/board/include/driver -I../../../device/soc/winnermicro/wm800/board/include/net -I../../../device/soc/winnermicro/wm800/board/include/os -I../../../device/soc/winnermicro/wm800/board/include/platform -I../../../device/soc/winnermicro/wm800/board/include/wifi -I../../../device/soc/winnermicro/wm800/board/platform/common/params -I../../../device/soc/winnermicro/wm800/board/platform/drivers/spi -I../../../device/soc/winnermicro/wm800/board/platform/inc -I../../../device/soc/winnermicro/wm800/board/platform/sys -I../../../device/soc/winnermicro/wm800/board/src/os/liteos/include -I../../../device/soc/winnermicro/wm800/board/src/os/liteos/include_standrd -I../../../utils/native/lite/include -I../../../third_party/musl/porting/liteos_m/kernel/src/include -I../../../third_party/musl/porting/liteos_m/kernel/src/internal -I../../../third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils -I../../../drivers/framework/core/common/include/manager -I../../../drivers/framework/include/platform -I../../../drivers/framework/include/utils -I../../../drivers/adapter/khdf/liteos_m/osal/include -Wall -Os -mcpu=ck804ef -mhard-float -DGCC_COMPILE=1 -DTLS_CONFIG_CPU_XT804=1 -DNIMBLE_FTR=1 -D__CSKY_V2__=1 -DCPU_CK804 -O2 -g3 -Wall -ffunction-sections -MMD -MP -mcpu=ck804ef -mhard-float -DGCC_COMPILE=1 -DTLS_CONFIG_CPU_XT804=1 -DNIMBLE_FTR=1 -D__CSKY_V2__=1 -DCPU_CK804 -O2 -g3 -Wall -ffunction-sections -MMD -MP -march=ck803 -mcpu=ck804ef -fno-common -fno-builtin -fno-strict-aliasing -Wall -fsigned-char -fstack-protector-all -imacros /work/zhangrongxia/project/neptune100-3.1.4-release/out/neptune100/neptune_iotlink_demo/config.h -std=c99 -c ../../../base/hiviewdfx/hievent_lite/frameworks/hiview_event.c -o obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_event.o
csky-elfabiv2-gcc: error trying to exec 'cc1': execvp: 没有那个文件或目录
[5/1089] gcc cross compiler obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_output_event.o
FAILED: obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_output_event.o 
ccache csky-elfabiv2-gcc -DFAULT_EVENT_FILE_SIZE\ =\ 1024 -DUE_EVENT_FILE_SIZE\ =\ 1024 -DSTAT_EVENT_FILE_SIZE\ =\ 1024 -DEVENT_CACHE_SIZE\ =\ 256 -DHIVIEW_HIEVENT_FILE_BUF_SIZE\ =\ 128 -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D__LITEOS__ -D__LITEOS_M__ -DHIVIEW_FILE_DIR\ =\ \"\" -DSECUREC_IN_KERNEL=0 -I../../../base/hiviewdfx/hievent_lite/interfaces/native/innerkits -I../../../base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite -I../../../base/hiviewdfx/hiview_lite -I../../../utils/native/lite/include -I../../../third_party/bounds_checking_function/include -I../../../foundation/distributedschedule/samgr_lite/interfaces/kits/samgr -I../../../kernel/liteos_m/arch/csky/v2/gcc -I../../../device/soc/winnermicro -I../../../third_party/bounds_checking_function/include -I../../../kernel/liteos_m/utils -I../../../kernel/liteos_m/kernel/include -I../../../utils/native/lite/include -I../../../base/hiviewdfx/hiview_lite -I../../../foundation/distributedschedule/samgr_lite/interfaces/kits/samgr -I../../../base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite -I../../../kernel/liteos_m/arch/csky/v2/gcc -I../../../kernel/liteos_m/arch/include -I../../../kernel/liteos_m/kernel/include -I../../../third_party/cmsis/CMSIS/Core/Include -I../../../third_party/cmsis/CMSIS/RTOS2/Include -I../../../third_party/cmsis/CMSIS/DSP/Include -I../../../third_party/cmsis/CMSIS/DSP/PrivateInclude -I../../../kernel/liteos_m/kal/cmsis -I../../../third_party/musl/porting/liteos_m/kernel/include -I../../../third_party/bounds_checking_function/include -I../../../kernel/liteos_m/kal/posix/include -I../../../kernel/liteos_m/components/fs/vfs -I../../../third_party/littlefs -I../../../third_party/littlefs/bd -I../../../kernel/liteos_m/components/fs/littlefs -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 -I../../../device/soc/winnermicro/wm800/board -I../../../device/soc/winnermicro/wm800/board/include -I../../../device/soc/winnermicro/wm800/board/include/app -I../../../device/soc/winnermicro/wm800/board/include/arch/xt804 -I../../../device/soc/winnermicro/wm800/board/include/arch/xt804/csi_core -I../../../device/soc/winnermicro/wm800/board/include/arch/xt804/csi_dsp -I../../../device/soc/winnermicro/wm800/board/include/bt -I../../../device/soc/winnermicro/wm800/board/include/driver -I../../../device/soc/winnermicro/wm800/board/include/net -I../../../device/soc/winnermicro/wm800/board/include/os -I../../../device/soc/winnermicro/wm800/board/include/platform -I../../../device/soc/winnermicro/wm800/board/include/wifi -I../../../device/soc/winnermicro/wm800/board/platform/common/params -I../../../device/soc/winnermicro/wm800/board/platform/drivers/spi -I../../../device/soc/winnermicro/wm800/board/platform/inc -I../../../device/soc/winnermicro/wm800/board/platform/sys -I../../../device/soc/winnermicro/wm800/board/src/os/liteos/include -I../../../device/soc/winnermicro/wm800/board/src/os/liteos/include_standrd -I../../../utils/native/lite/include -I../../../third_party/musl/porting/liteos_m/kernel/src/include -I../../../third_party/musl/porting/liteos_m/kernel/src/internal -I../../../third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils -I../../../drivers/framework/core/common/include/manager -I../../../drivers/framework/include/platform -I../../../drivers/framework/include/utils -I../../../drivers/adapter/khdf/liteos_m/osal/include -Wall -Os -mcpu=ck804ef -mhard-float -DGCC_COMPILE=1 -DTLS_CONFIG_CPU_XT804=1 -DNIMBLE_FTR=1 -D__CSKY_V2__=1 -DCPU_CK804 -O2 -g3 -Wall -ffunction-sections -MMD -MP -mcpu=ck804ef -mhard-float -DGCC_COMPILE=1 -DTLS_CONFIG_CPU_XT804=1 -DNIMBLE_FTR=1 -D__CSKY_V2__=1 -DCPU_CK804 -O2 -g3 -Wall -ffunction-sections -MMD -MP -march=ck803 -mcpu=ck804ef -fno-common -fno-builtin -fno-strict-aliasing -Wall -fsigned-char -fstack-protector-all -imacros /work/zhangrongxia/project/neptune100-3.1.4-release/out/neptune100/neptune_iotlink_demo/config.h -std=c99 -c ../../../base/hiviewdfx/hievent_lite/frameworks/hiview_output_event.c -o obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_output_event.o
csky-elfabiv2-gcc: error trying to exec 'cc1': execvp: 没有那个文件或目录
[6/1089] gcc CXX obj/base/hiviewdfx/hilog_lite/frameworks/featured/libhilog_static.hilog.o
FAILED: obj/base/hiviewdfx/hilog_lite/frameworks/featured/libhilog_static.hilog.o 
ccache csky-elfabiv2-g++ -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D__LITEOS__ -D__LITEOS_M__ -DSECUREC_IN_KERNEL=0 -I../../../kernel/liteos_m/arch/csky/v2/gcc -I../../../device/soc/winnermicro -I../../../third_party/bounds_checking_function/include -I../../../kernel/liteos_m/utils -I../../../kernel/liteos_m/kernel/include -I../../../utils/native/lite/include -I../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog -I../../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits -I../../../third_party/bounds_checking_function/include -I../../../kernel/liteos_m/arch/csky/v2/gcc -I../../../kernel/liteos_m/arch/include -I../../../kernel/liteos_m/kernel/include -I../../../third_party/cmsis/CMSIS/Core/Include -I../../../third_party/cmsis/CMSIS/RTOS2/Include -I../../../third_party/cmsis/CMSIS/DSP/Include -I../../../third_party/cmsis/CMSIS/DSP/PrivateInclude -I../../../kernel/liteos_m/kal/cmsis -I../../../third_party/musl/porting/liteos_m/kernel/include -I../../../third_party/bounds_checking_function/include -I../../../kernel/liteos_m/kal/posix/include -I../../../kernel/liteos_m/components/fs/vfs -I../../../third_party/littlefs -I../../../third_party/littlefs/bd -I../../../kernel/liteos_m/components/fs/littlefs -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 -I../../../device/soc/winnermicro/wm800/board -I../../../device/soc/winnermicro/wm800/board/include -I../../../device/soc/winnermicro/wm800/board/include/app -I../../../device/soc/winnermicro/wm800/board/include/arch/xt804 -I../../../device/soc/winnermicro/wm800/board/include/arch/xt804/csi_core -I../../../device/soc/winnermicro/wm800/board/include/arch/xt804/csi_dsp -I../../../device/soc/winnermicro/wm800/board/include/bt -I../../../device/soc/winnermicro/wm800/board/include/driver -I../../../device/soc/winnermicro/wm800/board/include/net -I../../../device/soc/winnermicro/wm800/board/include/os -I../../../device/soc/winnermicro/wm800/board/include/platform -I../../../device/soc/winnermicro/wm800/board/include/wifi -I../../../device/soc/winnermicro/wm800/board/platform/common/params -I../../../device/soc/winnermicro/wm800/board/platform/drivers/spi -I../../../device/soc/winnermicro/wm800/board/platform/inc -I../../../device/soc/winnermicro/wm800/board/platform/sys -I../../../device/soc/winnermicro/wm800/board/src/os/liteos/include -I../../../device/soc/winnermicro/wm800/board/src/os/liteos/include_standrd -I../../../utils/native/lite/include -I../../../third_party/musl/porting/liteos_m/kernel/src/include -I../../../third_party/musl/porting/liteos_m/kernel/src/internal -I../../../third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils -I../../../drivers/framework/core/common/include/manager -I../../../drivers/framework/include/platform -I../../../drivers/framework/include/utils -I../../../drivers/adapter/khdf/liteos_m/osal/include -I../../../third_party/bounds_checking_function/include -Os -mcpu=ck804ef -mhard-float -DGCC_COMPILE=1 -DTLS_CONFIG_CPU_XT804=1 -DNIMBLE_FTR=1 -D__CSKY_V2__=1 -DCPU_CK804 -O2 -g3 -Wall -ffunction-sections -MMD -MP -mcpu=ck804ef -mhard-float -DGCC_COMPILE=1 -DTLS_CONFIG_CPU_XT804=1 -DNIMBLE_FTR=1 -D__CSKY_V2__=1 -DCPU_CK804 -O2 -g3 -Wall -ffunction-sections -MMD -MP -march=ck803 -mcpu=ck804ef -fno-common -fno-builtin -fno-strict-aliasing -Wall -fstack-protector-all -std=c++11 -imacros /work/zhangrongxia/project/neptune100-3.1.4-release/out/neptune100/neptune_iotlink_demo/config.h -c ../../../base/hiviewdfx/hilog_lite/frameworks/featured/hilog.cpp -o obj/base/hiviewdfx/hilog_lite/frameworks/featured/libhilog_static.hilog.o
csky-elfabiv2-g++: error trying to exec 'cc1plus': execvp: 没有那个文件或目录

1.查找CC1的位置:

whereis cc1
cc1:

没找到:使用locat找

locate cc1

在这里插入图片描述

2.添加路径

PATH="$PATH":/usr/lib/gcc/x86_64-linux-gnu/4.8
export PATH

3.重新编译

这个错误没有了,但是新的错误又出现了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值