error building shared libs

Richard Tran Mills rmills at climate.ornl.gov
Tue Apr 1 15:41:06 CDT 2008


Satish,

Looks like some of the stubs for DA routines have gone missing:

ex5f90.o(.text+0x6a): In function `f90module_formfunction_':
: undefined reference to `dagetlocalvector_'
ex5f90.o(.text+0x211): In function `f90module_formfunction_':
: undefined reference to `darestorelocalvector_'
ex5f90.o(.text+0xe6e): In function `forminitialguess_':
: undefined reference to `dagetlocalvector_'
ex5f90.o(.text+0xf44): In function `forminitialguess_':
: undefined reference to `darestorelocalvector_'
ex5f90.o(.text+0x1439): In function `formjacobian_':
: undefined reference to `dagetlocalvector_'
ex5f90.o(.text+0x1558): In function `formjacobian_':
: undefined reference to `darestorelocalvector_'
gmake: [ex5f90] Error 2 (ignored)
/bin/rm -f ex5f90.o

--Richard

Satish Balay wrote:
> Sorry - pushed the fix now.
> 
> Satish
> 
> On Tue, 1 Apr 2008, Richard Tran Mills wrote:
> 
>> Lisandro,
>>
>> I believe this has to do with
>>
>> changeset:   11960:f19ce8104d47
>> tag:         tip
>> user:        balay at mcs.anl.gov
>> date:        Mon Mar 31 14:34:50 2008 -0500
>> summary:     autogenerate fortranstubs for some of the DM routines
>>
>> which was in response to my petsc-maint ticket #17513.  I was asking about
>> auto-generating some of the DM fortran stubs, and Satish changed things so
>> that some of them would be auto-generated.  It looks like there was already a
>> hand-generated one for DMGetMatrix, though.  I wasn't sure if this should be
>> done by hand or automatically, so I didn't change anything and just replied to
>> the ticket stating that this change broke something.
>>
>> --Richard
>>
>> Lisandro Dalcin wrote:
>>> I got this, no time to figure out what's going on. BTW, I manually did
>>> 'make allfortranstubs' before configure and build, just in case.
>>>
>>> Completed building libraries
>>> =========================================
>>> making shared libraries in /u/dalcinl/Devel/PETSc/petsc-dev/linux-gnu/lib
>>> building libpetsc.so
>>> building libpetscvec.so
>>> building libpetscmat.so
>>> building libpetscdm.so
>>> zfddaf.o: In function `dmgetmatrix_':
>>> /u/dalcinl/Devel/PETSc/petsc-dev/src/dm/da/utils/ftn-custom/zfddaf.c:51:
>>> multiple definition of `dmgetmatrix_'
>>> dmf.o:/u/dalcinl/Devel/PETSc/petsc-dev/src/dm/da/utils/ftn-auto/dmf.c:137:
>>> first defined here
>>> /usr/bin/ld: Warning: size of symbol `dmgetmatrix_' changed from 62 in
>>> dmf.o to 351 in zfddaf.o
>>> collect2: ld returned 1 exit status
>>> make[2]: [shared_linux] Error 1 (ignored)
>>> building libpetscksp.so
>>> building libpetscsnes.so
>>> building libpetscts.so
>>> building libpetsccontrib.so
>>> ********************************************************************
>>>   Error during compile, check linux-gnu/conf/make.log
>>>   Send it and linux-gnu/conf/configure.log to petsc-maint at mcs.anl.gov
>>> ********************************************************************
>>> make: [all] Error 1 (ignored)
>>>
>>
> 




More information about the petsc-dev mailing list