This type of bit rot is pretty unavoidable - we haven't touched the lam code in several years.
Is there a reason you can't use open MPI? The oracle/sun guys support that.
Sent from my PDA. No type good.
On Sep 28, 2010, at 5:16 AM, "Siegmar Gross" <Siegmar.Gross_at_[hidden]> wrote:
> Hi,
>
> I have installed lam-7.1.5b1 with "Sun C 5.9" and "gcc-4.2.0" in 32 and
> 64 bit versions. I had to make two or three changes to get everything
> working.
>
> For both compilers I had to add the flag "-lrt" (otherwise the semaphore
> functions couldn't be found) and to create the directory "romio/lib"
> (otherwise "ar" broke with an error that it couldn't store a library).
>
> For "cc" I had to specify the preprocessor "cpp" from GNU C (otherwise
> "configure" broke with an error message that it doesn't have a working
> preprocessor).
>
> When I use "mpicc" a get a warning about an unknown option which I
> couldn't avoid (but I haven't tried very hard).
>
> mpicc -fd -fast -xtarget=ultra -m64 -xarch=sparc -v -Xc -xc99 -DSunOS
> -Dsparc -c -o hello_1_mpi.o hello_1_mpi.c
> cc: Warning: illegal option -Kthread
>
> mpicc -m64 -Wall -Wstrict-prototypes -Wmissing-prototypes -pedantic
> -std=c99 -O3 -DSunOS -Dsparc -c -o hello_1_mpi.o hello_1_mpi.c
> gcc: unrecognized option '-Kthread'
>
>
> /usr/local/lam-7.1.5_64_gcc/bin/mpicc -show
> gcc -I/usr/local/lam-7.1.5_64_gcc/include -fexceptions -Kthread -m64
> -L/usr/local/gcc-4.2.0/lib/sparcv9 -L/usr/local/lam-7.1.5_64_gcc/lib64
> -llammpio -llamf77mpi -lmpi -llam -laio -laio -lsocket -lnsl -lrt -ldl
>
> /usr/local/lam-7.1.5_64_cc/bin/mpicc -show
> cc -I/usr/local/lam-7.1.5_64_cc/include -Kthread -m64
> -L/usr/local/lam-7.1.5_64_cc/lib64 -llammpio -llamf77mpi -lmpi -llam
> -laio -laio -lsocket -lnsl -lrt -ldl
>
>
> Perhaps somebody can add these changes to the distribution and even make
> a change so that "-Kthread" will not be used.
>
> I used the following commands to build the 64 bit packages (I set
> "SYSTEM_ENV" to the operating system and "MACHINE_ENV" to the processor
> architecture in my heterogenous environment).
>
> gcc, 64-Bit:
> -----------
>
> mkdir lam-7.1.5b1-${SYSTEM_ENV}.${MACHINE_ENV}.64_gcc
> cd lam-7.1.5b1-${SYSTEM_ENV}.${MACHINE_ENV}.64_gcc
>
> ../lam-7.1.5b1/configure --prefix=/usr/local/lam-7.1.5_64_gcc \
> --libdir=/usr/local/lam-7.1.5_64_gcc/lib64 \
> CFLAGS="-m64" CXXFLAGS="-m64" FFLAGS="-m64" FCFLAGS="-m64" \
> CXXLDFLAGS="-m64" CPPFLAGS="" \
> LDFLAGS="-m64 -L/usr/local/gcc-4.2.0/lib/sparcv9 -lrt" \
> C_INCL_PATH="" C_INCLUDE_PATH="" CPLUS_INCLUDE_PATH="" \
> OBJC_INCLUDE_PATH="" LAMHOME="" \
> CC="gcc" CPP="cpp" CXX="g++" CXXCPP="cpp" F77="gfortran" \
> --with-exceptions --with-profiling --with-trillium \
> --with-romio --with-purify --with-threads=posix \
> --with-rsh="ssh -q" --enable-shared \
> |& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV.64_gcc
>
> mkdir romio/lib
> make |& tee log.make.$SYSTEM_ENV.$MACHINE_ENV.64_gcc
> make install |& tee log.make-install.$SYSTEM_ENV.$MACHINE_ENV.64_gcc
>
>
>
> cc, 64-Bit:
> -----------
>
> mkdir lam-7.1.5b1-${SYSTEM_ENV}.${MACHINE_ENV}.64_cc
> cd lam-7.1.5b1-${SYSTEM_ENV}.${MACHINE_ENV}.64_cc
>
> ../lam-7.1.5b1/configure --prefix=/usr/local/lam-7.1.5_64_cc \
> --libdir=/usr/local/lam-7.1.5_64_cc/lib64 \
> CFLAGS="-m64" CXXFLAGS="-m64" FFLAGS="-m64" FCFLAGS="-m64" \
> CXXLDFLAGS="-m64" CPPFLAGS="" \
> LDFLAGS="-m64 -lrt" \
> C_INCL_PATH="" C_INCLUDE_PATH="" CPLUS_INCLUDE_PATH="" \
> OBJC_INCLUDE_PATH="" LAMHOME="" \
> CC="cc" CXX="CC" F77="f95" CPP="cpp" \
> --with-exceptions --with-profiling --with-trillium \
> --with-romio --with-purify --with-threads=posix \
> --with-rsh="ssh -q" --enable-shared \
> |& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV.64_cc
>
> mkdir romio/lib
> make |& tee log.make.$SYSTEM_ENV.$MACHINE_ENV.64_cc
> make install |& tee log.make-install.$SYSTEM_ENV.$MACHINE_ENV.64_cc
>
> Thank you very much in advance for any addition to the distribution.
>
> Kind regards
>
> Siegmar
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
|