Source: patchelf
Version: 0.18.0-1.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20241223 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, this package failed to build
on armhf.

This package currently has binary packages on armhf, so this is a regression.
Also, there are no known issues on amd64 or arm64 according to recent (a couple
days ago) rebuilds.

The rebuild was done using an armhf chroot on an AWS "m6g" instance (Graviton2
CPU).

Relevant part (hopefully):
> make[4]: Entering directory '/<<PKGBUILDDIR>>/tests'
> PASS: plain-fail.sh
> PASS: plain-run.sh
> PASS: set-interpreter-short.sh
> PASS: shrink-rpath.sh
> PASS: set-interpreter-long.sh
> PASS: set-rpath.sh
> PASS: add-rpath.sh
> PASS: no-rpath.sh
> PASS: big-dynstr.sh
> PASS: soname.sh
> SKIP: set-rpath-rel-map.sh
> PASS: set-rpath-library.sh
> PASS: shrink-rpath-with-allowed-prefixes.sh
> PASS: plain-needed.sh
> PASS: output-flag.sh
> PASS: too-many-strtab.sh
> PASS: force-rpath.sh
> PASS: build-id.sh
> PASS: invalid-elf.sh
> PASS: contiguous-note-sections.sh
> PASS: no-rpath-pie-powerpc.sh
> PASS: no-gnu-hash.sh
> PASS: endianness.sh
> PASS: no-dynamic-section.sh
> PASS: grow-file.sh
> PASS: basic-flags.sh
> PASS: args-from-file.sh
> PASS: set-empty-rpath.sh
> PASS: phdr-corruption.sh
> PASS: change-abi.sh
> PASS: replace-needed.sh
> PASS: empty-note.sh
> PASS: add-debug-tag.sh
> FAIL: replace-add-needed.sh
> FAIL: repeated-updates.sh
> PASS: print-execstack.sh
> PASS: overlapping-segments-after-rounding.sh
> SKIP: short-first-segment.sh
> PASS: shared-rpath.sh
> PASS: modify-execstack.sh
> PASS: no-rpath-amd64.sh
> PASS: no-rpath-armel.sh
> PASS: no-rpath-armhf.sh
> PASS: no-rpath-hurd-i386.sh
> PASS: no-rpath-i386.sh
> PASS: rename-dynamic-symbols.sh
> PASS: no-rpath-ia64.sh
> PASS: no-rpath-kfreebsd-i386.sh
> PASS: no-rpath-kfreebsd-amd64.sh
> PASS: no-rpath-mips.sh
> PASS: no-rpath-powerpc.sh
> PASS: no-rpath-s390.sh
> PASS: no-rpath-mipsel.sh
> PASS: no-rpath-sh4.sh
> PASS: no-rpath-sparc.sh
> ===========================================
>    patchelf 0.18.0: tests/test-suite.log
> ===========================================
> 
> # TOTAL: 56
> # PASS:  52
> # SKIP:  2
> # XFAIL: 0
> # FAIL:  2
> # XPASS: 0
> # ERROR: 0
> 
> .. contents:: :depth: 2
> 
> SKIP: set-rpath-rel-map.sh
> ==========================
> 
> No MIPS_RLD_MAP_REL dynamic section entry, skipping
> SKIP set-rpath-rel-map.sh (exit status: 77)
> 
> FAIL: replace-add-needed.sh
> ===========================
> 
> patching ELF file './libbar.so'
> new SONAME is 'libbar.so'
> SONAME is too long, resizing...
> DT_NULL index is 26
> replacing section '.dynamic' with size 256
> replacing section '.dynstr' with size 182
> this is a dynamic library
> last page is 0x30000
> first page is 0x0
> needed space is 308
> rewriting section '.note.gnu.build-id' from offset 0xf4 (size 36) to offset 
> 0x12000 (size 36)
> rewriting section '.gnu.hash' from offset 0x118 (size 32) to offset 0x12024 
> (size 32)
> rewriting section '.dynstr' from offset 0x1c8 (size 172) to offset 0x12044 
> (size 182)
> rewriting section '.dynamic' from offset 0xfee0 (size 248) to offset 0x120fc 
> (size 256)
> rewriting symbol table section 1
> rewriting symbol table section 25
> writing ./libbar.so
> patching ELF file './simple'
> DT_NULL index is 26
> replacing section '.dynamic' with size 256
> replacing section '.dynstr' with size 156
> this is a dynamic library
> last page is 0x1030000
> first page is 0x0
> needed space is 468
> rewriting section '.note.gnu.build-id' from offset 0x174 (size 36) to offset 
> 0x12000 (size 36)
> rewriting section '.interp' from offset 0x198 (size 25) to offset 0x12024 
> (size 25)
> rewriting section '.gnu.hash' from offset 0x1b4 (size 24) to offset 0x12040 
> (size 24)
> rewriting section '.dynsym' from offset 0x1cc (size 160) to offset 0x12058 
> (size 160)
> rewriting section '.dynstr' from offset 0x26c (size 145) to offset 0x120f8 
> (size 156)
> rewriting section '.dynamic' from offset 0xfed4 (size 248) to offset 0x12194 
> (size 256)
> rewriting symbol table section 27
> rewriting symbol table section 33
> writing ./simple
> patching ELF file './libfoo.so'
> replacing DT_NEEDED entry 'libbar.so' with 
> '/<<PKGBUILDDIR>>/tests/scratch/replace-add-needed/libbar.so'
> resizing .dynstr ...
> keeping DT_NEEDED entry 'libc.so.6'
> found .gnu.version_r with 1 entries, strings in .dynstr
> keeping .gnu.version_r entry 'libc.so.6'
> replacing section '.dynstr' with size 236
> this is a dynamic library
> last page is 0x30000
> first page is 0x0
> needed space is 372
> rewriting section '.note.gnu.build-id' from offset 0x134 (size 36) to offset 
> 0x12000 (size 36)
> rewriting section '.gnu.hash' from offset 0x158 (size 36) to offset 0x12024 
> (size 36)
> rewriting section '.dynstr' from offset 0x22c (size 154) to offset 0x12048 
> (size 236)
> rewriting symbol table section 1
> rewriting symbol table section 27
> writing ./libfoo.so
> patching ELF file './simple'
> replacing DT_NEEDED entry 'libbar.so' with 
> '/<<PKGBUILDDIR>>/tests/scratch/replace-add-needed/libbar.so'
> resizing .dynstr ...
> replacing DT_NEEDED entry 'libc.so.6' with 
> '/lib/arm-linux-gnueabihf/libc.so.6'
> resizing .dynstr ...
> found .gnu.version_r with 1 entries, strings in .dynstr
> replacing .gnu.version_r entry 'libc.so.6' with 
> '/lib/arm-linux-gnueabihf/libc.so.6'
> replacing section '.dynstr' with size 273
> this is a dynamic library
> last page is 0x1040000
> first page is 0x0
> needed space is 500
> rewriting section '.dynstr' from offset 0x120f8 (size 156) to offset 0x13000 
> (size 273)
> rewriting symbol table section 27
> rewriting symbol table section 33
> DT_NULL index is 27
> replacing section '.dynamic' with size 264
> replacing section '.dynstr' with size 356
> this is a dynamic library
> last page is 0x1050000
> first page is 0x0
> needed space is 532
> rewriting section '.dynamic' from offset 0x12194 (size 256) to offset 0x14000 
> (size 264)
> rewriting section '.dynstr' from offset 0x13000 (size 273) to offset 0x14108 
> (size 356)
> rewriting symbol table section 27
> rewriting symbol table section 33
> writing ./simple
> Segmentation fault
> FAIL replace-add-needed.sh (exit status: 1)
> 
> FAIL: repeated-updates.sh
> =========================
> 
> patching ELF file 'simple'
> DT_NULL index is 26
> replacing section '.dynamic' with size 256
> replacing section '.dynstr' with size 158
> this is a dynamic library
> last page is 0x1030000
> first page is 0x0
> needed space is 468
> rewriting section '.note.gnu.build-id' from offset 0x174 (size 36) to offset 
> 0x12000 (size 36)
> rewriting section '.interp' from offset 0x198 (size 25) to offset 0x12024 
> (size 25)
> rewriting section '.gnu.hash' from offset 0x1b4 (size 24) to offset 0x12040 
> (size 24)
> rewriting section '.dynsym' from offset 0x1cc (size 160) to offset 0x12058 
> (size 160)
> rewriting section '.dynstr' from offset 0x26c (size 145) to offset 0x120f8 
> (size 158)
> rewriting section '.dynamic' from offset 0xfed4 (size 248) to offset 0x12198 
> (size 256)
> rewriting symbol table section 27
> rewriting symbol table section 33
> writing simple
> patching ELF file 'libbar.so'
> new SONAME is './libbar.so'
> SONAME is too long, resizing...
> DT_NULL index is 26
> replacing section '.dynamic' with size 256
> replacing section '.dynstr' with size 184
> this is a dynamic library
> last page is 0x30000
> first page is 0x0
> needed space is 308
> rewriting section '.note.gnu.build-id' from offset 0xf4 (size 36) to offset 
> 0x12000 (size 36)
> rewriting section '.gnu.hash' from offset 0x118 (size 32) to offset 0x12024 
> (size 32)
> rewriting section '.dynstr' from offset 0x1c8 (size 172) to offset 0x12044 
> (size 184)
> rewriting section '.dynamic' from offset 0xfee0 (size 248) to offset 0x120fc 
> (size 256)
> rewriting symbol table section 1
> rewriting symbol table section 25
> writing libbar.so
> patching ELF file 'libbar.so'
> new SONAME is 'libbar.so'
> SONAME is too long, resizing...
> replacing section '.dynstr' with size 194
> this is a dynamic library
> last page is 0x40000
> first page is 0x0
> needed space is 340
> rewriting section '.dynsym' from offset 0x138 (size 144) to offset 0x13000 
> (size 144)
> rewriting section '.dynstr' from offset 0x12044 (size 184) to offset 0x13090 
> (size 194)
> rewriting symbol table section 24
> rewriting symbol table section 30
> writing libbar.so
> Hello World
> patching ELF file 'libbar.so'
> new SONAME is './libbar.so'
> SONAME is too long, resizing...
> replacing section '.dynstr' with size 206
> this is a dynamic library
> last page is 0x50000
> first page is 0x0
> needed space is 372
> rewriting section '.dynstr' from offset 0x13090 (size 194) to offset 0x14000 
> (size 206)
> rewriting symbol table section 24
> rewriting symbol table section 30
> writing libbar.so
> patching ELF file 'libbar.so'
> new SONAME is 'libbar.so'
> SONAME is too long, resizing...
> replacing section '.dynstr' with size 216
> this is a dynamic library
> last page is 0x50000
> first page is 0x0
> needed space is 372
> rewriting section '.dynstr' from offset 0x14000 (size 206) to offset 0x15000 
> (size 216)
> rewriting symbol table section 24
> rewriting symbol table section 30
> writing libbar.so
> ./simple: error while loading shared libraries: ?[E???????CEI? 
> ????8????1?B??^???$2??????: cannot open shared object file: No such file 
> or directory
> FAIL repeated-updates.sh (exit status: 1)
> 
> SKIP: short-first-segment.sh
> ============================
> 
> skipping test: not supported on x86_64 Linux
> SKIP short-first-segment.sh (exit status: 77)
> 
> ============================================================================
> Testsuite summary for patchelf 0.18.0
> ============================================================================
> # TOTAL: 56
> # PASS:  52
> # SKIP:  2
> # XFAIL: 0
> # FAIL:  2
> # XPASS: 0
> # ERROR: 0
> ============================================================================
> See tests/test-suite.log
> ============================================================================
> make[4]: *** [Makefile:1068: test-suite.log] Error 1
> make[4]: Leaving directory '/<<PKGBUILDDIR>>/tests'
> make[3]: *** [Makefile:1176: check-TESTS] Error 2
> make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
> make[2]: *** [Makefile:1627: check-am] Error 2
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/tests'
> make[1]: *** [Makefile:472: check-recursive] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test: error: make -j4 check "TESTSUITEFLAGS=-j4 --verbose" VERBOSE=1 
> returned exit code 2


The full build log is available from:
http://qa-logs.debian.net/2024/12/23/patchelf_0.18.0-1.1_unstable-armhf.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20241223;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20241223&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to