[Pkg-acpi-devel] Bug#925626: acpi-support: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:43:56 GMT 2019


Package: src:acpi-support
Version: 0.142-8
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-9

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-9/g++-9, but succeeds to build with gcc-8/g++-8. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc9-20190321/acpi-support_0.142-8_unstable_gcc9.log
The last lines of the build log are at the end of this report.

To build with GCC 9, either set CC=gcc-9 CXX=g++-9 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-9/porting_to.html

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

dpkg-buildpackage: info: source package acpi-support
dpkg-buildpackage: info: source version 0.142-8
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Michael Meskes <meskes at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --with quilt,systemd
dh: Compatibility levels before 9 are deprecated (level 7 in use)
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean
dh_auto_clean: Compatibility levels before 9 are deprecated (level 7 in use)
make -C debian/addons/fakekey clean
make[2]: Entering directory '/<<PKGBUILDDIR>>/debian/addons/fakekey'
rm -f acpi_fakekey acpi_fakekeyd
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/addons/fakekey'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_quilt_unpatch
No patch removed
   dh_clean
dh_clean: Compatibility levels before 9 are deprecated (level 7 in use)
 debian/rules build-arch
dh build-arch --with quilt,systemd
dh: Compatibility levels before 9 are deprecated (level 7 in use)
   dh_quilt_patch -a
Applying patch asus-wireless.sh.diff
patching file asus-wireless.sh

Applying patch ibm.diff
patching file ibm-wireless.sh

Applying patch key-constants.diff
patching file key-constants

Applying patch state-funcs.diff
patching file lib/state-funcs

Applying patch undock.sh.diff
patching file undock.sh

Now at patch undock.sh.diff
   dh_update_autotools_config -a
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make -C debian/addons/fakekey all
make[2]: Entering directory '/<<PKGBUILDDIR>>/debian/addons/fakekey'
gcc -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>/debian/addons/fakekey=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -o acpi_fakekey acpi_fakekey.c
gcc -Wall -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>/debian/addons/fakekey=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -lsystemd -o acpi_fakekeyd acpi_fakekeyd.c
In file included from /usr/include/unistd.h:25,
                 from acpi_fakekeyd.c:2:
/usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  184 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
/usr/bin/ld: /tmp/ccPiAyCW.o: in function `create_fifo':
./acpi_fakekeyd.c:22: undefined reference to `sd_listen_fds'
/usr/bin/ld: ./acpi_fakekeyd.c:27: undefined reference to `sd_is_fifo'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:7: acpi_fakekeyd] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/addons/fakekey'
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the Pkg-acpi-devel mailing list