Coder Social home page Coder Social logo

编译时cmake报错 about x-deeplearning HOT 9 CLOSED

alibaba avatar alibaba commented on August 24, 2024
编译时cmake报错

from x-deeplearning.

Comments (9)

yiling-dc avatar yiling-dc commented on August 24, 2024 2

请确认git clone 的时候有没有添加 --recursive 选项

from x-deeplearning.

lxl910915 avatar lxl910915 commented on August 24, 2024

编译时make -j32报错

[ 70%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_map_field.cc.o
[ 70%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_message.cc.o
[ 70%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_message_field.cc.o
[ 70%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc.o
[ 70%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc.o
/usr/bin/ld: cannot find -lps_network_static
/usr/bin/ld: cannot find -lseastar
/usr/bin/ld: cannot find -lcares-seastar
collect2: error: ld returned 1 exit status
ps-plus/CMakeFiles/ps_client_test.dir/build.make:314: recipe for target 'ps-plus/ps_client_test' failed
make[2]: *** [ps-plus/ps_client_test] Error 1
CMakeFiles/Makefile2:3053: recipe for target 'ps-plus/CMakeFiles/ps_client_test.dir/all' failed
make[1]: *** [ps-plus/CMakeFiles/ps_client_test.dir/all] Error 2
[ 70%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/php/php_generator.cc.o
[ 70%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.cc.o
[ 70%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.pb.cc.o
[ 71%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/ruby/ruby_generator.cc.o
[ 71%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/python/python_generator.cc.o
[ 71%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/subprocess.cc.o
[ 71%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/zip_writer.cc.o
[ 71%] Linking CXX executable ps_common_test
[ 72%] Linking CXX executable tool
/usr/bin/ld: cannot find -lps_network_static
/usr/bin/ld: cannot find -lseastar
/usr/bin/ld: cannot find -lcares-seastar
collect2: error: ld returned 1 exit status
ps-plus/CMakeFiles/ps_common_test.dir/build.make:782: recipe for target 'ps-plus/ps_common_test' failed
make[2]: *** [ps-plus/ps_common_test] Error 1
CMakeFiles/Makefile2:2845: recipe for target 'ps-plus/CMakeFiles/ps_common_test.dir/all' failed
make[1]: *** [ps-plus/CMakeFiles/ps_common_test.dir/all] Error 2
/usr/bin/ld: cannot find -lps_network_static
/usr/bin/ld: cannot find -lseastar
/usr/bin/ld: cannot find -lcares-seastar
collect2: error: ld returned 1 exit status
ps-plus/CMakeFiles/tool.dir/build.make:103: recipe for target 'ps-plus/tool' failed
make[2]: *** [ps-plus/tool] Error 1
CMakeFiles/Makefile2:2889: recipe for target 'ps-plus/CMakeFiles/tool.dir/all' failed
make[1]: *** [ps-plus/CMakeFiles/tool.dir/all] Error 2
[ 73%] Linking CXX executable ps_server_test
[ 73%] Linking CXX static library libprotoc.a
[ 73%] Linking CXX executable ps
/usr/bin/ld: cannot find -lps_network_static
/usr/bin/ld: cannot find -lseastar
/usr/bin/ld: cannot find -lcares-seastar
collect2: error: ld returned 1 exit status
ps-plus/CMakeFiles/ps_server_test.dir/build.make:756: recipe for target 'ps-plus/ps_server_test' failed
make[2]: *** [ps-plus/ps_server_test] Error 1
CMakeFiles/Makefile2:3330: recipe for target 'ps-plus/CMakeFiles/ps_server_test.dir/all' failed
make[1]: *** [ps-plus/CMakeFiles/ps_server_test.dir/all] Error 2
[ 73%] Built target libprotoc
/usr/bin/ld: cannot find -lps_network_static
/usr/bin/ld: cannot find -lseastar
/usr/bin/ld: cannot find -lcares-seastar
collect2: error: ld returned 1 exit status
ps-plus/CMakeFiles/ps.dir/build.make:103: recipe for target 'ps-plus/ps' failed
make[2]: *** [ps-plus/ps] Error 1
CMakeFiles/Makefile2:2970: recipe for target 'ps-plus/CMakeFiles/ps.dir/all' failed
make[1]: *** [ps-plus/CMakeFiles/ps.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

请问是什么问题? 谢谢!
@yiling-dc

from x-deeplearning.

peipei-pig avatar peipei-pig commented on August 24, 2024

@lxl910915 你解决了这个问题吗?我源码编译的时候也遇到了:
/usr/bin/ld: cannot find -lps_network_static
/usr/bin/ld: cannot find -lseastar
/usr/bin/ld: cannot find -lcares-seastar

from x-deeplearning.

lxl910915 avatar lxl910915 commented on August 24, 2024

@lxl910915 你解决了这个问题吗?我源码编译的时候也遇到了:
/usr/bin/ld: cannot find -lps_network_static
/usr/bin/ld: cannot find -lseastar
/usr/bin/ld: cannot find -lcares-seastar

@peipei-pig 还没有解决,使用官方提供的xdl镜像来编译,也是这个错误。

from x-deeplearning.

shanshanpt avatar shanshanpt commented on August 24, 2024

@peipei-pig @lxl910915
确认git clone 的时候有添加 --recursive 选项,同时确认seastar lib编译成功。在cmake .. -DTF_BACKEND=1的时候会生成seastar lib。

from x-deeplearning.

lxl910915 avatar lxl910915 commented on August 24, 2024

@peipei-pig @lxl910915
确认git clone 的时候有添加 --recursive 选项,同时确认seastar lib编译成功。在cmake .. -DTF_BACKEND=1的时候会生成seastar lib。
cmake .. -DTF_BACKEND=1之后,生产了这些seastar相关的包:

./ps-plus/CMakeFiles/seastar_service.dir
./ps-plus/CMakeFiles/seastar_service.dir/ps-plus/service/seastar
./ps-plus/CMakeFiles/seastar_service.dir/ps-plus/service/seastar/lib/seastar_server_client_lib.cc.o
./ps-plus/CMakeFiles/seastar_service.dir/ps-plus/service/seastar/lib/seastar_client_lib.cc.o
./ps-plus/CMakeFiles/seastar_service.dir/ps-plus/service/seastar/lib/seastar_server_lib.cc.o
./ps-plus/CMakeFiles/seastar_service.dir/ps-plus/service/seastar/lib/seastar_request_processor.cc.o
./ps-plus/CMakeFiles/seastar_service.dir/ps-plus/service/seastar/lib/seastar_response_processor.cc.o
./ps-plus/libseastar_service.a

请问seastar lib编译是否成功?
@shanshanpt

from x-deeplearning.

songyue1104 avatar songyue1104 commented on August 24, 2024

seastar没有编译成功,查看一下seastar相关的编译日志,编译成功应该包含下面三个静态库:libcares-seastar.a libseastar.a libps_network_static.a

from x-deeplearning.

shanshanpt avatar shanshanpt commented on August 24, 2024

@lxl910915 seastar_service是成功的,确认一下:
x-deeplearning/xdl/third_party/seastar/build/release/libcares-seastar.a
x-deeplearning/xdl/third_party/seastar/build/release/libseastar.a
x-deeplearning/xdl/third_party/seastar/service/build_script/libps_network_static.a
这三个是否存在了。

from x-deeplearning.

lxl910915 avatar lxl910915 commented on August 24, 2024

参考:#76

from x-deeplearning.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.