https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115107
--- Comment #9 from Natalie Perlin <natalie.perlin at noaa dot gov> --- All rebuilt, gnu/14.1.0 with openmpi/4.1.6, revised configuration of the software stack (spack-stack). Still the same error with [-Wimplicit-function-declaration]. Verified a build of the same stack with gnu/13.2.0 and openmpi/4.1.6. The same location in the code gives warning, instead of the error, during the build. Same package, different version of gcc. Please see below snippets of the builds: 1. Build with gnu/13.2.0 gives the following: ----------------------- ... /scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/libjasper/include/jasper -I../../../src/libjasper/include -g -O2 -MT jas_getopt.lo -MD -MP -MF .deps/jas_getopt.Tpo -c jas_getopt.c -o jas_getopt.o jas_getopt.c: In function 'jas_getopt': jas_getopt.c:129:49: warning: implicit declaration of function 'jas_eprintf'; did you mean 'vsnprintf'? [-Wimplicit-function-declaration] 129 | jas_eprintf("unknown long option %s\n", s); | ^~~~~~~~~~~ | vsnprintf ... ----------------------- 2. Build with gnu/14.1.0 gives the following: ----------------------- ... /scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0_gnu14/spack/lib/spack/env/gcc/gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/libjasper/include/jasper -I../../../src/libjasper/include -g -O2 -MT jas_getopt.lo -MD -MP -MF .deps/jas_getopt.Tpo -c jas_getopt.c -o jas_getopt.o jas_getopt.c: In function 'jas_getopt': jas_getopt.c:129:49: error: implicit declaration of function 'jas_eprintf'; did you mean 'vsnprintf'? [-Wimplicit-function-declaration] 129 | jas_eprintf("unknown long option %s\n", s); | ^~~~~~~~~~~ | vsnprintf make[4]: *** [Makefile:349: jas_getopt.lo] Error 1 ... ----------------------- Any suggestions?.. Has a version of gnu/13.3.0 become available that might have the ICE fix?..