From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 517E6383D828; Sun, 18 Jul 2021 14:13:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 517E6383D828 From: "gerald at pfeifer dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/101491] [11 regression] /usr/local/include/libgccjit++.h conflicts between different GCC installations Date: Sun, 18 Jul 2021 14:13:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: 11.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gerald at pfeifer dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on bug_status everconfirmed 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 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: Sun, 18 Jul 2021 14:13:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101491 Gerald Pfeifer changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-07-18 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #3 from Gerald Pfeifer --- As one data point, gccjit is a "relatively newer" thing for the FreeBSD ports of GCC, e.g. in case of lang/gcc11-devel: commit bb995aaf6e25e33b028fa4b32321864b48f49055 Author: Ashish SHUKLA Date: Tue Feb 23 09:07:37 2021 +0000 - Enable gccjit support Approved by: gerald (maintainer) Looking at the diff it appears the issue was there back then already: --- a/lang/gcc11-devel/pkg-plist +++ b/lang/gcc11-devel/pkg-plist @@ -18,6 +18,8 @@ bin/gcov-dump%%SUFFIX%% bin/gcov-tool%%SUFFIX%% bin/gfortran%%SUFFIX%% bin/lto-dump%%SUFFIX%% +include/libgccjit++.h +include/libgccjit.h Alas it only materialized when lang/gcc12-devel was added: commit 982ce2ea27d8d41ed4f69c6c8f1eb56f04280531 Author: Gerald Pfeifer Date: Mon May 3 10:45:02 2021 +0000 lang/gcc12-devel: New port based on the 20210426 snapshot of GCC 12.0.0 This is the first snapshot from trunk with the GCC 12 designation. It largely is a copy of lang/gcc11-devel. (In reply to David Malcolm from comment #2) > I wonder why this changed recently; as Dimitry notes, this has been=20 > done the same since the initial merger of libgccjit into trunk. I believe we are not looking at a regression in one of the FreeBSD ports nor on the gccjit side, just an issue that's been there "from day 1". Dimitry, is this consistent with your experience? > I'm using $(includedir). What should I be using? Thanks I'm not an expert, yet dug a bit and most include files appear to be=20 installed in lib/gcc11/gcc/i386-portbld-freebsd11.4/11.1.1/include which libgomp/Makefile, libquadmath/Makefile, libssp/Makefile and others have as libsubincludedir =3D $(libdir)/gcc/$(target_alias)/$(gcc_version)/include Would something like this work for libgccjit as well, David?=