phylanx icon indicating copy to clipboard operation
phylanx copied to clipboard

Error compiling Phylanx with Clang

Open khuck opened this issue 6 years ago • 2 comments

Building phylanx on OSX with macports installed Clang 9.0 gives this build error:

[  4%] Building CXX object src/CMakeFiles/phylanx_component.dir/execution_tree/compile.cpp.o
In file included from /Users/khuck/src/phylanx/src/execution_tree/compile.cpp:9:
In file included from /Users/khuck/src/phylanx/phylanx/execution_tree/compile.hpp:12:
In file included from /Users/khuck/src/phylanx/phylanx/execution_tree/compiler/compiler.hpp:13:
/Users/khuck/src/phylanx/phylanx/execution_tree/compiler/actors.hpp:198:43: error: arithmetic on a pointer to
      an incomplete type 'std::__1::shared_ptr<std::__1::basic_string<char> []>::element_type' (aka
      'std::__1::basic_string<char> []')
                        named_args_.get() + num_named_args_, kwarg.first);
                        ~~~~~~~~~~~~~~~~~ ^
/Users/khuck/src/phylanx/phylanx/execution_tree/compiler/actors.hpp:199:49: error: arithmetic on a pointer to
      an incomplete type 'std::__1::shared_ptr<std::__1::basic_string<char> []>::element_type' (aka
      'std::__1::basic_string<char> []')
                    if (it == named_args_.get() + num_named_args_)
                              ~~~~~~~~~~~~~~~~~ ^
2 errors generated.
make[2]: *** [src/CMakeFiles/phylanx_component.dir/execution_tree/compile.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/phylanx_component.dir/all] Error 2
make: *** [all] Error 2

khuck avatar Dec 19 '19 21:12 khuck

This looks like a missing header file (<string> or <memory>).

hkaiser avatar Dec 19 '19 22:12 hkaiser

@hkaiser I don't think so - phylanx/execution_tree/compiler/actors.hpp has both <string> and <memory> already...

khuck avatar Dec 20 '19 00:12 khuck