[Users] problems compiling cactus on mac osx with ifort
Bruno Giacomazzo
bgiacoma at aei.mpg.de
Mon Jul 23 03:26:46 CDT 2007
Hi,
I have some problems compiling Cactus with the Intel
fortran compiler on a MacBookPro with Mac OS X version 10.4.9.
I'm using the Intel fortran compiler version 10.0, gcc 4.0.1 and mpich2
version 1.0.5
First of all I had a problem during the configuration since mpich2
doesn't install tarch. So I have applied a patch that Steve sent one year
ago to the cactus user ml (I have attached it) and it worked.
But I have still problem. At the end I get the following error:
Creating cactus_Whisky_carpet in /Users/bgiacoma/Cactus/exe from [...]
i686-apple-darwin8-g++-4.0.1: /opt/intel/fc/10.0.016/lib/icrt.link: No
such file or directory
i686-apple-darwin8-g++-4.0.1: unrecognized option '-Qy'
make[1]: *** [/Users/bgiacoma/Cactus/exe/cactus_Whisky_carpet] Error 1
make: *** [Whisky_carpet] Error 2
Googling for it I found that somebody else had the same problem but I was
not able to get the solution for it. Any suggestion? I'm using the
development version of Cactus. The config file I have used is attached.
Thank you,
Bruno
--
Dr. Bruno Giacomazzo
Max Planck Institute for Gravitational Physics
Albert Einstein Institute
Am Muehlenberg 1
D-14476 Potsdam
Germany
Tel. : +49 331 567 7183
Fax : +49 331 567 7252
cell. : +49 173 826 4488
email : bgiacoma at aei.mpg.de
-------------------------------------------------
There are only 10 types of people in the world:
Those who understand binary, and those who don't
-------------------------------------------------
-------------- next part --------------
Index: lib/make/extras/MPI/MPICH
===================================================================
RCS file: /cactusdevcvs/Cactus/lib/make/extras/MPI/MPICH,v
retrieving revision 1.25
diff -u -r1.25 MPICH
--- lib/make/extras/MPI/MPICH 24 Oct 2005 09:12:21 -0000 1.25
+++ lib/make/extras/MPI/MPICH 21 Apr 2006 09:57:16 -0000
@@ -43,15 +43,23 @@
# Find the MPICH architecture
if test -z "$MPICH_ARCH" ; then
- if test -x "$MPICH_DIR/bin/tarch" ; then
- MPICH_ARCH=`$MPICH_DIR/bin/tarch`
- echo " MPICH architecture is $MPICH_ARCH"
- else
- echo " Cannot execute $MPICH_DIR/bin/tarch"
- exit 2
+ # MPICH2 doesn't install tarch
+ if test ! -x "$MPICH_DIR/bin/mpich2version" ; then
+ if test -x "$MPICH_DIR/bin/tarch" ; then
+ MPICH_ARCH=`$MPICH_DIR/bin/tarch`
+ echo " MPICH architecture is $MPICH_ARCH"
+ else
+ echo " Cannot execute $MPICH_DIR/bin/tarch"
+ exit 2
+ fi
fi
fi
+if test -x "$MPICH_DIR/bin/mpich2version" ; then
+ # see MPICH2 User's Guide, sect. 5.3: Special Issues for C++
+ CXXFLAGS="$CXXFLAGS -DMPICH_IGNORE_CXX_SEEK"
+fi
+
# Find the MPICH device - this isn't necessary for mpich-1.2.0
if test -d "$MPICH_DIR/build/$MPICH_ARCH" ; then
@@ -176,7 +184,13 @@
fi
# Set the MPI version name
-MPI_VERSION="MPICH_$MPICH_DEVICE"
+if test -x "$MPICH_DIR/bin/mpich2version" ; then
+ MPICH2_VERSION=`mpich2version -v`
+ MPICH2_DEVICE=`mpich2version -d`
+ MPI_VERSION="MPICH2 ${MPICH2_VERSION} (${MPICH2_DEVICE})"
+else
+ MPI_VERSION="MPICH_$MPICH_DEVICE"
+fi
# Finally set the library lines.
MPI_LIBS="$MPICH_LIB $MPICH_DEVICE_LIBS"
------------------------------------------------------------------------
* Previous message: [Users] trouble building cactus <001800.html>
* Next message: [Users] problem with CactusEinstein/ADMConstraints
and AEIThorns/Exact <001801.html>
* *Messages sorted by:* [ date ] <date.html#1799> [ thread ]
<thread.html#1799> [ subject ] <subject.html#1799> [ author ]
<author.html#1799>
------------------------------------------------------------------------
More information about the Users mailing list
<http://www.cactuscode.org/mailman/listinfo/users>
-------------- next part --------------
# CONFIGURATION : Whisky_carpet
# CONFIG-DATE : Sun Jul 22 17:53:26 2007 (GMT)
# CONFIG-HOST : mac20.local
# CONFIG-STATUS : 0
# CONFIG-OPTIONS :
BLAS_DIR=/usr/lib
CFLAGS=-Drestrict= -std=c99 -DMPICH_IGNORE_CXX_SEEK
CPPFLAGS=-DMPICH_IGNORE_CXX_SEEK
CXXFLAGS=-DMPICH_IGNORE_CXX_SEEK
F77=ifort
F90=ifort
FPP=${PERL} ${CCTK_HOME}/lib/sbin/cpp.pl
GSL_DIR=/sw/lib
HDF5=yes
HDF5_DIR=/usr/local
LAPACK=yes
LAPACK_DIR=/Library/Frameworks/Intel_MKL.framework/Versions/Current/lib/32
MPI=MPICH
MPICH_DIR=/usr/local
PERL=perl
THORNLIST=Whisky_carpet.th
THORNLIST_DIR=thornlists
More information about the Users
mailing list