GNU bug report logs -
#40164
Fix for libgccjit
Previous Next
Reported by: Formbi <formbi <at> protonmail.com>
Date: Sat, 21 Mar 2020 13:14:02 UTC
Severity: normal
Tags: moreinfo
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40164 in the body.
You can then email your comments to 40164 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Sat, 21 Mar 2020 13:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Formbi <formbi <at> protonmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 21 Mar 2020 13:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Empty Message
[0001-fix-libgccjit.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Sat, 21 Mar 2020 13:19:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 40164 <at> debbugs.gnu.org (full text, mbox):
I forgot to say what it does - it adds «lib/gcc» to the CPATH so that we don't get errors like «ld: cannot find crtbeginS.o: No such file or directory».
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Sat, 21 Mar 2020 13:22:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 40164 <at> debbugs.gnu.org (full text, mbox):
it fixes LIBRARY_PATH, not CPATH
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Sat, 21 Mar 2020 14:49:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 40164 <at> debbugs.gnu.org (full text, mbox):
Hello Formbi,
> Empty Message
Could you explain what you are trying to fix with this patch?
Thanks,
Mathieu
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Sat, 21 Mar 2020 22:33:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 40164 <at> debbugs.gnu.org (full text, mbox):
Hello,
Formbi <formbi <at> protonmail.com> skribis:
> From 51511978f7e41392d9ed4d49f08c7ce154ff18d2 Mon Sep 17 00:00:00 2001
> From: Formbi <formbi <at> protonmail.com>
> 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")))))))
I think this has no effect because this ‘native-search-paths’ is already
inherited from ‘gcc-9’, which ‘libgccjit’ inherits from.
Can you confirm?
Mathieu Othacehe <m.othacehe <at> gmail.com> 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’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Sat, 21 Mar 2020 23:13:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 40164 <at> debbugs.gnu.org (full text, mbox):
> I think this has no effect because this ‘native-search-paths’ is already
> inherited from ‘gcc-9’, which ‘libgccjit’ inherits from.
Nope, it does have an effect. I added "lib/gcc" to the original paths (and that was the needed thing).
(sending again because I forgot about the debbugs e-mail)
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Sun, 22 Mar 2020 20:53:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 40164 <at> debbugs.gnu.org (full text, mbox):
> I think this has no effect because this ‘native-search-paths’ is already
> inherited from ‘gcc-9’, which ‘libgccjit’ inherits from.
Nope, it does have an effect. I added "lib/gcc" to the original paths (and that was the needed thing).
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Sun, 22 Mar 2020 20:55:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 40164 <at> debbugs.gnu.org (full text, mbox):
Hi,
(+Cc bug.)
Formbi <formbi <at> protonmail.com> skribis:
>> I think this has no effect because this ‘native-search-paths’ is already
>> inherited from ‘gcc-9’, which ‘libgccjit’ inherits from.
>
> Nope, it does have an effect. I added "lib/gcc" to the original paths (and that was the needed thing).
In that case, could you (1) arrange to write the search path in a way
that reuses (package-native-search-paths gcc-9), and (2) add a comment
explaining why “lib/gcc” is needed (it looks unusual)?
Thanks in advance,
Ludo’.
Added tag(s) moreinfo.
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 25 May 2020 20:15:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Wed, 14 Jul 2021 12:41:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 40164 <at> debbugs.gnu.org (full text, mbox):
Hi,
Ludovic Courtès <ludo <at> gnu.org> writes:
> Hi,
>
> (+Cc bug.)
>
> Formbi <formbi <at> protonmail.com> skribis:
>
>>> I think this has no effect because this ‘native-search-paths’ is already
>>> inherited from ‘gcc-9’, which ‘libgccjit’ inherits from.
>>
>> Nope, it does have an effect. I added "lib/gcc" to the original paths (and that was the needed thing).
>
> In that case, could you (1) arrange to write the search path in a way
> that reuses (package-native-search-paths gcc-9), and (2) add a comment
> explaining why “lib/gcc” is needed (it looks unusual)?
>
> Thanks in advance,
> Ludo’.
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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Wed, 14 Jul 2021 16:51:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 40164 <at> debbugs.gnu.org (full text, mbox):
Hello again,
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> 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.
Maxim
Information forwarded
to
guix-patches <at> gnu.org
:
bug#40164
; Package
guix-patches
.
(Fri, 21 Feb 2025 22:17:03 GMT)
Full text and
rfc822 format available.
Message #37 received at 40164 <at> debbugs.gnu.org (full text, mbox):
Hi,
For reference: https://issues.guix.gnu.org/issue/40164
On Wed, 14 Jul 2021 at 12:50, Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> 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?
Cheers,
simon
Reply sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
You have taken responsibility.
(Sat, 22 Feb 2025 12:55:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Formbi <formbi <at> protonmail.com>
:
bug acknowledged by developer.
(Sat, 22 Feb 2025 12:55:03 GMT)
Full text and
rfc822 format available.
Message #42 received at 40164-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Simon Tournier <zimon.toutoune <at> gmail.com> writes:
> Hi,
>
> For reference: https://issues.guix.gnu.org/issue/40164
>
> On Wed, 14 Jul 2021 at 12:50, Maxim Cournoyer <maxim.cournoyer <at> gmail.com> wrote:
>> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> 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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 23 Mar 2025 11:24:45 GMT)
Full text and
rfc822 format available.
This bug report was last modified 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.