Bug#1022973: FTBFS on ppc64el

Frédéric Bonnard frediz at debian.org
Fri Oct 28 13:54:35 BST 2022


Package: src:deal.ii
Version: 9.4.0-1
Control: tags -1 ftbfs
Control: tags -1 patch

--

Dear maintainer,
deal.ii fails to build atm on ppc64el on unstable. It actually fails at
link time.
Full log is here :
https://buildd.debian.org/status/fetch.php?pkg=deal.ii&arch=ppc64el&ver=9.4.0-1%2Bb1&stamp=1666717020&raw=0

Link error :

---
/usr/bin/c++ -fPIC -rdynamic -fuse-ld=gold -Wl,-z,relro -ggdb -shared
-Wl,-soname,libdeal.ii.g.so.9.4.0 -o
../lib/powerpc64le-linux-gnu/libdeal.ii.g.so.9.4.0
CMakeFiles/deal.ii.g.dir/dummy.cc.o <loads of .o and .a and .so>
/usr/bin/ld.gold: stub group size is too large; retrying with 0x1500000
/usr/bin/ld.gold: error: invalid STB_LOCAL symbol in external symbols
/usr/bin/ld.gold: error: linker defined: multiple definition of
'00000004.plt_call._ZN6dealii18deal_II_exceptions9internals20compare_for_equalityImjEEbRKT_RKT0_'
/usr/bin/ld.gold: command line: previous definition here
/usr/bin/ld.gold: error: invalid STB_LOCAL symbol in external symbols
/usr/bin/ld.gold: error: linker defined: multiple definition of
'00000004.plt_call._ZN6dealii18StandardExceptions20ExcDimensionMismatchC1ERKmS3_'
/usr/bin/ld.gold: command line: previous definition here
/usr/bin/ld.gold: error: invalid STB_LOCAL symbol in external symbols
/usr/bin/ld.gold: error: linker defined: multiple definition of
'00000004.plt_call._ZN6dealii18deal_II_exceptions9internals20issue_error_noreturnINS_18StandardExceptions20ExcDimens
...
---

Current unstable uses gcc-12. Trying in same build environment with
gcc-11, ld.gold does work.
Also, in a Ubuntu build environment it does work because they use
-Bsymbolic-functions by default, which once added in the Debian's build
makes linking succeed.

So for some reason gcc-12 does things differently compared to gcc-11.
I understand using -Bsymbolic-functions is more a workaround as it
has side effects on the PLT , but that can help for now (see attached
patch).

Regards,


F.
-------------- next part --------------
--- a/deal.ii-9.4.0/debian/rules	2022-07-04 18:45:43.000000000 +0200
+++ b/deal.ii-9.4.0/debian/rules	2022-10-28 12:09:03.891074479 +0200
@@ -3,6 +3,10 @@
 export OMPI_MCA_plm_rsh_agent=/bin/false
 export OMPI_MCA_rmaps_base_oversubscribe=1
 
+ifneq (,$(filter $(DEB_HOST_ARCH),ppc64el))
+CONFIGURE_LINKER_FLAGS=-DDEAL_II_LINKER_FLAGS="-Wl,-Bsymbolic-functions"
+endif
+
 %:
 	dh $@
 
@@ -14,6 +18,7 @@ export OMPI_MCA_rmaps_base_oversubscribe
 override_dh_auto_configure:
 	dh_auto_configure -- \
 	-DDEAL_II_CXX_FLAGS="-Wno-nonnull-compare -Wno-address" \
+	$(CONFIGURE_LINKER_FLAGS) \
 	-DCMAKE_PREFIX_PATH="/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/openmpi;/usr/include/hdf5/openmpi" \
 	-DCMAKE_BUILD_TYPE=DebugRelease \
 	-DDEAL_II_ALLOW_AUTODETECTION=OFF \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20221028/4c956a20/attachment.sig>


More information about the debian-science-maintainers mailing list