* Clean build from Git HEAD fails
@ 2013-12-01 9:04 John Darrington
2013-12-02 12:56 ` Ludovic Courtès
0 siblings, 1 reply; 8+ messages in thread
From: John Darrington @ 2013-12-01 9:04 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 2550 bytes --]
A clean build from the current Git HEAD is not possible.
Something seems to be wrong with the Makefile dependencies:
git checkout master
git clean -dfx
./boostrap
./configure
make
.
.
.
.
.
/bin/mkdir -p `dirname "guix/scripts/build.go"` ; \
LC_ALL=C \
./pre-inst-env \
/usr/bin/guild compile -L "." -L "." \
-Wformat -Wunbound-variable -Warity-mismatch \
--target="i686-pc-linux-gnu" \
-o "guix/scripts/build.go" "guix/scripts/build.scm"
Backtrace:
In ice-9/boot-9.scm:
2772: 19 [try-module-autoload (guix build download) #f]
2111: 18 [save-module-excursion #<procedure a872ae0 at ice-9/boot-9.scm:2773:17 ()>]
2783: 17 [#<procedure a872ae0 at ice-9/boot-9.scm:2773:17 ()>]
In unknown file:
?: 16 [primitive-load-path "guix/build/download" #f]
In ice-9/eval.scm:
480: 15 [#<procedure a06a6c0 at ice-9/eval.scm:474:4 (exp)> #]
In ice-9/psyntax.scm:
1111: 14 [expand-top-sequence (#) () (#) ...]
1078: 13 [#<procedure a7739c0 at ice-9/psyntax.scm:1077:36 ()>]
1621: 12 [expand-simple-lambda (# . #) () (()) ...]
1542: 11 [parse ((# . #)) (#(syntax-object log # ...)) ...]
In ice-9/boot-9.scm:
545: 10 [map #<procedure a68e6e0 at ice-9/psyntax.scm:1543:66 (x)> ((# . #))]
In ice-9/psyntax.scm:
2130: 9 [expand-let (let # # # ...) (# # #) (# # #) ...]
In ice-9/boot-9.scm:
545: 8 [map #<procedure a68e6a0 at ice-9/psyntax.scm:2130:49 (x)> (#)]
In ice-9/psyntax.scm:
1267: 7 [expand (make-session connection-end/client) (# # #) (# # #) ...]
1196: 6 [syntax-type (make-session connection-end/client) (# # #) (# # #) ...]
582: 5 [syntax-type make-session (# # #) (# # #) ...]
292: 4 [get-global-definition-hook make-session (hygiene guix build download)]
In unknown file:
?: 3 [module-variable #<directory (guix build download) a865870> make-session]
In ice-9/boot-9.scm:
2718: 2 [b #<autoload (gnutls) a7786c0> make-session #f]
In unknown file:
?: 1 [scm-error misc-error #f ...]
In ice-9/boot-9.scm:
106: 0 [#<procedure a19d440 at ice-9/boot-9.scm:97:6 (thrown-k . args)> misc-error ...]
The problem can be circumvented by:
make -k ; make
Then everything works.
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clean build from Git HEAD fails
2013-12-01 9:04 Clean build from Git HEAD fails John Darrington
@ 2013-12-02 12:56 ` Ludovic Courtès
2013-12-02 13:43 ` John Darrington
0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2013-12-02 12:56 UTC (permalink / raw)
To: John Darrington; +Cc: guix-devel
John Darrington <john@darrington.wattle.id.au> skribis:
> /bin/mkdir -p `dirname "guix/scripts/build.go"` ; \
> LC_ALL=C \
> ./pre-inst-env \
> /usr/bin/guild compile -L "." -L "." \
> -Wformat -Wunbound-variable -Warity-mismatch \
> --target="i686-pc-linux-gnu" \
> -o "guix/scripts/build.go" "guix/scripts/build.scm"
[...]
> In ice-9/psyntax.scm:
> 1267: 7 [expand (make-session connection-end/client) (# # #) (# # #) ...]
> 1196: 6 [syntax-type (make-session connection-end/client) (# # #) (# # #) ...]
> 582: 5 [syntax-type make-session (# # #) (# # #) ...]
> 292: 4 [get-global-definition-hook make-session (hygiene guix build download)]
> In unknown file:
> ?: 3 [module-variable #<directory (guix build download) a865870> make-session]
> In ice-9/boot-9.scm:
> 2718: 2 [b #<autoload (gnutls) a7786c0> make-session #f]
> In unknown file:
> ?: 1 [scm-error misc-error #f ...]
> In ice-9/boot-9.scm:
> 106: 0 [#<procedure a19d440 at ice-9/boot-9.scm:97:6 (thrown-k . args)> misc-error ...]
What does /usr/bin/guile -c '(use-modules (gnutls))' report on your
system?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clean build from Git HEAD fails
2013-12-02 12:56 ` Ludovic Courtès
@ 2013-12-02 13:43 ` John Darrington
2013-12-02 22:22 ` Ludovic Courtès
0 siblings, 1 reply; 8+ messages in thread
From: John Darrington @ 2013-12-02 13:43 UTC (permalink / raw)
To: Ludovic Court??s; +Cc: guix-devel
On Mon, Dec 02, 2013 at 01:56:03PM +0100, Ludovic Court??s wrote:
John Darrington <john@darrington.wattle.id.au> skribis:
> /bin/mkdir -p `dirname "guix/scripts/build.go"` ; \
> LC_ALL=C \
> ./pre-inst-env \
> /usr/bin/guild compile -L "." -L "." \
> -Wformat -Wunbound-variable -Warity-mismatch \
> --target="i686-pc-linux-gnu" \
> -o "guix/scripts/build.go" "guix/scripts/build.scm"
[...]
> In ice-9/psyntax.scm:
> 1267: 7 [expand (make-session connection-end/client) (# # #) (# # #) ...]
> 1196: 6 [syntax-type (make-session connection-end/client) (# # #) (# # #) ...]
> 582: 5 [syntax-type make-session (# # #) (# # #) ...]
> 292: 4 [get-global-definition-hook make-session (hygiene guix build download)]
> In unknown file:
> ?: 3 [module-variable #<directory (guix build download) a865870> make-session]
> In ice-9/boot-9.scm:
> 2718: 2 [b #<autoload (gnutls) a7786c0> make-session #f]
> In unknown file:
> ?: 1 [scm-error misc-error #f ...]
> In ice-9/boot-9.scm:
> 106: 0 [#<procedure a19d440 at ice-9/boot-9.scm:97:6 (thrown-k . args)> misc-error ...]
What does /usr/bin/guile -c '(use-modules (gnutls))' report on your
system?
Backtrace:
In ice-9/boot-9.scm:
149: 16 [catch #t #<catch-closure 84f1310> ...]
157: 15 [#<procedure 84ba8c0 ()>]
In unknown file:
?: 14 [catch-closure]
In ice-9/boot-9.scm:
63: 13 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
407: 12 [eval # #]
In unknown file:
?: 11 [call-with-input-string "(use-modules (gnutls))" ...]
In ice-9/command-line.scm:
174: 10 [#<procedure 84f33a0 at ice-9/command-line.scm:169:3 (port)> #<input: string 83d6c30>]
In unknown file:
?: 9 [eval (use-modules (gnutls)) #<directory (guile-user) 84986c0>]
In ice-9/eval.scm:
480: 8 [#<procedure 8440720 at ice-9/eval.scm:474:4 (exp)> (use-modules (gnutls))]
In ice-9/psyntax.scm:
1101: 7 [expand-top-sequence ((use-modules (gnutls))) () ...]
986: 6 [scan ((use-modules (gnutls))) () ...]
270: 5 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...]
In ice-9/boot-9.scm:
3244: 4 [process-use-modules (((gnutls)))]
545: 3 [map #<procedure 84b91c0 at ice-9/boot-9.scm:3244:25 (mif-args)> ((#))]
3245: 2 [#<procedure 84b91c0 at ice-9/boot-9.scm:3244:25 (mif-args)> ((gnutls))]
2583: 1 [resolve-interface (gnutls) #:select ...]
In unknown file:
?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (gnutls)) #f]
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clean build from Git HEAD fails
2013-12-02 13:43 ` John Darrington
@ 2013-12-02 22:22 ` Ludovic Courtès
2013-12-03 8:39 ` John Darrington
0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2013-12-02 22:22 UTC (permalink / raw)
To: John Darrington; +Cc: guix-devel
John Darrington <john@darrington.wattle.id.au> skribis:
> On Mon, Dec 02, 2013 at 01:56:03PM +0100, Ludovic Court??s wrote:
> John Darrington <john@darrington.wattle.id.au> skribis:
>
> > /bin/mkdir -p `dirname "guix/scripts/build.go"` ; \
> > LC_ALL=C \
> > ./pre-inst-env \
> > /usr/bin/guild compile -L "." -L "." \
> > -Wformat -Wunbound-variable -Warity-mismatch \
> > --target="i686-pc-linux-gnu" \
> > -o "guix/scripts/build.go" "guix/scripts/build.scm"
>
> [...]
>
> > In ice-9/psyntax.scm:
> > 1267: 7 [expand (make-session connection-end/client) (# # #) (# # #) ...]
> > 1196: 6 [syntax-type (make-session connection-end/client) (# # #) (# # #) ...]
> > 582: 5 [syntax-type make-session (# # #) (# # #) ...]
> > 292: 4 [get-global-definition-hook make-session (hygiene guix build download)]
> > In unknown file:
> > ?: 3 [module-variable #<directory (guix build download) a865870> make-session]
> > In ice-9/boot-9.scm:
> > 2718: 2 [b #<autoload (gnutls) a7786c0> make-session #f]
> > In unknown file:
> > ?: 1 [scm-error misc-error #f ...]
> > In ice-9/boot-9.scm:
> > 106: 0 [#<procedure a19d440 at ice-9/boot-9.scm:97:6 (thrown-k . args)> misc-error ...]
>
> What does /usr/bin/guile -c '(use-modules (gnutls))' report on your
> system?
>
> Backtrace:
[...]
> ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (gnutls)) #f]
Does it work if you do:
make clean-go && make guix/build/download.go && make
?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clean build from Git HEAD fails
2013-12-02 22:22 ` Ludovic Courtès
@ 2013-12-03 8:39 ` John Darrington
2013-12-04 21:05 ` Ludovic Courtès
0 siblings, 1 reply; 8+ messages in thread
From: John Darrington @ 2013-12-03 8:39 UTC (permalink / raw)
To: Ludovic Court??s; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
On Mon, Dec 02, 2013 at 11:22:26PM +0100, Ludovic Court??s wrote:
>
> Backtrace:
[...]
> ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (gnutls)) #f]
Does it work if you do:
make clean-go && make guix/build/download.go && make
That command completed without error. Yes.
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clean build from Git HEAD fails
2013-12-03 8:39 ` John Darrington
@ 2013-12-04 21:05 ` Ludovic Courtès
2013-12-05 7:34 ` John Darrington
0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2013-12-04 21:05 UTC (permalink / raw)
To: John Darrington; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 652 bytes --]
John Darrington <john@darrington.wattle.id.au> skribis:
> On Mon, Dec 02, 2013 at 11:22:26PM +0100, Ludovic Court??s wrote:
> >
> > Backtrace:
>
> [...]
>
> > ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (gnutls)) #f]
>
> Does it work if you do:
>
> make clean-go && make guix/build/download.go && make
>
>
> That command completed without error. Yes.
Argh, this is annoying. The regression was introduced in 861693f3,
which introduces a dependency from (guix download) to (guix build
download), which in turn depends on (gnutls).
Could you try if this patch helps?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1582 bytes --]
diff --git a/Makefile.am b/Makefile.am
index 9462878..a99f8c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,25 +27,16 @@ nodist_noinst_SCRIPTS = \
include gnu-system.am
MODULES = \
- guix/scripts/build.scm \
- guix/scripts/download.scm \
- guix/scripts/import.scm \
- guix/scripts/package.scm \
- guix/scripts/gc.scm \
- guix/scripts/hash.scm \
- guix/scripts/pull.scm \
- guix/scripts/substitute-binary.scm \
- guix/scripts/refresh.scm \
guix/base32.scm \
guix/records.scm \
guix/hash.scm \
guix/utils.scm \
+ guix/download.scm \
guix/monads.scm \
guix/profiles.scm \
guix/serialization.scm \
guix/nar.scm \
guix/derivations.scm \
- guix/download.scm \
guix/gnu-maintenance.scm \
guix/licenses.scm \
guix/build-system.scm \
@@ -71,12 +62,22 @@ MODULES = \
guix/build/rpath.scm \
guix/packages.scm \
guix/snix.scm \
+ guix/scripts/download.scm \
+ guix/scripts/build.scm \
+ guix/scripts/import.scm \
+ guix/scripts/package.scm \
+ guix/scripts/gc.scm \
+ guix/scripts/hash.scm \
+ guix/scripts/pull.scm \
+ guix/scripts/substitute-binary.scm \
+ guix/scripts/refresh.scm \
guix.scm \
$(GNU_SYSTEM_MODULES)
# Because of the autoload hack in (guix build download), we must build it
# first to avoid errors on systems where (gnutls) is unavailable.
guix/scripts/download.go: guix/build/download.go
+guix/download.go: guix/build/download.go
GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
It’s really a kludge, though, but I can’t think of any good fix.
Perhaps we’ll just end up requiring Guile-GnuTLS at some point.
Thanks,
Ludo’.
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: Clean build from Git HEAD fails
2013-12-04 21:05 ` Ludovic Courtès
@ 2013-12-05 7:34 ` John Darrington
2013-12-05 21:51 ` Ludovic Courtès
0 siblings, 1 reply; 8+ messages in thread
From: John Darrington @ 2013-12-05 7:34 UTC (permalink / raw)
To: Ludovic Court??s; +Cc: guix-devel
I can confirm, that your patch seems to fix the problem. Thanks.
J'
On Wed, Dec 04, 2013 at 10:05:17PM +0100, Ludovic Court??s wrote:
John Darrington <john@darrington.wattle.id.au> skribis:
> On Mon, Dec 02, 2013 at 11:22:26PM +0100, Ludovic Court??s wrote:
> >
> > Backtrace:
>
> [...]
>
> > ?: 0 [scm-error misc-error #f "~A ~S" ("no code for module" (gnutls)) #f]
>
> Does it work if you do:
>
> make clean-go && make guix/build/download.go && make
>
>
> That command completed without error. Yes.
Argh, this is annoying. The regression was introduced in 861693f3,
which introduces a dependency from (guix download) to (guix build
download), which in turn depends on (gnutls).
Could you try if this patch helps?
diff --git a/Makefile.am b/Makefile.am
index 9462878..a99f8c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,25 +27,16 @@ nodist_noinst_SCRIPTS = \
include gnu-system.am
MODULES = \
- guix/scripts/build.scm \
- guix/scripts/download.scm \
- guix/scripts/import.scm \
- guix/scripts/package.scm \
- guix/scripts/gc.scm \
- guix/scripts/hash.scm \
- guix/scripts/pull.scm \
- guix/scripts/substitute-binary.scm \
- guix/scripts/refresh.scm \
guix/base32.scm \
guix/records.scm \
guix/hash.scm \
guix/utils.scm \
+ guix/download.scm \
guix/monads.scm \
guix/profiles.scm \
guix/serialization.scm \
guix/nar.scm \
guix/derivations.scm \
- guix/download.scm \
guix/gnu-maintenance.scm \
guix/licenses.scm \
guix/build-system.scm \
@@ -71,12 +62,22 @@ MODULES = \
guix/build/rpath.scm \
guix/packages.scm \
guix/snix.scm \
+ guix/scripts/download.scm \
+ guix/scripts/build.scm \
+ guix/scripts/import.scm \
+ guix/scripts/package.scm \
+ guix/scripts/gc.scm \
+ guix/scripts/hash.scm \
+ guix/scripts/pull.scm \
+ guix/scripts/substitute-binary.scm \
+ guix/scripts/refresh.scm \
guix.scm \
$(GNU_SYSTEM_MODULES)
# Because of the autoload hack in (guix build download), we must build it
# first to avoid errors on systems where (gnutls) is unavailable.
guix/scripts/download.go: guix/build/download.go
+guix/download.go: guix/build/download.go
GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
It???s really a kludge, though, but I can???t think of any good fix.
Perhaps we???ll just end up requiring Guile-GnuTLS at some point.
Thanks,
Ludo???.
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Clean build from Git HEAD fails
2013-12-05 7:34 ` John Darrington
@ 2013-12-05 21:51 ` Ludovic Courtès
0 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2013-12-05 21:51 UTC (permalink / raw)
To: John Darrington; +Cc: guix-devel
John Darrington <john@darrington.wattle.id.au> skribis:
> I can confirm, that your patch seems to fix the problem. Thanks.
Thanks, pushed.
Ludo’.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-12-05 21:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-01 9:04 Clean build from Git HEAD fails John Darrington
2013-12-02 12:56 ` Ludovic Courtès
2013-12-02 13:43 ` John Darrington
2013-12-02 22:22 ` Ludovic Courtès
2013-12-03 8:39 ` John Darrington
2013-12-04 21:05 ` Ludovic Courtès
2013-12-05 7:34 ` John Darrington
2013-12-05 21:51 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.