[Trilinos-Users] problem with make #2
Tudor Buican
tudor at timb.com
Sat May 31 15:19:30 MDT 2008
Hi, Jim.
I added the Fortran -fPIC and upgraded to SWIG 1.3.31, and things have
moved much farther but not all the way to completion. Here's my current
configure command:
..............................................
../configure \
--cache-file=config.cache \
--prefix=/home/tudor/trilinos-install/LINUX_MPI \
--with-gnumake \
--with-fflags="-fPIC -O3" \
--with-cflags="-fPIC -ansi -Wall" \
--with-cxxflags="-fPIC -ansi -Wall -ftrapv -Wconversion" \
--enable-mpi --with-mpi-compilers \
--with-mpi-libs=-lmpi \
--with-flibs="-lg2c" \
--with-libs=-L/home/tudor/libraries/trilinos_3pl/LINUX_MPI/lib \
--enable-examples \
--enable-tests \
--enable-pytrilinos \
--enable-teuchos \
--enable-epetra \
--enable-triutils \
--enable-aztecoo \
--enable-ifpack \
--disable-ifpack-metis \
--enable-ifpack-sparskit \
--enable-epetraext \
--enable-amesos \
--enable-amesos-lapack \
--enable-amesos-klu \
--disable-amesos-umfpack \
--disable-amesos-dscpack \
--enable-didasko \
--enable-ml \
--enable-anasazi \
--enable-nox \
--enable-nox-epetra | tee configure_LINUX_MPI.log
..................................................
and here's where "make everything" has a problem now:
..................................................
Converting PyTrilinos to a shared library
changing directory to ../src
mpicxx -shared -Wl,-soname,libpytrilinos.so -o libpytrilinos.so *.o -
L/home/tudor/trilinos-8.0.4/LINUX_MPI-ompi11-
pytrilinos/packages/PyTrilinos/shared -L/home/tudor/trilinos-
install/LINUX_MPI-ompi11-pytrilinos/packages/epetra/src -lepetra -
L/home/tudor/trilinos-install/LINUX_MPI-ompi11-
pytrilinos/packages/teuchos/src -lteuchos -
L/home/tudor/libraries/trilinos_3pl/LINUX_MPI/lib -L/usr/lib64/openmpi -
L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -L/usr/lib64 -L/lib64 -llapack -
lblas -lmpi -lorte -lopal -ldl -lnsl -lutil -lgfortranbegin -lgfortran -
lm -lpthread
/usr/bin/ld: Epetra_NumPyFEVector.o: relocation R_X86_64_32S against
`PyBool_Type' can not be used when making a shared object; recompile
with -fPIC
Epetra_NumPyFEVector.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
Traceback (most recent call last):
File "../../../../packages/PyTrilinos/shared/setup.py", line 172, in ?
main()
File "../../../../packages/PyTrilinos/shared/setup.py", line 148, in
main
builder.buildShared()
File "../util/SharedUtils.py", line 457, in buildShared
SharedTrilinosBuilder.buildShared(self)
File "../util/SharedUtils.py", line 312, in buildShared
runCommand(self.linkCmd)
File "../util/SharedUtils.py", line 97, in runCommand
if status: raise RuntimeError, "Exit status = %d" % status
RuntimeError: Exit status = 256
make[4]: *** [package] Error 1
............................................................
I would imagine Epetra_NumPyFEVector.cpp would have been compiled with -
fPIC. Do you have any suggestions? (BTW, I'm using python-2.3.4.)
Thanks again.
-Tudor
--
Tudor N. Buican, PhD
Managing Member
SEA LLC
phone: 505-271-9925, 505-818-7303
fax: 505-271-9925
email: tudor at timb.com
More information about the Trilinos-Users
mailing list