如何让xmake识别交叉编辑工具链内的包? #7616
Replies: 2 comments 1 reply
|
初步判断了一下,应该是xmake在对libffi进行配置的时候出现错误,导致./configure脚本接收到的架构信息里完全没有riscv64的内容(从命令行参数得知,只传递了host的i686),从而导致符号丢失,之前还没有这个问题的( |
1 reply
|
不会去从 工具链中找,除非改进 ffi 包的 on_fetch 针对性加查找逻辑。 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
我使用了debootstrap构建了一些sysroot用于交叉编译,可以在此处下载 => https://github.com/OpenMinecraft-Dev/cross-toolchain-sysroot/releases
在这些sysroot中存在libffi.so(以及对应的pkgconf配置文件),我使用了如下命令进行配置:
xmake f -p linux -a riscv64 --toolchain=llvm --sdk=/path/to/sdk -yvxmake还是选择在github下载libffi库的源码并编译,并且在riscv64/ppc64le/s390x架构中出现配置错误,导致libffi.a库中缺少ffi_call符号
ld.lld: error: undefined symbol: ffi_prep_cif_machdep ld.lld: error: undefined symbol: ffi_prep_closure_loc ld.lld: error: undefined symbol: ffi_call我应该如何解决这个问题?
All reactions