[petsc-dev] defaulting gnu compilers on Apple

Satish Balay balay at mcs.anl.gov
Wed Oct 30 23:43:55 CDT 2013


On Wed, 30 Oct 2013, Matthew Knepley wrote:

> On Wed, Oct 30, 2013 at 1:53 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> 
> >
> > On Oct 30, 2013, at 1:39 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> >
> > > Barry Smith <bsmith at mcs.anl.gov> writes:
> > >>     I think ./configure still defaults to using gcc/g++ on Apple if
> > >>     just run. Can you please change this in petsc-dev to default to
> > >>     the clang compilers clang and clang++
> > >
> > > It doesn't seem to matter because Apple now considers "gcc" to be a
> > > spelling of Clang…
> >
> >    That I do not think is completely the case. Yes it uses “a variant” of
> > clang for gcc but it is NOT EXACTLY the same as calling the clang compiler
> > directly.
> 
> 
> Barry is right because 'gcc' does not do OpenCL, but 'clang' does.

On Xcode5 /usr/bin/gcc is an alias to clang


>>>>>>>>>
Executing: /opt/HPC/mpich-3.0.4-gcc4.2/bin/mpicc -show
stdout: gcc -Wl,-flat_namespace -I/opt/HPC/mpich-3.0.4-gcc4.2/include -L/opt/HPC/mpich-3.0.4-gcc4.2/lib -lpmpich -lmpich -lopa -lmpl -lpthread

Executing: /opt/HPC/mpich-3.0.4-gcc4.2/bin/mpicc --version
stdout:
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
<<<<<<<<<<<

Satish


More information about the petsc-dev mailing list