* [bug#40164] Fix for libgccjit
@ 2020-03-21 13:13 Formbi via Guix-patches via
2020-03-21 13:18 ` [bug#40164] information Formbi via Guix-patches via
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Formbi via Guix-patches via @ 2020-03-21 13:13 UTC (permalink / raw)
To: 40164
[-- Attachment #1: Type: text/plain, Size: 15 bytes --]
Empty Message
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-fix-libgccjit.patch --]
[-- Type: text/x-patch; name="0001-fix-libgccjit.patch", Size: 1169 bytes --]
From 51511978f7e41392d9ed4d49f08c7ce154ff18d2 Mon Sep 17 00:00:00 2001
From: Formbi <formbi@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")))))))
(define-public gccgo-4.9
--
2.25.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [bug#40164] information
2020-03-21 13:13 [bug#40164] Fix for libgccjit Formbi via Guix-patches via
@ 2020-03-21 13:18 ` Formbi via Guix-patches via
2020-03-21 13:21 ` [bug#40164] a small correction Formbi via Guix-patches via
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Formbi via Guix-patches via @ 2020-03-21 13:18 UTC (permalink / raw)
To: 40164@debbugs.gnu.org
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».
^ permalink raw reply [flat|nested] 9+ messages in thread
* [bug#40164] a small correction
2020-03-21 13:13 [bug#40164] Fix for libgccjit Formbi via Guix-patches via
2020-03-21 13:18 ` [bug#40164] information Formbi via Guix-patches via
@ 2020-03-21 13:21 ` Formbi via Guix-patches via
2020-03-21 14:48 ` [bug#40164] Fix for libgccjit Mathieu Othacehe
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Formbi via Guix-patches via @ 2020-03-21 13:21 UTC (permalink / raw)
To: 40164@debbugs.gnu.org
it fixes LIBRARY_PATH, not CPATH
^ permalink raw reply [flat|nested] 9+ messages in thread
* [bug#40164] Fix for libgccjit
2020-03-21 13:13 [bug#40164] Fix for libgccjit Formbi via Guix-patches via
2020-03-21 13:18 ` [bug#40164] information Formbi via Guix-patches via
2020-03-21 13:21 ` [bug#40164] a small correction Formbi via Guix-patches via
@ 2020-03-21 14:48 ` Mathieu Othacehe
2020-03-21 22:32 ` Ludovic Courtès
2020-03-21 23:12 ` Formbi via Guix-patches via
4 siblings, 0 replies; 9+ messages in thread
From: Mathieu Othacehe @ 2020-03-21 14:48 UTC (permalink / raw)
To: Formbi; +Cc: 40164
Hello Formbi,
> Empty Message
Could you explain what you are trying to fix with this patch?
Thanks,
Mathieu
^ permalink raw reply [flat|nested] 9+ messages in thread
* [bug#40164] Fix for libgccjit
2020-03-21 13:13 [bug#40164] Fix for libgccjit Formbi via Guix-patches via
` (2 preceding siblings ...)
2020-03-21 14:48 ` [bug#40164] Fix for libgccjit Mathieu Othacehe
@ 2020-03-21 22:32 ` Ludovic Courtès
[not found] ` <zQode-EomoU8GYz0NVEC1E-dBhMwLCRtt-LHk1FaBdeeAzlTsYdHrqvKiajgG5_9W4ht97afq-I5F4uac5cH7_zzY-pvcyJwe-q6jwCEPaE=@protonmail.com>
2020-03-21 23:12 ` Formbi via Guix-patches via
4 siblings, 1 reply; 9+ messages in thread
From: Ludovic Courtès @ 2020-03-21 22:32 UTC (permalink / raw)
To: Formbi; +Cc: 40164
Hello,
Formbi <formbi@protonmail.com> skribis:
> From 51511978f7e41392d9ed4d49f08c7ce154ff18d2 Mon Sep 17 00:00:00 2001
> From: Formbi <formbi@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@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’.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [bug#40164] Fix for libgccjit
2020-03-21 13:13 [bug#40164] Fix for libgccjit Formbi via Guix-patches via
` (3 preceding siblings ...)
2020-03-21 22:32 ` Ludovic Courtès
@ 2020-03-21 23:12 ` Formbi via Guix-patches via
4 siblings, 0 replies; 9+ messages in thread
From: Formbi via Guix-patches via @ 2020-03-21 23:12 UTC (permalink / raw)
To: 40164@debbugs.gnu.org
> 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)
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-07-14 16:51 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-21 13:13 [bug#40164] Fix for libgccjit Formbi via Guix-patches via
2020-03-21 13:18 ` [bug#40164] information Formbi via Guix-patches via
2020-03-21 13:21 ` [bug#40164] a small correction Formbi via Guix-patches via
2020-03-21 14:48 ` [bug#40164] Fix for libgccjit Mathieu Othacehe
2020-03-21 22:32 ` Ludovic Courtès
[not found] ` <zQode-EomoU8GYz0NVEC1E-dBhMwLCRtt-LHk1FaBdeeAzlTsYdHrqvKiajgG5_9W4ht97afq-I5F4uac5cH7_zzY-pvcyJwe-q6jwCEPaE=@protonmail.com>
2020-03-22 20:54 ` Ludovic Courtès
2021-07-14 12:40 ` Maxim Cournoyer
2021-07-14 16:50 ` Maxim Cournoyer
2020-03-21 23:12 ` Formbi via Guix-patches via
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).