Subject: bug#40164: closed (Re: bug#40164: Fix for libgccjit)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 22 Feb 2025 12:55:03 +0000

Your bug report

#40164: Fix for libgccjit

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
40164: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=40164
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#40164: Fix for libgccjit
From: Maxim Cournoyer <[email-masked]>
To: Simon Tournier <[email-masked]>
Cc: [email-masked], Formbi <[email-masked]>, Ludovic Courtès <[email-masked]>
Date: Sat, 22 Feb 2025 21:54:17 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Simon Tournier <[email-masked]> writes:

> Hi,
>
> For reference: https://issues.guix.gnu.org/issue/40164
>
> On Wed, 14 Jul 2021 at 12:50, Maxim Cournoyer <[email-masked]> wrote:
>> Maxim Cournoyer <[email-masked]> writes:
>>
>>> Perhaps the original issue is the one reported/fix with a patch here [0]
>>> ?  Formbi, could you share a simple reproducer so that we can test if
>>> the patches resolve it?  It seems it'd be useful to upstream as well (to
>>> have a reproducer).
>>>
>>> Thanks!
>>>
>>> [0]  https://gcc.gnu.org/legacy-ml/gcc-patches/2019-03/msg01045.html
>>
>> Another data point: this seems to be worked around in Nix using the fix
>> proposed by Formbi:
>> https://github.com/NixOS/nixpkgs/blob/8a815af4280f3e0d5ff740faa7d489e2b9e36829/pkgs/applications/editors/emacs/generic.nix#L87.
>
> What is the status of all this?  The report is marked as moreinfo and
> the last activity is very old.  I’m in favor to close.  WDYT?

Me too.  Done.

-- 
Thanks,
Maxim

Subject: Fix for libgccjit
From: Formbi <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Sat, 21 Mar 2020 13:13:18 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Empty Message
From 51511978f7e41392d9ed4d49f08c7ce154ff18d2 Mon Sep 17 00:00:00 2001
From: Formbi <[email-masked]>
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|gcc-.*)"))
-               #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")))))))

 (define-public gccgo-4.9
-- 
2.25.0