collect2: error: ld returned 1 exit status 是一个常见的链接器错误,通常出现在使用 GCC 或 Clang 编译器时。这个错误表明链接器 ld 在尝试将多个目标文件(.o 文件)和库链接成最终的可执行文件时失败了。以下是一些可能导致这个错误的原因以及相应的解决方法: 缺少必要的库文件或链接库顺序不正确: 确保所有必...
问题2: collect2: error: ld returned 1 exit status Makefile:104: recipe for target 'product_timestamp' failed make[1]: *** [product_timestamp] Error 1 make[1]: Leaving directory '/home/liyirui/my/csrc' Make exited with status 2 CPU time: .231 seconds to compile + .364 seconds to...
collect2: error: ld returned 1 exit status Makefile:104: recipe for target 'product_timestamp' failed make[1]: *** [product_timestamp] Error 1 make[1]: Leaving directory '/home/liyirui/my/csrc'Make exited with status 2 CPU time: .231 seconds to compile + .364 seconds to elab + ...
但是遇到了bug如下(忘记截图了) /usr/bin/ld: cannot find -lstdc++ collect2: ld returned 1 exit status 从报错来看,应该是没有找到libstdc++.so或者是libstdc++.so.6的文件 但是查了网上的各个文章,有说是应为32位64位不同,需要安装libstdc++-4.4.7-4.el6.i686的 也有说是lib中文件名需要软连接一下...
collect2: error: ld returned 1 exit status make[1]: *** [Makefile:105: product_timestamp] Error 1 make[1]: Leaving directory '/home/caoyue/yuecao/chipyard_test/chipyard/sims/vcs/generated-src/chipyard.TestHarness.RocketConfig/chipyard.TestHarness.RocketConfig' ...
Impact: rtl Tell us about your environment: Chipyard Version: branch master, Hash: 19152d3 OS: Linux chipyard-vm 5.4.0-49-generic #53~18.04.1-Ubuntu SMP Mon Sep 21 14:12:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Other: Vmware What is th...
text+0xf39): first defined here /usr/bin/ld: cannot find -lca-override_timescale=1ns/100ps collect2: error: ld returned 1 exit status make[1]: *** [product_timestamp] Error 1 make[1]: Leaving directory `/project/UVM_AXI_TEST/csrc' Make exited with status 2 CPU time: 11.309 ...
lib/vcs_save_restore_new.o: relocation R_X86_64_32S against symbol `_sigintr' can not be used when making a PIE object; recompile with -fPIE/usr/bin/ld: failedtosetdynamic section sizes: bad valuecollect2:error: ld returned1exitstatusmake:*** [Makefile:105: product_timestamp]Error1...
collect2: error: ld returned 1 exit status Answer: 1. install gcc-4.8 :'sudo apt install gcc-4.8 g++-4.8' 2. start vcs :vcs -full64 -cpp g++-4.8 -cc gcc-4.8 ... So, In makefile:VCS = vcs -full64 -cpp g++-4.8 -cc gcc-4.8 ... ...
ld -shared-o .//../simv.daidir//_csrc0.so objs/amcQw_d.o rm -f _csrc0.so ... ... ... collect2:error: ld returned1exitstatus Makefile:104: recipefortarget'product_timestamp' failed make[1]: *** [product_timestamp]Error1 make[1]: Leaving...