in the test compilation

Satish Balay balay at mcs.anl.gov
Thu Jun 15 11:35:39 CDT 2006


Its likely there were problems with the build of libraries.
Can you send us this logfile?

Satish

On Thu, 15 Jun 2006, Pilhwa Lee wrote:

> Hi Satish,
> 
> Based on PETSc-2.1.6, I'm using SAMRAI.
> 
> I get the following result.
> 
> 
> 
> /home/leep/petsc-2.1.6/lib/libg/linux64/libpetscfortran.a:zstartf.o:
> U petscsetcommonblock_
> 
> 
> 
> 
> Thanks, Pilhwa
> 
> 
> 
> On Thu, 2006-06-15 at 11:13 -0500, Satish Balay wrote:
> > Why use petsc-2.1.6 instead of the latest 2.3.1?
> > 
> > What do you have for:
> > 
> > nm -Ao /home/leep/petsc-2.1.6/lib/libg/linux64/*.a |grep -i petscsetcommonblock
> > 
> > Satish
> > 
> > 
> > On Thu, 15 Jun 2006, Pilhwa Lee wrote:
> > 
> > > Hi,
> > > 
> > > I'm in the stage of testing compilation of an example. I'm using PETSc
> > > 2.1.6. In the course of compilation
> > > of /petsc-2.1.6/src/vec/examples/tutorials/ex11f.F, the following errors
> > > comes up. If any of you have some idea for solution, let me know please.
> > > 
> > > thanks, Pilhwa
> > > 
> > > the content of the log
> > > --------------------------------------------------------------------
> > > g77 -Wno-globals -c -g -I/home/leep/petsc-2.1.6 -
> > > I/home/leep/petsc-2.1.6/bmake/linux64 -I/home/leep/petsc-2.1.6/include -
> > > I/home/leep/mpich/include -DPETSC_USE_DEBUG -DPETSC_USE_LOG -
> > > DPETSC_USE_BOPT_g -DPETSC_USE_STACK ex11f.F
> > > g77 -g -Wl,-rpath,/home/leep/petsc-2.1.6/lib/libg/linux64  -o ex11f
> > > ex11f.o  -L/home/leep/petsc-2.1.6/lib/libg/linux64 -lpetscfortran -
> > > L/home/leep/petsc-2.1.6/lib/libg/linux64 -lpetscvec -lpetsc
> > > -L/usr/X11R6/lib64 -lX11
> > > -L/usr/lib64 -llapack -lblas -L/home/leep/mpich/lib -lmpich -lpmpich -
> > > ldl -lc -lg2c -lm
> > > /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../lib64/crt1.o(.text
> > > +0x21): In function `_start':
> > > : undefined reference to `main'
> > > /home/leep/petsc-2.1.6/lib/libg/linux64/libpetscfortran.a
> > > (zstartf.o)(.text+0x4f): In function `PetscInitializeFortran':
> > > /home/leep/petsc-2.1.6/src/fortran/custom/zstartf.c:58: undefined
> > > reference to `petscsetcommonblock_'
> > > collect2: ld returned 1 exit status
> > > make: [ex11f] Error 1 (ignored)
> > > rm -f -f ex11f.o
> > > ------------------------------------------------------------------------
> > > 
> > > 
> > > 
> > > 
> > > 
> > 
> 
> 




More information about the petsc-users mailing list