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

collect2: error: ld returned 1 exit status on Latest Uintah (20230422) #25

Open
StressPrecursor opened this issue Apr 23, 2023 · 1 comment

Comments

@StressPrecursor
Copy link

StressPrecursor commented Apr 23, 2023

Hello,
I am a 100% newbie to Linux. I tried to configure MPM component using the latest Uintah copy from github following steps from p44-p45 of this thesis https://doi.org/10.22215/etd/2020-13894, however I constantly got error relating to boost from /usr during the compilation process.
Switching to the stable release of Uintah 2.1.0 would make things worse, I cannot even pass the configuration part with error stating contest.cpp cannot find certain headers from boost library in /usr directory. I checked and these header files did exist and were located in /usr/include/boost.

Are there anything I can do to get an executable copy of Uintah? Any help is appreciated.

I am using Ubuntu 22.04.
These are my configuration command:

../src/configure --enable-mpm\ --with-mpi=built-in\ --enable-wasatch_3p\ --with-boost=/usr\ --with-mpi=/usr/lib/x86_64-linux-gnu/openmpi\ F77=gfortran \--enable-debug \--enable-static

following with

make -j 4

BASH output the following error after my make command.

lib/libCore_OS.a(Dir_boost.o): in function `boost::filesystem::path::filename() const':
/usr/include/boost/filesystem/path.hpp:1697: undefined reference to `boost::filesystem::detail::path_algorithms::filename_v3(boost::filesystem::path const&)'
/usr/bin/ld: lib/libCore_OS.a(Dir_boost.o): in function `boost::filesystem::path::append(boost::filesystem::path const&)':
/usr/include/boost/filesystem/path.hpp:1656: undefined reference to `boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)'
/usr/bin/ld: lib/libCore_OS.a(Dir_boost.o): in function `boost::filesystem::path::filename() const':
/usr/include/boost/filesystem/path.hpp:1697: undefined reference to `boost::filesystem::detail::path_algorithms::filename_v3(boost::filesystem::path const&)'
/usr/bin/ld: lib/libCore_OS.a(Dir_boost.o): in function `boost::filesystem::path::append(char const*, char const*)':
/usr/include/boost/filesystem/path.hpp:1668: undefined reference to `boost::filesystem::detail::path_algorithms::append_v3(boost::filesystem::path&, char const*, char const*)'
/usr/bin/ld: lib/libCore_OS.a(Dir_boost.o): in function `void boost::sp_adl_block::intrusive_ptr_release<boost::filesystem::detail::dir_itr_imp, boost::sp_adl_block::thread_safe_counter>(boost::sp_adl_block::intrusive_ref_counter<boost::filesystem::detail::dir_itr_imp, boost::sp_adl_block::thread_safe_counter> const*)':
/usr/include/boost/smart_ptr/intrusive_ref_counter.hpp:173: undefined reference to `boost::filesystem::detail::dir_itr_imp::~dir_itr_imp()'
/usr/bin/ld: /usr/include/boost/smart_ptr/intrusive_ref_counter.hpp:173: undefined reference to `boost::filesystem::detail::dir_itr_imp::operator delete(void*)'
collect2: error: ld returned 1 exit status
make: *** [/home/hahah/Uintah/src/build_scripts/program.mk:74: StandAlone/tools/dumpfields/dumpfields] Error 1
make: *** Waiting for unfinished jobs.... 

For v2.1.0 Uintah with identical input I got this error during the configuration

checking for petsc library and header - try 1 (petsc superlu_dist_3.3 amd.2.2.2 dmumps superlu_4.3 umfpack triangle spai parmetis chaco metis mumps_common scalapack pord) (optional)... not found
checking for petsc library and header - try 2 (petsc) (optional)... yes
checking for boost library (mt version) and include headers (optional)... not found
checking for boost library (non-mt) and include headers (optional)... not found
configure: error: Did not find boost in: '/usr'.

whereas in the latest build Uintah this boost library (non-mt) could be found and configuration proceeded normally

checking for petsc library and header - try 1 (petsc superlu_dist_3.3 amd.2.2.2 dmumps superlu_4.3 umfpack triangle spai parmetis chaco metis mumps_common scalapack pord) (optional)... not found
checking for petsc library and header - try 2 (petsc) (optional)... yes
checking for boost library (mt version) and include headers (optional)... not found
checking for boost library (non-mt) and include headers (optional)... yes
checking for boost filesystem v3 namespace... (optional)... not found
@wangdpro
Copy link

wangdpro commented Apr 23, 2023 via email

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