dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #06458
Debugging scons
I am having trouble with scons trying to find UMFPACK for me on my mac
laptop and am trying to debug how it configures itself. When I look at
dolfin/scons/simula-scons/simula_scons/pkgconggenerators/umfpack.py this
codes adds a bunch of directories and looks for umfpack.h, libumfpack.a,
amd.h and so on. If it can't find these guys it raises an error saying
so and similarly if it cannot compile the test programs. But, when I
run scons with the UMFPACK_DIR set to a directory with the lib and
include/suitesparse it gives me an very ambiguous error not found in the
umfpack.py file: "Unable to generate a suitable pkg-config file for
umfpack." Also I can't find anything like a log file telling me what
the error could be; the only logfiles I find tell me what was found but
not what wasn't. I don't really know scons at all and haven't spent
time learning the whole system, does anyone have some tips for debugging
this sort of thing?
Some other questions I have are:
* Is there a way not to go through the configure process when you change
a bit of the code, ie just make not configure and make?
* How does scons tell that a file has changed? I tried changing the
code a bit and it doesn't seem to be spitting out all the g++ commands
as I expected for the specific files.
Below is some data for my current problem:
aterrel@andy-terrels-computer:/usr/local/src/dolfin$ uname -v -r
8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007;
root:xnu-792.25.20~1/RELEASE_I386
aterrel@andy-terrels-computer:/usr/local/src/dolfin$ find /sw/lib -name
*umfpack*
/sw/lib/libumfpack.a
aterrel@andy-terrels-computer:/usr/local/src/dolfin$ find /sw/include
-name *umfpack*
/sw/include/suitesparse/umfpack.h
<snip>
aterrel@andy-terrels-computer:/usr/local/src/dolfin$ find /sw/include
-name *amd*
/sw/include/suitesparse/amd.h
<snip>
aterrel@andy-terrels-computer:/usr/local/src/dolfin$ find /sw/lib -name
*amd*
/sw/lib/libamd.a
aterrel@andy-terrels-computer:/usr/local/src/dolfin$ UMFPACK_DIR=/sw/ scons
scons: Reading SConscript files ...
<snip>
Checking for umfpack... no (pkg-config file not found)
Trying to generate pkg-config file for umfpack... failed
*** Unable to generate a suitable pkg-config file for umfpack.
*** If umfpack is present on your system, try setting the UMFPACK_DIR
*** environment variable to the directory where umfpack is installed.
*** UMFPACK_DIR is currently set to /sw/
<snip>
--
====================
Andy Terrel
Computer Science Dept
University of Chicago
aterrel@xxxxxxxxxxxx
---------------------
Flying is simple.
You just throw yourself at the ground and miss.
-Hitchhiker's Guide to the Galaxy
Follow ups