Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944212 - =media-sound/audacity-3.7.0 fails to build with c23/gcc-15.0.0_pre20241117-r2: midifile.c:62:8: error: conflicting types for ‘Mf_error’; have ‘void (*)(void)’
Summary: =media-sound/audacity-3.7.0 fails to build with c23/gcc-15.0.0_pre20241117-r2...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-21 00:58 UTC by tdr
Modified: 2024-11-21 05:49 UTC (History)
4 users (show)

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


Attachments
emerge --info (audacity-3.7.0.build.log,654.53 KB, text/plain)
2024-11-21 00:59 UTC, tdr
Details
build failure log (audacity-3.7.0.build.log,654.53 KB, text/plain)
2024-11-21 00:59 UTC, tdr
Details
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-21 01:00 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-21 00:58:37 UTC
c23 is stricter than previous standards

Reproducible: Always

Steps to Reproduce:
emerge -1 =gcc-15.0.0_pre20241117-r2
emerge -1 =audacity-3.7.0
Actual Results:  
FAILED: lib-src/libnyquist/CMakeFiles/libnyquist.dir/nyquist/cmt/midifile.c.o
/usr/bin/x86_64-pc-linux-gnu-gcc -DCMTSTUFF -DEXT -DUSE_NYQUIST=1 -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmupv/src -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/ffts/src -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/nyqsrc -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/nyqstk -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/nyqstk/include -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/tran -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/xlisp -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/sys/unix -I/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist  -DNDEBUG -march=native -O3 -flto=56 -mprefer-vector-width=512 -fno-vect-cost-model -pipe -fPIC -MD -MT lib-src/libnyquist/CMakeFiles/libnyquist.dir/nyquist/cmt/midifile.c.o -MF lib-src/libnyquist/CMakeFiles/libnyquist.dir/nyquist/cmt/midifile.c.o.d -o lib-src/libnyquist/CMakeFiles/libnyquist.dir/nyquist/cmt/midifile.c.o -c /var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.c
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.c:62:8: error: conflicting types for ‘Mf_error’; have ‘void (*)(void)’
   62 | void (*Mf_error)() = 0;
      |        ^~~~~~~~
In file included from /var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.c:20:
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.h:24:15: note: previous declaration of ‘Mf_error’ with type ‘void (*)(char *)’
   24 | extern void (*Mf_error)(char *);
      |               ^~~~~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.c:63:8: error: conflicting types for ‘Mf_header’; have ‘void (*)(void)’
   63 | void (*Mf_header)() = 0;
      |        ^~~~~~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.h:3:15: note: previous declaration of ‘Mf_header’ with type ‘void (*)(int,  int,  int)’
    3 | extern void (*Mf_header)(int,int,int);
      |               ^~~~~~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.c:64:8: error: conflicting types for ‘Mf_on’; have ‘void (*)(void)’
   64 | void (*Mf_on)() = 0;
      |        ^~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.h:6:15: note: previous declaration of ‘Mf_on’ with type ‘void (*)(int,  int,  int)’
    6 | extern void (*Mf_on)(int,int,int);
      |               ^~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.c:65:8: error: conflicting types for ‘Mf_off’; have ‘void (*)(void)’
   65 | void (*Mf_off)() = 0;
      |        ^~~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.h:7:15: note: previous declaration of ‘Mf_off’ with type ‘void (*)(int,  int,  int)’
    7 | extern void (*Mf_off)(int,int,int);
      |               ^~~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.c:66:8: error: conflicting types for ‘Mf_pressure’; have ‘void (*)(void)’
   66 | void (*Mf_pressure)() = 0;
      |        ^~~~~~~~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.h:8:15: note: previous declaration of ‘Mf_pressure’ with type ‘void (*)(int,  int,  int)’
    8 | extern void (*Mf_pressure)(int,int,int);
      |               ^~~~~~~~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.c:67:8: error: conflicting types for ‘Mf_controller’; have ‘void (*)(void)’
   67 | void (*Mf_controller)() = 0;
      |        ^~~~~~~~~~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.h:9:15: note: previous declaration of ‘Mf_controller’ with type ‘void (*)(int,  int,  int)’
    9 | extern void (*Mf_controller)(int,int,int);
      |               ^~~~~~~~~~~~~
/var/tmp/portage/media-sound/audacity-3.7.0/work/audacity-sources-3.7.0/lib-src/libnyquist/nyquist/cmt/midifile.c:68:8: error: conflicting types for ‘Mf_pitchbend’; have ‘void (*)(void)’
   68 | void (*Mf_pitchbend)() = 0;

(many similar)


CFLAGS="${CFLAGS} -std=gnu17"
Comment 1 tdr 2024-11-21 00:59:37 UTC
Created attachment 910904 [details]
emerge --info
Comment 2 tdr 2024-11-21 00:59:59 UTC
Created attachment 910905 [details]
build failure log
Comment 3 tdr 2024-11-21 01:00:38 UTC
Created attachment 910906 [details]
emerge --info