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

[BUG] Failed Build GraphScope with pre-configured make with docker #4321

Open
JackyYangPassion opened this issue Nov 13, 2024 · 2 comments
Open

Comments

@JackyYangPassion
Copy link
Contributor

Describe the bug
Build GraphScope with pre-configured make with docker Failed

Error Log

In file included from /root/workspace/GraphScope/analytical_engine/core/object/fragment_wrapper.h:61,
                 from /root/workspace/GraphScope/analytical_engine/core/grape_instance.cc:61:
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h: In member function 'size_t gs::DynamicProjectedFragment<_vdata_t, _edata_t>::IEDestsSize() const':
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h:652:64: error: no matching function for call to 'gs::DynamicFragment::IEDests()'
  652 |   inline size_t IEDestsSize() const { return fragment_->IEDests().size(); }
      |                                              ~~~~~~~~~~~~~~~~~~^~
In file included from /root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_fragment.h:35,
                 from /root/workspace/GraphScope/analytical_engine/core/grape_instance.cc:57:
/opt/vineyard/include/grape/fragment/csr_edgecut_fragment_base.h:187:19: note: candidate: 'grape::DestList grape::CSREdgecutFragmentBase<OID_T, VID_T, VDATA_T, EDATA_T, TRAITS_T>::IEDests(const vertex_t&) const [with OID_T = gs::dynamic::Value; VID_T = long unsigned int; VDATA_T = gs::dynamic::Value; EDATA_T = gs::dynamic::Value; TRAITS_T = gs::DynamicFragmentTraits; grape::CSREdgecutFragmentBase<OID_T, VID_T, VDATA_T, EDATA_T, TRAITS_T>::vertex_t = grape::Vertex<long unsigned int>]'
  187 |   inline DestList IEDests(const vertex_t& v) const override {
      |                   ^~~~~~~
/opt/vineyard/include/grape/fragment/csr_edgecut_fragment_base.h:187:19: note:   candidate expects 1 argument, 0 provided
In file included from /root/workspace/GraphScope/analytical_engine/core/object/fragment_wrapper.h:61,
                 from /root/workspace/GraphScope/analytical_engine/core/grape_instance.cc:61:
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h: In member function 'size_t gs::DynamicProjectedFragment<_vdata_t, _edata_t>::OEDestsSize() const':
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h:658:57: error: 'using fragment_t = class gs::DynamicFragment' {aka 'class gs::DynamicFragment'} has no member named 'OEDestsSize'; did you mean 'OEDests'?
  658 |   inline size_t OEDestsSize() const { return fragment_->OEDestsSize(); }
      |                                                         ^~~~~~~~~~~
      |                                                         OEDests
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h: In member function 'size_t gs::DynamicProjectedFragment<_vdata_t, _edata_t>::IOEDestsSize() const':
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h:664:58: error: 'using fragment_t = class gs::DynamicFragment' {aka 'class gs::DynamicFragment'} has no member named 'IOEDestsSize'; did you mean 'IOEDests'?
  664 |   inline size_t IOEDestsSize() const { return fragment_->IOEDestsSize(); }
      |                                                          ^~~~~~~~~~~~
      |                                                          IOEDests
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h: In member function 'size_t gs::DynamicProjectedFragment<grape::EmptyType, grape::EmptyType>::IEDestsSize() const':
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h:961:57: error: 'using fragment_t = class gs::DynamicFragment' {aka 'class gs::DynamicFragment'} has no member named 'IEDestsSize'; did you mean 'IEDests'?
  961 |   inline size_t IEDestsSize() const { return fragment_->IEDestsSize(); }
      |                                                         ^~~~~~~~~~~
      |                                                         IEDests
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h: In member function 'size_t gs::DynamicProjectedFragment<grape::EmptyType, grape::EmptyType>::OEDestsSize() const':
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h:967:57: error: 'using fragment_t = class gs::DynamicFragment' {aka 'class gs::DynamicFragment'} has no member named 'OEDestsSize'; did you mean 'OEDests'?
  967 |   inline size_t OEDestsSize() const { return fragment_->OEDestsSize(); }
      |                                                         ^~~~~~~~~~~
      |                                                         OEDests
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h: In member function 'size_t gs::DynamicProjectedFragment<grape::EmptyType, grape::EmptyType>::IOEDestsSize() const':
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h:973:58: error: 'using fragment_t = class gs::DynamicFragment' {aka 'class gs::DynamicFragment'} has no member named 'IOEDestsSize'; did you mean 'IOEDests'?
  973 |   inline size_t IOEDestsSize() const { return fragment_->IOEDestsSize(); }
      |                                                          ^~~~~~~~~~~~
      |                                                          IOEDests
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-undef-prefix' may have been intended to silence earlier diagnostics
make[3]: *** [CMakeFiles/grape_engine.dir/build.make:90: CMakeFiles/grape_engine.dir/core/grape_instance.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/root/workspace/GraphScope/analytical_engine/build'
make[2]: *** [CMakeFiles/Makefile2:169: CMakeFiles/grape_engine.dir/all] Error 2
make[2]: Leaving directory '/root/workspace/GraphScope/analytical_engine/build'
make[1]: *** [Makefile:136: all] Error 2
make[1]: Leaving directory '/root/workspace/GraphScope/analytical_engine/build'
make: *** [Makefile:126: /root/workspace/GraphScope//analytical_engine/build/grape_engine] Error 2

To Reproduce
Steps to reproduce the behavior:

in docker cantainer with image registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-dev:latest

  1. python3 gsctl.py install-deps dev --cn
  2. source /root/.graphscope_env
  3. make analytical
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • GraphScope version: v0.29.0
  • OS: registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-dev:latest
  • Version [e.g. 10.15]
  • Kubernetes Version [e.g., 1.19]

Additional context
Add any other context about the problem here.

@lidongze0629
Copy link
Collaborator

@JackyYangPassion Thanks for reporting this here, inside the container, you don't have to install deps again, you can compile analytical engine directly.

docker run --rm -it registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-dev:v0.24.2-amd64 /bin/bash
# inside the container,with 0.29.0 GraphScope downloaded
source ~/.graphscope_env && cd GraphScope && make analytical
截屏2024-11-13 15 58 47

@JackyYangPassion
Copy link
Contributor Author

JackyYangPassion commented Nov 14, 2024

@lidongze0629 Thanks for your reply.
still build failed with this image registry.cn-hongkong.aliyuncs.com/graphscope/graphscope-dev:v0.24.2-amd64

error log

[ 96%] Building CXX object CMakeFiles/grape_engine.dir/core/server/graphscope_service.cc.o
In file included from /root/workspace/GraphScope/analytical_engine/core/object/fragment_wrapper.h:61,
                 from /root/workspace/GraphScope/analytical_engine/core/grape_instance.cc:61:
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h:652:17: error: 'size_t gs::DynamicProjectedFragment<_vdata_t, _edata_t>::IEDestsSize() const' cannot be overloaded with 'size_t gs::DynamicProjectedFragment<_vdata_t, _edata_t>::IEDestsSize() const'
  652 |   inline size_t IEDestsSize() const { return fragment_->IEDests().size(); }
      |                 ^~~~~~~~~~~
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h:650:17: note: previous declaration 'size_t gs::DynamicProjectedFragment<_vdata_t, _edata_t>::IEDestsSize() const'
  650 |   inline size_t IEDestsSize() const { return fragment_->IEDestsSize(); }
      |                 ^~~~~~~~~~~
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h: In member function 'size_t gs::DynamicProjectedFragment<_vdata_t, _edata_t>::IEDestsSize() const':
/root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_projected_fragment.h:652:64: error: no matching function for call to 'gs::DynamicFragment::IEDests()'
  652 |   inline size_t IEDestsSize() const { return fragment_->IEDests().size(); }
      |                                              ~~~~~~~~~~~~~~~~~~^~
In file included from /root/workspace/GraphScope/analytical_engine/core/fragment/dynamic_fragment.h:35,
                 from /root/workspace/GraphScope/analytical_engine/core/grape_instance.cc:57:
/opt/vineyard/include/grape/fragment/csr_edgecut_fragment_base.h:187:19: note: candidate: 'grape::DestList grape::CSREdgecutFragmentBase<OID_T, VID_T, VDATA_T, EDATA_T, TRAITS_T>::IEDests(const vertex_t&) const [with OID_T = gs::dynamic::Value; VID_T = long unsigned int; VDATA_T = gs::dynamic::Value; EDATA_T = gs::dynamic::Value; TRAITS_T = gs::DynamicFragmentTraits; grape::CSREdgecutFragmentBase<OID_T, VID_T, VDATA_T, EDATA_T, TRAITS_T>::vertex_t = grape::Vertex<long unsigned int>]'
  187 |   inline DestList IEDests(const vertex_t& v) const override {
      |                   ^~~~~~~
/opt/vineyard/include/grape/fragment/csr_edgecut_fragment_base.h:187:19: note:   candidate expects 1 argument, 0 provided
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-undef-prefix' may have been intended to silence earlier diagnostics
make[3]: *** [CMakeFiles/grape_engine.dir/build.make:90: CMakeFiles/grape_engine.dir/core/grape_instance.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/root/workspace/GraphScope/analytical_engine/build'
make[2]: *** [CMakeFiles/Makefile2:169: CMakeFiles/grape_engine.dir/all] Error 2
make[2]: Leaving directory '/root/workspace/GraphScope/analytical_engine/build'
make[1]: *** [Makefile:136: all] Error 2
make[1]: Leaving directory '/root/workspace/GraphScope/analytical_engine/build'
make: *** [Makefile:126: /root/workspace/GraphScope//analytical_engine/build/grape_engine] Error 2

Step:

1. in this image container without GraphScope Source Code
2. mount local dir 
3.  source ~/.graphscope_env && cd GraphScope && make analytical

can you help me?

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

2 participants