After !479:[XVM] XVM framework and the implementation of dynamic library/files the following problem appears:
# specify configuration
$ cmake -GNinja <source-path>/llvm -DCMAKE_BUILD_TYPE=Release \
$ -DCMAKE_INSTALL_PREFIX=<install-path> \
$ -DLLVM_DISTRIBUTION_COMPONENTS="cmake-exports;llvm-headers;LLVM" \
$ -DLLVM_BUILD_LLVM_DYLIB=ON \
$ -DLLVM_TARGETS_TO_BUILD="X86;AArch64"
# build
$ ninja distribution
# install
$ ninja install-distribution-stripped
# list *.so files in build folder
$ ls lib/*.so
lib/libLLVM-15.so
lib/LLVMAArch64Target.so
lib/LLVMX86Target.so
# list *.so files in install folder
$ cd <install-path>
$ ls lib/*.so
lib/libLLVM-15.0.4.so #symlink to libLLVM-15.so
lib/libLLVM-15.so
lib/libLLVM.so #symlink to libLLVM-15.so
As you can see, target-related libraries are not placed into install directory, effectively breaking any usage of the installed compiler.
感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @hhj @Pavel Kosov 。如果需要调整订阅PR、Issue的变更状态,请访问链接。
Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @hhj @Pavel Kosov for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
After PR534 the described problem appears only with -DLLVM_SPLIT_LLVM_DYLIB_TARGETS
option, so I suggest to keep this open.
登录 后才可以发表评论