45 Star 18 Fork 132

OpenHarmony / third_party_llvm-project

 / 详情

[R&D] PR479 breaks 'ninja distribution' scenario

待办的
任务 成员
创建于  
2024-05-17 23:11

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.

评论 (2)

Roman Zhuykov 创建了任务

感谢提交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.

openharmony_ci 添加了
 
waiting_for_assign
标签
Roman Zhuykov 修改了描述
Roman Zhuykov 修改了描述

After PR534 the described problem appears only with -DLLVM_SPLIT_LLVM_DYLIB_TARGETS option, so I suggest to keep this open.

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662
C++
1
https://gitee.com/openharmony/third_party_llvm-project.git
git@gitee.com:openharmony/third_party_llvm-project.git
openharmony
third_party_llvm-project
third_party_llvm-project

搜索帮助