public inbox for jit@gcc.gnu.org
 help / color / mirror / Atom feed
From: Lorenzo Salvadore <developer@lorenzosalvadore.it>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Cc: "jit@gcc.gnu.org" <jit@gcc.gnu.org>,
	"dmalcolm@redhat.com" <dmalcolm@redhat.com>,
	"richard.guenther@gmail.com" <richard.guenther@gmail.com>,
	Gerald Pfeifer <gerald@pfeifer.com>
Subject: Re: Ping^9: [PATCH] jit: Install jit headers in $(libsubincludedir) [PR 101491]
Date: Mon, 24 Jul 2023 09:17:02 +0000	[thread overview]
Message-ID: <KPjHsfqEy38YatnxmNmmKD5cGcAKCIbhKtab8orR7nSPXFmA9Wr5C03yiYlmnoB3b9lElIkr0ZUD2r3r7P_lCdtXl4PUmRu-fztyxi4ssdg=@lorenzosalvadore.it> (raw)
In-Reply-To: <I7txT25r36GCl4xaxIo3wcWJcnkp6exa5eZoXrwtysIs50GM3PQcuebNx65k6HGCYH6qdHB-bvzEKjCp158ptR-TEUfUefIT8dPSji-nwsw=@lorenzosalvadore.it>

Hello,

Ping https://gcc.gnu.org/pipermail/gcc-patches/2022-November/606450.html

I am pinging this since November, if this patch has something wrong please
just tell me so that I can fix it. The PR is still open.

Thanks,

Lorenzo Salvadore

> From f8e2c2ee89a7d8741bb65163d1f1c20edcd546ac Mon Sep 17 00:00:00 2001
> From: Lorenzo Salvadore developer@lorenzosalvadore.it
> 
> Date: Wed, 16 Nov 2022 11:27:38 +0100
> Subject: [PATCH] jit: Install jit headers in $(libsubincludedir) [PR 101491]
> 
> Installing jit/libgccjit.h and jit/libgccjit++.h headers in
> $(includedir) can be a problem for machines where multiple versions of
> GCC are required simultaneously, see for example this bug report on
> FreeBSD:
> 
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257060
> 
> Hence,
> 
> - define $(libsubincludedir) the same way it is defined in libgomp;
> - install jit/libgccjit.h and jit/libgccjit++.h in $(libsubincludedir).
> 
> The patch has already been applied successfully in the official FreeBSD
> ports tree for the ports lang/gcc11 and lang/gcc12. Please see the
> following commits:
> 
> https://cgit.freebsd.org/ports/commit/?id=0338e04504ee269b7a95e6707f1314bc1c4239fe
> https://cgit.freebsd.org/ports/commit/?id=f1957296ed2dce8a09bb9582e9a5a715bf8b3d4d
> 
> gcc/ChangeLog:
> 
> 2022-11-16 Lorenzo Salvadore developer@lorenzosalvadore.it
> 
> PR jit/101491
> * Makefile.in: Define and create $(libsubincludedir)
> 
> gcc/jit/ChangeLog:
> 
> 2022-11-16 Lorenzo Salvadore developer@lorenzosalvadore.it
> 
> PR jit/101491
> * Make-lang.in: Install headers in $(libsubincludedir)
> ---
> gcc/Makefile.in | 3 +++
> gcc/jit/Make-lang.in | 4 ++--
> 2 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/gcc/Makefile.in b/gcc/Makefile.in
> index f672e6ea549..3bcf1c491ab 100644
> --- a/gcc/Makefile.in
> +++ b/gcc/Makefile.in
> @@ -635,6 +635,8 @@ libexecdir = @libexecdir@
> 
> # Directory in which the compiler finds libraries etc.
> libsubdir = $(libdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix)
> +# Directory in which the compiler finds headers.
> +libsubincludedir = $(libdir)/gcc/$(target_alias)/$(version)/include
> # Directory in which the compiler finds executables
> libexecsubdir = $(libexecdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix)
> # Directory in which all plugin resources are installed
> @@ -3642,6 +3644,7 @@ install-cpp: installdirs cpp$(exeext)
> # $(libdir)/gcc/include isn't currently searched by cpp.
> installdirs:
> $(mkinstalldirs) $(DESTDIR)$(libsubdir)
> + $(mkinstalldirs) $(DESTDIR)$(libsubincludedir)
> $(mkinstalldirs) $(DESTDIR)$(libexecsubdir)
> $(mkinstalldirs) $(DESTDIR)$(bindir)
> $(mkinstalldirs) $(DESTDIR)$(includedir)
> diff --git a/gcc/jit/Make-lang.in b/gcc/jit/Make-lang.in
> index 248ec45b729..ba1b3e95da5 100644
> --- a/gcc/jit/Make-lang.in
> +++ b/gcc/jit/Make-lang.in
> @@ -360,9 +360,9 @@ selftest-jit:
> # Install hooks:
> jit.install-headers: installdirs
> $(INSTALL_DATA) $(srcdir)/jit/libgccjit.h \
> - $(DESTDIR)$(includedir)/libgccjit.h
> + $(DESTDIR)$(libsubincludedir)/libgccjit.h
> $(INSTALL_DATA) $(srcdir)/jit/libgccjit++.h \
> - $(DESTDIR)$(includedir)/libgccjit++.h
> + $(DESTDIR)$(libsubincludedir)/libgccjit++.h
> 
> ifneq (,$(findstring mingw,$(target)))
> jit.install-common: installdirs jit.install-headers
> --
> 2.38.0

      reply	other threads:[~2023-07-24  9:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-03 19:34 Ping: " Lorenzo Salvadore
2022-12-19  8:54 ` Ping^2: " Lorenzo Salvadore
2023-01-02 10:53   ` Ping^3: " Lorenzo Salvadore
2023-02-07 14:52     ` Ping^4: " Lorenzo Salvadore
2023-02-26 17:34       ` Ping^5: " Lorenzo Salvadore
2023-03-09 21:52         ` Ping^6: " Lorenzo Salvadore
2023-04-05 21:44           ` Ping^7: " Lorenzo Salvadore
2023-05-08 13:14             ` Ping^8: " Lorenzo Salvadore
2023-07-24  9:17               ` Lorenzo Salvadore [this message]
     [not found] <XEXAtikg5eNPBqsrJ2I9FS=5FDwVIKh3rZJRFUzbmyPpe=5FIpbJ96NXOpTQtdtsODI3NlnvaMQ5HV2VYrvXEE5UPByJTtIcDlISwnXW13PetJk=3D@lorenzosalvadore.it>
     [not found] ` <2hPJROSKr12LUbj75IdxapgudFJ3K=5FIi-S5WL7QSTmsACnLn2QkK1SVORwMSoBgC5CC1f9kzo03CBBc7wJ3Nw5whwLkrghpWU7s1Z37RyUg=3D@lorenzosalvadore.it>
     [not found]   ` <0CzquyLGP5hhA=5FcGQAlhaxq-jewz1JR0MRfMqOxmVReSdjkmSJazgi59Zok5D028q7GD0XIvlCRGdtU9nQYnWv1zk9EkmACks2BEobo3QrE=3D@lorenzosalvadore.it>
     [not found]     ` <HWLxd3X-JIS5HiVVsiTNVkbOPY-292ANFUoGCa-cB9D3TYaOvdJ3h7oW8fl2X0K-ggVuxDle3HS2eBB4f6Gr7aQPgsmKYTrI7hIgSWso4wY=3D@lorenzosalvadore.it>
     [not found]       ` <iTDwBABygUF0hv5z6uT0h0Q9kNqaI48VXSgc0ljDFEAOxa=5Fijr4J-=5FbT1GuHPF4BULUnHenKACs1J-aCoAPdTZrZSKkJUfTV=5FCNHosoWY=5FQ=3D@lorenzosalvadore.it>
     [not found]         ` <kyojFhfS6Kn0Yb7NZ18528agfzzG2qq1qsWPE6q8IxvTEo2TYXlKMz6YcDB8pakQfw7f2HMIbHnU15JDyD1rdJlt82zIHWAWbWUagTk8GAU=3D@lorenzosalvadore.it>
     [not found]           ` <LHMuKCD8zN38YLeXF0aOqeqbklE70GjCHUZOqX8rbH-sOfak6NBo5oUMZK90Mz6CrIfnRrb0rpkSI2XuXPGNkSpfHbq9Riw37bb1F7oS9cU=3D@lorenzosalvadore.it>

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='KPjHsfqEy38YatnxmNmmKD5cGcAKCIbhKtab8orR7nSPXFmA9Wr5C03yiYlmnoB3b9lElIkr0ZUD2r3r7P_lCdtXl4PUmRu-fztyxi4ssdg=@lorenzosalvadore.it' \
    --to=developer@lorenzosalvadore.it \
    --cc=dmalcolm@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gerald@pfeifer.com \
    --cc=jit@gcc.gnu.org \
    --cc=richard.guenther@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).