Skip to content
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

docker aarch64构建失败 #843

Closed
lld1995 opened this issue Jan 10, 2025 · 9 comments
Closed

docker aarch64构建失败 #843

lld1995 opened this issue Jan 10, 2025 · 9 comments

Comments

@lld1995
Copy link

lld1995 commented Jan 10, 2025

[ 77%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/execution_plan/ops/op_gql_merge.cpp.o
[ 77%] Linking CXX executable ../output/algo/feature_float_embed
../output/liblgraph.so: undefined reference to sgesvd_' ../output/liblgraph.so: undefined reference to dsyev_'
../output/liblgraph.so: undefined reference to dgetrf_' ../output/liblgraph.so: undefined reference to sgetrf_'
../output/liblgraph.so: undefined reference to sgelsd_' ../output/liblgraph.so: undefined reference to dgesvd_'
../output/liblgraph.so: undefined reference to sgetri_' ../output/liblgraph.so: undefined reference to dgetri_'
collect2: 错误:ld 返回 1
make[2]: *** [output/algo/trustrank_embed] Error 1
make[1]: *** [procedures/CMakeFiles/trustrank_embed.dir/all] Error 2
[ 77%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/execution_plan/ops/op_node_by_id_seek.cpp.o
../output/liblgraph.so: undefined reference to sgesvd_' ../output/liblgraph.so: undefined reference to dsyev_'
../output/liblgraph.so: undefined reference to dgetrf_' ../output/liblgraph.so: undefined reference to sgetrf_'
../output/liblgraph.so: undefined reference to sgelsd_' ../output/liblgraph.so: undefined reference to dgesvd_'
../output/liblgraph.so: undefined reference to sgetri_' ../output/liblgraph.so: undefined reference to dgetri_'
collect2: 错误:ld 返回 1
make[2]: *** [output/algo/feature_float_embed] Error 1
make[1]: *** [procedures/CMakeFiles/feature_float_embed.dir/all] Error 2
[ 77%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/execution_plan/ops/op_traversal.cpp.o
[ 77%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/execution_plan/ops/op_gql_remove.cpp.o
[ 78%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/execution_plan/scheduler.cpp.o
[ 78%] Linking CXX shared library ../output/liblgraph_python_api.so
[ 78%] Built target lgraph_python_api
[ 78%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/filter/filter.cpp.o
[ 78%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/filter/iterator.cpp.o
[ 78%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/graph/graph.cpp.o
[ 78%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/graph/node.cpp.o
[ 78%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/graph/relationship.cpp.o
[ 78%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/grouping/group.cpp.o
[ 78%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/parser/cypher_base_visitor.cpp.o
[ 79%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/parser/cypher_base_visitor_v2.cpp.o
[ 79%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/parser/cypher_error_listener.cpp.o
[ 79%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/parser/expression.cpp.o
[ 79%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/parser/symbol_table.cpp.o
[ 79%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/parser/generated/LcypherLexer.cpp.o
[ 79%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/parser/generated/LcypherParser.cpp.o
[ 79%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/parser/generated/LcypherVisitor.cpp.o
[ 79%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/procedure/procedure.cpp.o
[ 80%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/procedure/utils.cpp.o
[ 80%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/resultset/record.cpp.o
[ 80%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/monitor/monitor_manager.cpp.o
[ 80%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/execution_plan/optimization/rewrite/schema_rewrite.cpp.o
[ 80%] Building CXX object src/CMakeFiles/lgraph_cypher_lib.dir/cypher/execution_plan/optimization/rewrite/graph.cpp.o
[ 80%] Linking CXX static library ../output/liblgraph_cypher_lib.a

@zhangwh807
Copy link
Collaborator

你用的compile镜像是什么版本?用最新的镜像试试: docker pull tugraph/tugraph-compile-centos7:1.3.5

@lld1995
Copy link
Author

lld1995 commented Jan 10, 2025

你用的compile镜像是什么版本?用最新的镜像试试: docker pull tugraph/tugraph-compile-centos7:1.3.5

用的ci/images下tugraph-compile-arm64v8-centos7-Dockerfile,直接构建的

@zhangwh807
Copy link
Collaborator

不建议用Dockerfile直接构建,想安装TuGraph的话,建议直接拉镜像,如果是你arm环境可以拉这个:docker pull tugraph/tugraph-runtime-arm64v8-centos7:4.5.1

@lld1995
Copy link
Author

lld1995 commented Jan 10, 2025

不建议用Dockerfile直接构建,想安装TuGraph的话,建议直接拉镜像,如果是你arm环境可以拉这个:docker pull tugraph/tugraph-runtime-arm64v8-centos7:4.5.1

好的,之前同事拉的4.1.0的版本运行会挂,才想重新编译下看看

@lld1995
Copy link
Author

lld1995 commented Jan 10, 2025

不建议用Dockerfile直接构建,想安装TuGraph的话,建议直接拉镜像,如果是你arm环境可以拉这个:docker pull tugraph/tugraph-runtime-arm64v8-centos7:4.5.1

image
image

运行报错

@lld1995
Copy link
Author

lld1995 commented Jan 10, 2025

不建议用Dockerfile直接构建,想安装TuGraph的话,建议直接拉镜像,如果是你arm环境可以拉这个:docker pull tugraph/tugraph-runtime-arm64v8-centos7:4.5.1

image
#477

似乎又回到编译问题上了.............

@ljcui
Copy link
Collaborator

ljcui commented Jan 10, 2025

不建议用Dockerfile直接构建,想安装TuGraph的话,建议直接拉镜像,如果是你arm环境可以拉这个:docker pull tugraph/tugraph-runtime-arm64v8-centos7:4.5.1

image #477

似乎又回到编译问题上了.............

docker pull tugraph/tugraph-compile-arm64v8-centos7:1.3.4

这个是arm的编译镜像,用这个镜像编译tag是4.5.1的tugraph-db代码应该是可以编译过的。不要编译最新的代码,最新的代码加了点三方库,arm编译镜像里面还没有来得及添加。

@zhangwh807
Copy link
Collaborator

https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/tugraph-4.5.1/tugraph-4.5.1-1.el7.aarch64.rpm 在你的tugraph/tugraph-runtime-arm64v8-centos7:4.5.1容器中重新安装一下tugraph-4.5.1-1.el7.aarch64.rpm,用如下命令:
rpm -ivh tugraph-4.5.1-1.el7.aarch64.rpm --force --nodeps

@lld1995
Copy link
Author

lld1995 commented Jan 10, 2025

https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/tugraph-4.5.1/tugraph-4.5.1-1.el7.aarch64.rpm 在你的tugraph/tugraph-runtime-arm64v8-centos7:4.5.1容器中重新安装一下tugraph-4.5.1-1.el7.aarch64.rpm,用如下命令: rpm -ivh tugraph-4.5.1-1.el7.aarch64.rpm --force --nodeps

安装rpm后可以了,谢谢

@lld1995 lld1995 closed this as completed Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants