[MPICH] Compile errors with MPICH2 1.0.2

Dieter an Mey anmey at rz.rwth-aachen.de
Mon Jun 13 09:48:34 CDT 2005


I guess you forgot to add
	-xarch=v9b
to the link command, in order to tell the linke to build a 64 bit binary.

best regards
Dieter


Mike Newton wrote:

> I ran into the following errors while trying to compile MPICH2 1.0.2.
> 
> My Environment: 
>   SunFire 12K domain of 12 CPUs
>   Solaris 9
>   Sun Studio Pro Compilers (C & Fortran)
> 
> Environment varibles:
>  CC=/opt/SUNWspro/bin/cc
>  FC=/opt/SUNWspro/bin/f90
>  F77=/opt/SUNWspro/bin/f77
>  F90=/opt/SUNWspro/bin/f90
>  CFLAGS=-xarch=v9b
>  FFLAGS=-xarch=v9b
> 
> Configure statement:
>  ./configure --prefix=/usr/local/mpich2 --enable-f77 --enable-f90 \
>  --with-device=ch3:shm --with-pm=gforker
> 
> Errors:
> 
> /opt/SUNWspro/bin/cc -
> o /fs/users/sysadmin/jmnewton/Build/mpich2-1.0.2/src/mpe2/src/slog2sdk/trace_rlog/bin/rlog_print trace_input.o rlogutil.o trace_print.o
> ld: fatal: file trace_input.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written
> to /fs/users/sysadmin/jmnewton/Build/mpich2-1.0.2/src/mpe2/src/slog2sdk/trace_rlog/bin/rlog_print
> make[5]: *** [rlog_print] Error 1
> make[4]: *** [all] Error 2
> make[3]: [all] Error 2 (ignored)
> make[2]: Leaving directory
> `/fs/users/sysadmin/jmnewton/Build/mpich2-1.0.2/src/mpe2'
> 
> /opt/SUNWspro/bin/cc  -o mpiexec mpiexec.o  -L../util -lmpiexec \
> -L../../../lib -lmpich -lrt     -lrt   -lnsl -lsocket
> ld: fatal: file mpiexec.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to mpiexec
> make[3]: *** [mpiexec] Error 1
> make[3]: Leaving directory
> `/fs/users/sysadmin/jmnewton/Build/mpich2-1.0.2/src/pm/gforker'
> 


-- 
--------------------------------------------------------------------
Dieter an Mey
High Performance Computing               Hochleistungsrechnen
RWTH Aachen University                   Rechen- und Kommunikations-
Center for Computing and Communication   zentrum der RWTH Aachen
phone: ++49-(0)241-80-24377              Seffenter Weg 23
fax:   ++49-(0)241-80-22134              52074 Aachen, Germany
email: anmey at rz.rwth-aachen.de
--------------------------------------------------------------------




More information about the mpich-discuss mailing list