[petsc-users] Installation Error
Matthew Knepley
knepley at gmail.com
Sun Oct 6 07:38:14 CDT 2013
On Sun, Oct 6, 2013 at 3:03 AM, Sonya Blade <sonyablade2010 at hotmail.com>wrote:
> Thank you all,
>
> I gave up using the cygwin64, in any case compiling with classic
> cygwin_win32 must work in
> all platforms and is much more convenient for me.
>
> After succesfully installing petsc and slepc (ver 3.4.2 ) I get the
> following errors. I'm using
> Code Blocks as IDE editor and I set and configured all the required search
> directories, external libraries
> e.g. lipetsc.a, libslepc.a etc.. in C::B But again compiler raises the
> following errors.
>
> I don't think that its related with Petsc or Slepc installation, it seems
> that those intrinsically
> or inherently belong to the compiler misconfiguration, but mine is just a
> guess.
>
> I also would like to note that I'm using GNU GCC Compiler in C:B for
> compilation, or should I use CYGWin GCC?
>
1) You must use the same compiler that you configured with.
2) You can get all the libraries you need to specify using
make get linklibs
Matt
> Your advice will be appreciated,
>
>
> .\..\..\slepc-3.4.2\arch-mswin-c-debug\lib\libslepc.a(slepcinit.c.o): In
> function `SlepcInitialize':
> /cygdrive/d/TEST_FOLDER_asus/slepc-3.4.2/src/sys/slepcinit.c:200:
> undefined reference to `srand48'
> ..\..\..\..\petsc-3.4.2\arch-mswin-c-debug\lib\libpetsc.a(pinit.c.o): In
> function `PetscInitialize':
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/pinit.c:659:
> undefined reference to `__getreent'
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/pinit.c:660:
> undefined reference to `__getreent'
> ..\..\..\..\petsc-3.4.2\arch-mswin-c-debug\lib\libpetsc.a(pinit.c.o): In
> function `PetscFinalize':
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/pinit.c:1028:
> undefined reference to `__getreent'
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/pinit.c:1098:
> undefined reference to `__getreent'
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/pinit.c:1162:
> undefined reference to `__getreent'
> ..\..\..\..\petsc-3.4.2\arch-mswin-c-debug\lib\libpetsc.a(pinit.c.o):/cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/pinit.c:1189:
> more undefined references to `__getreent' follow
> ..\..\..\..\petsc-3.4.2\arch-mswin-c-debug\lib\libpetsc.a(mprint.c.o): In
> function `PetscSynchronizedFGets':
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/fileio/mprint.c:663:
> undefined reference to `__errno'
> ..\..\..\..\petsc-3.4.2\arch-mswin-c-debug\lib\libpetsc.a(checkptr.c.o):
> In function `PetscCheckPointer':
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/error/checkptr.c:29:
> undefined reference to `sigemptyset'
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/error/checkptr.c:32:
> undefined reference to `sigaction'
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/error/checkptr.c:34:
> undefined reference to `setjmp'
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/error/checkptr.c:36:
> undefined reference to `sigaction'
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/error/checkptr.c:74:
> undefined reference to `sigaction'
> ..\..\..\..\petsc-3.4.2\arch-mswin-c-debug\lib\libpetsc.a(mal.c.o): In
> function `PetscMallocAlign':
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/memory/mal.c:27:
> undefined reference to `memalign'
> ..\..\..\..\petsc-3.4.2\arch-mswin-c-debug\lib\libpetsc.a(options.c.o): In
> function `PetscOptionsValidKey':
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/options.c:242:
> undefined reference to `_imp____ctype_ptr__'
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/options.c:243:
> undefined reference to `_imp____ctype_ptr__'
> ..\..\..\..\petsc-3.4.2\arch-mswin-c-debug\lib\libpetsc.a(options.c.o): In
> function `PetscOptionsInsert':
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/options.c:598:
> undefined reference to `__getreent'
> ..\..\..\..\petsc-3.4.2\arch-mswin-c-debug\lib\libpetsc.a(filev.c.o): In
> function `PetscViewerFileClose_ASCII':
> /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/classes/viewer/impls/ascii/filev.c:17:
> undefined reference to `__getreent'
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131006/78cac663/attachment-0001.html>
More information about the petsc-users
mailing list