FTBFS with opencascade 7.6.3

Bug #1983997 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netgen (Debian)
Fix Released
Unknown
netgen (Ubuntu)
Fix Released
Undecided
Andreas Hasenack

Bug Description

opencascade is currently a transition in debian, and since it's a sync, so in ubuntu.

netgen in the kinetic archive was build with opencascade 7.5.2 (currently in kinetic release), and fails to build with opencascade 7.6.2 (currently in kinetic proposed):

/home/ubuntu/git/packages/netgen/netgen/libsrc/occ/occgenmesh.cpp:1158:43: error: ‘class Poly_Triangulation’ has no member named ‘Nodes’; did you mean ‘Node’?
 1158 | p[k-1] = triangulation->Nodes()(n).Transformed(loc);
      | ^~~~~
      | Node
/home/ubuntu/git/packages/netgen/netgen/libsrc/occ/occgenmesh.cpp:1159:45: error: ‘class Poly_Triangulation’ has no member named ‘UVNodes’; did you mean ‘UVNode’?
 1159 | par[k-1] = triangulation->UVNodes()(n);
      | ^~~~~~~
      | UVNode

Debian bug[1] has linked to an upstream fix[2].

This is likely also the cause of the python/pygmsh/gmsh segfault[3] that is blocking the pytest3 migration currently:

tests/occ/test_logo.py Fatal Python error: Segmentation fault

Current thread 0x00007f4fb8bd7000 (most recent call first):
  File "/usr/lib/python3/dist-packages/gmsh.py", line 5722 in fuse
  File "/usr/lib/python3/dist-packages/pygmsh/occ/geometry.py", line 173 in boolean_union
  File "/tmp/autopkgtest.btAS2S/build.Tuu/src/tests/occ/test_logo.py", line 35 in test
  File "/usr/lib/python3/dist-packages/_pytest/python.py", line 192 in pytest_pyfunc_call
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1761 in runtest
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 166 in pytest_runtest_call
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 259 in <lambda>
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 338 in from_call
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 258 in call_runtest_hook
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 219 in call_and_report
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 130 in runtestprotocol
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 111 in pytest_runtest_protocol
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 347 in pytest_runtestloop
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 322 in _main
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 268 in wrap_session
  File "/usr/lib/python3/dist-packages/_pytest/main.py", line 315 in pytest_cmdline_main
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 39 in _multicall
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 265 in __call__
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 164 in main
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line 187 in console_main
  File "/usr/bin/pytest-3", line 33 in <module>

Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg.lapack_lite, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator (total: 14)
bash: line 1: 3044 Segmentation fault (core dumped) bash -ec 'pytest-3' 2> >(tee -a /tmp/autopkgtest.btAS2S/command1-stderr >&2) > >(tee -a /tmp/autopkgtest.btAS2S/command1-stdout)
autopkgtest [14:33:31]: test command1: -----------------------]
autopkgtest [14:33:31]: test command1: - - - - - - - - - - results - - - - - - - - - -
command1 FAIL non-zero exit status 139
autopkgtest [14:33:31]: test command1: - - - - - - - - - - stderr - - - - - - - - - -
Fatal Python error: Segmentation fault

1. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014964
2. https://github.com/NGSolve/netgen/commit/08993ae5e2b687e6c21d045b0a9a3f7e8722f17d
3. https://autopkgtest.ubuntu.com/results/autopkgtest-kinetic/kinetic/amd64/p/pygmsh/20220714_144100_cad8f@/log.gz

Tags: ftbfs
Changed in netgen (Debian):
status: Unknown → Confirmed
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This was uploaded to kinetic

Changed in netgen (Ubuntu):
status: New → In Progress
assignee: nobody → Andreas Hasenack (ahasenack)
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package netgen - 6.2.2006+really6.2.1905+dfsg-5ubuntu1

---------------
netgen (6.2.2006+really6.2.1905+dfsg-5ubuntu1) kinetic; urgency=medium

  * Fix FTBFS with opencascade 7.6 (LP: #1983997):
    - d/p/fix-occt-7.6.0-ftbfs-1.patch
    - d/p/fix-occt-7.6.0-ftbfs-2.patch
    - d/p/fix-occt-7.6.0-ftbfs-3.patch
    - d/p/fix-occt-7.6.0-ftbfs-4.patch
    - d/p/fix-occt-7.6.0-ftbfs-5.patch

 -- Andreas Hasenack <email address hidden> Mon, 08 Aug 2022 21:27:14 +0000

Changed in netgen (Ubuntu):
status: Fix Committed → Fix Released
Changed in netgen (Debian):
status: Confirmed → 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.