You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux version 5.4.0-121-generic (buildd@lcy02-amd64-013) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022
xmake执行时报错,另外虽然bin文件链接出错,但是build/.objs目录下仍然会生成 .gcno文件
[ 90%]: linking.coverage persistency_test
error: /usr/bin/ld: build/linux/x86_64/coverage/persistency_test: hidden symbol `__gcov_init' in /usr/lib/gcc/x86_64-linux-gnu/9/libgcov.a(_gcov.o) is referenced by DSO
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
Xmake 版本
2.6.9
操作系统版本和架构
Linux version 5.4.0-121-generic (buildd@lcy02-amd64-013) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022
描述问题
[ 90%]: linking.coverage persistency_test
error: /usr/bin/ld: build/linux/x86_64/coverage/persistency_test: hidden symbol `__gcov_init' in /usr/lib/gcc/x86_64-linux-gnu/9/libgcov.a(_gcov.o) is referenced by DSO
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
期待的结果
正常编译生成unittest可执行程序
工程配置
The text was updated successfully, but these errors were encountered: