LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Max Manfrin (mmanfrin_at_[hidden])
Date: 2005-05-19 13:21:27


This is what I did to succesfully install LAM/MPI 7.1.1 on a PowerMac
G5 and an iBook G4 both running Mac OS X 10.4.1

On the G5 I did this:

export CC=/usr/bin/gcc
export CPP=/usr/bin/cpp
export CXX=/usr/bin/g++
export CFLAGS="-fast -std=gnu99 -fPIC"
export CPPFLAGS="-fast -std=gnu99 -fPIC"
export CXXFLAGS="-fast -std=gnu++98 -fPIC"

On the G4 I did this:

export CC=/usr/bin/gcc
export CPP=/usr/bin/cpp
export CXX=/usr/bin/g++
export CFLAGS="-fast -mcpu=7450 -std=gnu99 -fPIC"
export CPPFLAGS="-fast -mcpu= 7450 -std=gnu99 -fPIC"
export CXXFLAGS="-fast -mcpu= 7450 -std=gnu++98 -fPIC"

On both then I did:
configure --with-purify -prefix=/usr/local/lam-7.1.1 --with-rsh="ssh"
--without-fc
make
sudo make install

I hope this might help.

Cheers

On 19 May 2005, at 19:04, Michael Clover wrote:

> I recently upgraded my machine to OSX 10.4, and attempted to
> install lam-7.1.1 on it (Something I had previously done at work
> with 10.3). After successfully completing the configure step, and
> after compiling lots of subroutines, the process stopped at the
> following on the 10.4 system:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I../../share/include -
> DLAM_TOTALVIEW_DLL=\"/usr/local/lib/lam/liblam_totalview.so\" -
> I../../share/include -DLAM_BUILDING=1 -D_REENTRANT -O3 -MT
> lammpiinit.lo -MD -MP -MF .deps/lammpiinit.Tpo -c lammpiinit.c -o
> lammpiinit.o
> lammpiinit.c: In function 'init_dtype':
> lammpiinit.c:949: error: parse error before ',' token
> lammpiinit.c:951: error: parse error before ',' token
> lammpiinit.c:953: error: parse error before ',' token
> lammpiinit.c:954:33: error: #if with no expression
> lammpiinit.c:965: error: parse error before ',' token
> lammpiinit.c:967: error: parse error before ',' token
> make[3]: *** [lammpiinit.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
> I noticed that a most lines in that vicinity were continued with a
> tab character starting the second line, but three lines near this
> point didn't (but since I only read F90, not c, I'm not sure if
> that's significant).
>
> Last night, I upgraded from 10.4 to 10.4.1, and find that the
> problem still persists:
>
> ....
> make[3]: Nothing to be done for `all'.
> if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../../share/include -DLAM_TOTALVIEW_DLL="\"/usr/local/lib/lam/
> liblam_totalview.so\"" -I../../share/include -DLAM_BUILDING=1 -
> D_REENTRANT -O3 -MT lammpiinit.lo -MD -MP -MF ".deps/
> lammpiinit.Tpo" -c -o lammpiinit.lo lammpiinit.c; \
> then mv -f ".deps/lammpiinit.Tpo" ".deps/lammpiinit.Plo"; else rm -
> f ".deps/lammpiinit.Tpo"; exit 1; fi
> gcc -DHAVE_CONFIG_H -I. -I. -I../../share/include -
> DLAM_TOTALVIEW_DLL=\"/usr/local/lib/lam/liblam_totalview.so\" -
> I../../share/include -DLAM_BUILDING=1 -D_REENTRANT -O3 -MT
> lammpiinit.lo -MD -MP -MF .deps/lammpiinit.Tpo -c lammpiinit.c -o
> lammpiinit.o
> lammpiinit.c: In function 'init_dtype':
> lammpiinit.c:949: error: parse error before ',' token
> lammpiinit.c:951: error: parse error before ',' token
> lammpiinit.c:953: error: parse error before ',' token
> lammpiinit.c:954:33: error: #if with no expression
> lammpiinit.c:965: error: parse error before ',' token
> lammpiinit.c:967: error: parse error before ',' token
> make[3]: *** [lammpiinit.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
>
> ~/Applications/lam-7.1.1:[8]>gcc -v
> Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
> Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure
> --disable-checking --prefix=/usr --mandir=/share/man --enable-
> languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^+.-]*
> $/s/$/-4.0/ --with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --
> build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --
> target=powerpc-apple-darwin8
> Thread model: posix
> gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
>
>
> Any help would be appreciated.
>
>
> Michael Clover
> 10260 Campus Point Drive, MS A-1
> San Diego, CA 92121
> ph: 858-826-5926
> fax: 858-826-6584
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>
>
>

----
Max MANFRIN
http://iridia.ulb.ac.be/~mmanfrin/