Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944054 - =media-libs/cogl-1.22.8-r3 fails compile with c23/gcc-gcc-15.0.0_pre20241117-r2: descriptor_pool.c:268:12: error: incompatible types when returning type ‘_Bool’ but ‘PyObject *’ {aka ‘struct _object *’} was expected
Summary: =media-libs/cogl-1.22.8-r3 fails compile with c23/gcc-gcc-15.0.0_pre20241117-...
Status: RESOLVED DUPLICATE of bug 943759
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-19 22:43 UTC by tdr
Modified: 2024-11-20 16:38 UTC (History)
1 user (show)

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


Attachments
build failure log (cogl-1.22.8-r3:20241119-191433..build.log,387.90 KB, text/plain)
2024-11-19 22:44 UTC, tdr
Details
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-19 22:44 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-19 22:43:26 UTC
c23 is stricter than previous versions
incompatible type is being returned

Reproducible: Always

Actual Results:  
python/descriptor_pool.c: In function ‘PyUpb_DescriptorPool_AddSerializedFile’:
python/descriptor_pool.c:268:12: error: incompatible types when returning type ‘_Bool’ but ‘PyObject *’ {aka ‘struct _object *’} was expected
  268 |     return false;
      |            ^~~~~
python/descriptor_pool.c: In function ‘PyUpb_DescriptorPool_Add’:
python/descriptor_pool.c:281:12: error: incompatible types when returning type ‘_Bool’ but ‘PyObject *’ {aka ‘struct _object *’} was expected
  281 |     return false;
      |            ^~~~~
error: command '/usr/bin/x86_64-pc-linux-gnu-gcc' failed with exit code 1
 * ERROR: dev-python/protobuf-5.28.0::gentoo failed (compile phase):
 *   Wheel build failed


builds with -std=gnu17
also builds with gcc:15.0.0_pre20241110
Comment 1 tdr 2024-11-19 22:44:19 UTC
Created attachment 910399 [details]
build failure log
Comment 2 tdr 2024-11-19 22:44:46 UTC
Created attachment 910400 [details]
emerge --info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-20 16:38:41 UTC
commit 379ca097b966b40890b5a4572502b8f9352a374d
Author: Sam James <sam@gentoo.org>
Date:   Tue Nov 19 12:05:42 2024 +0000

    media-libs/cogl: build w/ -std=gnu17

    Archived upstream.

    Closes: https://bugs.gentoo.org/943759
    Signed-off-by: Sam James <sam@gentoo.org>

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