From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:60251) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFmfu-0005mX-Rq for guix-patches@gnu.org; Sat, 21 Mar 2020 18:33:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFmft-0005b4-R2 for guix-patches@gnu.org; Sat, 21 Mar 2020 18:33:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42397) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFmft-0005ax-NT for guix-patches@gnu.org; Sat, 21 Mar 2020 18:33:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFmft-0004fd-K7 for guix-patches@gnu.org; Sat, 21 Mar 2020 18:33:01 -0400 Subject: [bug#40164] Fix for libgccjit Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Sat, 21 Mar 2020 23:32:05 +0100 In-Reply-To: (formbi@protonmail.com's message of "Sat, 21 Mar 2020 13:13:18 +0000") Message-ID: <87k13dwd96.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Formbi Cc: 40164@debbugs.gnu.org Hello, Formbi skribis: > From 51511978f7e41392d9ed4d49f08c7ce154ff18d2 Mon Sep 17 00:00:00 2001 > From: Formbi > Date: Sat, 21 Mar 2020 14:10:01 +0100 > Subject: [PATCH] fix libgccjit > > --- > gnu/packages/gcc.scm | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm > index 08afd80358..2c9a8ba9df 100644 > --- a/gnu/packages/gcc.scm > +++ b/gnu/packages/gcc.scm > @@ -716,7 +716,17 @@ as the 'native-search-paths' field." > (for-each delete-file > (find-files (string-append (assoc-ref outputs "= out") "/bin") > ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gc= c-.*)")) > - #t)))))))) > + #t)))))) > + (native-search-paths > + (list (search-path-specification > + (variable "C_INCLUDE_PATH") > + (files '("include"))) > + (search-path-specification > + (variable "CPLUS_INCLUDE_PATH") > + (files '("include"))) > + (search-path-specification > + (variable "LIBRARY_PATH") > + (files '("lib" "lib64" "lib/gcc"))))))) I think this has no effect because this =E2=80=98native-search-paths=E2=80= =99 is already inherited from =E2=80=98gcc-9=E2=80=99, which =E2=80=98libgccjit=E2=80=99 i= nherits from. Can you confirm? Mathieu Othacehe skribis: > Could you explain what you are trying to fix with this patch? >From a discussion on IRC, this has to do with the fact that libgccjit needs all these search paths defined at run time. Thanks, Ludo=E2=80=99.