[Trilinos-Users] problem with make #2

Bill Spotz wfspotz at sandia.gov
Mon Jun 2 20:59:24 MDT 2008


Tudor,

The only thing that comes to mind is that python 2.5 is more  
compatible with 64-bit architectures (and that these incompatibilities  
in 2.4 might show up when compiling an extension module).

On Jun 1, 2008, at 4:18 PM, Tudor Buican wrote:
> Hi, Bill.
>
> Yes, python was compiled as 64 bit, and it came with either Rocks 4.3
> (64 bit) or CentOS 4.5 (also 64 bit). As for Trilinos, I didn't  
> specify
> -m64 in the config command--I have the feeling that is the default-- 
> but
> I will give it a try.
>
> Any other guesses?
>
> Thanks,
> -Tudor
> On Sun, 2008-06-01 at 08:49 -0400, Bill Spotz wrote:
>> PyTrilinos is my package, but unfortunately, I'm not in any sort of
>> position to track this down for the next couple of weeks.
>>
>> This may be a 32/64 bit issue.  Is your python compiled as 64 bit?
>>
>> On May 31, 2008, at 5:19 PM, Tudor Buican wrote:
>>> 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
>>>
>>>
>>>
>>> _______________________________________________
>>> Trilinos-Users mailing list
>>> Trilinos-Users at software.sandia.gov
>>> http://software.sandia.gov/mailman/listinfo/trilinos-users
>>
>> ** Bill Spotz                                              **
>> ** Sandia National Laboratories  Voice: (505)845-0170      **
>> ** P.O. Box 5800                 Fax:   (505)284-0154      **
>> ** Albuquerque, NM 87185-0370    Email: wfspotz at sandia.gov **
>>
>>
>>
>>
>>
>>
>
> --
> Tudor N. Buican, PhD
> Managing Member
> SEA LLC
> phone: 505-271-9925, 505-818-7303
> fax: 505-271-9925
> email: tudor at timb.com
>
>
>

** Bill Spotz                                              **
** Sandia National Laboratories  Voice: (505)845-0170      **
** P.O. Box 5800                 Fax:   (505)284-0154      **
** Albuquerque, NM 87185-0370    Email: wfspotz at sandia.gov **







More information about the Trilinos-Users mailing list