Error using the function "Expression"
Hello,
I am using the no-stable version proposed by Dorsal for mountainlion platform. The problem occurs also with stable version.
If I try to use the "Expression" function, for example :
f = Expression('0')
I get the following error :
"
in instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/Users/
-------
RuntimeError Traceback (most recent call last)
<ipython-
----> 1 u0 = Expression(
/Users/
580 # Compile module and get the cpp.Expression class
581 cpp_base, members = compile_
--> 582 [generic_
583 cpp_base, members = cpp_base[0], members[0]
584
/Users/
215 expression_classes = compile_
216 code_snippets), classnames, additional_
--> 217 additional_
218
219 return expression_classes, all_members
/Users/
140 # Compile the extension module
141 compiled_module = compile_
--> 142 code, additional_
143
144 # Get the compiled class
/Users/
64 # Just call JIT compiler when running in serial
65 if MPI.num_processes() == 1:
---> 66 return local_jit(*args, **kwargs)
67
68 # Compile first on process 0
/Users/
429 code = code,
430 additional_
--> 431 **instant_kwargs)
432
433 sys.stdout.flush()
/Users/
542
543 # Recompile if necessary
--> 544 recompile(
545
546 # --- Load, cache, and return module
/Users/
149 os.remove(
150 msg = "In instant.recompile: The module did not compile with command '%s', see '%s'"
--> 151 instant_error(msg % (cmd, compile_
152
153 finally:
/Users/
47 _log.error(
48 text = message[0] % message[1:]
---> 49 raise RuntimeError(text)
50
51 def instant_
RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/Users/
"
And in the "compile.log" file, I get 3 warning :
clang: warning: argument unused during compilation: '-frounding-math'
clang: warning: argument unused during compilation: '-fopenmp'
#warning "Using deprecated NumPy API, disable it by #defining NPY_NO_
and 1 error :
/opt/local/
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [_dolfin_
make[1]: *** [CMakeFiles/
make: *** [all] Error 2
Openmpi has been installed :
port installed openmpi
The following ports are currently installed:
openmpi @1.6.4_0+gcc47
openmpi @1.7.1_0+gcc47
openmpi @1.7.2_0+gcc47 (active)
Many Thanks for answers,
Erwan
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Erwan Liberge for more information if necessary.