#1106374 binutils: Build of BCC fails with relocation of misaligned symbol during link on s390x

Package:
binutils
Source:
binutils
Description:
GNU assembler, linker and binary utilities
Submitter:
Ilya Leoshkevich
Date:
2025-10-13 09:55:02 UTC
Severity:
normal
#1106374#5
Date:
2025-05-23 18:06:34 UTC
From:
To:
Dear Maintainer,

Building BCC fails on s390x debian trixie as follows:

$ docker run -it --rm debian:trixie
# apt-get update && apt-get install -y cmake g++ git libclang-19-dev libelf-dev libpolly-19-dev llvm-19-dev python3-setuptools zip
# git clone --branch=v0.34.0 --depth=1 https://github.com/iovisor/bcc.git
# cd bcc
# cmake .
# make -j"$(nproc)"
/usr/bin/ld: /usr/lib/gcc/s390x-linux-gnu/14/libstdc++.a(shared_ptr.o)(.text._ZNSt19_Sp_make_shared_tag5_S_eqERKSt9type_info+0x2): misaligned symbol `_ZTSSt19_Sp_make_shared_tag' (0x8574f77) for relocation R_390_PC32DBL

Here is the upstream bug report: https://sourceware.org/bugzilla/show_bug.cgi?id=32969

Here is the upstream fix: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=f0019390d12162ea8141efa92246aa615ff5efee

Could you please add this patch to Debian?

Best regards,
Ilya

#1106374#10
Date:
2025-09-10 06:03:58 UTC
From:
To:
Hi Matthias,

I did try out the patch mentioned by Ilya using autocommit and dch --bpo on my machine.
After installing the newly built binutils, bcc seems to be building fine.
Could you please help me out with applying this backport to trixie?

Thanks,
Pranav

#1106374#15
Date:
2025-09-17 05:41:08 UTC
From:
To:
Hi Matthias,

I did get in touch with Jens Remus who had written the upstream patch.
He has verified that the patch is safe for this version of binutils.

Thanks,
Pranav

#1106374#20
Date:
2025-10-13 05:30:32 UTC
From:
To:
Hi Matthias,

I did get in touch with our Distinguished Engineer Ulrich Weigand and he was suggesting that
I do not do a sponsored upload for a package as vital as binutils. So, once time permits, can you
please help us out with the backport?

Thanks,
Pranav

#1106374#25
Date:
2025-10-13 09:54:14 UTC
From:
To:
Hi,

I just so that the change is already in the 2.44 branch upstream.
https://sourceware.org/git/?p=binutils-gdb.git;a=tree;h=refs/heads/binutils-2_44-branch;hb=refs/heads/binutils-2_44-branch

Thanks,
Pranav