Bug#1068464: deal.ii: FTBFS: libgmp not linked, libdeal.ii.g.so.9.5.1: error: undefined reference to '__gmpn_neg'

Drew Parsons dparsons at debian.org
Fri Apr 5 16:49:18 BST 2024


Source: deal.ii
Version: 9.5.1-2
Severity: normal
Tags: ftbfs

I'm getting an error running deal.ii tests building against petsc 3.20
(from experimental)

[100%] Built target dealii_release
make  -f tests/CMakeFiles/test.dir/build.make tests/CMakeFiles/test.dir/depend
make[5]: Entering directory '/home/drew/projects/misc/build/deal.ii-9.5.1/obj-x86_64-linux-gnu'
cd /home/drew/projects/misc/build/deal.ii-9.5.1/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/drew/projects/misc/build/deal.ii-9.5.1 /home/drew/projects/misc/build/deal.ii-9.5.1/tests /home/drew/projects/misc/build/deal.ii-9.5.1/obj-x86_64-linux-gnu /home/drew/projects/misc/build/deal.ii-9.5.1/obj-x86_64-linux-gnu/tests /home/drew/projects/misc/build/deal.ii-9.5.1/obj-x86_64-linux-gnu/tests/CMakeFiles/test.dir/DependInfo.cmake "--color="
make[5]: Leaving directory '/home/drew/projects/misc/build/deal.ii-9.5.1/obj-x86_64-linux-gnu'
make  -f tests/CMakeFiles/test.dir/build.make tests/CMakeFiles/test.dir/build
make[5]: Entering directory '/home/drew/projects/misc/build/deal.ii-9.5.1/obj-x86_64-linux-gnu'
[100%] Running quicktests...
/usr/bin/cmake -DCMAKE_BUILD_TYPE=DEBUG -P /home/drew/projects/misc/build/deal.ii-9.5.1/tests/run_quick_tests.cmake
-- Running quick_tests in DEBUG mode with -j8:
Test project /home/drew/projects/misc/build/deal.ii-9.5.1/obj-x86_64-linux-gnu
      Start 19: test_dependency/quick_tests.mpi.debug.executable
      Start 23: test_dependency/quick_tests.p4est.debug.executable
      Start 29: test_dependency/quick_tests.step-metis.debug.executable
      Start  1: quick_tests/adolc.debug
      Start  3: quick_tests/affinity.debug
      Start  4: quick_tests/affinity.release
      Start  5: quick_tests/assimp.debug
      Start  7: quick_tests/boost_zlib.debug
 1/25 Test  #1: quick_tests/adolc.debug ...................................***Failed    9.33 sec
/home/drew/projects/misc/build/deal.ii-9.5.1/obj-x86_64-linux-gnu/lib/x86_64-linux-gnu/libdeal.ii.g.so.9.5.1: error: undefined reference to '__gmpn_neg'
collect2: error: ld returned 1 exit status
gmake[9]: *** [CMakeFiles/quick_tests.adolc.debug.dir/build.make:299: adolc.debug/adolc.debug] Error 1
gmake[8]: *** [CMakeFiles/Makefile2:261: CMakeFiles/quick_tests.adolc.debug.dir/all] Error 2
gmake[7]: *** [CMakeFiles/Makefile2:294: CMakeFiles/quick_tests.adolc.debug.test.dir/rule] Error 2
gmake[6]: *** [Makefile:173: quick_tests.adolc.debug.test] Error 2

Likewise undefined __gmpn_com with quick_tests/affinity.release,
quick_tests/step.release.  All 25 tests fail with either undefined
__gmpn_neg or __gmpn_com.


__gmp* is provided by libgmp, which suggests build configuration for
gmp is not getting through, not setting -lgmp for linking.

deal.ii recently built successfully in unstable (for time_t), so it's
not time to mark this bug severity: serious.  I get it when trying to
rebuild against petsc 3.20 from experimental. But it's not obvious to
me that petsc 3.20 itself would be triggering the problem.  Perhaps
it's a local issue on my system with the experimental petsc builds
that might resolve itself after we upload petsc 3.20 to unstable,
which I've requested in transition Bug#1067064.

Filing this bug to keep track, or see if anyone else is experiencing
the same problem.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.7.9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the debian-science-maintainers mailing list