[Trilinos-Users] Problems building with --enable-anasazi & --enable-pytrilinos

Bill Spotz wfspotz at sandia.gov
Mon Oct 6 09:12:26 MDT 2008


Ted,

A hint as to where to look:

The file packages/PyTrilinos/util/SharedUtils.py.in is used to create  
BUILD/packages/PyTrilinos/util/SharedUtils.py (where BUILD is your  
build directory).  I would add print statements to this generated  
python module to track what is happening.  Specifically, look in the  
"SharedTrilinosBuilder" class, method "getLinkCmd".

On Oct 6, 2008, at 10:53 AM, Ted Sume Nzuonkwelle wrote:
> On Mon, 2008-10-06 at 10:45 -0400, Bill Spotz wrote:
>> Ted,
>>
>> I am not sure what is going on here.  Try cutting and pasting the  
>> link
>> line for building the anasazi shared library where it fails and then
>> deleting the "-L/usr/local/builds/trilinos-9.0.0/serial/packages/
>> anasazi/src -lanasazi" options.  They should not be there and I do  
>> not
>> know why they are.
>
> After deleting as recommended above, the shared library is created.
> Build still fails with same error even running make after the anasazi
> shared library is created.
>
> Will try to track down why those extra options appear at the end of  
> that
> link line.
>
> - Ted
>
>>
>> On Oct 1, 2008, at 9:40 PM, Ted Sume Nzuonkwelle wrote:
>>> On Wed, 2008-10-01 at 19:30 -0400, Bill Spotz wrote:
>>>> You are picking up a previously installed version of libanasazi.so:
>>>>
>>>>    /usr/local/builds/trilinos-9.0.0/serial/packages/anasazi/src/
>>>> libanasazi.so
>>>
>>> libanasazi.so referenced above, does not exist in that  directory.
>>>
>>> I have just run through the build process again, with a clean source
>>> tree and a clean build directory, however the build fails with the
>>> same
>>> results as reported before.
>>>
>>>>
>>>> You probably need to delete it or perform a "make uninstall" before
>>>> building.
>>>>
>>>> On Oct 1, 2008, at 5:40 PM, Ted Sume Nzuonkwelle wrote:
>>>>>
>>>>> When i try to build with --enable-anasazi & --enable-pytrilinos,  
>>>>> my
>>>>> build fails. If i drop either one of --enable-anasazi OR
>>>>> --enable-pytrilinos, the build completes. Below is my configure
>>>>> line.
>>>>>
>>>>> Any suggestions to resolve this will be greatly appreciated.
>>>>>
>>>>> (Build on Fedora 9  with GCC-4.3.0)
>>>>>
>>>>>
>>>>>
>>>>> ../configure --prefix=/usr/local/trilinos-9.0.0
>>>>> --disable-default-packages  --enable-pytrilinos --enable-amesos
>>>>> --enable-ml --enable-aztecoo --enable-epetraext --enable-epetra
>>>>> --enable-triutils --enable-teuchos --enable-ifpack --enable-galeri
>>>>> --enable-anasazi
>>>>> --with-ldflags="-L/usr/lib/gcc/x86_64-redhat-linux/4.3.0
>>>>> -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/4.3.0" FFLAGS=-fPIC
>>>>> CFLAGS=-fPIC CXXFLAGS=-fPIC
>>>>>
>>>>> make
>>>>>
>>>>> Trilinos package ml subdirectory src built successfully.
>>>>>
>>>>> make[5]: Leaving directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages/ml/src'
>>>>> make[4]: Leaving directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages/ml/src'
>>>>> make[4]: Entering directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages/ml'
>>>>> Trilinos package ml built
>>>>> successfully
>>>>> make[4]: Leaving directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages/ml'
>>>>> make[3]: Leaving directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages/ml'
>>>>> Making all in
>>>>> PyTrilinos
>>>>> make[3]: Entering directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages/PyTrilinos'
>>>>> Making all in
>>>>> shared
>>>>> make[4]: Entering directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages/PyTrilinos/ 
>>>>> shared'
>>>>> /usr/bin/python ../../../../packages/PyTrilinos/shared/setup.py
>>>>> build
>>>>>
>>>>> Extracting Makefile variables ... done
>>>>>
>>>>> Linking anasazi as a shared library
>>>>> changing directory to ../../anasazi/src
>>>>> g++ -shared -Wl,-soname,libanasazi.so -o libanasazi.so *.o
>>>>> -L/usr/local/builds/trilinos-9.0.0/serial/packages/PyTrilinos/ 
>>>>> shared
>>>>> -L/usr/lib/gcc/x86_64-redhat-linux/4.3.0
>>>>> -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/4.3.0
>>>>> -L/usr/local/builds/trilinos-9.0.0/serial/packages/anasazi/epetra/
>>>>> src
>>>>> -lanasaziepetra
>>>>> -L/usr/local/builds/trilinos-9.0.0/serial/packages/epetra/src -
>>>>> lepetra
>>>>> -L/usr/local/builds/trilinos-9.0.0/serial/packages/teuchos/src -
>>>>> lteuchos
>>>>> -llapack -lblas -L/usr/lib64 -L/lib64 -L/usr/lib -lgfortranbegin
>>>>> -lgfortran -lm
>>>>> -L/usr/local/builds/trilinos-9.0.0/serial/packages/anasazi/src
>>>>> -lanasazi
>>>>> /usr/local/builds/trilinos-9.0.0/serial/packages/anasazi/src/
>>>>> libanasazi.so: file not recognized: File truncated
>>>>> collect2: ld returned 1 exit
>>>>> status
>>>>> Traceback (most recent call
>>>>> last):
>>>>> File "../../../../packages/PyTrilinos/shared/setup.py", line  
>>>>> 178, in
>>>>> <module>
>>>>>  main(command,
>>>>> destdir)
>>>>> File "../../../../packages/PyTrilinos/shared/setup.py", line  
>>>>> 147, in
>>>>> main
>>>>>
>>>>> builder.buildShared()
>>>>> File "../util/SharedUtils.py", line 331, in
>>>>> buildShared
>>>>> File "../util/SharedUtils.py", line 97, in
>>>>> runCommand
>>>>> RuntimeError: Exit status =
>>>>> 256
>>>>> make[4]: *** [package] Error
>>>>> 1
>>>>> make[4]: Leaving directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages/PyTrilinos/ 
>>>>> shared'
>>>>> make[3]: *** [all-recursive] Error
>>>>> 1
>>>>> make[3]: Leaving directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages/PyTrilinos'
>>>>> make[2]: *** [all-recursive] Error
>>>>> 1
>>>>> make[2]: Leaving directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial/packages'
>>>>> make[1]: *** [all-recursive] Error
>>>>> 1
>>>>> make[1]: Leaving directory
>>>>> `/usr/local/builds/trilinos-9.0.0/serial'
>>>>> make: *** [all] Error 2
>>>>>
>>>>>
>>>>> Ted Sume Nzuonkwelle
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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 **
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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 **
>>
>>
>>
>>
>>
>
>

** 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