[petsc-users] Unable to download elemental

Jed Brown jed at jedbrown.org
Fri Jul 18 19:02:49 CDT 2014


George Pau <gpau at lbl.gov> writes:

> Hi Barry,
>
> Thanks, that works on my Ubuntu machine.
>
> On Mac however, I have problem with the --with-cxx-dialect=C++11:
>
> Could not determine compiler flag for with-cxx-dialect=C++11, use CXXFLAGS
>
> So, I configure using the following:
>
> ./configure --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90
> --with-mpiexec=mpiexec --CXXFLAGS=-std=c++11 --with-cxx-dialect=C++11
> --download-elemental
>
> but, I still get
>
> Could not determine compiler flag for with-cxx-dialect=C++11, use CXXFLAGS
>
> I tried with just
>
> ./configure --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90
> --with-mpiexec=mpiexec --CXXFLAGS=-std=c++11
>
> and it is fine.  I cannot specify --download-elemental without
> --with-cxx-dialect=C++11.  Attached is the configure.log again.

In your first email

  Executing: mpicxx --version
  stdout:
  g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
  Copyright (C) 2013 Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.  There is NO
  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  getCompilerVersion: mpicxx g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2
  Executing: mpicxx -show
  stdout: g++ -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread -L/usr//lib -L/usr/lib/openmpi/lib -lmpi_cxx -lmpi -ldl -lhwloc

but in your most recent,

  Executing: mpicxx --version
  stdout:
  Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
  Target: x86_64-apple-darwin11.4.2
  Thread model: posix
  getCompilerVersion: mpicxx Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
          Ignoring default options which were overridden using --CXXFLAGS -std=c++11
  Executing: mpicxx -show
  stdout: /usr/bin/clang++ -I/opt/local/include/openmpi-mp -Wl,-flat_namespace -L/opt/local/lib/openmpi-mp -lmpi_cxx -lmpi

The first supports -std=c++11, but the second does not.  Either use GCC
or upgrade Clang.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140718/39569a90/attachment.pgp>


More information about the petsc-users mailing list