[pkg-wine-party] Bug#845171: wine-development: FTBFS: ld aborts or segfaults

Jens Reyer jre.winesim at gmail.com
Mon Nov 21 02:16:18 UTC 2016


Source: wine-development
Version: 1.9.22-1
Justification: FTBFS on i386, armel and armhf
Severity: serious
Tags: help


wine-development 1.9.22-1 (in stretch) built successfully on all
architectures when it was uploaded to unstable, but fails to
build in a stretch environment on i386 now (amd64 is still fine).
Exactly the same for 1.9.23-1 on i386 in a sid environment:

gcc -m32 -o wineserver async.o atom.o change.o class.o clipboard.o completion.o console.o debugger.o device.o \
  directory.o event.o fd.o file.o handle.o hook.o mach.o mailslot.o main.o mapping.o mutex.o \
  named_pipe.o object.o process.o procfs.o ptrace.o queue.o region.o registry.o request.o \
  semaphore.o serial.o signal.o snapshot.o sock.o symlink.o thread.o timer.o token.o trace.o \
  unicode.o user.o window.o winstation.o -Wl,--rpath,\$ORIGIN/../libs/wine \
  ../libs/port/libwine_port.a -lwine -L../libs/wine -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/lib/i386-linux-gnu/wine-development
collect2: fatal error: ld terminated with signal 6 [Aborted]
compilation terminated.
ld: malloc.c:2403: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Makefile:732: recipe for target 'wineserver' failed
make[2]: *** [wineserver] Error 1
make[2]: Leaving directory '/build/wine-development-1.9.22/server'
Makefile:19180: recipe for target 'server' failed
make[1]: *** [server] Error 2
make[1]: *** Waiting for unfinished jobs....
[...]
dh_auto_build: make -j4 returned exit code 2
debian/rules:100: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2



Further a local rebui1d of .9.22-1 failed on i386 on
2016-11-05[1], but succeeded again on 2016-11-07.

1.9.23-1 didn't build on armel[2], armhf[3] and kfreebsd-i386[4]
when it was uploaded to unstable, and failed on debomatic today
(the error message changed though).

These other failures are not exactly identical, but also happen
in ld. I assume they are all related.

I'm at a loss here what the reason for the failures is. I assume
it's somehow related to build-dependencies being rebuilt with pie
and bindnow and/or something in binutils (I found a similar recent
bugreport (#844847, xorp: FTBFS: collect2: fatal error: ld
terminated with signal 6 [Aborted]) which was reassigned to
binutils.)

However wine 1.8.5-1 still builds fine (wine and wine-development
are nearly identical, only the upstream version differs). If my
assumption was true, I'd expect wine to fail, too. Maybe it will
do so soon.

So what to do now?

I hope someone can help here.

If wine(-development) gets removed from the archive we need a fix
uploaded by December 25th to get it in Stretch (or find a solution
with the release team).

Greets
jre




[1] 1.9.22-1:i386, local rebuild on 2016-11-05
gcc -m32 -o wine-installed main.o \
  -Wl,--rpath,\$ORIGIN/`../tools/makedep -R /usr/lib/wine-development /usr/lib/i386-linux-gnu/wine-development` -Wl,--enable-new-dtags \
  -Wl,--export-dynamic -Wl,-Ttext-segment=0x7c000000 -Wl,-z,max-page-size=0x1000 -lwine -lpthread \
  ../libs/port/libwine_port.a -L../libs/wine -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/lib/i386-linux-gnu/wine-development
*** Error in `/usr/bin/ld': free(): invalid next size (fast): 0x57050ae0 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x6733a)[0xf74ec33a]
/lib/i386-linux-gnu/libc.so.6(+0x6df77)[0xf74f2f77]
/lib/i386-linux-gnu/libc.so.6(+0x6e736)[0xf74f3736]
/usr/lib/i386-linux-gnu/libbfd-2.27.51-system.20161102.so(objalloc_free+0x3d)[0xf774011d]
/usr/lib/i386-linux-gnu/libbfd-2.27.51-system.20161102.so(bfd_hash_table_free+0x1c)[0xf76858ec]
/usr/lib/i386-linux-gnu/libbfd-2.27.51-system.20161102.so(+0x30568)[0xf768c568]
/usr/lib/i386-linux-gnu/libbfd-2.27.51-system.20161102.so(bfd_fopen+0x1c3)[0xf768ce13]
/usr/lib/i386-linux-gnu/libbfd-2.27.51-system.20161102.so(bfd_openr+0x25)[0xf768ce65]
/usr/bin/ld(+0x29d69)[0x5659cd69]
/usr/bin/ld(+0x2a385)[0x5659d385]
/usr/bin/ld(+0x2b1bf)[0x5659e1bf]
/usr/bin/ld(+0x1a2e6)[0x5658d2e6]
/usr/bin/ld(main+0x61f)[0x5657a3df]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf6)[0xf749d276]
/usr/bin/ld(+0x7aeb)[0x5657aaeb]
======= Memory map: ========
56573000-566ad000 r-xp 00000000 08:06 10898403                           /usr/bin/i686-linux-gnu-ld.bfd
566ad000-566b1000 r--p 00139000 08:06 10898403                           /usr/bin/i686-linux-gnu-ld.bfd
566b1000-566b3000 rw-p 0013d000 08:06 10898403                           /usr/bin/i686-linux-gnu-ld.bfd
566b3000-566b4000 rw-p 00000000 00:00 0 
56e65000-57088000 rw-p 00000000 00:00 0                                  [heap]
f7300000-f7321000 rw-p 00000000 00:00 0 
f7321000-f7400000 ---p 00000000 00:00 0 
f7450000-f746c000 r-xp 00000000 08:06 11026496                           /lib/i386-linux-gnu/libgcc_s.so.1
f746c000-f746d000 r--p 0001b000 08:06 11026496                           /lib/i386-linux-gnu/libgcc_s.so.1
f746d000-f746e000 rw-p 0001c000 08:06 11026496                           /lib/i386-linux-gnu/libgcc_s.so.1
f746e000-f7481000 r-xp 00000000 08:06 8401751                            /usr/lib/gcc/i686-linux-gnu/6/liblto_plugin.so.0.0.0
f7481000-f7482000 r--p 00012000 08:06 8401751                            /usr/lib/gcc/i686-linux-gnu/6/liblto_plugin.so.0.0.0
f7482000-f7483000 rw-p 00013000 08:06 8401751                            /usr/lib/gcc/i686-linux-gnu/6/liblto_plugin.so.0.0.0
f7483000-f7485000 rw-p 00000000 00:00 0 
f7485000-f7636000 r-xp 00000000 08:06 11416641                           /lib/i386-linux-gnu/libc-2.24.so
f7636000-f7638000 r--p 001b0000 08:06 11416641                           /lib/i386-linux-gnu/libc-2.24.so
f7638000-f7639000 rw-p 001b2000 08:06 11416641                           /lib/i386-linux-gnu/libc-2.24.so
f7639000-f763c000 rw-p 00000000 00:00 0 
f763c000-f763f000 r-xp 00000000 08:06 11416644                           /lib/i386-linux-gnu/libdl-2.24.so
f763f000-f7640000 r--p 00002000 08:06 11416644                           /lib/i386-linux-gnu/libdl-2.24.so
f7640000-f7641000 rw-p 00003000 08:06 11416644                           /lib/i386-linux-gnu/libdl-2.24.so
f7641000-f765a000 r-xp 00000000 08:06 5124290                            /lib/i386-linux-gnu/libz.so.1.2.8
f765a000-f765b000 r--p 00018000 08:06 5124290                            /lib/i386-linux-gnu/libz.so.1.2.8
f765b000-f765c000 rw-p 00019000 08:06 5124290                            /lib/i386-linux-gnu/libz.so.1.2.8
f765c000-f7796000 r-xp 00000000 08:06 5124305                            /usr/lib/i386-linux-gnu/libbfd-2.27.51-system.20161102.so
f7796000-f77a3000 r--p 00139000 08:06 5124305                            /usr/lib/i386-linux-gnu/libbfd-2.27.51-system.20161102.so
f77a3000-f77a7000 rw-p 00146000 08:06 5124305                            /usr/lib/i386-linux-gnu/libbfd-2.27.51-system.20161102.so
f77a7000-f77ab000 rw-p 00000000 00:00 0 
f77b5000-f77b8000 rw-p 00000000 00:00 0 
f77b8000-f77ba000 r--p 00000000 00:00 0                                  [vvar]
f77ba000-f77bc000 r-xp 00000000 00:00 0                                  [vdso]
f77bc000-f77de000 r-xp 00000000 08:06 11416637                           /lib/i386-linux-gnu/ld-2.24.so
f77de000-f77df000 rw-p 00000000 00:00 0 
f77df000-f77e0000 r--p 00022000 08:06 11416637                           /lib/i386-linux-gnu/ld-2.24.so
f77e0000-f77e1000 rw-p 00023000 08:06 11416637                           /lib/i386-linux-gnu/ld-2.24.so
ff8da000-ff8fc000 rw-p 00000000 00:00 0                                  [stack]
collect2: fatal error: ld terminated with signal 6 [Aborted]
compilation terminated.
Makefile:231: recipe for target 'wine-installed' failed
make[2]: *** [wine-installed] Error 1
make[2]: Leaving directory '/build/wine-development-1.9.22/loader'
Makefile:17507: recipe for target 'loader' failed
make[1]: *** [loader] Error 2



[2] 1.9.23-1:armel:
https://buildd.debian.org/status/fetch.php?pkg=wine-development&arch=armel&ver=1.9.23-1&stamp=1479058357
gcc -o wineserver-installed async.o atom.o change.o class.o clipboard.o completion.o console.o debugger.o device.o \
  directory.o event.o fd.o file.o handle.o hook.o mach.o mailslot.o main.o mapping.o mutex.o \
  named_pipe.o object.o process.o procfs.o ptrace.o queue.o region.o registry.o request.o \
  semaphore.o serial.o signal.o snapshot.o sock.o symlink.o thread.o timer.o token.o trace.o \
  unicode.o user.o window.o winstation.o \
  -Wl,--rpath,\$ORIGIN/`../tools/makedep -R /usr/lib/wine-development /usr/lib/arm-linux-gnueabi/wine-development` -Wl,--enable-new-dtags \
  ../libs/port/libwine_port.a -lwine -L../libs/wine -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/lib/arm-linux-gnueabi/wine-development -march=armv5t
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
Makefile:743: recipe for target 'wineserver-installed' failed
make[2]: *** [wineserver-installed] Error 1
make[2]: Leaving directory '/«PKGBUILDDIR»/server'
Makefile:18522: recipe for target 'server' failed
make[1]: *** [server] Error 2
make[1]: *** Waiting for unfinished jobs....
[...]
make[1]: Leaving directory '/«PKGBUILDDIR»'
dh_auto_build: make -j4 returned exit code 2
debian/rules:100: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2

Rebuild on 2016-11-21 failed:
http://debomatic-armel.debian.net/distribution#unstable/wine-development/1.9.23-1/buildlog



[3] 1.9.23-1:armhf
https://buildd.debian.org/status/fetch.php?pkg=wine-development&arch=armhf&ver=1.9.23-1&stamp=1479125289:
gcc -o wine-installed main.o \
  -Wl,--rpath,\$ORIGIN/`../tools/makedep -R /usr/lib/wine-development /usr/lib/arm-linux-gnueabihf/wine-development` -Wl,--enable-new-dtags \
  -Wl,--export-dynamic -lwine -lpthread ../libs/port/libwine_port.a -L../libs/wine -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/lib/arm-linux-gnueabihf/wine-development
collect2: fatal error: ld terminated with signal 6 [Aborted]
compilation terminated.
ld: malloc.c:2403: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Makefile:230: recipe for target 'wine-installed' failed
make[2]: *** [wine-installed] Error 1
make[2]: Leaving directory '/«PKGBUILDDIR»/loader'
Makefile:16901: recipe for target 'loader' failed
make[1]: *** [loader] Error 2
make[1]: *** Waiting for unfinished jobs....
[...]
make[1]: Leaving directory '/«PKGBUILDDIR»'
dh_auto_build: make -j4 returned exit code 2
debian/rules:100: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2

Rebuild on 2016-11-21 failed:
http://debomatic-armhf.debian.net/distribution#unstable/wine-development/1.9.23-1/buildlog



[4] 1.9.23-1:kfreebsd-i386
https://buildd.debian.org/status/fetch.php?pkg=wine-development&arch=kfreebsd-i386&ver=1.9.23-1&stamp=1479018912
gcc -o wine main.o -Wl,--rpath,\$ORIGIN/../libs/wine -Wl,--export-dynamic \
  -Wl,-Ttext-segment=0x60000000 -Wl,-z,max-page-size=0x1000 -lwine -lpthread \
  ../libs/port/libwine_port.a -L../libs/wine -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/lib/i386-kfreebsd-gnu/wine-development -lfreebsd-glue
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
Makefile:231: recipe for target 'wine-installed' failed
make[2]: *** [wine-installed] Error 1
make[2]: *** Waiting for unfinished jobs....
collect2: fatal error: ld terminated with signal 6 [Aborted]
compilation terminated.
*** Error in `/usr/bin/ld': free(): invalid next size (normal): 0x083c7318 ***
Makefile:227: recipe for target 'wine' failed
make[2]: *** [wine] Error 1
make[2]: Leaving directory '/«PKGBUILDDIR»/loader'
Makefile:17705: recipe for target 'loader' failed
make[1]: *** [loader] Error 2
make[1]: *** Waiting for unfinished jobs....
[...]
make[1]: Leaving directory '/«PKGBUILDDIR»'
dh_auto_build: make -j4 returned exit code 2
debian/rules:100: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2



More information about the pkg-wine-party mailing list