Hi everyone,
I am trying to compile openmc with libmesh on my mac book pro because I need to use unstructured mesh. But it is throwing me this error.
[ 96%] Linking CXX shared library lib/libopenmc.dylib
ld: warning: duplicate -rpath '/Users/fernpa/anaconda3/envs/moose/libmesh/lib' ignored
ld: warning: duplicate -rpath '/Users/fernpa/anaconda3/envs/moose/libmesh-vtk/lib' ignored
ld: warning: duplicate -rpath '/Users/fernpa/anaconda3/envs/moose/lib' ignored
Undefined symbols for architecture arm64:
"libMesh::ReplicatedMesh::renumber_elem(unsigned int, unsigned int)", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::renumber_node(unsigned int, unsigned int)", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::query_elem_ptr(unsigned int)", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::query_node_ptr(unsigned int)", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::elem_ptr(unsigned int)", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::node_ptr(unsigned int)", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::add_point(libMesh::Point const&, unsigned int, unsigned int)", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::UnstructuredMesh::copy_nodes_and_elements(libMesh::MeshBase const&, bool, unsigned int, unsigned int, unsigned long long, std::__1::unordered_map<unsigned short, unsigned short, std::__1::hash<unsigned short>, std::__1::equal_to<unsigned short>, std::__1::allocator<std::__1::pair<unsigned short const, unsigned short>>>*)", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::query_elem_ptr(unsigned int) const", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::query_node_ptr(unsigned int) const", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::point(unsigned int) const", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::elem_ptr(unsigned int) const", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::ReplicatedMesh::node_ptr(unsigned int) const", referenced from:
vtable for libMesh::Mesh in mesh.cpp.o
"libMesh::DofMap::dof_indices(libMesh::Elem const*, std::__1::vector<unsigned int, std::__1::allocator<unsigned int>>&, unsigned int, int) const", referenced from:
openmc::LibMesh::set_score_data(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::vector<double, std::__1::allocator<double>> const&, std::__1::vector<double, std::__1::allocator<double>> const&) in mesh.cpp.o
openmc::LibMesh::set_score_data(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, std::__1::vector<double, std::__1::allocator<double>> const&, std::__1::vector<double, std::__1::allocator<double>> const&) in mesh.cpp.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libopenmc.dylib] Error 1
make[1]: *** [CMakeFiles/libopenmc.dir/all] Error 2
make: *** [all] Error 2
Have someone encountered the same error ?