[mpich-discuss] Building with Clang
Jed Brown
jedbrown at mcs.anl.gov
Sun Aug 14 19:21:25 CDT 2011
I tried compiling version 1.4 and current svn using clang-2.9 and get errors
like
mpich2-1.4$ ./configure --prefix=/home/jed/petsc/mpich-clang CC=clang
CFLAGS= -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing
-Wno-unknown-pragmas -g3 --disable-cxx --disable-f77 --disable-fc
--enable-shared --enable-sharedlibs=libtool --with-device=ch3:sock
--without-mpe --with-pm=hydra --enable-g=meminit --enable-fast
[...]
configure:6876: error: Creating shared libraries using libtool not yet
supported
mpich2-svn$ ./configure --prefix=/home/jed/usr/mpich-clang --enable-shared
--enable-sharedlibs=gcc --enable-error-checking=runtime
--enable-error-messages=all --enable-timer-type=clock_gettime
--with-python=python2 --with-pm=hydra CC=clang CXX=clang++ F77=gfortran
FC=gfortran
configure:6846: error: Cannot build shared libraries with this compiler
It's not clear to me what test is actually failing here since there doesn't
seem to be any relevant output in config.log. This version of clang
certainly can create shared libraries.
Any ideas what is special here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110814/47d8da04/attachment.htm>
More information about the mpich-discuss
mailing list