guix pull fails on riscv64

  • Done
  • quality assurance status badge
Details
2 participants
  • Josselin Poiret
  • much.effort283
Owner
unassigned
Submitted by
much.effort283
Severity
normal
M
M
much.effort283 wrote on 3 Sep 2023 12:47
(address . bug-guix@gnu.org)
169373805573.7.9193072792884466363.174811610@slmail.me
Not sure if those are two issues, or one, but on riscv64 the following
seems to fail:

* guix pull
* openssl "check" phase

Steps to reproduce:

Install guix 1.4.0 and run "guix pull".

Output:

building /gnu/store/qkwilbf7fvc4rj55cvrf02xvmmx6mvv2-gnutls-3.7.7.tar.xz.drv...
building /gnu/store/d0gkh0hkxrfbb7i8z328rqws5m8xm05n-guile-gnutls-3.7.9-checkout.drv...
building /gnu/store/lzjryc1fdsi6xsjh7m050dygirccbglm-openssl-1.1.1l.drv...
- 'check' phasebuilder for
`/gnu/store/lzjryc1fdsi6xsjh7m050dygirccbglm-openssl-1.1.1l.drv'
failed with exit code 1
build of /gnu/store/lzjryc1fdsi6xsjh7m050dygirccbglm-openssl-1.1.1l.drv failed
View build log at
'/var/log/guix/drvs/lz/jryc1fdsi6xsjh7m050dygirccbglm-openssl-1.1.1l.drv.gz'.
cannot build derivation
`/gnu/store/6xs1rj5x52hmaldlygbc089jyr70j33s-mit-krb5-1.19.2.drv': 1
dependencies couldn't be built
cannot build derivation
`/gnu/store/bpy3jvm3zjmsc9gkiqhyv1y99z7vnzik-nghttp2-1.44.0.drv': 1
dependencies couldn't be built
Backtrace:
14 (primitive-load
"/gnu/store/bjmgis3jwxw9cwv900dc3h8xabgnbk4p-compute-guix-derivation")
In ice-9/eval.scm:
155:9 13 (_ _)
159:9 12 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?>
?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
152:2 11 (with-fluid* _ _ _)
152:2 10 (with-fluid* _ _ _)
In ./guix/store.scm:
2170:24 9 (run-with-store #<store-connection 256.99 227deaa0>
#<procedure 31ce75a0 at ./guix/self.scm:1303:2 (st?> ?)
1998:8 8 (_ #<store-connection 256.99 227deaa0>)
In ./guix/gexp.scm:
299:22 7 (_ #<store-connection 256.99 227deaa0>)
1180:2 6 (_ #<store-connection 256.99 3799f230>)
1046:2 5 (_ #<store-connection 256.99 3799f230>)
892:4 4 (_ #<store-connection 256.99 3799f230>)


\In ./guix/store.scm:
2055:12 3 (_ #<store-connection 256.99 3799f230>)
1403:5 2 (map/accumulate-builds #<store-connection 256.99
3799f230> #<procedure 36085b80 at ./guix/store.scm:20?> ?)
1419:15 1 (_ #<store-connection 256.99 3799f230>
("/gnu/store/jv53661ncfx9nlja7wkqfck18s2qbrdi-curl-7.84.0.drv" ?) ?)
1419:15 0 (loop #f)

./guix/store.scm:1419:15: In procedure loop:
ERROR:
1. &store-protocol-error:
message: "build of
`/gnu/store/jv53661ncfx9nlja7wkqfck18s2qbrdi-curl-7.84.0.drv' failed"
status: 100
guix pull: error: You found a bug: the program
'/gnu/store/bjmgis3jwxw9cwv900dc3h8xabgnbk4p-compute-guix-derivation'
failed to compute the derivation for Guix (version:
"47348b85f67d23b074d8d624450eaf1d443c101a"; system: "riscv64-linux";
host version: "1.4.0"; pull-version: 1).
Please report the COMPLETE output above by email to <bug-guix@gnu.org>.




The full openssl output is:

Let me know if anything else is required.
M
M
much.effort283 wrote on 4 Sep 2023 11:23
Re: bug#65725: Acknowledgement (guix pull fails on riscv64)
(address . 65725@debbugs.gnu.org)
169381942073.8.12810338331924318217.175158700@slmail.me
Since openssl is already bumped from "1.1.1l" to a version that has
the bug fixed in the development branch, I presume this will be fixed
once the next guix release (1.5) is out?

In the meantime, I wonder if there is a workaround I can apply. I
tried compiling from source, but that seems to fail as well:


$ make
...
MAKEINFO doc/guix.info
MAKEINFO doc/guix.de.info
MAKEINFO doc/guix.es.info
guix.es.texi:19957: warning: `.' or `,' must follow @xref, not p
guix.es.texi:46743: warning: `.' or `,' must follow @xref, not p
MAKEINFO doc/guix.fr.info
guix.fr.texi:15509: warning: `.' or `,' must follow @xref, not p
MAKEINFO doc/guix.pt_BR.info
MAKEINFO doc/guix.ru.info
Wide character in warn at /usr/bin/makeinfo line 637.
guix.ru.texi:13133: warning: `.' or `,' must follow @xref, not ?
MAKEINFO doc/guix.zh_CN.info
MAKEINFO doc/guix-cookbook.de.info
guix-cookbook.de.texi:611: @menu reference to nonexistent node `A
``Hello World'' package'
guix-cookbook.de.texi:612: @menu reference to nonexistent node `Setup'
guix-cookbook.de.texi:613: @menu reference to nonexistent node
`Extended example'
guix-cookbook.de.texi:614: @menu reference to nonexistent node `Other
build systems'
guix-cookbook.de.texi:615: @menu reference to nonexistent node
`Programmable and automated package definition'
guix-cookbook.de.texi:616: @menu reference to nonexistent node `Getting help'
guix-cookbook.de.texi:617: @menu reference to nonexistent node `Conclusion'
guix-cookbook.de.texi:842: @menu reference to nonexistent node `Local file'
guix-cookbook.de.texi:843: @menu reference to nonexistent node `Channels'
guix-cookbook.de.texi:1551: @menu reference to nonexistent node
`Recursive importers'
guix-cookbook.de.texi:1552: @menu reference to nonexistent node
`Automatic update'
guix-cookbook.de.texi:3767: @menu reference to nonexistent node `A
Database Container'
guix-cookbook.de.texi:4066: @menu reference to nonexistent node `Basic
setup with manifests'
guix-cookbook.de.texi:4067: @menu reference to nonexistent node
`Required packages'
guix-cookbook.de.texi:4068: @menu reference to nonexistent node
`Default profile'
guix-cookbook.de.texi:4069: @menu reference to nonexistent node `The
benefits of manifests'
guix-cookbook.de.texi:117: @detailmenu reference to nonexistent node
`A ``Hello World'' package'
guix-cookbook.de.texi:118: @detailmenu reference to nonexistent node `Setup'
guix-cookbook.de.texi:119: @detailmenu reference to nonexistent node
`Extended example'
guix-cookbook.de.texi:120: @detailmenu reference to nonexistent node
`Other build systems'
guix-cookbook.de.texi:121: @detailmenu reference to nonexistent node
`Programmable and automated package definition'
guix-cookbook.de.texi:122: @detailmenu reference to nonexistent node
`Getting help'
guix-cookbook.de.texi:123: @detailmenu reference to nonexistent node
`Conclusion'
guix-cookbook.de.texi:130: @detailmenu reference to nonexistent node
`Local file'
guix-cookbook.de.texi:131: @detailmenu reference to nonexistent node `Channels'
guix-cookbook.de.texi:138: @detailmenu reference to nonexistent node
`Recursive importers'
guix-cookbook.de.texi:139: @detailmenu reference to nonexistent node
`Automatic update'
guix-cookbook.de.texi:197: @detailmenu reference to nonexistent node
`A Database Container'
guix-cookbook.de.texi:211: @detailmenu reference to nonexistent node
`Basic setup with manifests'
guix-cookbook.de.texi:212: @detailmenu reference to nonexistent node
`Required packages'
guix-cookbook.de.texi:213: @detailmenu reference to nonexistent node
`Default profile'
guix-cookbook.de.texi:214: @detailmenu reference to nonexistent node
`The benefits of manifests'
make[2]: *** [Makefile:5396: doc/guix-cookbook.de.info] Error 1
J
J
Josselin Poiret wrote on 7 Sep 2023 10:14
8734zqv1r1.fsf@jpoiret.xyz
Hi,

much.effort283--- via Bug reports for GNU Guix <bug-guix@gnu.org>
writes:

Toggle quote (4 lines)
> Since openssl is already bumped from "1.1.1l" to a version that has
> the bug fixed in the development branch, I presume this will be fixed
> once the next guix release (1.5) is out?

`guix pull` should pull the latest available commit on master, and so it
should use the newer openssl version there. Can you retry, after rm'ing
.cache/guix/checkouts? If it still mentions 1.1.1l, we might have a bug
in `guix pull`.

Toggle quote (3 lines)
> In the meantime, I wonder if there is a workaround I can apply. I
> tried compiling from source, but that seems to fail as well:

Unfortunately, the latest source requires a patched po4a that was added
very recently. I don't know if you can confidently build all of Guix
locally without the doc, I haven't inspected the Makefile too closely.

Sorry I couldn't be of much help.

Best,
--
Josselin Poiret
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmT5hmIQHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5FhcaigIQC/9DhU9hGL8D1h3x9eGgIY/wEv4Td3UlY0ly
+5Ed6dB69LbS5M+sXUniFPnDwvrLcj4wWzzOljAbQbWJiRWjT8LBkZ8HnXfNc3O5
xz0ZY2ZGRNwArUBCJI91UZtzN7qbua7IlaDF0i4Y9NNGugoRBcW9QPjwCavxo1by
pX2b2QsQXONAgKUSnZfX45hF/lTCctSSe9pUVlGHfB7//cEaBgOImeB3n/i4hzpn
YL1AgnU42bSV/pWc/vnDgsLoSgPZuS5ULoiiCn3EME56c/V9VFz26/PxvprFKi3x
9Q71JbaWSw00IuX2n/I9qwBZVPO64Ddk5n9HzJrEwjnpSRYzs9WkqxSnW33tdTo3
FU1IMfPAHzdpOp0uOpOv6qaZAOOhqz912Mv8reFKMs+NFv9kpANx9SXZQBN+rput
t5tYXE7mXLKfhxVza77Mj4GsFA1UGukc/n/oaAwLdbTLoXhBJJgfWkrmsnEEesoL
jJ1pbvUKQEeYo7mj//UpBZD3x9JPN4k=
=Yuw0
-----END PGP SIGNATURE-----

M
M
much.effort283 wrote on 14 Sep 2023 19:47
(address . 65725@debbugs.gnu.org)
169471368305.7.572735431780968529.180402373@slmail.me
Toggle quote (2 lines)
> Can you retry, after rm'ing .cache/guix/checkouts?

Ok, I started from scratch again, but now it seems to be stuck
downloading libgit?

Not sure if this is an issue with my internet or a bug in guix. The output is:


guix pull
accepted connection from pid 852656, user root
Updating channel 'guix' from Git repository at
Authenticating channel 'guix', commits 9edb3f6 to 6d12c16 (9 new commits)...
Building from this channel:
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
building /gnu/store/l1x4l1rdxqc3xb5pfpc7qzn73bwb6f2j-compute-guix-derivation.drv...
Computing Guix derivation for 'riscv64-linux'... -\
/
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
ore/33n8ncsjhr9lw3l7c8gprjqyz4v4rl89-libjpeg-turbo-2.1.4.tar.gz
2261936 1572960
libjpeg-turbo-2.1.4.tar.gz 2.2MiB

676KiB/s 00:03
[##################] 100.0%
libgit2-1.3.2-checkout 3.2MiB

129KiB/s 00:22
[############### ] 88.5%Backtrace:
In guix/scripts/substitute.scm:
856:15 19 (_)
650:2 18 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # ?)
In ice-9/boot-9.scm:
1752:10 17 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
525:9 16 (download-nar #<<narinfo> path: "/gnu/store/25lmh68nvb?> ?)
In guix/serialization.scm:
424:4 15 (fold-archive _ _ _ _)
468:33 14 (read "/gnu/store/25lmh68nvby582y958fv84jnglf75jaz-lib?" ?)
468:33 13 (read "/gnu/store/25lmh68nvby582y958fv84jnglf75jaz-lib?" ?)
468:33 12 (read "/gnu/store/25lmh68nvby582y958fv84jnglf75jaz-lib?" ?)
468:33 11 (read "/gnu/store/25lmh68nvby582y958fv84jnglf75jaz-lib?" ?)
442:24 10 (read "/gnu/store/25lmh68nvby582y958fv84jnglf75jaz-lib?" ?)
525:24 9 (_ "/gnu/store/25lmh68nvby582y958fv84jnglf75jaz-libgit?" ?)
In ice-9/ports.scm:
467:11 8 (call-with-output-file "/gnu/store/25lmh68nvby582y958f?" ?)
In unknown file:
7 (open-file "/gnu/store/25lmh68nvby582y958fv84jnglf75ja?" ?)
In ice-9/boot-9.scm:
1685:16 6 (raise-exception _ #:continuable? _)
Backtrace:
17 (primitive-load
"/gnu/store/dmnd8rjz3frcv9cs3vd950nzayynl30z-compute-guix-derivation")
In ice-9/eval.scm:
155:9 16 (_ _)
159:9 15 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?>
?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
152:2 14 (with-fluid* _ _ _)
152:2 13 (with-fluid* _ _ _)
In ./guix/store.scm:
2168:24 12 (run-with-store #<store-connection 256.99 206a6140>
#<procedure 35823af0 at ./guix/self.scm:1330:2 (st?> ?)
1996:8 11 (_ #<store-connection 256.99 206a6140>)
In ./guix/gexp.scm:
299:22 10 (_ #<store-connection 256.99 206a6140>)
1180:2 9 (_ #<store-connection 256.99 206a6140>)
1046:2 8 (_ #<store-connection 256.99 206a6140>)
892:4 7 (_ #<store-connection 256.99 206a6140>)
In ./guix/store.scm:
2053:12 6 (_ #<store-connection 256.99 206a6140>)
1401:5 5 (map/accumulate-builds #<store-connection 256.99
206a6140> #<procedure 2e09c700 at ./guix/store.scm:20?> ?)
/ 1417:15 4 (_ #<store-connection 256.99 206a6140>
("/gnu/store/ha2p9cl9cd3x2yrwli11gksqb6nvgkxq-guix-daemon-1.?" ?) ?)
1417:15 3 (loop #f)
711:11 2 (process-stderr #<store-connection 256.99 206a6140> _)
In ./guix/serialization.scm:
101:11 1 (read-int #<input-output: file 10>)
79:6 0 (get-bytevector-n* #<input-output: file 10> 8)

./guix/serialization.scm:79:6: In procedure get-bytevector-n*:
ERROR:
1. &nar-error:
file: #f
port: #<input-output: file 10>
guix pull: error: You found a bug: the program
'/gnu/store/dmnd8rjz3frcv9cs3vd950nzayynl30z-compute-guix-derivation'
failed to compute the derivation for Guix (version:
"6d12c16299c1654a909c69d52bcb99b02cca0962"; system: "riscv64-linux";
host version: "1.4.0"; pull-version: 1).
Please report the COMPLETE output above by email to <bug-guix@gnu.org>.
M
M
much.effort283 wrote on 15 Nov 2023 17:09
guix pull fails on riscv64 (guix install openssl, too)
(address . 65725@debbugs.gnu.org)
170006455427.7.11762174182637203245.212768616@slmail.me
Hi all,

just to check in on this bug again. Recall, I am on guix 1.4.0 (the
Ubuntu package) on riscv64 and I was running into an openssl-1.1.1l
issue and a libgit issue.

I can reproduce the openssl issue in the unit tests with "guix install openssl".

Still, trying to disable the unit test, I tried
`--without-tests=openssl-1.1.1l`, but that didn't seem to be working
either:


# guix install --keep-going --without-tests=openssl-1.1.1l openssl
accepted connection from pid 3611385, user root
guix install: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.

The following package will be installed:
openssl 3.0.7

The following derivations will be built:
/gnu/store/8wrlkm74fg8j01ixjarbgsdr4l7zx38s-glibc-utf8-locales-2.33.drv
/gnu/store/xx80y9hw2ilw1y8bwmkg77rp3bks7xby-glibc-2.33.drv
/gnu/store/9i591y0qb9m33m4ny6hdbsvbv24grxcm-python-minimal-3.9.9.drv
/gnu/store/lzjryc1fdsi6xsjh7m050dygirccbglm-openssl-1.1.1l.drv

building /gnu/store/lzjryc1fdsi6xsjh7m050dygirccbglm-openssl-1.1.1l.drv...
- 'check' phase
/ 'check' phase
| 'check' phase builder for
`/gnu/store/lzjryc1fdsi6xsjh7m050dygirccbglm-openssl-1.1.1l.drv'
failed with exit code 1
build of /gnu/store/lzjryc1fdsi6xsjh7m050dygirccbglm-openssl-1.1.1l.drv failed
View build log at
'/var/log/guix/drvs/lz/jryc1fdsi6xsjh7m050dygirccbglm-openssl-1.1.1l.drv.gz'.
cannot build derivation
`/gnu/store/9i591y0qb9m33m4ny6hdbsvbv24grxcm-python-minimal-3.9.9.drv':
1 dependencies couldn't be built
cannot build derivation
`/gnu/store/xx80y9hw2ilw1y8bwmkg77rp3bks7xby-glibc-2.33.drv': 1
dependencies couldn't be built
cannot build derivation
`/gnu/store/8wrlkm74fg8j01ixjarbgsdr4l7zx38s-glibc-utf8-locales-2.33.drv':
1 dependencies couldn't be built
guix install: error: build of
`/gnu/store/8wrlkm74fg8j01ixjarbgsdr4l7zx38s-glibc-utf8-locales-2.33.drv'
failed
M
M
much.effort283 wrote on 23 Nov 2023 14:43
(address . 65725@debbugs.gnu.org)
170074704755.8.17547595595920527240.217527122@slmail.me
Hi all,

I've worked around the issue for now by building from source and
disabling all tests for now, using the following diff.

Toggle diff (9 lines)
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index f1e844b..1077c4b 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -494,4 +494,5 @@ (define-public openssl-1.1
(arguments
`(#:parallel-tests? #f
+ #:tests? #f
#:test-target "test"
M
M
much.effort283 wrote on 7 Dec 2023 18:11
(address . 65725-done@debbugs.gnu.org)
170196910478.8.1098657396120098591.226843722@slmail.me

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 65725@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 65725
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch