[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/36: compile: Pre-load the compiler outside 'with-target'.
From: |
guix-commits |
Subject: |
01/36: compile: Pre-load the compiler outside 'with-target'. |
Date: |
Fri, 24 Apr 2020 08:14:05 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd-vm
in repository guix.
commit a9b0173ecf24ab088cb0cdab8ce1c0ee63936987
Author: Ludovic Courtès <address@hidden>
AuthorDate: Thu Apr 23 23:10:19 2020 +0200
compile: Pre-load the compiler outside 'with-target'.
* guix/build/compile.scm (compile-files): Move call to 'compile' before
'with-target'. Failing to do that, if the target has a different word
size than the host, the first call to 'compile-file' fails with:
ice-9/eval.scm:293:34: In procedure load-thunk-from-memory: ELF file does
not have native word size
while attempting loading 'language/spec.go'.
---
guix/build/compile.scm | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/guix/build/compile.scm b/guix/build/compile.scm
index 3ce0ece..c4dbb6e 100644
--- a/guix/build/compile.scm
+++ b/guix/build/compile.scm
@@ -194,6 +194,11 @@ files are for HOST, a GNU triplet such as
\"x86_64-linux-gnu\"."
(with-augmented-search-path %load-path source-directory
(with-augmented-search-path %load-compiled-path build-directory
(with-fluids ((*current-warning-prefix* ""))
+ ;; Make sure the compiler's modules are loaded before 'with-target'
+ ;; (since 'with-target' influences the .go loader), and before
+ ;; starting to compile files in parallel.
+ (compile #f)
+
(with-target host
(lambda ()
;; FIXME: To work around <https://bugs.gnu.org/15602>, we first
@@ -202,10 +207,6 @@ files are for HOST, a GNU triplet such as
\"x86_64-linux-gnu\"."
#:report-load report-load
#:debug-port debug-port)
- ;; Make sure compilation related modules are loaded before
- ;; starting to compile files in parallel.
- (compile #f)
-
;; XXX: Don't use too many workers to work around the insane
;; memory requirements of the compiler in Guile 2.2.2:
;;
<https://lists.gnu.org/archive/html/guile-devel/2017-05/msg00033.html>.
- branch wip-hurd-vm created (now 6c9efcd), guix-commits, 2020/04/24
- 04/36: gnu: guix: Do not copy bootstrap-guile when cross-compiling., guix-commits, 2020/04/24
- 01/36: compile: Pre-load the compiler outside 'with-target'.,
guix-commits <=
- 09/36: gnu: guix: Cross-build fix: override compressors., guix-commits, 2020/04/24
- 07/36: gnu: guix: Cross-build fixup for wrap-program., guix-commits, 2020/04/24
- 05/36: gnu: guix: Indent `copy-bootstrap-guile' code., guix-commits, 2020/04/24
- 06/36: gnu: guix: Cross-build workaround: Run native guile for version., guix-commits, 2020/04/24
- 14/36: gnu: hurd: Use default Qemu guest ip: 10.0.2.15., guix-commits, 2020/04/24
- 10/36: gnu: guix: Run `make update-guix-package'., guix-commits, 2020/04/24
- 11/36: vm: Make the device node procedure a parameter., guix-commits, 2020/04/24
- 12/36: gnu: hurd: Build DDE libraries., guix-commits, 2020/04/24
- 17/36: gnu: hurd: Add NFS support., guix-commits, 2020/04/24
- 19/36: system: hurd: Add less, which to %base-packages/hurd., guix-commits, 2020/04/24