From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67B213860C37; Fri, 9 Jul 2021 12:13:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67B213860C37 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/101387] New: Unconditional use of Date: Fri, 09 Jul 2021 12:13:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2021 12:13:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101387 Bug ID: 101387 Summary: Unconditional use of Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: gaiusmod2 at gmail dot com Target Milestone: --- Target: *-*-solaris2.11 When I tried to build the devel/modula-2 branch as of 20210708 on Solaris 11 (both SPARC and x86), the build failed early with /vol/gcc/src/git/modula-2/gcc/m2/mc-boot/GRTExceptions.c:42:13: fatal error: sys/cdefs.h: No such file or directory # include "sys/cdefs.h" ^~~~~~~~~~~~~ compilation terminated. make[3]: *** [/vol/gcc/src/git/modula-2/gcc/m2/Make-lang.in:1579: m2/mc-boot/GRTExceptions.o] Error 1 (preferably with <> rather than "") originates from *BSD, I believe and is certainly not universal. sys/defs.h also emitted in gcc/m2/mc/keyc.mod, mc-boot/Gkeyc.c To hack around this, I've disabled/commented the header in the affected fil= es with no apparent ill effect.=