FFC

FFC compilation error with product spaces

Bug #1061111 reported by Nico Schlömer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
FFC
Fix Released
High
Marie Rognes

Bug Description

The script

mesh = UnitCube(2, 2, 2)
PN = FunctionSpace(mesh, "Nedelec 2nd kind H(curl)", 1)
W = PN * PN
v = TestFunction(W)
c = Function(W)
L = inner(c, v)*dx
b = assemble(L)

fails with the error message

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/usr/include -I/usr/include/python2.7 -c b8523121f3acacf0a6d1b63598de33ea893b135d_wrap.cxx -o build/temp.linux-x86_64-2.7/b8523121f3acacf0a6d1b63598de33ea893b135d_wrap.o -O0
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from b8523121f3acacf0a6d1b63598de33ea893b135d_wrap.cxx:3098:0:
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h: In member function ‘virtual void ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d_cell_integral_0_0::tabulate_tensor(double*, const double* const*, const ufc::cell&) const’:
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h:3878:80: error: ‘K_03’ was not declared in this scope
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h:3878:85: error: ‘K_13’ was not declared in this scope
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h:3878:92: error: ‘K_04’ was not declared in this scope
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h:3878:97: error: ‘K_14’ was not declared in this scope
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h:3878:104: error: ‘K_05’ was not declared in this scope
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h:3878:109: error: ‘K_15’ was not declared in this scope
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h:3879:85: error: ‘K_23’ was not declared in this scope
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h:3879:97: error: ‘K_24’ was not declared in this scope
ffc_form_b8523121f3acacf0a6d1b63598de33ea893b135d.h:3879:109: error: ‘K_25’ was not declared in this scope
error: command 'gcc' failed with exit status 1

Revision history for this message
Garth Wells (garth-wells) wrote :

This is an FFC bug (not a DOLFIN bug).

Changed in dolfin:
status: New → Confirmed
affects: dolfin → ffc
Changed in ffc:
importance: Undecided → High
assignee: nobody → Marie Rognes (meg-simula)
Johannes Ring (johannr)
Changed in ffc:
status: Confirmed → Fix Committed
milestone: none → 1.2.0
Johannes Ring (johannr)
Changed in ffc:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.