sys-devel/bc crash if you try to compile it using musl and GCC 15. It seems to be the same error of getopt() Reproducible: Always Steps to Reproduce: 1. Have a musl system 2. Install GCC 15 3. Try to compile sys-devel/bc Actual Results: The program cannot be compiled Expected Results: It should have compiled and installed successfully.
Created attachment 915345 [details] Build log
Created attachment 915346 [details] emerge --info
(In reply to meartzheast877 from comment #0) > sys-devel/bc doesn't compile using musl and GCC 15. It seems to be the same error of getopt() > > Reproducible: Always > > Steps to Reproduce: > 1. Have a musl system > 2. Install GCC 15 > 3. Try to compile sys-devel/bc > Actual Results: > The program cannot be compiled > > Expected Results: > It should have compiled and installed successfully.
x86_64-pc-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I./../h -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -O2 -pipe -Wall -funsigned-char -O2 -pipe -Wall -funsigned-char -c -o number.o number.c getopt.c: In function '_getopt_initialize': getopt.c:348:21: error: too many arguments to function 'getenv'; expected 0, have 1 348 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:200:14: note: declared here 200 | extern char *getenv (); | ^~~~~~ getopt.c: At top level: getopt.c:1135:1: error: conflicting types for 'getopt'; have 'int(int, char * const*, const char *)' 1135 | getopt (int argc, char *const *argv, const char *optstring) | ^~~~~~ In file included from getopt.c:106: ./../h/getopt.h:144:12: note: previous declaration of 'getopt' with type 'int(void)' 144 | extern int getopt (); | ^~~~~~ make[2]: *** [Makefile:319: getopt.o] Error 1