From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8E43C38654AD; Wed, 22 May 2024 17:11:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E43C38654AD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716397914; bh=sVUFueEIXgtv2V3wUT8JXppR+jdY42Ov6+7e8wvyI6E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M2TPMSCvY/d+AGmFpbWseQVRoXZPYDQSHF5AGeZLfdS/2gAO7kOnxTvEQLpwTr/L7 5IAnLoxMIus3A9BWkf3LrTQxRuoLK8Eap8tiv8W02s/rE6K/QCxbz7ttlrDf0uAvyR 0cHaqlI6rqeCy4c7OKCAjdXpTtQYqKsDMdW1AvOY= From: "anlauf at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/115107] f951: internal compiler error: Segmentation fault 0xcf878f crash_signal toplev.cc:314 Date: Wed, 22 May 2024 17:11:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115107 --- Comment #14 from anlauf at gcc dot gnu.org --- (In reply to Natalie Perlin from comment #9) > 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].=20 >=20 > 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: >=20 > 1. Build with gnu/13.2.0 gives the following:=20 > ----------------------- > ... > /scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0/spack/li= b/ > 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("unkn= own > long option %s\n", s); > | ^~~~~~~~~~~ > | vsnprintf > ... > ----------------------- >=20 > 2. Build with gnu/14.1.0 gives the following: > ----------------------- > ... > /scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0_gnu14/sp= ack/ > 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("unkn= own > long option %s\n", s); > | ^~~~~~~~~~~ > | vsnprintf > make[4]: *** [Makefile:349: jas_getopt.lo] Error 1 > ... > ----------------------- >=20 > Any suggestions?.. The original jasper files look fine to me: https://github.com/jasper-software/jasper/blob/master/src/libjasper/base/ja= s_getopt.c which includes https://github.com/jasper-software/jasper/blob/master/src/libjasper/include= /jasper/jas_debug.h Looks like spack either does not generate proper include paths, or a bad include file is found. > Has a version of gnu/13.3.0 become available that might have the ICE fix?= .. See https://gcc.gnu.org/gcc-13/ .=