Skip to Content.
Sympa Menu

charm - Re: [charm] Mac build with clang of v6.9.0-rc2

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] Mac build with clang of v6.9.0-rc2


Chronological Thread 
  • From: Evan Ramos <evan AT hpccharm.com>
  • To: Jozsef Bakosi <jbakosi AT lanl.gov>
  • Cc: charm <charm AT lists.cs.illinois.edu>
  • Subject: Re: [charm] Mac build with clang of v6.9.0-rc2
  • Date: Mon, 29 Oct 2018 16:28:00 -0500
  • Authentication-results: illinois.edu; spf=none smtp.mailfrom=evan AT hpccharm.com; dkim=pass header.d=hpccharm-com.20150623.gappssmtp.com header.s=20150623; dmarc=none

I updated the patch to account for the possibility of a full pathname being prepended to the compiler name, as your mpicxx is returning. I think it should fix the problem.

--
Evan A. Ramos
Software Engineer
Charmworks, Inc.


On Mon, Oct 29, 2018 at 4:23 PM Jozsef Bakosi <jbakosi AT lanl.gov> wrote:
Actually, I did NOT exactly built the 2nd time using exactly the same
build command line, so I just re-tested this with the same command line
as the first time, and attach the output. The build line was this time
(as the first time):

./build charm++ mpi-darwin-x86_64

However, I think this is independent of the problem, because it appears
to break the same way.

Thanks,
J

On 10.29.2018 15:13, Jozsef Bakosi wrote:
> Hi Evan,
>
> I applied this patch:
>
> $ git diff
> diff --git a/src/arch/mpi-darwin-x86_64/conv-mach.sh b/src/arch/mpi-darwin-x86_64/conv-mach.sh
> index f9be46a50..256b5820d 100644
> --- a/src/arch/mpi-darwin-x86_64/conv-mach.sh
> +++ b/src/arch/mpi-darwin-x86_64/conv-mach.sh
> @@ -15,11 +15,11 @@ CMK_CC_FLAGS="$CMK_CC_FLAGS $CMK_AMD64"
>  CMK_CLANG_CXX_FLAGS="-stdlib=libc++"
>  CMK_REAL_COMPILER=`$MPICXX -show 2>/dev/null | cut -d' ' -f1 `
>  case "$CMK_REAL_COMPILER" in
> -  g++)
> +  gcc|g++|gcc-*|g++-*)
>      CMK_CXX_FLAGS="$CMK_CXX_FLAGS $CMK_AMD64"
>      CMK_COMPILER='gcc'
>      ;;
> -  clang)
> +  clang|clang++|clang-*|clang++-*)
>      CMK_CXX_FLAGS="$CMK_CXX_FLAGS $CMK_AMD64 $CMK_CLANG_CXX_FLAGS"
>      CMK_COMPILER='clang'
>      ;;
>
> I think that is the whole patch (I copied it off the web). Then retried
> and I attach the charmconfig.out and config.log. As far as I can tell,
> the same problem persists.
>
> Here is the mpicxx -show output:
>
> /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_cxx -lmpi
>
> Thanks for looking into this.
> Jozsef
>
> On 10.29.2018 12:36, Evan Ramos wrote:
> > Hi Jozsef,
> >
> > My guess would be that the "-stdlib=libc++" option is not being used. I
> > suspect this patch should resolve the issue:
> > https://charm.cs.illinois.edu/gerrit/c/charm/+/4743
> >
> > If not, could you paste the output of `mpicxx -show`?
> >
> > --
> > Evan A. Ramos
> > Software Engineer
> > Charmworks, Inc.



Archive powered by MHonArc 2.6.19.

Top of Page