Bug#782317: python-ffc: ffc fails to compile form

Johannes Ring johannr at simula.no
Fri Apr 10 10:50:00 UTC 2015


Package: python-ffc
Version: 1.5.0-2
Severity: important

When running the following simple Python code:

    from ffc import *
    from ufl import *
    cell = triangle
    domain = Domain(cell)
    element = FiniteElement("Lagrange", domain, 1)
    jit(element)

I get this error:

    In instant.recompile: The module did not compile with command
'cmake -DDEBUG=TRUE .', see
'/home/johannr/.instant/error/ffc_form_ad8651f17820c7cc28343fcca78e8dad635a26be/compile.log'
    Traceback (most recent call last):
      File "test.py", line 7, in <module>
        ffc.jit(element)
      File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line
72, in jit
        return jit_element(ufl_object, parameters)
      File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line
177, in jit_element
        compiled_form, module, prefix = jit_form(form, parameters)
      File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line
148, in jit_form
        cache_dir = cache_dir)
      File "/usr/lib/python2.7/dist-packages/ffc/backends/ufc/build.py",
line 73, in build_ufc_module
        **kwargs)
      File "/usr/lib/python2.7/dist-packages/instant/build.py", line
563, in build_module
        recompile(modulename, module_path, new_compilation_checksum,
build_system)
      File "/usr/lib/python2.7/dist-packages/instant/build.py", line
152, in recompile
        instant_error(msg % (cmd, compile_log_filename_dest))
      File "/usr/lib/python2.7/dist-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
'/home/johannr/.instant/error/ffc_form_ad8651f17820c7cc28343fcca78e8dad635a26be/compile.log'

The contents of the compile.log file is the following:

    -- The C compiler identification is GNU 4.9.2
    -- The CXX compiler identification is GNU 4.9.2
    -- Check for working C compiler: /usr/lib/ccache/cc
    -- Check for working C compiler: /usr/lib/ccache/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/lib/ccache/c++
    -- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    CMake Error at CMakeLists.txt:12 (INCLUDE):
      include could not find load file:

        /usr/local/share/ufc/UseUFC.cmake


    -- Found SWIG: /usr/bin/swig (found version "2.0.12")
    -- Configuring incomplete, errors occurred!
    See also "/tmp/tmpiEIblR2015-4-10-12-15_instant_e4dc7d6e60382e59a8964429d236d1b86d91eda0/ffc_form_ad8651f17820c7cc28343fcca78e8dad635a26be/CMakeFiles/CMakeOutput.log".

The problem is that /usr/share/ufc/UFCConfig.cmake points to
UseUFC.cmake under /usr/local/share/ufc instead of /usr/share/ufc. I
will upload a new package that fixes this problem.

Johannes

-- System Information:
Debian Release: 8.0
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-ffc depends on:
ii  libc6                             2.19-15
ii  libgcc1                           1:4.9.2-10
ii  libstdc++6                        4.9.2-10
ii  python                            2.7.8-4
ii  python-fiat                       1.5.0-1
ii  python-instant                    1.5.0-1
ii  python-numpy [python-numpy-abi9]  1:1.8.2-2
ii  python-six                        1.8.0-1
ii  python-ufl                        1.5.0-1

python-ffc recommends no packages.

python-ffc suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list