Project

General

Profile

Bug #2020

Mac MPI build with MacPorts clang of v6.9.0-rc2 fails configure

Added by Sam White 9 months ago. Updated 9 months ago.

Status:
Merged
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
10/27/2018
Due date:
% Done:

0%


Description

Jozsef Bakosi identified this on the mailing list. It looks like configure is somehow messing up the C++11 flags.

History

#1 Updated by Jim Phillips 9 months ago

It would be useful to post the details here. It worked on my older Mac build boxes yesterday so try not to break those fixing this.

#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:

==================

Hi folks,

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)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Users/jbakosi/tools/macports/libexec/llvm-6.0/bin

$ 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:

$ ./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;

#3 Updated by Evan Ramos 9 months ago

  • Subject changed from Mac MPI build with clang of v6.9.0-rc2 fails configure to Mac MPI build with MacPorts clang of v6.9.0-rc2 fails configure

#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

#5 Updated by Sam White 9 months ago

Can you link Jozsef to the patch and maybe he can test it soon?

#6 Updated by Sam White 9 months ago

  • Status changed from In Progress to Merged
  • Assignee set to Evan Ramos

Jozsef verified that this patch fixed the issue.

Also available in: Atom PDF