coolsnowwolf / lede

Lean's LEDE source
Other
29.52k stars 19.5k forks source link

Naive编译错误,crtbeginS.o: No such file or directory #12418

Open grassrecluse opened 3 weeks ago

grassrecluse commented 3 weeks ago

详细叙述

[4009/4009] LINK ./naive FAILED: naive "python3" "../../build/toolchain/gcc_link_wrapper.py" --output="./naive" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -Wl,-mllvm,-split-threshold-for-reg-with-hint=0 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -Wl,-mllvm,-disable-auto-upgrade-debug-info -fwhole-program-vtables -mcpu=cortex-a9 -Wl,--undefined-version --target=arm-openwrt-linux-musleabi -mfloat-abi=hard -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed -nostdlib++ --sysroot=../../../../../../staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.3.0_musl_eabi -Wl,--lto-O2 -Wl,-mllvm,-enable-ext-tsp-block-placement=1 -rdynamic -pie -Wl,--disable-new-dtags -o "./naive" -Wl,--start-group @"./naive.rsp" -Wl,--end-group -ldl -lpthread -lrt -lresolv -latomic ld.lld: error: cannot open crtbeginS.o: No such file or directory ld.lld: error: unable to find library -lgcc ld.lld: error: unable to find library -lgcc ld.lld: error: cannot open crtendS.o: No such file or directory clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.

重复 issue

具体型号

WRT32X

详细日志

[4009/4009] LINK ./naive FAILED: naive "python3" "../../build/toolchain/gcc_link_wrapper.py" --output="./naive" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -Wl,-mllvm,-split-threshold-for-reg-with-hint=0 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -Wl,-mllvm,-disable-auto-upgrade-debug-info -fwhole-program-vtables -mcpu=cortex-a9 -Wl,--undefined-version --target=arm-openwrt-linux-musleabi -mfloat-abi=hard -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed -nostdlib++ --sysroot=../../../../../../staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.3.0_musl_eabi -Wl,--lto-O2 -Wl,-mllvm,-enable-ext-tsp-block-placement=1 -rdynamic -pie -Wl,--disable-new-dtags -o "./naive" -Wl,--start-group @"./naive.rsp" -Wl,--end-group -ldl -lpthread -lrt -lresolv -latomic ld.lld: error: cannot open crtbeginS.o: No such file or directory ld.lld: error: unable to find library -lgcc ld.lld: error: unable to find library -lgcc ld.lld: error: cannot open crtendS.o: No such file or directory clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed.

yanxin152133 commented 3 weeks ago

https://github.com/coolsnowwolf/lede/issues/6268