void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.59k stars 2.16k forks source link

cups-filters, libzbar fail to build #40533

Closed unspecd closed 2 years ago

unspecd commented 2 years ago

Is this a new report?

Yes

System Info

Void 6.0.7_1 x86_64-musl GenuineIntel notuptodate FFFF

Package(s) Affected

cups-filters-1.28.15_2, libzbar-0.23.1_6

Does a report exist for this bug with the project's home (upstream) and/or another distro?

None.

Expected behaviour

./xbps-src pkg should build packages

Actual behaviour

cups-filters

$ ./xbps-src -NE pkg cups-filters
  ...
  CCLD     libcupsfilters.la
/usr/bin/ld: /usr/lib64/gcc/x86_64-linux-musl/10.2.1/../../../../lib64/libdbus-1.a(libdbus_1_la-dbus-sysdeps.o): warning: relocation against `stderr' in read-only section `.text'
/usr/bin/ld: /usr/lib64/gcc/x86_64-linux-musl/10.2.1/../../../../lib64/libdbus-1.a(libdbus_1_la-dbus-sysdeps-unix.o): relocation R_X86_64_PC32 against symbol `stdout' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:2535: libcupsfilters.la] Error 1
make[2]: Leaving directory '/builddir/cups-filters-1.28.15'
make[1]: *** [Makefile:4853: all-recursive] Error 1
make[1]: Leaving directory '/builddir/cups-filters-1.28.15'
make: *** [Makefile:2086: all] Error 2

libzbar

$ ./xbps-src -NE -pkg libzbar
  ...
  CCLD     libzbar.la
/usr/bin/ld: /usr/lib64/gcc/x86_64-linux-musl/10.2.1/../../../../lib64/libdbus-1.a(libdbus_1_la-dbus-sysdeps.o): warning: relocation against `stderr' in read-only section `.text'
/usr/bin/ld: /usr/lib64/gcc/x86_64-linux-musl/10.2.1/../../../../lib64/libdbus-1.a(libdbus_1_la-dbus-sysdeps-unix.o): relocation R_X86_64_PC32 against symbol `stdout' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:818: libzbar.la] Error 1
make[2]: Leaving directory '/builddir/zbar-0.23.1/zbar'
make[1]: *** [Makefile:1905: all-recursive] Error 1
make[1]: Leaving directory '/builddir/zbar-0.23.1'
make: *** [Makefile:985: all] Error 2

Steps to reproduce

  1. ./xbps-src -NE pkg cups-filters
  2. ./xbps-src -NE pkg libzbar
unspecd commented 2 years ago
$ cat .git/refs/heads/master 
dadfda8a410f942611c38456e05ee212590e5041
unspecd commented 2 years ago

Reverting to dbus-1.14.2 allows to build successfully.

ghost commented 2 years ago

I am not able to reproduce any of these issues. Builds were produced on 09cd5d832e73bf7a60245709cbba90fda5b18218.

zbar.txt cups-filters.txt

paper42 commented 2 years ago

I can not reproduce this (without -N). Can you reproduce it with packages from repositories (without -N, without built packages in hostdir/binpkgs/$branch and in a clean new masterdir)

unspecd commented 2 years ago

in a clean new masterdir

Looks like my masterdir was broken. xbps-src zap fixed it, thank you.