← Back to team overview

dolfin team mailing list archive

[Bug 597524] Re: Error when I run dolfin examples

 

1. I run instant-clean.

2. I install gcc-c++, rebuild dolfin with gcc-c++, install it, but get
error when run demo:

> python /usr/share/dolfin/examples/adaptivity/extrapolation/python/demo.py
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling FFC just-in-time (JIT) compiler, this may take some time.
Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
In instant.import_module_directly: Failed to import module 'dolfin_compile_code_5662302e7c2a8a33aedb999958c19d45' from '/home/real/.instant/cache/dolfin_compile_code_5662302e7c2a8a33aedb999958c19d45'.
Failed to import module found in cache. Modulename: 'dolfin_compile_code_5662302e7c2a8a33aedb999958c19d45'; Path: '/home/real/.instant/cache/dolfin_compile_code_5662302e7c2a8a33aedb999958c19d45'.
Traceback (most recent call last):
  File "/usr/share/dolfin/examples/adaptivity/extrapolation/python/demo.py", line 16, in <module>
    dual = Expression("sin(5.0*x[0])*sin(5.0*x[1])")
  File "/usr/lib/petsc-real/python/dolfin/function/expression.py", line 503, in __new__
    cpp_base = compile_expressions([cppcode], [defaults])[0]
  File "/usr/lib/petsc-real/python/dolfin/compilemodules/expressions.py", line 186, in compile_expressions
    expression_classes = compile_expression_code("\n\n".join(code_snippets),classnames)
  File "/usr/lib/petsc-real/python/dolfin/compilemodules/expressions.py", line 121, in compile_expression_code
    use_numpy_typemaps=False)
  File "/usr/lib/petsc-real/python/dolfin/compilemodules/jit.py", line 44, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/usr/lib/petsc-real/python/dolfin/compilemodules/__init__.py", line 347, in compile_extension_module
    **instant_kwargs)
  File "/usr/lib/python2.6/site-packages/instant/build.py", line 486, in build_module
    module = import_and_cache_module(module_path, modulename, moduleids)
  File "/usr/lib/python2.6/site-packages/instant/cache.py", line 66, in import_and_cache_module
    instant_assert(module is not None, "Failed to import module found in cache. Modulename: '%s'; Path: '%s'." % (modulename, path))
  File "/usr/lib/python2.6/site-packages/instant/output.py", line 55, in instant_assert
    raise AssertionError(text)
AssertionError: Failed to import module found in cache. Modulename: 'dolfin_compile_code_5662302e7c2a8a33aedb999958c19d45'; Path: '/home/real/.instant/cache
/home/real/.instant/cache/dolfin_compile_code_5662302e7c2a8a33aedb999958c19d45:

-- 
Error when I run dolfin examples
https://bugs.launchpad.net/bugs/597524
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.

Status in DOLFIN: Invalid

Bug description:
Command:
$ python /usr/share/dolfin/examples/adaptivity/adaptive-poisson/python/demo.py

Traceback:
Calling FFC just-in-time (JIT) compiler, this may take some time.
In instant.recompile: The module did not compile, see '/tmp/.private/real/tmpDTaz9F2010-6-23-03-32_instant/form_24ff983a5ff5adb5327347034b995a505d6295c7/compile.log'
Traceback (most recent call last):
  File "/usr/share/dolfin/examples/adaptivity/adaptive-poisson/python/demo.py", line 46, in <module>
    V = FunctionSpace(mesh, "CG", 1)
  File "/usr/lib/petsc-real/python/dolfin/function/functionspace.py", line 230, in __init__
    FunctionSpaceBase.__init__(self, mesh, element)
  File "/usr/lib/petsc-real/python/dolfin/function/functionspace.py", line 44, in __init__
    ufc_element, ufc_dofmap = jit(self._ufl_element)
  File "/usr/lib/petsc-real/python/dolfin/compilemodules/jit.py", line 44, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/usr/lib/petsc-real/python/dolfin/compilemodules/jit.py", line 103, in jit
    return jit_compile(form, parameters=p, common_cell=common_cell)
  File "/usr/lib/python2.6/site-packages/ffc/jitcompiler.py", line 56, in jit
    return jit_element(object, parameters)
  File "/usr/lib/python2.6/site-packages/ffc/jitcompiler.py", line 135, in jit_element
    (compiled_form, module, form_data) = jit_form(form, parameters)
  File "/usr/lib/python2.6/site-packages/ffc/jitcompiler.py", line 107, in jit_form
    cache_dir = cache_dir)
  File "/usr/lib64/python2.6/site-packages/ufc_utils/build.py", line 63, in build_ufc_module
    **kwargs)
  File "/usr/lib/python2.6/site-packages/instant/build.py", line 474, in build_module
    recompile(modulename, module_path, setup_name, new_compilation_checksum)
  File "/usr/lib/python2.6/site-packages/instant/build.py", line 100, in recompile
    "compile, see '%s'" % compile_log_filename)
  File "/usr/lib/python2.6/site-packages/instant/output.py", line 49, in instant_error
    raise RuntimeError(text)
RuntimeError: In instant.recompile: The module did not compile, see '/tmp/.private/real/tmpDTaz9F2010-6-23-03-32_instant/form_24ff983a5ff5adb5327347034b995a505d6295c7/compile.log'

/tmp/.private/real/tmpDTaz9F2010-6-23-03-32_instant/form_24ff983a5ff5adb5327347034b995a505d6295c7/compile.log:
running build_ext                                                                                 
building '_form_24ff983a5ff5adb5327347034b995a505d6295c7' extension                               
creating build                                                                                    
creating build/temp.linux-x86_64-2.6                                                              
x86_64-alt-linux-gcc -pthread -fno-strict-aliasing -DNDEBUG -pipe -Wall -O2 -fPIC -DPIC -D_GNU_SOURCE -fPIC -I/usr/include -I/usr/include -I/usr/include/python2.6 -c form_24ff983a5ff5adb5327347034b995a505d6295c7_wrap.cxx -o build/temp.linux-x86_64-2.6/form_24ff983a5ff5adb5327347034b995a505d6295c7_wrap.o -O0
x86_64-alt-linux-gcc: error trying to exec 'cc1plus': execvp: No such file or directory           
error: command 'x86_64-alt-linux-gcc' failed with exit status 1

Info:
dolfin: 0.9.7 (bzr 2010/06/15)
ffc: 0.9.2 (bzr 2010/06/15)
instant: 0.9.8 (bzr 2010/02/15)





References