[petsc-users] Installing Triangle for PETSc by not using --download

Mike Michell mi.mike1021 at gmail.com
Fri Nov 4 12:37:45 CDT 2022


Hi,

I need to install PETSc and its dependencies to a linux system, which does
not allow git clone from online. Thus I need to install all the
dependencies by having their source files. First I downloaded and installed
all the dependencies by relying on PETSc on my local linux (which means I
used --download=triangle), then tar all of them, and brought them to the
cluster.

There is an issue with Triangle. I can do make (or cmake using the
CMakeList file that Triangle 1.6 provides, although PETSc --download
provides Triangle 1.3) and can get "libtriangle.a". But during the PETSc
configure step, it fails with the error message below:

{$Triangle_Home}/build/libtriangle.a(triangle.c.o): In function `poolinit':
triangle.c:(.text+0x15aa): undefined reference to `PetscTrMalloc'
{$Triangle_Home}/build/libtriangle.a(triangle.c.o): In function
`pooldeinit':
triangle.c:(.text+0x1708): undefined reference to `PetscTrFree'
...

It seems that I need to let Triangle know that it will be used by PETSc to
enable those functions when I install Triangle. Is this correct
understanding? If so, how can I configure, install, and link Triangle with
PETSc?

I have seen some PETSc related commands in configure.py in the root
directory of Triangle downloaded by PETSc, but it is not clear how this
python script is related or can be used by user like me.

Thanks,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221104/b683ea37/attachment.html>


More information about the petsc-users mailing list