Cannot build libadjoint, conflict with PETSc C++-only build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libadjoint |
Fix Committed
|
Medium
|
Patrick Farrell |
Bug Description
I am trying to build libadjoint to use on MacOS X Snow Leopard. I plan to use it with dolfin-adjoint. I have built dolfin and its dependencies using Dorsal, so I am trying to use Dorsal to build libadjoint and dolfin-adjoint too.
Libadjoint fails to build: the error appears when including a PETSc header, that complains that PETSc was compiled with --with-
(I tried compiling libadjoint with a C++ compiler, using "CC=g++", but I only got a whole bunch of other errors because g++ seems to be stricter on casts in particular.)
Can you please help me build libadjoint ? Thanks !
The output is here:
Fetching libadjoint
Not checking SSL certificate for xmlrpc.
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 409 revisions.
Building libadjoint
CC src/adj_
i686-apple-
CC src/adj_
i686-apple-
CC src/adj_core.c
i686-apple-
CC src/adj_
i686-apple-
CC src/adj_debug.c
i686-apple-
CC src/adj_
i686-apple-
CC src/adj_
i686-apple-
CC src/adj_
i686-apple-
CC src/adj_
In file included from /Users/
/Users/
Hi,
I think I fixed this in r410, just committed. Can you try it out and let me know if it works for you?
Regardless, libadjoint only has a soft dependency on PETSc (it's necessary only for the GST calculations, so if you don't intend to do any of those, you don't need it; just "unset PETSC_ARCH; unset PETSC_DIR". Either way, please let me know if your problem is fixed.
Cheerio,
Patrick