-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
package 中的 linkgroups 丢失 -Wl,--whole-archive #5806
Comments
Title: package are missing |
cicd log: |
@waruqi 请问下,这个问题可以帮忙看下吗,是我用的不对还是 bug?需要我补充额外信息吗? |
@waruqi Excuse me, can you help me look into this problem? Is it something I’m using incorrectly or is it a bug? Do you need me to add additional information? |
能给个完整的最小复现工程么? |
Can you give me a complete minimal reproduction project? |
最小复现工程: https://github.com/ivanallen/test_linkgroups 最后 link 阶段 spdk_mul 这个库缺少了
|
Minimal reproduction project: https://github.com/ivanallen/test_linkgroups In the final link stage, the spdk_mul library is missing
|
好的,等后两天我看下,最近有点忙 |
Okay, I'll check it out in the next two days. I've been a little busy lately. |
试试这个 patch #5866 |
Xmake 版本
xmake v2.8.5+dev.9efd45f
操作系统版本和架构
Linux pain 6.5.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 7 15:10:09 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
描述问题
我写了 2 个 package,分别是 dpdk 和 spdk。这两个包中的 lib 库都使用了 linkgroups 功能。
依赖关系是这样:
spdk 和 dpdk 都使用了 linkgroups 这个功能。但是主程序最后 Link 的时候,dpdk 的 -Wl,--whole-archive 丢失。
它会像下面这样 link,d1 d2 d3 这几个文件没有被 --whole-archive 包起来。
于是报 Undefine 的错误。
如果我改成这样
那么 xmake 会像下面这样去 link,出现重复 link d1 d2 d3,结果会报多重定义错误。
期待的结果
主程序 link 最后 link 的时候,带上 dpdk 的 -Wl,--whole-archive
工程配置
package spdk
附加信息和错误日志
部分报错日志
The text was updated successfully, but these errors were encountered: