[petsc-dev] PETSc on OS X 10.8.x with Apple clang

Barry Smith bsmith at mcs.anl.gov
Wed Oct 9 11:34:36 CDT 2013


~/Src/petsc  master $ clang --version
Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix



-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 3627532 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131009/a4d71acf/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: application/octet-stream
Size: 74364 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131009/a4d71acf/attachment-0001.obj>
-------------- next part --------------



   Seems to work ok for me.

   Don't use clang before version 5 on PETSc

   Barry


On Oct 9, 2013, at 11:17 AM, Satish Balay <balay at mcs.anl.gov> wrote:

> The nightlybuilds on OSX are primarily with gcc. We don't have a build
> with clang.
> 
> I have Xcode 4.6 on OSX 10.8. I just attempted a build with clang and see errors.
> 
> Perhaps Barry/Srhi who use OSX know more about Xcode5/clang issues.
> 
> Attaching my make.log
> 
> Using configure Options: CC=clang CXX=clang++ FC=gfortran --download-mpich=1
> 
> [balay at petsc-mini petsc.test (next)]$ sw_vers 
> ProductName:      Mac OS X
> ProductVersion:   10.8.4
> BuildVersion:     12E55
> [balay at petsc-mini petsc.test (next)]$ xcodebuild -version
> Xcode 4.6.2
> Build version 4H1003
> [balay at petsc-mini petsc.test (next)]$ clang -v
> Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
> Target: x86_64-apple-darwin12.4.0
> Thread model: posix
> [balay at petsc-mini petsc.test (next)]$ 
> 
> Satish
> 
> On Wed, 9 Oct 2013, Lisandro Dalcin wrote:
> 
>> Satish, I have problems to build PETSc with Apple's clang on OS X
>> 10.8.5. Configure goes fine, then while building the compiler crashes
>> bad at parsing the MPI_Xxx macros that log MPI calls (at petsclog.h).
>> clang on Linux works just fine, but this Apple version crashes.
>> 
>> Can you tell me what OS X and clang versions are you testing PETSc on?
>> 
>> Here is my info (OS X 10.8.5, had same issues with previous 10.8.x):
>> 
>> $ uname -a
>> Darwin macarena 12.5.0 Darwin Kernel Version 12.5.0: Mon Jul 29
>> 16:33:49 PDT 2013; root:xnu-2050.48.11~1/RELEASE_X86_64 x86_64
>> 
>> $ cc --version
>> Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
>> Target: x86_64-apple-darwin12.5.0
>> Thread model: posix
>> 
>> $ c++ --version
>> Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
>> Target: x86_64-apple-darwin12.5.0
>> Thread model: posix
>> 
>> 
> <make.log>



More information about the petsc-dev mailing list