Closed rrajasekpro closed 4 years ago
This is a problem with your C++ library, not with SuiteSparse.
gcc 6.1.0 should be fine, as it fully supports C++11 (and 14 and most of 17). Also, the current version of Mongoose in SuiteSparse doesn’t even require C++11, so that shouldn’t be a show-stopper either way.
It seems to be a problem with different versions of GCC compiling different portions of the code, or an outdated version of libstdc++. Ultimately, a version mismatch in the toolchain. I would suggest trying:
yum upgrade libstdc++
or attempt to explicitly link with the version that comes with GCC 6.
Thank you. I will try that and let you know. But can you confirm the steps I took?
The steps you used are fine. It's your library setup for gcc and/or libc++11 that is broken.
On Fri, Apr 3, 2020 at 1:10 PM rrajasekpro notifications@github.com wrote:
Thank you. I will try that and let you know. But can you confirm the steps I took?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/DrTimothyAldenDavis/SuiteSparse/issues/28#issuecomment-608585555, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYIIOOFZRS3KN4LQY4DTJ3RKYRAHANCNFSM4LVJSRUA .
Describe the bug I am trying to install SuiteSparse 5.7.1 on my RHEL box
To Reproduce
tar zxvf SuiteSparse-5.7.1.tar.gz
/home/rrajasek/SuiteSparse-5.7.1/Mongoose/build' [ 26%] Built target mongoose_lib_dbg make[4]: Entering directory
/home/rrajasek/SuiteSparse-5.7.1/Mongoose/build' Scanning dependencies of target mongoose_unit_test_graph make[4]: Leaving directory/home/rrajasek/SuiteSparse-5.7.1/Mongoose/build' make[4]: Entering directory
/home/rrajasek/SuiteSparse-5.7.1/Mongoose/build' [ 27%] Building CXX object CMakeFiles/mongoose_unit_test_graph.dir/Tests/Mongoose_UnitTest_Graph_exe.o [ 28%] Linking CXX executable tests/mongoose_unit_test_graph lib/libmongoose_dbg.a(Mongoose_IO.o): In functionMongoose::read_graph(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': /home/rrajasek/SuiteSparse-5.7.1/Mongoose/Source/Mongoose_IO.cpp:34: undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const' lib/libmongoose_dbg.a(Mongoose_IO.o): In function
Mongoose::read_matrix(char const, char (&) [4])': /home/rrajasek/SuiteSparse-5.7.1/Mongoose/Source/Mongoose_IO.cpp:85: undefined reference to `std::__cxx11::basic_string<char, std::char_traitsstd::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /home/rrajasek/SuiteSparse-5.7.1/Mongoose/Source/Mongoose_IO.cpp:85: undefined reference to
std::cxx11::basic_string<char, std::char_traits/home/rrajasek/SuiteSparse-5.7.1/Mongoose/build' make[2]: *** [all] Error 2 make[2]: Leaving directory
/home/rrajasek/SuiteSparse-5.7.1/Mongoose/build' /bin/sh: ./bin/demo: No such file or directory make[1]: [default] Error 127 make[1]: Leaving directory `/home/rrajasek/SuiteSparse-5.7.1/Mongoose' make: [go] Error 2Expected behavior clean install of SuiteSparse
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: RHEL 7
compiler
gcc --version
gcc (GCC) 6.1.0 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
BLAS and LAPACK library, if applicable Not sure about whether I need this or not
Additional context I have verified with Dr Davis that my cmake works.