On Tue, Mar 10, 2009 at 10:59 AM, Wei-Dong Lian <span dir="ltr"><<a href="mailto:weidong.lian@gmail.com">weidong.lian@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello everyone,<br><br>I compiled the petsc-3.0.0-p3 with GCC 3.4.3 under linux 64. But the compiler gave me the following information, see result_1.<br>I also ran the "make test" and it worked successfully, but when I linked petsc to compile my programme, it told me that information see results_2.<br>
Any suggestion will be appreciated.<br>Thank you in advance.</blockquote><div><br>1) Any report like this should be sent to <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a> because we need configure.log and make*.log.<br>
<br>2) The warning about -PIC comes about because we cannot parse the warning messages from your compiler. We can try to<br> add this in when we get the log.<br><br>3) If 'make test' works and your link does not, then you have constructed your link line incorrectly. Are you using the PETSc makefiles?<br>
<br> Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Weidong<br><br>$$$$$$$$$$$$$$$$$$$$$Result_1$$$$$$$$$$$$$$$$$$$$$$$$$$$$$<br>
/ftn-custom<br>g++: option « -PIC » non reconnue<br>libfast in: /usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/ts/impls<br>
libfast in: /usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/ts/impls/explicit<br>libfast in: /usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/ts/impls/explicit/euler<br>g++: option « -PIC » non reconnue<br>
libfast in: /usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/ts/impls/explicit/rk<br>g++: option « -PIC » non reconnue<br>libfast in: /usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/ts/impls/explicit/rk/ftn-auto<br>
g++: option « -PIC » non reconnue<br>libfast in: /usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/ts/impls/implicit<br>libfast in: /usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/ts/impls/implicit/beuler<br>
g++: option « -PIC » non reconnue<br>libfast in: /usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/ts/impls/implicit/cn<br><br>#####################################results_2################################<br>/usr/local/temp/lian/Develop/Solver/petscSeq/x86_64_linux/lib/libpetscdm.a(daint.o)(.text+0x2aaf): In function `DAGetWireBasketInterpolation(_p_DA*, _p_Mat*, MatReuse, _p_Mat**)':<br>
/usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/dm/da/utils/daint.c:201: undefined reference to `PetscTableCreate(int, _n_PetscTable**)'<br>/usr/local/temp/lian/Develop/Solver/petscSeq/x86_64_linux/lib/libpetscdm.a(daint.o)(.text+0x2b3d):/usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/dm/da/utils/daint.c:203: undefined reference to `PetscTableAddCount(_n_PetscTable*, int)'<br>
/usr/local/temp/lian/Develop/Solver/petscSeq/x86_64_linux/lib/libpetscdm.a(daint.o)(.text+0x2ba1):/usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/dm/da/utils/daint.c:205: undefined reference to `PetscTableGetCount(_n_PetscTable*, int*)'<br>
/usr/local/temp/lian/Develop/Solver/petscSeq/x86_64_linux/lib/libpetscdm.a(daint.o)(.text+0x2d24):/usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/dm/da/utils/daint.c:209: undefined reference to `PetscTableFind(_n_PetscTable*, int, int*)'<br>
/usr/local/temp/lian/Develop/Solver/petscSeq/x86_64_linux/lib/libpetscdm.a(daint.o)(.text+0x2d8d):/usr/local/temp/lian/Develop/latest/Solver/petscSeq/src/dm/da/utils/daint.c:212: undefined reference to `PetscTableDestroy(_n_PetscTable*)'<br>
/usr/local/temp/lian/Develop/Solver/petscSeq/x86_64_linux/lib/libpetscdm.a(daint.o)(.text+0x5adf): In function `DAGetFaceInterpolation(_p_DA*, _p_Mat*, MatReuse, _p_Mat**)':<br>#####################################################################################<br>
<br><br>My configuration of petsc:<br>&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&<br>
<br> Pushing language C<br> Popping language C<br> Pushing language Cxx<br> Popping language Cxx<br> Pushing language FC<br>
Popping language FC<br>sh: /bin/sh /usr/local/temp/lian/Develop/latest/Solver/OpenSource/petsc-3.0.0-p3/config/BuildSystem/config/packages/config.gue<br>ss<br>Executing: /bin/sh /usr/local/temp/lian/Develop/latest/Solver/OpenSource/petsc-3.0.0-p3/config/BuildSystem/config/packages/con<br>
fig.guess<br>sh: x86_64-unknown-linux-gnu<br><br>sh: /bin/sh /usr/local/temp/lian/Develop/latest/Solver/OpenSource/petsc-3.0.0-p3/config/BuildSystem/config/packages/config.sub<br> x86_64-unknown-linux-gnu<br><br>Executing: /bin/sh /usr/local/temp/lian/Develop/latest/Solver/OpenSource/petsc-3.0.0-p3/config/BuildSystem/config/packages/con<br>
fig.sub x86_64-unknown-linux-gnu<br><br>sh: x86_64-unknown-linux-gnu<br><br><br>================================================================================<br>================================================================================<br>
Starting Configure Run at Tue Mar 10 16:23:30 2009<br>Configure Options: --configModules=PETSc.Configure --optionsModule=PETSc.compilerOptions --with-cc=gcc --with-fc=g77 --with-cx<br>x=g++ --with-mpi=0 --with-x=0 --with-clanguage=cxx --with-shared=1 --with-dynamic=1<br>
Working directory: /usr/local/temp/lian/Develop/latest/Solver/OpenSource/petsc-3.0.0-p3<br>Machine uname:<br>('Linux', 'frioul', '2.6.9-22.ELsmp', '#1 SMP Sat Oct 8 21:32:36 BST 2005', 'x86_64')<br>
Python version:<br>2.3.4 (#1, Feb 17 2005, 21:01:10) <br>[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)]<br>================================================================================<br> Pushing language C<br> Popping language C<br>
Pushing language Cxx<br> Popping language Cxx<br> Pushing language FC<br> Popping language FC<br>================================================================================<br>TEST configureExternalPackagesDir from config.framework(/usr/local/temp/lian/Develop/latest/Solver/OpenSource/petsc-3.0.0-p3/c<br>
onfig/BuildSystem/config/framework.py:815)<br>TESTING: configureExternalPackagesDir from config.framework(config/BuildSystem/config/framework.py:815)<br>================================================================================<br>
TEST configureLibrary from PETSc.packages.NetCDF(/usr/local/temp/lian/Develop/latest/Solver/OpenSource/petsc-3.0.0-p3/config/P<br>ETSc/packages/NetCDF.py:10)<br>TESTING: configureLibrary from PETSc.packages.NetCDF(config/PETSc/packages/NetCDF.py:10)<br>
Find a NetCDF installation and check if it can work with PETSc<br>================================================================================<br>TEST configureLibrary from PETSc.packages.PVODE(/usr/local/temp/lian/Develop/latest/Solver/OpenSource/petsc-3.0.0-p3/config/PE<br>
TSc/packages/PVODE.py:10)<br>TESTING: configureLibrary from PETSc.packages.PVODE(config/PETSc/packages/PVODE.py:10)<br> Find a PVODE installation and check if it can work with PETSc<br>================================================================================<br>
TEST configureDebuggers from PETSc.utilities.debuggers(/usr/local/temp/lian/Develop/latest/Solver/OpenSource/petsc-3.0.0-p3/co<br>nfig/PETSc/utilities/debuggers.py:22)<br>TESTING: configureDebuggers from PETSc.utilities.debuggers(config/PETSc/utilities/debuggers.py:22)<br>
Find a default debugger and determine its arguments<br><br>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>