[MOAB-dev] crash with clang compiler

Barry Smith bsmith at mcs.anl.gov
Mon Jun 3 17:29:46 CDT 2013


On Jun 3, 2013, at 3:40 PM, Rajeev Jain <jain at mcs.anl.gov> wrote:

> For some reason Mac still ships gcc-4.2 and the default compiler and that's what I use.
> My bad. I thought the default was a clang compiler on OSX, I use the default gcc compiler on OSX.

   You can try --with-cc=/usr/bin/clang --with-cxx=/usr/bin/clang++ to use the clang compilers when configuring MPI. 

    I have noticed less than perfect behavior by clang++ on code that it should compile in the past.

   Barry

>  
> Rajeev
> 
> From: Jed Brown <jedbrown at mcs.anl.gov>
> To: Rajeev Jain <jain at mcs.anl.gov>; Barry Smith <bsmith at mcs.anl.gov>; "moab-dev at mcs.anl.gov" <moab-dev at mcs.anl.gov> 
> Sent: Monday, June 3, 2013 3:13 PM
> Subject: Re: [MOAB-dev] crash with clang compiler
> 
> Rajeev Jain <jain at mcs.anl.gov> writes:
> 
> > I use clang compilers. 
> 
> What Clang compiler?  The output below shows a 6-year old version of gcc.
> 
> > Haven't seen the error that you see.
> >
> >
> > ==> gcc -v
> > Using built-in specs.
> > Target: i686-apple-darwin11
> > Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
> > Thread model: posix
> > gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
> 
> 



More information about the moab-dev mailing list