Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943824 - =media-libs/liblqr-0.4.2-r1 fails with =gcc-15.0.0_pre20241117 / c23: lqr_energy.c:452:1: error: conflicting types for 'lqr_carver_generate_rcache_bright'
Summary: =media-libs/liblqr-0.4.2-r1 fails with =gcc-15.0.0_pre20241117 / c23: lqr_ene...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 19:08 UTC by tdr
Modified: 2024-11-18 19:36 UTC (History)
1 user (show)

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


Attachments
build failure log (liblqr-0.4.2-r1:20241118-160011.build.log,20.77 KB, text/plain)
2024-11-18 19:08 UTC, tdr
Details
emerge --info (tdr-emerge--info.txt,6.41 KB, text/plain)
2024-11-18 19:08 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-18 19:08:21 UTC
Created attachment 909360 [details]
build failure log

gcc-15.0.0_pre20241117 defaults to using -std=gnu23 (stricter)


Error:

lqr_energy.c:452:1: error: conflicting types for 'lqr_carver_generate_rcache_bright'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'}
  452 | lqr_carver_generate_rcache_bright(LqrCarver *r)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../lqr/lqr_energy.h:27,
                 from lqr_energy.c:32:
../lqr/lqr_energy_priv.h:59:10: note: previous declaration of 'lqr_carver_generate_rcache_bright' with type 'gdouble *(void)' {aka 'double *(void)'}
   59 | gdouble *lqr_carver_generate_rcache_bright();
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lqr_energy.c:471:1: error: conflicting types for 'lqr_carver_generate_rcache_luma'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'}
  471 | lqr_carver_generate_rcache_luma(LqrCarver *r)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lqr/lqr_energy_priv.h:60:10: note: previous declaration of 'lqr_carver_generate_rcache_luma' with type 'gdouble *(void)' {aka 'double *(void)'}
   60 | gdouble *lqr_carver_generate_rcache_luma();
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lqr_energy.c:490:1: error: conflicting types for 'lqr_carver_generate_rcache_rgba'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'}
  490 | lqr_carver_generate_rcache_rgba(LqrCarver *r)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lqr/lqr_energy_priv.h:61:10: note: previous declaration of 'lqr_carver_generate_rcache_rgba' with type 'gdouble *(void)' {aka 'double *(void)'}
   61 | gdouble *lqr_carver_generate_rcache_rgba();
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lqr_energy.c:511:1: error: conflicting types for 'lqr_carver_generate_rcache_custom'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'}
  511 | lqr_carver_generate_rcache_custom(LqrCarver *r)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../lqr/lqr_energy_priv.h:62:10: note: previous declaration of 'lqr_carver_generate_rcache_custom' with type 'gdouble *(void)' {aka 'double *(void)'}
   62 | gdouble *lqr_carver_generate_rcache_custom();
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lqr_energy.c:532:1: error: conflicting types for 'lqr_carver_generate_rcache'; have 'gdouble *(LqrCarver *)' {aka 'double *(struct _LqrCarver *)'}
  532 | lqr_carver_generate_rcache(LqrCarver *r)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
../lqr/lqr_energy_priv.h:63:10: note: previous declaration of 'lqr_carver_generate_rcache' with type 'gdouble *(void)' {aka 'double *(void)'}
   63 | gdouble *lqr_carver_generate_rcache();
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../lqr/lqr_all.h:30,
                 from lqr_carver.c:29:
lqr_carver.c: In function 'lqr_carver_build_emap':
lqr_carver.c:577:35: error: too many arguments to function 'lqr_carver_generate_rcache'
  577 |         LQR_CATCH_MEM(r->rcache = lqr_carver_generate_rcache(r));
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
../lqr/lqr_base.h:83:8: note: in definition of macro 'LQR_CATCH_MEM'
   83 |   if ((expr) == NULL) \
      |        ^~~~
In file included from ../lqr/lqr_energy.h:27,
                 from ../lqr/lqr_all.h:33:
../lqr/lqr_energy_priv.h:63:10: note: declared here
   63 | gdouble *lqr_carver_generate_rcache();
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:396: lqr_energy.lo] Error 1



Steps to Reproduce:
emerge =gcc-15.0.0_pre20241117
emerge =media-libs/liblqr-0.4.2-r1


works is emerged with CFLAGS="${CFLAGS} -std=gnu17"
also works with =gcc-15.0.0_pre20241110
Comment 1 tdr 2024-11-18 19:08:55 UTC
Created attachment 909361 [details]
emerge --info