I just downloaded the binary version of FEniCS 1.2.0 on Mac 10.8.3. I updated my OS and installed Xcode and X11 Libraries. When I ran "python demo_poisson.py", it gave me the following error. Any suggestions on how to fix it?
Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
In instant.recompile: The module did not compile with command 'make VERBOSE=1 ', see '/Users/xpqian/.instant/error/dolfin_compile_code_f6c3010fb014663578b3cbc5ec745210/compile.log'
Traceback (most recent call last):
File "demo_poisson.py", line 54, in <module>
f = Expression("10*exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)")
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/expression.py", line 527, in __new__
cpp_base, members = compile_expressions([cppcode], [constant_members])
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py", line 198, in compile_expressions
additional_declarations))
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py", line 124, in compile_expression_code
code, additional_declarations=additional_declarations)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 66, in mpi_jit
return local_jit(*args, **kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/compilemodule.py", line 452, in compile_extension_module
**instant_kwargs)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/build.py", line 541, in build_module
recompile(modulename, module_path, new_compilation_checksum, build_system)
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/build.py", line 150, in recompile
instant_error(msg % (cmd, compile_log_filename_dest))
File "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/output.py", line 49, in instant_error
raise RuntimeError(text)
RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1 ', see '/Users/xpqian/.instant/error/dolfin_compile_code_f6c3010fb014663578b3cbc5ec745210/compile.log'
I opened the "compile.log" and saw the following error message.
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- 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/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SWIG: /Applications/FEniCS.app/Contents/Resources/bin/swig (found version "2.0.8")
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
DEBUG
-- Build files have been written to: /private/var/folders/yy/828jzcc10032cx56tqwyz5lm0000gn/T/tmpm2Bgn82013-10-6-14-56_instant/dolfin_compile_code_f6c3010fb014663578b3cbc5ec745210
...
...
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [_dolfin_compile_code_f6c3010fb014663578b3cbc5ec745210.so] Error 1
make[1]: *** [CMakeFiles/_dolfin_compile_code_f6c3010fb014663578b3cbc5ec745210.dir/all] Error 2
make: *** [all] Error 2