In the logs: -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.14.7", minimum required is "3") -- Found UFC: /usr/lib/python3/dist-packages/ffc/backends/ufc (Required is at least version "2019.2") -- Found PkgConfig: /usr/bin/arm-linux-gnueabihf-pkg-config (found version "2.5.1") -- Checking for one of the modules 'craypetsc_real;petsc;PETSc' -- Test PETSC_TEST_RUNS with shared library linking - Failed -- Test PETSC_TEST_RUNS static linking - Failed -- Looking for sys/types.h
The test is failing, so CMake skips petsc and therefore the dep is not there, hence the missing -lxxx lines and the missing include. After some poking, I assessed it was due to the fact we use GCC15 while Debian uses GCC16. The probable cause is that by default, GCC15 doesn't know or handle __fp16. In petsc builds, we pass -mfp16-format=ieee (since 3.25.4+dfsg1-2), so this is no problem, but that flag is not passed to packages depending on petsc. When we run the TEST_RUNS, gcc15 fails because __fp16 is not defined. GCC16 always declare __fp16. Therefore even without the forementioned flag, everything goes smoothly. (see https://inbox.sourceware.org/gcc- bugs/[email protected]%2Fbugzilla%2F/) Note that the commit has been ported to gcc15 yesterday https://github.com/gcc- mirror/gcc/commit/dee6dca21889ee3c9c5a1cb78d288bf6b65a2246 From there, three options: - Include the latest gcc-15 release when it's out and then everything will work. - fix petsc: add a quilt patch that makes petsccxxcomplexfix referencing __fp16 only if it is defined, which implies a delta to carry - Do as you did with dolfinx: add GCC-16 as a build dep for armhf only, and add the proper CC/CXX in d/rules for the arch. I'd go with the last one, but I'm open to alternatives. ** Changed in: dolfin (Ubuntu) Importance: Undecided => Medium ** Changed in: dolfin (Ubuntu) Status: New => In Progress ** Changed in: dolfin (Ubuntu) Assignee: (unassigned) => Pierre-Elliott Becue (peb) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2168983 Title: dolfin ftbfs on armhf in stonking To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dolfin/+bug/2168983/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
