-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
link order: local target and a remote package depend the same package #1903
Comments
你更新到 master 然后 重装 folly 试下,2.6.1里面有个link bug,后来 master 上有修复 |
我跑了 |
拉了你的代码试了下,编译不过
|
抱歉,之前提升了编译器warning级别。现在已经修了。https://github.com/qqiangwu/cloudkv/runs/4498583342?check_suite_focus=true |
更新到 dev 再试试,xmake update -s dev |
ok了,感谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
描述问题
编译test相关target时,target依赖了fmt和folly,folly也依赖了fmt,在macos上是正常链接的,但是在ubuntu:20.04上,链接会出问题,报folly到不到fmt中的符号。
链接命令是
排查下来的原因是,在link xxx_test里,link的order是先fmt,再folly。经过排查,把fmt移动到folly后面就解决了。
![image](https://user-images.githubusercontent.com/2892107/145668516-fe0b0633-38c5-4da9-86cb-1343aa400994.png)
但是这样改还是有些费劲,需要人工来resolve依赖顺序。
期待的结果
链接正常
错误信息
相关环境
请提供编译和运行环境信息,下面是一些必须填写的基础信息,便于我们针对性排查问题:
其他信息
https://github.com/qqiangwu/cloudkv
The text was updated successfully, but these errors were encountered: