-
-
Notifications
You must be signed in to change notification settings - Fork 810
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
rpath 配置不生效,目录都存在但是 check日志输出 全部为 no,系统目录也为 no #5852
Comments
Title: rpath configuration does not take effect, the directories all exist, but the check log output is all no, and the system directory is also no. |
加 -vD 给下 log |
Add -vD to log |
log 如下 xmake build -vD gcu_test_tkvcache_update [ 62%]: linking.release libgcu_tkvcache_lib.so create ok! |
target("gcu_test_tkvcache_update") 构建命令如下: xmake build -vD gcu_test_tkvcache_update |
logs 不完整,没看到 check flags 的 logs xmake f -cvD
xmake -rvD |
The logs are incomplete and the logs of check flags are not seen. xmake f -cvD
xmake -rvD |
Xmake 版本
2.9.6
操作系统版本和架构
Linux algserver 5.4.0-128-generic #144-Ubuntu SMP Tue Sep 20 11:00:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
描述问题
checking for flags (-Wl,-rpath=/opt/tops/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /opt/tops/lib) ... no
checking for flags (-Wl,-rpath=/usr/local/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /usr/local/lib) ... no
checking for flags (-Wl,-rpath=/usr/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /usr/lib) ... no
期待的结果
rpath 生效
工程配置
target("gcu_test_tkvcache_update")
set_kind("binary")
if is_mode("debug") then
add_defines("DEBUG")
add_cxxflags("-g")
end
add_includedirs("./include")
-- add_includedirs("/opt/tops/factor_backend/lib/clang/11.0.0/include/")
add_includedirs("/opt/tops/include/tops_wrappers")
set_toolchains("venus_clang")
add_deps("gcu_tkvcache_lib")
add_linkdirs("$(projectdir)/gcu3.0/lib")
add_rpathdirs("$(projectdir)/gcu3.0/lib/")
add_files("./test/test_embeddingcacheUpdate.cc")
set_targetdir("$(projectdir)/gcu3.0/lib")
附加信息和错误日志
checking for cmake ... no
checking for cmake ... /usr/local/bin/cmake
checking for xmake::benchmark ... benchmark 1.8.5
checking for clang++ ... /opt/tops/bin/clang++
checking for the c++ compiler (cxx) ... clang++
checking for /opt/tops/bin/clang++ ... ok
checking for the c++ compiler (cxx) ... clang++
checking for flags (-fPIC) ... no
checking for flags (-fvisibility-inlines-hidden) ... ok
checking for flags (-O3) ... no
checking for flags (-DNDEBUG) ... ok
checking for clang++ ... /opt/tops/bin/clang++
checking for the shared library linker (sh) ... clang++
checking for flags (-fPIC) ... no
checking for flags (-Wl,-rpath=/opt/tops/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /opt/tops/lib) ... no
checking for flags (-Wl,-rpath=/usr/local/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /usr/local/lib) ... no
checking for flags (-Wl,-rpath=/usr/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /usr/lib) ... no
checking for clang++ ... /opt/tops/bin/clang++
checking for the linker (ld) ... clang++
checking for flags (-fPIC) ... no
checking for flags (-Wl,-rpath=/mae_pat/zhipeng.li/develop/project/git_projects/inspire-op/gcu3.0/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /mae_pat/zhipeng.li/develop/project/git_projects/inspire-op/gcu3.0/lib) ... no
checking for flags (-Wl,-rpath=@loader_path) ... no
checking for flags (-Xlinker -rpath -Xlinker @loader_path) ... no
checking for flags (-Wl,-rpath=/opt/tops/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /opt/tops/lib) ... no
checking for flags (-Wl,-rpath=/usr/local/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /usr/local/lib) ... no
checking for flags (-Wl,-rpath=/usr/lib) ... no
checking for flags (-Xlinker -rpath -Xlinker /usr/lib) ... no
The text was updated successfully, but these errors were encountered: