[From nobody Tue Oct  6 02:37:08 2026
Received: (at maintonly) by bugs.debian.org; 17 Feb 2025 17:03:15 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-117.1 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,FVGT_m_MULTI_ODD,HAS_PACKAGE,
 RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE,USER_IN_DKIM_WELCOMELIST,
 USER_IN_DKIM_WHITELIST autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 38; hammy, 150; neutral, 160; spammy,
 0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--H*F:U*doko,
 0.000-+--UD:qa-logs.debian.net, 0.000-+--qalogsdebiannet,
 0.000-+--qa-logs.debian.net
Return-path: &lt;doko@paradis.debian.org&gt;
Received: from mitropoulos.debian.org
 ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:40396)
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=mitropoulos.debian.org, EMAIL=hostmaster@mitropoulos.debian.org (verified)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;doko@paradis.debian.org&gt;)
 id 1tk4WZ-00ALkl-Pw
 for maintonly@bugs.debian.org; Mon, 17 Feb 2025 17:03:15 +0000
Received: from paradis.debian.org ([2607:f8f0:614:1::1274:67]:44980)
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=paradis.debian.org, EMAIL=hostmaster@paradis.debian.org (verified)
 by mitropoulos.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;doko@paradis.debian.org&gt;)
 id 1tk4WX-0013IJ-WB
 for maintonly@bugs.debian.org; Mon, 17 Feb 2025 17:03:14 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.paradis;
 h=Date:Message-Id:Content-Transfer-Encoding:Content-Type:
 MIME-Version:From:Subject:To:Reply-To:Cc:Content-ID:Content-Description:
 In-Reply-To:References; bh=/Z6O2yUZDIjq/DcIrdVkKV14DRi2A23tYXBsQ6cZpVI=; b=SS
 8wOtJpppDBXCY79whlpxrTJrEBJrsSPpwA3KpSCfFcwwE9NQLLzQOKPerCfsJ0KOyt0b2yGhLkqsx
 2zXoZg8d46KsaazP2b3ILJ2CLNbSjyLn4gdBAsejAdCAdkUrAO/lHjzJMjpAGZaFpixRYQKvkYtH1
 DMGhYCgmZfbz1Vhka4/2r7a+aEfQ0TR0depwM0vvEE5YVxyOr/5H8mKQoJA3/FU1P36OiDPyc4ZZa
 Wa3AKZ7hy8mTJRfaQXEG/aZwIn6+bqeKXiK9PJXKd4xs0LiTdtznvvyumkdGrb0+iIQgQUt1Wbg3b
 aKEEa5ikrPfEjuKKHxtElVPyMdmsAqHg==;
Received: from doko by paradis.debian.org with local (Exim 4.94.2)
 (envelope-from &lt;doko@paradis.debian.org&gt;) id 1tk4WV-009HBT-W3
 for maintonly@bugs.debian.org; Mon, 17 Feb 2025 17:03:12 +0000
To: maintonly@bugs.debian.org
Subject: android-platform-external-libselinux: ftbfs with GCC-15
From: Matthias Klose &lt;doko@debian.org&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=&quot;UTF-8&quot;
Content-Transfer-Encoding: 8bit
Message-Id: &lt;E1tk4WV-009HBT-W3@paradis.debian.org&gt;
Date: Mon, 17 Feb 2025 17:03:11 +0000
Delivered-To: maintonly@bugs.debian.org

Package: src:android-platform-external-libselinux
Version: 10.0.0+r36-2
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT 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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/android-platform-external-libselinux_10.0.0+r36-2_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
   57 |         uint32_t bool;
      |                      ^
libsepol/src/link.c: In function ‘copy_cond_list’:
libsepol/src/link.c:1584:35: error: expected identifier before ‘bool’
 1584 |                         cur_expr-&gt;bool =
      |                                   ^~~~
In file included from libsepol/include/sepol/policydb/expand.h:30,
                 from libsepol/src/module.c:25:
libsepol/include/sepol/policydb/conditional.h:57:18: error: two or more data types in declaration specifiers
   57 |         uint32_t bool;
      |                  ^~~~
libsepol/include/sepol/policydb/conditional.h:57:22: warning: declaration does not declare anything
   57 |         uint32_t bool;
      |                      ^
In file included from libsepol/src/module_to_cil.c:48:
libsepol/include/sepol/policydb/conditional.h:57:18: error: two or more data types in declaration specifiers
   57 |         uint32_t bool;
      |                  ^~~~
libsepol/include/sepol/policydb/conditional.h:57:22: warning: declaration does not declare anything
   57 |         uint32_t bool;
      |                      ^
libsepol/src/module_to_cil.c: In function ‘cond_expr_to_cil’:
libsepol/src/module_to_cil.c:1285:62: error: expected identifier before ‘bool’
 1285 |                         val1 = pdb-&gt;p_bool_val_to_name[curr-&gt;bool - 1];
      |                                                              ^~~~
In file included from libsepol/include/sepol/policydb/expand.h:30,
                 from libsepol/src/policydb.c:48:
libsepol/include/sepol/policydb/conditional.h:57:18: error: two or more data types in declaration specifiers
   57 |         uint32_t bool;
      |                  ^~~~
libsepol/include/sepol/policydb/conditional.h:57:22: warning: declaration does not declare anything
   57 |         uint32_t bool;
      |                      ^
In file included from libsepol/src/services.c:61:
libsepol/include/sepol/policydb/conditional.h:57:18: error: two or more data types in declaration specifiers
   57 |         uint32_t bool;
      |                  ^~~~
libsepol/include/sepol/policydb/conditional.h:57:22: warning: declaration does not declare anything
   57 |         uint32_t bool;
      |                      ^
In file included from libsepol/include/sepol/policydb/expand.h:30,
                 from libsepol/src/users.c:11:
libsepol/include/sepol/policydb/conditional.h:57:18: error: two or more data types in declaration specifiers
   57 |         uint32_t bool;
      |                  ^~~~
libsepol/include/sepol/policydb/conditional.h:57:22: warning: declaration does not declare anything
   57 |         uint32_t bool;
      |                      ^
In file included from libsepol/src/write.c:41:
libsepol/include/sepol/policydb/conditional.h:57:18: error: two or more data types in declaration specifiers
   57 |         uint32_t bool;
      |                  ^~~~
libsepol/include/sepol/policydb/conditional.h:57:22: warning: declaration does not declare anything
   57 |         uint32_t bool;
      |                      ^
In file included from libsepol/src/write.c:46:
libsepol/src/write.c: In function ‘cond_write_node’:
libsepol/src/write.c:772:54: error: expected identifier before ‘bool’
  772 |                 buf[items++] = cpu_to_le32(cur_expr-&gt;bool);
      |                                                      ^~~~
libsepol/src/private.h:27:25: note: in definition of macro ‘cpu_to_le32’
   27 | #define cpu_to_le32(x) (x)
      |                         ^
make[2]: *** [debian/libsepol.mk:62: build] Error 1
make[2]: Leaving directory '/build/reproducible-path/android-platform-external-libselinux-10.0.0+r36'
dh_auto_build: error: make -j8 &quot;INSTALL=install --strip-program=true&quot; -f debian/libsepol.mk returned exit code 2
make[1]: *** [debian/rules:16: debian/out/libsepol.so] Error 25
make[1]: Leaving directory '/build/reproducible-path/android-platform-external-libselinux-10.0.0+r36'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
]