instant cmake build does not allow custom extension module with include_dirs, libraries etc...

Bug #1134634 reported by Chaffra Affouda
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Instant
Fix Released
Medium
Kent-Andre Mardal

Bug Description

See 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.

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.

Revision history for this message
Kent-Andre Mardal (kent-and) wrote : Re: [Bug 1134634] [NEW] instant cmake build does not allow custom extension module with include_dirs, libraries etc...

Right, instant is now only using the dolfin cmake configuration file and
ignores the other stuff. We should add back
include_dirs etc. I will try to look at this tomorrow.

Kent

On 27 February 2013 19:19, Chaffra Affouda <email address hidden>wrote:

> Public bug reported:
>
> See 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.
>
> 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.
>
> ** Affects: instant
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Instant
> Core Team, which is subscribed to Instant.
> https://bugs.launchpad.net/bugs/1134634
>
> Title:
> instant cmake build does not allow custom extension module with
> include_dirs, libraries etc...
>
> Status in Instant:
> New
>
> Bug description:
> See 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.
>
> 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.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/instant/+bug/1134634/+subscriptions
>

Revision history for this message
Kent-Andre Mardal (kent-and) wrote :

Could you check:
lp:~kent-and/instant/cmake-includedirs<https://code.launchpad.net/%7Ekent-and/instant/cmake-includedirs>

Kent

On 27 February 2013 19:19, Chaffra Affouda <email address hidden>wrote:

> Public bug reported:
>
> See 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.
>
> 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.
>
> ** Affects: instant
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Instant
> Core Team, which is subscribed to Instant.
> https://bugs.launchpad.net/bugs/1134634
>
> Title:
> instant cmake build does not allow custom extension module with
> include_dirs, libraries etc...
>
> Status in Instant:
> New
>
> Bug description:
> See 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.
>
> 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.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/instant/+bug/1134634/+subscriptions
>

Revision history for this message
Kent-Andre Mardal (kent-and) wrote :
Download full text (3.2 KiB)

 Chaffra Affouda, did this fix work for you ?

Kent

On 28 February 2013 15:51, Kent-Andre Mardal <email address hidden> wrote:

> Could you check:
> lp:~kent-and/instant/cmake-includedirs<https://code.launchpad.net/%7Ekent-and/instant/cmake-includedirs>
>
> Kent
>
> On 27 February 2013 19:19, Chaffra Affouda <email address hidden>wrote:
>
>> Public bug reported:
>>
>> See 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.
>>
>> 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.
>>
>> ** Affects: instant
>> Importance: Undecided
>> Status: New
>>
>> --
>> You received this bug notification because you are a member of Instant
>> Core Team, which is subscribed to Instant.
>> https://bugs.launchpad.net/bugs/1134634
>>
>> Title:
>> instant cmake build does not allow custom extension module with
>> include_dirs, libraries etc...
>>
>> Status in Instant:
>> New
>>
>> Bug description:
>> See 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.
>>
>> 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.
>>
>> To manage notifications about this bug go to:
>> https://bug...

Read more...

Revision history for this message
Chaffra Affouda (chaffra) wrote :

compile.log says

CMake Error at CMakeLists.txt:11 (INCLUDE):
  include called with wrong number of arguments. Include only takes one
  file.

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SWIG: /usr/bin/swig2.0 (found version "2.0.4")
-- Configuring incomplete, errors occurred!

Revision history for this message
Kent-Andre Mardal (kent-and) wrote : Re: [Bug 1134634] Re: instant cmake build does not allow custom extension module with include_dirs, libraries etc...

Can you attach the CMakeList.txt file?

(BTW sorry about the huge font in the previous mail - I didn't try
to make a point)

Kent

On 4 March 2013 14:40, Chaffra Affouda <email address hidden> wrote:

> compile.log says
>
> CMake Error at CMakeLists.txt:11 (INCLUDE):
> include called with wrong number of arguments. Include only takes one
> file.
>
>
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Found SWIG: /usr/bin/swig2.0 (found version "2.0.4")
> -- Configuring incomplete, errors occurred!
>
> --
> You received this bug notification because you are a member of Instant
> Core Team, which is subscribed to Instant.
> https://bugs.launchpad.net/bugs/1134634
>
> Title:
> instant cmake build does not allow custom extension module with
> include_dirs, libraries etc...
>
> Status in Instant:
> New
>
> Bug description:
> See 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.
>
> 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.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/instant/+bug/1134634/+subscriptions
>

Revision history for this message
Chaffra Affouda (chaffra) wrote :

Here it is.
On 03/04/2013 09:53 AM, Kent-Andre Mardal wrote:
> Can you attach the CMakeList.txt file?
>
> (BTW sorry about the huge font in the previous mail - I didn't try
> to make a point)
>
> Kent
>
> On 4 March 2013 14:40, Chaffra Affouda <email address hidden>
> wrote:
>
>> compile.log says
>>
>> CMake Error at CMakeLists.txt:11 (INCLUDE):
>> include called with wrong number of arguments. Include only takes one
>> file.
>>
>>
>> -- The C compiler identification is GNU
>> -- The CXX compiler identification is GNU
>> -- Check for working C compiler: /usr/bin/gcc
>> -- Check for working C compiler: /usr/bin/gcc -- works
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Check for working CXX compiler: /usr/bin/c++
>> -- Check for working CXX compiler: /usr/bin/c++ -- works
>> -- Detecting CXX compiler ABI info
>> -- Detecting CXX compiler ABI info - done
>> -- Found SWIG: /usr/bin/swig2.0 (found version "2.0.4")
>> -- Configuring incomplete, errors occurred!
>>
>> --
>> You received this bug notification because you are a member of Instant
>> Core Team, which is subscribed to Instant.
>> https://bugs.launchpad.net/bugs/1134634
>>
>> Title:
>> instant cmake build does not allow custom extension module with
>> include_dirs, libraries etc...
>>
>> Status in Instant:
>> New
>>
>> Bug description:
>> See 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.
>>
>> 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.
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/instant/+bug/1134634/+subscriptions
>>

Revision history for this message
Johannes Ring (johannr) wrote :

It seems like this line is failing:

  INCLUDE(${UFC_USE_FILE})

The only reason I can see that this will fail is if you have an old version of UFC, from before we added the UFC_USE_FILE.

Revision history for this message
Johannes Ring (johannr) wrote :

@Chaffra: Do have a recent version of UFC from the development branch?

Changed in instant:
milestone: none → 1.2.0
assignee: nobody → Kent-Andre Mardal (kent-and)
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Chaffra Affouda (chaffra) wrote :

On 03/06/2013 07:21 AM, Johannes Ring wrote:
> @Chaffra: Do have a recent version of UFC from the development branch?
>
> ** Changed in: instant
> Milestone: None => 1.2.0
>
> ** Changed in: instant
> Assignee: (unassigned) => Kent-Andre Mardal (kent-and)
>
> ** Changed in: instant
> Status: New => In Progress
>
> ** Changed in: instant
> Importance: Undecided => Medium
>
I do. But it still did not work. By upgrading ufc I also had to upgrade
ffc and others... I'll make sure I am not missing anything because my
programs no longer converge. But as fas as I know it did not work. When
I get up and running today I'll send out my compile.log.

Revision history for this message
Kent-Andre Mardal (kent-and) wrote :

Instant has now been updated so that you can send in additional files. See:
the brach:
lp:~kent-and/instant/cmake-includedirs<https://code.launchpad.net/%7Ekent-and/instant/cmake-includedirs>

Kent

On 6 March 2013 15:53, Chaffra Affouda <email address hidden> wrote:

> On 03/06/2013 07:21 AM, Johannes Ring wrote:
> > @Chaffra: Do have a recent version of UFC from the development branch?
> >
> > ** Changed in: instant
> > Milestone: None => 1.2.0
> >
> > ** Changed in: instant
> > Assignee: (unassigned) => Kent-Andre Mardal (kent-and)
> >
> > ** Changed in: instant
> > Status: New => In Progress
> >
> > ** Changed in: instant
> > Importance: Undecided => Medium
> >
> I do. But it still did not work. By upgrading ufc I also had to upgrade
> ffc and others... I'll make sure I am not missing anything because my
> programs no longer converge. But as fas as I know it did not work. When
> I get up and running today I'll send out my compile.log.
>
> --
> You received this bug notification because you are a member of Instant
> Core Team, which is subscribed to Instant.
> https://bugs.launchpad.net/bugs/1134634
>
> Title:
> instant cmake build does not allow custom extension module with
> include_dirs, libraries etc...
>
> Status in Instant:
> In Progress
>
> Bug description:
> See 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.
>
> 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.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/instant/+bug/1134634/+subscriptions
>

Changed in instant:
status: In Progress → Fix Committed
Johannes Ring (johannr)
Changed in instant:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.