instant and include_dirs path

Asked by Chaffra Affouda

I used to be able to feed instant.build.build_module with the include_dirs variable to look for headers in a non-default location. After merging with the trunk version of instant this no longer works. I am pretty sure that include_dirs is set correctly when running jit. How can I debug this?

See below, instant is missing an extra -I flag for my added include_dirs

/usr/bin/c++ -D_instant_module_b64000edc5326b1f061009cece574086bda73d8b_EXPORTS -fPIC -I/usr/local/include -I/usr/include/python2.7 -I/tmp/tmp6Uu1ly2013-2-26-12-08_instant/instant_module_b64000edc5326b1f061009cece574086bda73d8b -o CMakeFiles/_instant_module_b64000edc5326b1f061009cece574086bda73d8b.dir/instant_module_b64000edc5326b1f061009cece574086bda73d8bPYTHON_wrap.cxx.o -c /tmp/tmp6Uu1ly2013-2-26-12-08_instant/instant_module_b64000edc5326b1f061009cece574086bda73d8b/instant_module_b64000edc5326b1f061009cece574086bda73d8bPYTHON_wrap.cxx
/tmp/tmp6Uu1ly2013-2-26-12-08_instant/instant_module_b64000edc5326b1f061009cece574086bda73d8b/instant_module_b64000edc5326b1f061009cece574086bda73d8bPYTHON_wrap.cxx:3103:25: fatal error: fermi_dirac.h: No such file or directory
compilation terminated.

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johan Hake (johan-hake) said :
#1

A while back we added support for building your extension module using
CMake instead of distutils. The up side with that is that we avoid
subtle link problems, and the downside is that it has not matured to
full feature parity with the distutils backend. Among other things are
the include_dirs variable neglected for the CMake backend.

It should be pretty straightforward to add back this logic. Could you
report a bug to instant?

Johan

On 02/26/2013 06:20 PM, Chaffra Affouda wrote:
> New question #222899 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/222899
>
> I used to be able to feed instant.build.build_module with the include_dirs variable to look for headers in a non-default location. After merging with the trunk version of instant this no longer works. I am pretty sure that include_dirs is set correctly when running jit. How can I debug this?
>
> See below, instant is missing an extra -I flag for my added include_dirs
>
>
> /usr/bin/c++ -D_instant_module_b64000edc5326b1f061009cece574086bda73d8b_EXPORTS -fPIC -I/usr/local/include -I/usr/include/python2.7 -I/tmp/tmp6Uu1ly2013-2-26-12-08_instant/instant_module_b64000edc5326b1f061009cece574086bda73d8b -o CMakeFiles/_instant_module_b64000edc5326b1f061009cece574086bda73d8b.dir/instant_module_b64000edc5326b1f061009cece574086bda73d8bPYTHON_wrap.cxx.o -c /tmp/tmp6Uu1ly2013-2-26-12-08_instant/instant_module_b64000edc5326b1f061009cece574086bda73d8b/instant_module_b64000edc5326b1f061009cece574086bda73d8bPYTHON_wrap.cxx
> /tmp/tmp6Uu1ly2013-2-26-12-08_instant/instant_module_b64000edc5326b1f061009cece574086bda73d8b/instant_module_b64000edc5326b1f061009cece574086bda73d8bPYTHON_wrap.cxx:3103:25: fatal error: fermi_dirac.h: No such file or directory
> compilation terminated.
>

Can you help with this problem?

Provide an answer of your own, or ask Chaffra Affouda for more information if necessary.

To post a message you must log in.