Source: dcontainers
Version: 0.8.0~alpha.16-1
Severity: serious
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy

Hi Matthias,

While rebuilding packages in Ubuntu for the libphobos2-ldc ABI change, I
found that dcontainers fails to build from source on s390x:

[...]
[44/44] gdc  -o test_looptest test_looptest.p/test_looptest.d.o 
-Wl,--allow-shlib-undefined -shared-libphobos -Wl,-z,relro -g -O2 
'-ffile-prefix-map=/root/dcontainers-0.8.0~alpha.16=.' -fstack-protector-strong 
-frelease '-Wl,-rpath,$ORIGIN/' 
'-Wl,-rpath-link,/root/dcontainers-0.8.0~alpha.16/obj-s390x-linux-gnu/' 
-Wl,libdcontainers.so.0.8.0 -lstdx-allocator -lmir-core
FAILED: test_looptest 
gdc  -o test_looptest test_looptest.p/test_looptest.d.o 
-Wl,--allow-shlib-undefined -shared-libphobos -Wl,-z,relro -g -O2 
'-ffile-prefix-map=/root/dcontainers-0.8.0~alpha.16=.' -fstack-protector-strong 
-frelease '-Wl,-rpath,$ORIGIN/' 
'-Wl,-rpath-link,/root/dcontainers-0.8.0~alpha.16/obj-s390x-linux-gnu/' 
-Wl,libdcontainers.so.0.8.0 -lstdx-allocator -lmir-core
/usr/bin/ld: test_looptest.p/test_looptest.d.o: in function 
`_D4stdx9allocator__T4makeTS10containers5ttree__T5TTreeTiTSQCeQCc10mallocator10MallocatorVbi0VAyaa5_61203c2062Vbi0Vmi64ZQCt4NodeTQCtZQEiFNbNiNfQDhZPQEr':
/usr/include/d/stdx-allocator/stdx/allocator/package.d:671: undefined reference 
to `_D3mir7utility__T3maxTmTmZQjFNaNbNiNfmmZm'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
[...]

  
(https://launchpad.net/ubuntu/+source/dcontainers/0.8.0~alpha.16-1build6/+build/22612941)

This build failure is also reproducible in Debian unstable.

While the s390x binaries don't need to be rebuilt for the libphobos2-ldc ABI
change (because ldc is not available on s390x and s390x uses gdc instead),
it is nevertheless a serious bug.  It also prevents updating the package in
Ubuntu, because unlike Debian, Ubuntu does not have binNMUs.

There is a similar build failure on armhf, where gdc appears to be the
default D compiler despite ldc being available for this arch.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org

Attachment: signature.asc
Description: PGP signature

Reply via email to