Here's the output:

$ cat
/Users/justin/.instant/error/ffc_form_030172ac36a54f6832c74e6833003d3326a83aa3/compile.log

CMake Error at
/Applications/FEniCS.app/Contents/Resources/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:56
(message):

  Could not find compiler set in environment variable CC:


  /usr/bin/gcc.

Call Stack (most recent call first):

  CMakeLists.txt:6 (PROJECT)



CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.

Missing variable is:

CMAKE_C_COMPILER_ENV_VAR

CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.

Missing variable is:

CMAKE_C_COMPILER

CMake Error: Could not find cmake module file:
/private/var/folders/bg/3k_v2mx51nl4nssd2p1hd8p80000gn/T/tmpid5wnA2015-8-29-23-30_instant_cbc0b63df6cdf70bfc946b65e79347a656f7f16f/ffc_form_030172ac36a54f6832c74e6833003d3326a83aa3/CMakeFiles/2.8.12/CMakeCCompiler.cmake

CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.

Missing variable is:

CMAKE_CXX_COMPILER_ENV_VAR

CMake Error: Error required internal CMake variable not set, cmake may be
not be built correctly.

Missing variable is:

CMAKE_CXX_COMPILER

CMake Error: Could not find cmake module file:
/private/var/folders/bg/3k_v2mx51nl4nssd2p1hd8p80000gn/T/tmpid5wnA2015-8-29-23-30_instant_cbc0b63df6cdf70bfc946b65e79347a656f7f16f/ffc_form_030172ac36a54f6832c74e6833003d3326a83aa3/CMakeFiles/2.8.12/CMakeCXXCompiler.cmake

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage

CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

-- Configuring incomplete, errors occurred!

See also
"/private/var/folders/bg/3k_v2mx51nl4nssd2p1hd8p80000gn/T/tmpid5wnA2015-8-29-23-30_instant_cbc0b63df6cdf70bfc946b65e79347a656f7f16f/ffc_form_030172ac36a54f6832c74e6833003d3326a83aa3/CMakeFiles/CMakeOutput.log".


========

My CMake was built using brew install cmake. Could that have something to
do with this?

Thanks,

On Tue, Sep 1, 2015 at 2:37 AM, Anders Logg <[email protected]> wrote:

> You should check that file reported at the end:
>
> $ cat /Users/justin/.instant/error/ffc_form_030172ac36a54f6832c74
> e6833003d3326a83aa3/compile.log
>
> Does it give any hint on why compilation failed?
>
> --
> Anders
>
>
> tis 1 sep. 2015 kl 10:35 skrev Justin Chang <[email protected]>:
>
>> Hi all,
>>
>> I installed FEniCS onto my MacOSX using the provided .dmg from the
>> website. When I source the FEniCS environment and try to run the
>> provided demo_poisson.py I get this error:
>>
>> Calling FFC just-in-time (JIT) compiler, this may take some time.
>>
>> In instant.recompile: The module did not compile with command 'cmake
>> -DDEBUG=TRUE .', see
>>
>> '/Users/justin/.instant/error/ffc_form_030172ac36a54f6832c74e6833003d3326a83aa3/compile.log'
>>
>> Traceback (most recent call last):
>>
>>   File "demo_poisson.py", line 41, in <module>
>>
>>     V = FunctionSpace(mesh, "Lagrange", 1)
>>
>>   File
>> "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py",
>> line 468, in __init__
>>
>>     FunctionSpaceBase.__init__(self, mesh, element, constrained_domain)
>>
>>   File
>> "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/functionspace.py",
>> line 153, in __init__
>>
>>     ufc_element, ufc_dofmap = jit(self._ufl_element,
>> mpi_comm=mesh.mpi_comm())
>>
>>   File
>> "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py",
>> line 64, in mpi_jit
>>
>>     return local_jit(*args, **kwargs)
>>
>>   File
>> "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py",
>> line 128, in jit
>>
>>     return form_compiler.jit(form, parameters=p)
>>
>>   File
>> "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/jitcompiler.py",
>> line 72, in jit
>>
>>     return jit_element(ufl_object, parameters)
>>
>>   File
>> "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/jitcompiler.py",
>> line 180, in jit_element
>>
>>     compiled_form, module, prefix = jit_form(form, parameters)
>>
>>   File
>> "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/jitcompiler.py",
>> line 148, in jit_form
>>
>>     cache_dir = cache_dir)
>>
>>   File
>> "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/ffc/backends/ufc/build.py",
>> line 73, in build_ufc_module
>>
>>     **kwargs)
>>
>>   File
>> "/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/build.py",
>> line 563, 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 152, 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 85, in instant_error
>>
>>     raise RuntimeError(text)
>>
>> RuntimeError: In instant.recompile: The module did not compile with
>> command 'cmake -DDEBUG=TRUE .', see
>>
>> '/Users/justin/.instant/error/ffc_form_030172ac36a54f6832c74e6833003d3326a83aa3/compile.log'
>>
>> Know what this means?
>>
>> Thanks,
>>
>> --
>> Justin Chang
>> PhD Candidate, Civil Engineering - Computational Sciences
>> University of Houston, Department of Civil and Environmental Engineering
>> Houston, TX 77004
>> (512) 963-3262
>> _______________________________________________
>> fenics-support mailing list
>> [email protected]
>> http://fenicsproject.org/mailman/listinfo/fenics-support
>>
>


-- 
Justin Chang
PhD Candidate, Civil Engineering - Computational Sciences
University of Houston, Department of Civil and Environmental Engineering
Houston, TX 77004
(512) 963-3262
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to