Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943811 - net-wireless/bluez-5.78 - [gcc-15] src/.../ad.c: error: incompatible types when returning type _Bool but const char was expected
Summary: net-wireless/bluez-5.78 - [gcc-15] src/.../ad.c: error: incompatible types wh...
Status: RESOLVED DUPLICATE of bug 943809
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Pacho Ramos
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 19:01 UTC by Toralf Förster
Modified: 2024-11-19 03:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.47 KB, text/plain)
2024-11-18 19:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,16.67 KB, text/plain)
2024-11-18 19:01 UTC, Toralf Förster
Details
environment (environment,180.13 KB, text/plain)
2024-11-18 19:01 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-11-18 19:01 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,17.79 KB, application/x-xz)
2024-11-18 19:01 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,97.74 KB, application/x-xz)
2024-11-18 19:01 UTC, Toralf Förster
Details
net-wireless:bluez-5.78:20241118-095359.log (net-wireless:bluez-5.78:20241118-095359.log,28.56 KB, text/plain)
2024-11-18 19:01 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,69.82 KB, text/plain)
2024-11-18 19:01 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,43.39 KB, application/x-xz)
2024-11-18 19:01 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-11-18 19:01:03 UTC
too long lines were shrinked:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sys
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sys
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.   -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sys
src/shared/ad.c: In function 'bt_ad_get_name':
src/shared/ad.c:1090:24: error: incompatible types when returning type '_Bool' but 'const char *' was expected
 1090 |                 return false;
      |                        ^~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_gnome-20241117-231502

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 18.1.8
llvm-config: 18.1.8
Python 3.12.7
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-21 


  HEAD of ::gentoo
commit 734849484c2f2d30a11c27ea3bc1292bb4cfcc58
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 18 08:48:42 2024 +0000

    2024-11-18 08:48:41 UTC

emerge -qpvO =net-wireless/bluez-5.78
[ebuild  N    ] net-wireless/bluez-5.78  USE="cups mesh obex readline udev -btpclient -debug -deprecated -doc -experimental -extra-tools -midi (-selinux) -systemd -test -test-programs" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13"
Comment 1 Toralf Förster gentoo-dev 2024-11-18 19:01:04 UTC
Created attachment 909246 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-18 19:01:05 UTC
Created attachment 909247 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-11-18 19:01:07 UTC
Created attachment 909248 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-11-18 19:01:07 UTC
Created attachment 909249 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-11-18 19:01:08 UTC
Created attachment 909250 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-18 19:01:10 UTC
Created attachment 909251 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-18 19:01:11 UTC
Created attachment 909252 [details]
net-wireless:bluez-5.78:20241118-095359.log
Comment 8 Toralf Förster gentoo-dev 2024-11-18 19:01:12 UTC
Created attachment 909253 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-11-18 19:01:13 UTC
Created attachment 909254 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-11-19 03:52:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2facc542948cfb79193220e7beb9d1c9837df8a

commit d2facc542948cfb79193220e7beb9d1c9837df8a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-19 03:48:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-19 03:52:22 +0000

    sys-devel/gcc: backport C23 fix to 15.0.0_pre20241117
    
    Backport a -std=gnu23/-std=c23 fix to 15.0.0_pre20241117 which prevented
    coersion from _Bool to NULL. Note that this is still dodgy code and some
    are proposing this be banned in a future C version (maybe even C2y), but
    it shouldn't be rejected in this version at least.
    
    I've added Closes tags for all bugs which, at a glance, look related,
    but I haven't re-tested them all and one or two might need reopening.
    
    Bug: https://gcc.gnu.org/PR112556
    Closes: https://bugs.gentoo.org/943862
    Closes: https://bugs.gentoo.org/943861
    Closes: https://bugs.gentoo.org/943843
    Closes: https://bugs.gentoo.org/943811
    Closes: https://bugs.gentoo.org/943809
    Closes: https://bugs.gentoo.org/943753
    Closes: https://bugs.gentoo.org/943715
    Closes: https://bugs.gentoo.org/943704
    Closes: https://bugs.gentoo.org/942958
    Signed-off-by: Sam James <sam@gentoo.org>

 ...llow-bool-and-enum-null-pointer-constants.patch | 244 +++++++++++++++++++++
 sys-devel/gcc/gcc-15.0.0_pre20241117-r2.ebuild     |  54 +++++
 2 files changed, 298 insertions(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-19 03:57:52 UTC

*** This bug has been marked as a duplicate of bug 943809 ***