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 · 17 comments
Closed

docker aarch64构建失败 #843

lld1995 opened this issue Jan 10, 2025 · 17 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
@lld1995
Copy link
Author

lld1995 commented Jan 14, 2025

tests/db/test_tugraph_db.py", line 194, in create_edge_label
self.session.run(f"CALL db.createEdgeLabel('{label_name}', '{constraints}', {properties_command})")
File "/home/admin/miniconda3/envs/baizhan/lib/python3.10/site-packages/neo4j/_sync/work/session.py", line 299, in run
self._auto_result._buffer_all()
File "/home/admin/miniconda3/envs/baizhan/lib/python3.10/site-packages/neo4j/_sync/work/result.py", line 440, in _buffer_all
self._buffer()
File "/home/admin/miniconda3/envs/baizhan/lib/python3.10/site-packages/neo4j/_sync/work/result.py", line 426, in _buffer
for record in self:
File "/home/admin/miniconda3/envs/baizhan/lib/python3.10/site-packages/neo4j/_sync/work/result.py", line 378, in iter
self._connection.fetch_message()
File "/home/admin/miniconda3/envs/baizhan/lib/python3.10/site-packages/neo4j/_sync/io/_common.py", line 178, in inner
func(*args, **kwargs)
File "/home/admin/miniconda3/envs/baizhan/lib/python3.10/site-packages/neo4j/_sync/io/_bolt.py", line 860, in fetch_message
res = self._process_message(tag, fields)
File "/home/admin/miniconda3/envs/baizhan/lib/python3.10/site-packages/neo4j/_sync/io/_bolt4.py", line 368, in _process_message
response.on_failure(summary_metadata or {})
File "/home/admin/miniconda3/envs/baizhan/lib/python3.10/site-packages/neo4j/_sync/io/_common.py", line 245, in on_failure
raise Neo4jError.hydrate(**metadata)
neo4j.exceptions.DatabaseError: {code: CypherException} {message: CypherException: visit(...) failed at src/cypher/arithmetic/ast_expr_evaluator.cpp:480}

使用rpm包安装后执行函数报错

@lld1995 lld1995 reopened this Jan 14, 2025
@lld1995
Copy link
Author

lld1995 commented Jan 14, 2025

[20250114 05:55:40.949829 0x0000ffe010e2de30 ERROR src/server/bolt_handler.cpp:232] [CypherException] CypherException: visit(...) failed at src/cypher/arithmetic/ast_expr_evaluator.cpp:480

lgraph_server 报错日志

@zhangwh807
Copy link
Collaborator

应该是语法错误,能否贴一下完整的createEdgeLabel语句,另外需要注意createEdgeLabel时数据类型需要加上引号。

@lld1995
Copy link
Author

lld1995 commented Jan 14, 2025

应该是语法错误,能否贴一下完整的createEdgeLabel语句,另外需要注意createEdgeLabel时数据类型需要加上引号。

'CALL db.createEdgeLabel('relationship', '[["entity","entity"]]', 'content',STRING,False)'

在x64上正常运行的

@zhangwh807
Copy link
Collaborator

看下版本是不是不一致,前面的版本数据类型不用加引号,近几个版本,4.5.0,4.5.1等需要加上

@lld1995
Copy link
Author

lld1995 commented Jan 14, 2025

看下版本是不是不一致,前面的版本数据类型不用加引号,近几个版本,4.5.0,4.5.1等需要加上

arm上是4.5.1的版本,就上面安装的那个rpm包

@zhangwh807
Copy link
Collaborator

4.5.1就用这个语句: CALL db.createEdgeLabel('relationship', '[["entity","entity"]]', 'content','STRING',False)
数据类型STRING改为‘STRING’,数据类型都加上引号

@lld1995
Copy link
Author

lld1995 commented Jan 14, 2025

4.5.1就用这个语句: CALL db.createEdgeLabel('relationship', '[["entity","entity"]]', 'content','STRING',False) 数据类型STRING改为‘STRING’,数据类型都加上引号

x64上同事用成老版本了,不好意思,感谢

@lld1995 lld1995 closed this as completed Jan 14, 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