Bug #1600
Tests not compiling on MacOS Lion 64
Status: | Resolved | Start date: | 08/24/2013 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | M. Rolf | % Done: | 100% | |
Category: | - | |||
Target version: | - |
Description
Boost tests fail on lion64 with a linker error:
Undefined symbols for architecture x86_64, e.g. https://ci.cor-lab.org/view/GradSchool/job/nemomath-trunk-macos/label=MAC_OS_lion_64bit/24/console "boost::test_tools::print_log_value<char>::operator()(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char)", referenced from: std::__1::basic_ostream<char, std::__1::char_traits<char> >& boost::test_tools::tt_detail::operator<< <char>(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, boost::test_tools::tt_detail::print_helper_t<char> const&) in MappingInversion.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Googling suggests, that the problem is due to using libc++
on mac instead of libstdc++
, because boost seems to be linked against libstdc++
. Why do we use libc++
in the first place?
History
#1 Updated by Anonymous almost 11 years ago
- Subject changed from Boost tests fail on MacOS Lion 64 to Tests not compiling on MacOS Lion 64
#2 Updated by Anonymous almost 11 years ago
- Status changed from Feedback to Resolved
- % Done changed from 0 to 100
We were using libc++
instead of libstdc++
because of the c++11 support, which cause problem because boost was linked against libstdc++
.
Building nemomath without c++11 support fixes the issues and buuilds the tests again:
https://ci.cor-lab.org/view/GradSchool/job/nemomath-trunk-macos/label=MAC_OS_lion_64bit/29/