Mac MPI build with MacPorts clang of v6.9.0-rc2 fails configure
Jozsef Bakosi identified this on the mailing list. It looks like configure is somehow messing up the C++11 flags.
#2 Updated by Matthias Diener 9 months ago
- Subject changed from Mac build with clang of v6.9.0-rc2 fails configure to Mac MPI build with clang of v6.9.0-rc2 fails configure
Here is what Jozsef wrote:
I'm trying to build on mac using a macports-installed clang and openmpi:
$ clang --version
clang version 6.0.1 (tags/RELEASE_601/final)
Thread model: posix
$ mpicc --showme
/Users/jbakosi/tools/macports/bin/clang-mp-6.0 -I/Users/jbakosi/tools/macports/include/openmpi-clang60 -L/Users/jbakosi/tools/macports/lib -L/Users/jbakosi/tools/macports/lib/openmpi-clang60 -lmpi
$ ./build charm++ mpi-darwin-x86_64
tmp/charmconfig.out and tmp/config.log attached and I'm not sure what
the problem is.
Using a similar procedure with gcc7 works fine. Any help is appreciated.
Please let me know if you need more information.
Relevant error from charmconfig.out:
mpicxx -mmacosx-version-min=10.7 -D_DARWIN_C_SOURCE -I../include -I. -c test.cpp -o test.o -std=c++11 test.cpp:8:6: error: no template named 'unique_ptr' in namespace 'std' std::unique_ptr<int> i;
#4 Updated by Evan Ramos 9 months ago
- Status changed from New to In Progress
I think this should fix it but I'm not 100% it's the cause of the problem: https://charm.cs.illinois.edu/gerrit/#/c/charm/+/4743