Ubuntu 12.04 PPA fails compiling Expressions

Asked by Chaitanya CH on 2013-10-29

I am using Ubuntu 12.04, I recently updated via PPA to dolfin 1.2.0

My code does not work when I try to use "Expression"

In [1]: from dolfin import *
In [2]: mesh = UnitCubeMesh(10,10,10)
In [3]: V=FunctionSpace(mesh,"CG",2)
In [4]: E=Expression('x[0]>12?1:2')
Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
In instant.recompile: The module did not compile with command 'cmake -DDEBUG=TRUE . ', see '/home/cchintaluri/.instant/error/dolfin_compile_code_d921ff1f9a69752d5ac5a72c2e599b20/compile.log'
.
.
In [5]: dolfin.__version__
Out[5]: '1.2.0'

In [6]: dolfin.has_cgal()
Out[6]: True

The complile.log reads thus:

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!

Thanks in advance!

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Last query:
2013-10-29
Last reply:
2013-10-31
Johannes Ring (johannr) said : #1

FEniCS no longer uses Launchpad for Questions & Answers. Please consult the documentation on the FEniCS web page for where and how to (re)post your question: http://fenicsproject.org/support/

Can you help with this problem?

Provide an answer of your own, or ask Chaitanya CH for more information if necessary.

To post a message you must log in.