[pkg-apparmor] Bug#1037578: apparmor: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:21:33 BST 2023


Package: src:apparmor
Version: 3.0.8-3
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[This bug is targeted to the upcoming trixie release]

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-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/apparmor_3.0.8-3_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 13, either set CC=gcc-13 CXX=g++-13 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-13/porting_to.html

[...]
      |            ^~~~~~~~~~~~~~~~
tst_features.c:138:26: note: ‘c’ declared here
  138 |         struct component c;
      |                          ^
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -Wall -Wsign-compare -Wmissing-field-initializers -Wformat -Wformat-security -Wunused-parameter -Wimplicit-fallthrough -fPIC -flto-partition=none -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security  -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -o tst_features tst_features.o .libs/libapparmor.a 
libtool: link: gcc -Wall -Wall -Wsign-compare -Wmissing-field-initializers -Wformat -Wformat-security -Wunused-parameter -Wimplicit-fallthrough -fPIC -flto-partition=none -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -flto=auto -ffat-lto-objects -Wl,-z -Wl,relro -Wl,-z -Wl,now -o tst_features tst_features.o  .libs/libapparmor.a
/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -Wall -Wsign-compare -Wmissing-field-initializers -Wformat -Wformat-security -Wunused-parameter -Wimplicit-fallthrough -fPIC -flto-partition=none -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -pthread -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -o tst_kernel tst_kernel.o .libs/libapparmor.a 
libtool: link: gcc -Wall -Wall -Wsign-compare -Wmissing-field-initializers -Wformat -Wformat-security -Wunused-parameter -Wimplicit-fallthrough -fPIC -flto-partition=none -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -flto=auto -ffat-lto-objects -Wl,-z -Wl,relro -Wl,-z -Wl,now -o tst_kernel tst_kernel.o  .libs/libapparmor.a -pthread
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_find_mountpoint'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_is_enabled'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_splitcon'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_getprocattr_raw'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_getprocattr'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_change_hat'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `__change_hat'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `__old_change_hat'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_change_profile'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_change_onexec'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_change_hatv'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_change_hat_vargs'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_stack_profile'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_stack_onexec'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_gettaskcon'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_getcon'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_getpeercon_raw'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_getpeercon'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `query_label'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `__aa_query_label'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_query_file_path_len'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_query_file_path'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_query_link_path_len'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kernel.o (symbol from plugin): in function `aa_find_mountpoint':
(.text+0x0): multiple definition of `aa_query_link_path'; tst_kernel.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:722: tst_kernel] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/libraries/libapparmor/src'
make[4]: *** [Makefile:1062: check-am] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/libraries/libapparmor/src'
make[3]: *** [Makefile:1065: check] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/libraries/libapparmor/src'
make[2]: *** [Makefile:410: check-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/libraries/libapparmor'
dh_auto_test: error: cd libraries/libapparmor && make -j8 check "TESTSUITEFLAGS=-j8 --verbose" VERBOSE=1 V=1 returned exit code 2
make[1]: *** [debian/rules:63: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the pkg-apparmor-team mailing list