GNU bug report logs - #55283
‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Thu, 5 May 2022 22:51:02 UTC

Severity: important

Done: Efraim Flashner <efraim <at> flashner.co.il>

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 55283 in the body.
You can then email your comments to 55283 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Thu, 05 May 2022 22:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 05 May 2022 22:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Fri, 06 May 2022 00:50:21 +0200
The log goes like this:

--8<---------------cut here---------------start------------->8---
FAIL: tests/guix-shell-export-manifest
======================================

accepted connection from pid 12311, user nixbld
+ guix shell --version
guix shell (GNU Guix) 1.3.0-25.c1719a0
Copyright (C) 2022 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
+ tmpdir=t-guix-manifest-12319
+ trap 'rm -r "$tmpdir"' EXIT
+ mkdir t-guix-manifest-12319
+ manifest=t-guix-manifest-12319/manifest.scm
+ guix shell --export-manifest guile-bootstrap
hint: Consider passing the `--check' option once to make sure your shell does not
clobber environment variables.

++ guix build -m t-guix-manifest-12319/manifest.scm
accepted connection from pid 12331, user nixbld
++ guix build guile-bootstrap
accepted connection from pid 12336, user nixbld
+ test /tmp/guix-tests/store/8y8j1d6v8j3l2x9ys9zldg77k094i9ar-guile-bootstrap-2.0 = /tmp/guix-tests/store/8y8j1d6v8j3l2x9ys9zldg77k094i9ar-guile-bootstrap-2.0
+ guix shell -m t-guix-manifest-12319/manifest.scm --bootstrap -- /gnu/store/lzf5zg0diw2bhh2qji4bl2v46wd8pylc-bash-minimal-5.1.8/bin/sh -c 'guix package --export-manifest -p "$GUIX_ENVIRONMENT"'
accepted connection from pid 12341, user nixbld
+ for m in "$manifest" "$manifest.second"
+ grep -v '^;'
+ mv t-guix-manifest-12319/manifest.scm.new t-guix-manifest-12319/manifest.scm
+ for m in "$manifest" "$manifest.second"
+ grep -v '^;'
+ mv t-guix-manifest-12319/manifest.scm.second.new t-guix-manifest-12319/manifest.scm.second
+ cat t-guix-manifest-12319/manifest.scm

(specifications->manifest
  (list "guile-bootstrap"))
+ cat t-guix-manifest-12319/manifest.scm.second

(specifications->manifest
  (list "guile-bootstrap"))
+ cmp t-guix-manifest-12319/manifest.scm t-guix-manifest-12319/manifest.scm.second
+ guix shell --export-manifest -m t-guix-manifest-12319/manifest.scm gash gash-utils
hint: Consider passing the `--check' option once to make sure your shell does not
clobber environment variables.

+ guix build -m t-guix-manifest-12319/manifest.scm.second -d
++ guix build guile-bootstrap -d
accepted connection from pid 12361, user nixbld
accepted connection from pid 12363, user nixbld
+ grep /tmp/guix-tests/store/xkrmqbvzk212g2fm3abszip4gdprmqsp-guile-bootstrap-2.0.drv
/tmp/guix-tests/store/xkrmqbvzk212g2fm3abszip4gdprmqsp-guile-bootstrap-2.0.drv
+ guix build -m t-guix-manifest-12319/manifest.scm.second -d
++ guix build gash -d
accepted connection from pid 12372, user nixbld
accepted connection from pid 12374, user nixbld
+ grep /tmp/guix-tests/store/5fhx9ml0famifh6kp644x6ayn9zxw98z-gash-0.2.0.drv
/tmp/guix-tests/store/5fhx9ml0famifh6kp644x6ayn9zxw98z-gash-0.2.0.drv
+ guix shell --export-manifest guile guix --with-input=guile-json <at> 3=guile-json
hint: Consider passing the `--check' option once to make sure your shell does not
clobber environment variables.

+ grep 'options->transformation' t-guix-manifest-12319/manifest.scm
  (options->transformation
+ grep '(with-input . "guile-json <at> 3=guile-json")' t-guix-manifest-12319/manifest.scm
    '((with-input . "guile-json <at> 3=guile-json"))))
+ guix shell --export-manifest -D guile git
hint: Consider passing the `--check' option once to make sure your shell does not
clobber environment variables.

+ grep 'package->development-manifest' t-guix-manifest-12319/manifest.scm
        (package->development-manifest
+ grep '"guile"' t-guix-manifest-12319/manifest.scm
          (specification->package "guile"))))
+ guix build -m t-guix-manifest-12319/manifest.scm -d
++ guix build -e '(@@ (gnu packages commencement) gcc-final)' -d
accepted connection from pid 12397, user nixbld
accepted connection from pid 12395, user nixbld
+ grep /tmp/guix-tests/store/l5514bwycid2v0f0pkmqlx8nfpr50xqi-gcc-10.3.0.drv
/tmp/guix-tests/store/l5514bwycid2v0f0pkmqlx8nfpr50xqi-gcc-10.3.0.drv
++ guix build git -d
+ guix build -m t-guix-manifest-12319/manifest.scm -d
accepted connection from pid 12406, user nixbld
accepted connection from pid 12408, user nixbld
+ grep /tmp/guix-tests/store/hi8w6wzxgvd1v8aawcjpjkh0s9nkchrm-git-2.36.0.drv
/tmp/guix-tests/store/hi8w6wzxgvd1v8aawcjpjkh0s9nkchrm-git-2.36.0.drv
+ for options in "coreutils grep sed" "gsl openblas gcc-toolchain --tune" "guile -m $manifest.previous" "git:send-email gdb guile:debug" "git -D coreutils"
+ guix shell --export-manifest coreutils grep sed
hint: Consider passing the `--check' option once to make sure your shell does not
clobber environment variables.

+ cat t-guix-manifest-12319/manifest.scm
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.

(specifications->manifest
  (list "coreutils" "grep" "sed"))
+ guix shell -m t-guix-manifest-12319/manifest.scm -n
hint: Consider passing the `--check' option once to make sure your shell does not
clobber environment variables.

accepted connection from pid 12422, user nixbld
substitute: guix substitute: warning: ACL for archive imports seems to be uninitialized, substitutes may be unavailable
substitute: guix substitute: warning: authentication and authorization of substitutes disabled!
The following derivations would be built:
  /tmp/guix-tests/store/j44phxaqkljr2nrjglh879y9xlv6kmjx-profile.drv
  /tmp/guix-tests/store/3bhvxnjqjdlk0031ldj4llbif057fggy-module-import-compiled.drv
  /tmp/guix-tests/store/51934b4lnw9r73c85p5na809zasg0y63-guile-3.0.7.drv
  /tmp/guix-tests/store/3y19pd9h1vmi1iyp64mpvq8fgbr4771a-linux-libre-headers-5.10.35.drv
  /tmp/guix-tests/store/43rxpwdrlf0z6rwgd6c8xz4j2yzc6xc8-bison-boot0-3.7.6.drv
  /tmp/guix-tests/store/49n7csn3ilylk199xc3d4vxsnz0q09h4-m4-boot0-1.4.18.drv
  /tmp/guix-tests/store/6qlqvvw404vshsvjbpa6vaqq2davswgs-bootstrap-binaries-0.drv
  /tmp/guix-tests/store/p5f0c3yyj24nlg5wsxcyw438amfsscdi-static-binaries.tar.xz.drv
  /tmp/guix-tests/store/8dsrjf8a5gamki6c697gllx6q8qna73z-make-boot0-4.3.drv
  /tmp/guix-tests/store/hmb9f1pbhqny9796s802h8y3iwk3kz37-binutils-bootstrap-0.drv
  /tmp/guix-tests/store/s15zhng95dfhmmsppjp47an8acj7gfsi-binutils-2.27.tar.xz.drv
  /tmp/guix-tests/store/sydzvl8j9vwmcrdyay9k86aax6ngf5ck-make-4.3.tar.xz.drv
  /tmp/guix-tests/store/j0afanhb3zk4wn2nzm0s9aapj84pwj3r-make-4.3.tar.gz.drv
  /tmp/guix-tests/store/v49f60fsvscmjc8wcp8ili9x5qf4nlnd-module-import-compiled.drv
  /tmp/guix-tests/store/vksq172hzh69gvxgvmx7bjx7anacqx5y-glibc-bootstrap-0.drv
  /tmp/guix-tests/store/wqw5ni6za51d5nx6higbz1fpvrfqw8m8-glibc-2.25.tar.xz.drv
  /tmp/guix-tests/store/ymm8r90f0j042947n0d47d0svfj1mkdk-gcc-bootstrap-0.drv
  /tmp/guix-tests/store/xyanz4j2lib2znm9qahh22c5r1zi4kzw-gcc-5.4.0.tar.xz.drv
  /tmp/guix-tests/store/a91igvpyfhnnpbh0iar6w76y0p37qxf0-file-boot0-5.39.drv
  /tmp/guix-tests/store/1ihb86mpxbi2z8dshhdr9cnrb7455cgy-file-5.39.tar.gz.drv
  /tmp/guix-tests/store/llwqp3j35n9y27l8riygq8q2bvvfrb3x-m4-1.4.18.tar.xz.drv
  /tmp/guix-tests/store/ylw40g9f2j7ljb80jbmf2mcm4c61hmnf-m4-1.4.18.tar.xz.drv
  /tmp/guix-tests/store/n2xcz9fr99a5pn7jfp3mgdnv4qm3g4i8-diffutils-boot0-3.8.drv
  /tmp/guix-tests/store/52i2m607lnr0yl32ivldjxbzcd3md727-diffutils-3.8.tar.xz.drv
  /tmp/guix-tests/store/y2f2d6c1z2b970isd6mrwh99k4g3hq7h-findutils-boot0-4.8.0.drv
  /tmp/guix-tests/store/qyslw5fkbb5pgwfy9j4mfpbbz3sx10wz-findutils-4.8.0.tar.xz.drv
  /tmp/guix-tests/store/3ysw1klvdxl163qd4vw1wv1xqrgs0w2z-findutils-4.8.0.tar.xz.drv
  /tmp/guix-tests/store/s48i4aj731swgkyszbj2qrfmxxmlgm12-bison-3.7.6.tar.xz.drv
  /tmp/guix-tests/store/y2172vjy9k29kgfqqgw2m5p8424x7g68-perl-boot0-5.34.0.drv
  /tmp/guix-tests/store/qpynhlclasqz4sj5fgmb8g52n87zn8m6-perl-5.34.0.tar.xz.drv
  /tmp/guix-tests/store/m13ajlpd855cpa0pa3pzwmyz9qpsiydp-perl-5.34.0.tar.gz.drv
  /tmp/guix-tests/store/9c1748nx0haiknyvr74ywmnbzkqmfhdw-linux-libre-5.10.35-gnu.tar.xz.drv
  /tmp/guix-tests/store/rmmvpxhrafchpbvrqnmddficcybx6aci-flex-2.6.4.drv
  /tmp/guix-tests/store/13y4vrdbczrklywmk8n0z0h66hjqyn45-flex-2.6.4.tar.gz.drv
  /tmp/guix-tests/store/84ajk7l1alajaps5slg3ijdb4qdjyv2p-libgc-8.0.4.drv
  /tmp/guix-tests/store/a4gmh3m2bg0ngaq7xdrggd3mcc6307jk-ld-wrapper-boot3-0.drv
  /tmp/guix-tests/store/iyz1ji29z40y1hdx6kjb9cxgxxsh3p4b-binutils-2.37.drv
  /tmp/guix-tests/store/818wm0x329ziwvjvgvqqpwdm1z0n0wyi-binutils-2.37.tar.xz.drv
  /tmp/guix-tests/store/vqbav7r30ybqg1fx4smc4i004yrfqx24-binutils-2.37.tar.bz2.drv
  /tmp/guix-tests/store/alp18kisxfg857fn6daw0s1qzwjk18qb-binutils-cross-boot0-2.37.drv
  /tmp/guix-tests/store/k34s5i2plvyy7ykgk1cmj6ki1j33ygbg-ld-wrapper-boot0-0.drv
  /tmp/guix-tests/store/v7yvidxadrikqmsx7m50g710n655kxhm-gcc-cross-boot0-wrapped-10.3.0.drv
  /tmp/guix-tests/store/c94ihfwngqn863rg4nkip7ald1fj0mvy-gcc-cross-boot0-10.3.0.drv
  /tmp/guix-tests/store/2c0jsi6w5d9wpyb9cdi6d6w9w26vgx66-gmp-6.0.0a.tar.xz.drv
  /tmp/guix-tests/store/30x63km6gkfav97fxpqiyvk6jzbzjq15-gmp-6.0.0a.tar.xz.drv
  /tmp/guix-tests/store/a372j588drh0q5n1h7pwsdc1f9yh9wmm-libstdc++-boot0-4.9.4.drv
  /tmp/guix-tests/store/nhq0k1z03miis2jvc73cvm7x06b5fdgb-gcc-4.9.4.tar.xz.drv
  /tmp/guix-tests/store/9ggiq60zjjl0bq6ph1kbcgxl5i1an2l8-gcc-4.9.4.tar.bz2.drv
  /tmp/guix-tests/store/gcchalaqabxiz0ddwl5975a2b0hlabw9-gcc-10.3.0.tar.xz.drv
  /tmp/guix-tests/store/jrm2x6dwmd7bmhcnh0pg2vbz89i4jfln-gcc-10.3.0.tar.xz.drv
  /tmp/guix-tests/store/sb96xryswlm5cjvx5w231srblxfzy2li-mpfr-4.1.0.tar.xz.drv
  /tmp/guix-tests/store/sbim7iprglwrb2qk8yzspr8kb289ag2k-mpc-1.2.1.tar.gz.drv
  /tmp/guix-tests/store/yx1xzrqlsglpnj3q6ywbmb89x8jsgica-glibc-2.33.drv
  /tmp/guix-tests/store/1q493yljpawsdhp8568jgppwpj8aarp9-bash-static-5.1.8.drv
  /tmp/guix-tests/store/29540jn4v3g7fdp5kl0dp3gdmjf0zfjk-gcc-cross-boot0-wrapped-10.3.0.drv
  /tmp/guix-tests/store/dfxx2ysnkh2dc7833ljxwcz5062xpwab-glibc-intermediate-2.33.drv
  /tmp/guix-tests/store/3wr8zpcycb21p18m3k4hk269zhphcn6p-texinfo-6.7.drv
  /tmp/guix-tests/store/jbimq5n2i3g1kn1kd3c5xkz68289dx68-texinfo-6.7.tar.xz.drv
  /tmp/guix-tests/store/b5nrcks863bx079q9z3cq1g9d0fxk6hg-glibc-2.33.tar.xz.drv
  /tmp/guix-tests/store/lwxxlyj997lwj1bl2cmv9d59zlp7srij-glibc-2.33.tar.xz.drv
  /tmp/guix-tests/store/sgyhw8xh89vcsxh4dv6cbnz23cyhs16s-python-minimal-3.5.9.drv
  /tmp/guix-tests/store/fb08f16sbppkzx0f24lcnp4fjiwqfzn4-Python-3.5.9.tar.xz.drv
  /tmp/guix-tests/store/wlgikmav2mfh8smddkdlsipzn1zq0f1p-Python-3.5.9.tar.xz.drv
  /tmp/guix-tests/store/kdd1zvxhimmmfzpibd4s27bx0igqc56c-expat-2.4.1.drv
  /tmp/guix-tests/store/fnwrp6dzlrydalb9h1r10jbi71xs3q8n-expat-2.4.1.tar.xz.drv
  /tmp/guix-tests/store/2kf0z31ff0gb5d4c1iyfnf8d22w3ml5z-bash-5.1.tar.xz.drv
  /tmp/guix-tests/store/3ahys9k9r0wni47m3s3lkrmxw90d0gms-bash51-002.drv
  /tmp/guix-tests/store/4g3jlvf7s55wcbr0mwk521pn8h5n1n97-bash51-001.drv
  /tmp/guix-tests/store/6h2x54k6gqxj4gf15m88fas2vb0qshcc-bash51-005.drv
  /tmp/guix-tests/store/7ypxxx5hfr0bd1fi2b6p3v0wj2y9vgmg-bash51-007.drv
  /tmp/guix-tests/store/bc5gg0dq6r36y9cp26xznv4zq3974yaw-bash-5.1.tar.gz.drv
  /tmp/guix-tests/store/pr6dki42lpvkwl6nz4qn6ygvvw4nby31-bash51-006.drv
  /tmp/guix-tests/store/rc3n2paf3d1saf2wsz3s13y1kvppw09q-bash51-004.drv
  /tmp/guix-tests/store/rddb70qzdjc157c6kqi8275s7dk6a6rx-bash51-008.drv
  /tmp/guix-tests/store/yfbn6dh6r3vh33rsr7p5rcwkz6lphf5w-bash51-003.drv
  /tmp/guix-tests/store/dfxx2ysnkh2dc7833ljxwcz5062xpwab-glibc-intermediate-2.33.drv
  /tmp/guix-tests/store/w2gx4az6grnxd73sdp62jdbf1r6wagyy-gettext-boot0-0.19.8.1.drv
  /tmp/guix-tests/store/6gdxqdl100j20ad6yqvls0h872ra1d0f-gettext-0.19.8.1.tar.gz.drv
  /tmp/guix-tests/store/yx1xzrqlsglpnj3q6ywbmb89x8jsgica-glibc-2.33.drv
  /tmp/guix-tests/store/dv5lqag76smhccqcpv4gmrkph0xransj-bash-minimal-5.1.8.drv
  /tmp/guix-tests/store/l5514bwycid2v0f0pkmqlx8nfpr50xqi-gcc-10.3.0.drv
  /tmp/guix-tests/store/jmnfmbzk1qpj7m89k1lpjvbs3p03w92z-zlib-1.2.11.drv
  /tmp/guix-tests/store/cg3zn90rxamszpjh3arlhz6sqx18gbr7-zlib-1.2.11.tar.gz.drv
  /tmp/guix-tests/store/kgfpqrxcjqrdn5srs9i5czpqkj97dqc4-libstdc++-10.3.0.drv
  /tmp/guix-tests/store/f98xnd46k8czhgfh9fd7541hmzlmaq8y-gc-8.0.4.tar.gz.drv
  /tmp/guix-tests/store/zy3d62n5qpq5in0gdv7wbs6fcifz6wp8-pkg-config-0.29.2.drv
  /tmp/guix-tests/store/vh9zq87pbsp3pynn03ff50yrcnzgihgv-pkg-config-0.29.2.tar.gz.drv
  /tmp/guix-tests/store/ic5xliv5ly9yp4lwbl79w0rfa3m6mk76-libffi-3.3.drv
  /tmp/guix-tests/store/b2sj0lgxl8kj3z4cq1c7vvk9d6kdr0f0-libffi-3.3.tar.xz.drv
  /tmp/guix-tests/store/qa5m68pkpnk595kc7q8ppbyk6gb09zm4-libffi-3.3.tar.gz.drv
  /tmp/guix-tests/store/sq6pc7qys3n3ax9m52y6md02dnz1fwfw-guile-3.0.7.tar.xz.drv
  /tmp/guix-tests/store/6vjgb9y9q4mdmdjnfk39133f46yw4jr5-guile-3.0.7.tar.xz.drv
  /tmp/guix-tests/store/z7z01rw922gm491j19jl9jpnd867mjfl-libunistring-0.9.10.drv
  /tmp/guix-tests/store/jyh9sqdqm9nicgw1am9b8qv433yh1mrr-libunistring-0.9.10.tar.xz.drv
  /tmp/guix-tests/store/ag4amxg15xfpkv850zqilfm8k4qknkrx-gzip-1.10.drv
  /tmp/guix-tests/store/0yzhbyykfp3y7a1wzd245k5a1cm1d0jg-xz-5.2.5.drv
  /tmp/guix-tests/store/9cjmcz6kpdpj2zyhays2lhzca65jjiqq-grep-3.6.drv
  /tmp/guix-tests/store/q3jyhhq1f63z8szdbvpjar9k96w5gidr-module-import-compiled.drv
  /tmp/guix-tests/store/qqrjqy0hczi02p1qz6vngj88qdwbcf3q-glibc-utf8-locales-2.33.drv
  /tmp/guix-tests/store/g6hs8m77j44jpzl407c4a1lnrcbmxvy5-gzip-1.10.drv
  /tmp/guix-tests/store/5lxl075fyk6zwl403gz0cljmwsqj1qhw-gzip-1.10.tar.xz.drv
  /tmp/guix-tests/store/r8i7j8900swv21pyfhsjril9k2ifalr8-grep-3.6.tar.xz.drv
  /tmp/guix-tests/store/s3nayskvvkiyzc4vmswxk4z23y9wxif1-grep-3.6.tar.xz.drv
  /tmp/guix-tests/store/nrn4lngnd0rynmi2v4nxvpp7qg8q2shd-xz-5.2.5.tar.gz.drv
  /tmp/guix-tests/store/phfb2w5ifmwkav2kg8pip3pnrlbkkxxw-coreutils-8.32.drv
  /tmp/guix-tests/store/pjw86qak71vxi5vr9snxmna7z31zc644-coreutils-8.32.tar.xz.drv
  /tmp/guix-tests/store/07ixyjvfrbbmil56i3lrh5vk9jynkjl6-coreutils-8.32.tar.xz.drv
  /tmp/guix-tests/store/8gdb3gipskiyrgvwx02kr3364np0bbcg-ld-wrapper-0.drv
  /tmp/guix-tests/store/8rrzd2cphdvdnx5q0yxfw4llyrb22kam-tar-1.34.drv
  /tmp/guix-tests/store/blbmcdkapz3jlgswdqvalrck50vzlyf1-tar-1.34.tar.xz.drv
  /tmp/guix-tests/store/pdnllx46j3rl9mvmw6fhf9bz1s3dnzdg-tar-1.34.tar.xz.drv
  /tmp/guix-tests/store/99asq9idmfk5ifv3pb24ahklsls911vc-diffutils-3.8.drv
  /tmp/guix-tests/store/f89xggrcs8cq8v3i15mb85f7lnpdahi6-diffutils-3.8.tar.xz.drv
  /tmp/guix-tests/store/yayvypf19rkbbzsn2xi9n9wzxycfq5nh-perl-5.34.0.drv
  /tmp/guix-tests/store/psrk3l1xisd32z6ifdldbrcpf3gcm7gl-coreutils-minimal-8.32.drv
  /tmp/guix-tests/store/abh4j4wl32p6f2i78qiis0kgsy7razk3-make-4.3.drv
  /tmp/guix-tests/store/n43d1gkl3qfqf6dkjfifanlmhwn53v6l-pkg-config-0.29.2.drv
  /tmp/guix-tests/store/dck98fl1d4y2w761547laxdq0zix8vyi-bzip2-1.0.8.drv
  /tmp/guix-tests/store/5hgx7y1w3jr8i2b89xxix8wd1ji2814i-bzip2-1.0.8.tar.gz.drv
  /tmp/guix-tests/store/fizvdc3wiw1ysxf4f4bcwqihc0i2i6kl-sed-4.8.drv
  /tmp/guix-tests/store/9y335nr187bkjbdsbgrscnfmh7375jjv-sed-4.8.tar.xz.drv
  /tmp/guix-tests/store/wl4vw9raqk91g7vbrx37yykypcmbp7zn-sed-4.8.tar.gz.drv
  /tmp/guix-tests/store/lzr7aslw4090qjpd20wffniidz2mwpvg-patch-2.7.6.drv
  /tmp/guix-tests/store/8pxxy5qm5mwn4iwymnnd7x1m246y54i8-ed-1.17.drv
  /tmp/guix-tests/store/py3c6m2xqb12xw9x6sgvpgwp2x39szm3-ed-1.17.tar.lz.drv
  /tmp/guix-tests/store/r1i088hs6awawq9v3q74bjfqn2cjwjzq-lzip-1.22.drv
  /tmp/guix-tests/store/jj50yy8p425nvfjs861jisk3yjmmny5d-lzip-1.22.tar.gz.drv
  /tmp/guix-tests/store/bgzrlrmin6pg495cw1zrfmhzspq9334y-patch-2.7.6.tar.xz.drv
  /tmp/guix-tests/store/9iz8w95gkcfqvslq2ggiyr7l7j418p2h-patch-2.7.6.tar.xz.drv
  /tmp/guix-tests/store/njh2q6jh30ir65f9jfizszdgh4cws459-gzip-1.10.drv
  /tmp/guix-tests/store/vba66mj7a6br9l1m3zvh2b4df4zifljr-file-5.39.drv
  /tmp/guix-tests/store/xf8ib1prxmd0alc0wb5a2lqvwa80x09z-gawk-5.1.0.drv
  /tmp/guix-tests/store/8i6daxjks420vgi249hg6d8srh147c9a-gawk-5.1.0.tar.xz.drv
  /tmp/guix-tests/store/b7y69zhla11p6mrnqjc5qcka6hsdz3na-libsigsegv-2.13.drv
  /tmp/guix-tests/store/ddlp4jv9ga49yi3jirqiayd1kzw56pqx-libsigsegv-2.13.tar.gz.drv
  /tmp/guix-tests/store/zl919yhli8x70swq2rjnjd6idlr2kksy-findutils-4.8.0.drv
  /tmp/guix-tests/store/gn7lpfk8l0jgng99m0pxz8qgbn02al9s-grep-3.6.drv
  /tmp/guix-tests/store/1a3wpp31av41pwwm7hv6rv5rawwygdiv-grep-3.6.tar.xz.drv
  /tmp/guix-tests/store/8n0x19a6gfg3yfkbdyxsa60pfsly2hfr-perl-5.34.0.drv
  /tmp/guix-tests/store/ra0w6z0gak8d467vpg2cxkzw4s1nwk8l-coreutils-minimal-8.32.drv
  /tmp/guix-tests/store/kv0h9wzahk2bin4lkfd57w0gwn5rhna4-coreutils-8.32.tar.xz.drv
  /tmp/guix-tests/store/v78axsby58bj5hx2c52g79zvnrrc2b2z-perl-5.34.0.tar.xz.drv
  /tmp/guix-tests/store/8s6m5d22xnnaq3wxfighgqpjj219qlks-pcre-8.45.drv
  /tmp/guix-tests/store/1jgc0pkprmhzyi4mc673s4r3w16zghig-zlib-1.2.11.drv
  /tmp/guix-tests/store/5rsf6wrlssjfll1safbkacs7af7l2d5b-readline-8.1.1.drv
  /tmp/guix-tests/store/fqyrnavjbkhi77n5vqhdid2k8w6mg9a0-readline-8.1.tar.xz.drv
  /tmp/guix-tests/store/bbv6h06m4jp3rrpdcg7badfx4gx5rcm6-readline81-001.drv
  /tmp/guix-tests/store/smzqvnsz6f25008m8d37naymwqr2dhv0-readline-8.1.tar.gz.drv
  /tmp/guix-tests/store/nl65h4cp6kyxhi96wa9zcqhqrr343pk5-ncurses-6.2.20210619.drv
  /tmp/guix-tests/store/9v7hgmsbj8kysszv4412v464cf69g9zv-pkg-config-0.29.2.drv
  /tmp/guix-tests/store/mffc11c9cdsr8fvi55gf59z97g26ckhh-ncurses-6.2-20210619-patch.sh.bz2.drv
  /tmp/guix-tests/store/xjihk2qi6mpba93zsxf5g2nm0i1318bc-ncurses-6.2.tar.gz.drv
  /tmp/guix-tests/store/p2g94kwd7mmqafp1yw5il1hwi6jwr20b-bzip2-1.0.8.drv
  /tmp/guix-tests/store/xf9x7c8yh63asby6d3kklalmvvh962cp-pcre-8.45.tar.bz2.drv
  /tmp/guix-tests/store/hpc4la1fkmy44lx7rwgjfjqsqi8rxl2j-coreutils-8.32.drv
  /tmp/guix-tests/store/1dh8cn5iygs9bpgmg9422wzpddsq5vlq-acl-2.3.1.drv
  /tmp/guix-tests/store/ascirri4w1yr85b079z71jiyvxx3rc0n-acl-2.3.1.tar.gz.drv
  /tmp/guix-tests/store/b2q1rxgpg5w274mdi9i4dwn8sz86bcpv-attr-2.5.1.drv
  /tmp/guix-tests/store/ma64likl414c3wbw7qq2bggg6cbrnhnr-gettext-minimal-0.21.drv
  /tmp/guix-tests/store/baa0x06g8s70hkyf6m4kfi74f2s6652l-libxml2-2.9.12.drv
  /tmp/guix-tests/store/9y54l679x2c0w4vmpyi0jcx93qkffvnn-xz-5.2.5.drv
  /tmp/guix-tests/store/xaiq1b7ddb5zz2cd179nx56qmrdaxlqa-libxml2-2.9.12.tar.xz.drv
  /tmp/guix-tests/store/w24472jz9vxqa4bjmz7477973jhkd9ik-libxml2-2.9.12.tar.gz.drv
  /tmp/guix-tests/store/ls6ibkawnxg13713lc436n94ilqkib8g-gettext-0.21.tar.gz.drv
  /tmp/guix-tests/store/x9grx0ibyn1kk9q1a431w8v27zvpqvsa-libunistring-0.9.10.drv
  /tmp/guix-tests/store/x86a0j6kp821gxrk12hmvp7wqyya6hmr-attr-2.5.1.tar.gz.drv
  /tmp/guix-tests/store/470s1b7yc5xq8ayc5z4xm2pnaic6k5kc-gmp-6.2.1.drv
  /tmp/guix-tests/store/4dcf5wa7575sj1yd5d3khq2z4vc8ixx7-m4-1.4.18.drv
  /tmp/guix-tests/store/wp2lv1144dkj204fr98g4vdvh5khg5sm-m4-1.4.18.tar.xz.drv
  /tmp/guix-tests/store/wy18gfwdnypqij236p495cd0sp923v23-gmp-6.2.1.tar.xz.drv
  /tmp/guix-tests/store/926ff4vmwvm0m6vjxl41jdx358f9rraa-gmp-6.2.1.tar.xz.drv
  /tmp/guix-tests/store/y40qi9cdy4bsvjblzzky7bi5dnm76ld4-libcap-2.62.drv
  /tmp/guix-tests/store/4qn3bp2kx2ga709x4s3iknkkmazfcbjn-libcap-2.62.tar.xz.drv
  /tmp/guix-tests/store/k6qncrds25lcqgzr1vxwvp1fnfzsdhmz-texinfo-6.7.drv
  /tmp/guix-tests/store/pbs5yhvd2gl1jyp9glw3kj35yrkbhxnp-glibc-utf8-locales-2.33.drv
  /tmp/guix-tests/store/8fxqqkarqq9lm37gj749gvh6zanzslbh-linux-libre-headers-5.10.35.drv
  /tmp/guix-tests/store/5iwdqn8y8p172pdlpw4pi2qmja10s16l-bison-3.7.6.drv
  /tmp/guix-tests/store/mr6ldfhd1k18jn4qj5jgghj77lyxrbd8-flex-2.6.4.drv
  /tmp/guix-tests/store/8h12chr1yka2n23xys95sssiav8pq91n-help2man-1.48.5.drv
  /tmp/guix-tests/store/hm8nn50kdhd4hkbbnsqy45gci2iaazyw-help2man-1.48.5.tar.xz.drv
  /tmp/guix-tests/store/vw4wpcy1wbf6k3ag2zmcw25v4qcqnq3h-perl-gettext-1.07.drv
  /tmp/guix-tests/store/a3272isvax52i5qh5w19q5b1zd09xdly-gettext-1.07.tar.gz.drv
  /tmp/guix-tests/store/r45lzycmjc8jcvxci9sqwws8h0k9h6vb-module-import-compiled.drv
  /tmp/guix-tests/store/8myba7wg6h88rf4k5sm328xl84c9jx5f-bison-3.7.6.drv
  /tmp/guix-tests/store/pr1j63rh4zg1ww4gb03qvchkb869mvp7-glibc-2.33.drv
  /tmp/guix-tests/store/alxf0h9wmjf6mjw3xwc6r7394aqaq08x-python-minimal-3.9.9.drv
  /tmp/guix-tests/store/0ph1pyqb4dwjrby0r58kdv8nxpjvg5j2-openssl-1.1.1l.drv
  /tmp/guix-tests/store/2lnm8dllcggjwr6z2d0rgjl2j5xdfp96-openssl-1.1.1l.tar.xz.drv
  /tmp/guix-tests/store/x8b88sxk8k4mhy19rgib178q64n65vw2-openssl-1.1.1l.tar.gz.drv
  /tmp/guix-tests/store/hrzacv2i0zkhf6s69ykn89ks3lh0w8hb-expat-2.4.1.drv
  /tmp/guix-tests/store/j4c46x206996zhsv95rpb289c71lzqmy-tzdata-2021e.drv
  /tmp/guix-tests/store/5a59m1ix3g5k2cf6azd43cgm20akmsw1-tzdata2021e.tar.gz.drv
  /tmp/guix-tests/store/ldwzk0z8nmz4x2knz69rbzmnxvmgxqz4-tzcode2021e.tar.gz.drv
  /tmp/guix-tests/store/jws9dsxc6wy02fkvri29qa2gjgrcr0h3-unzip-6.0.drv
  /tmp/guix-tests/store/h77hsl1pnxbfq9lbsb44hqwryyw2z2cq-unzip60.tar.xz.drv
  /tmp/guix-tests/store/fb50kgp8875vaprz99z1xpm8d7lyy6bf-unzip60.tar.gz.drv
  /tmp/guix-tests/store/kwvzkncsscb836xnqnv4w9mf4wih0zf1-zip-3.0.drv
  /tmp/guix-tests/store/gh8xd05ggra71pxlrqqmh0ywdbcyf8pv-zip30.tar.gz.drv
  /tmp/guix-tests/store/q34n39rszb83asm5dxmb3j3cqsicsfgf-Python-3.9.9.tar.xz.drv
  /tmp/guix-tests/store/ybh57lm3rql0zmkd79fhp3m06rc7i79x-Python-3.9.9.tar.xz.drv
  /tmp/guix-tests/store/qr9rvbbj1z14kjl6pf0sz00lw6wcy95v-libffi-3.3.drv
  /tmp/guix-tests/store/7axvp0dh0323z2hifk6g38xkhz42hv0s-libffi-3.3.tar.xz.drv
  /tmp/guix-tests/store/k314ya2l1j7zp6ccha1ahy2g2n5w30w9-bash-static-5.1.8.drv
  /tmp/guix-tests/store/g3532cw5wmamswzddqijasjbsnyng434-bash-5.1.tar.xz.drv
  /tmp/guix-tests/store/mp6sm9pwkdygzi3b4sv8j8w903nzpvqg-glibc-2.33.tar.xz.drv
  /tmp/guix-tests/store/wq8hhdps1xd882sq3daa1bym54scycsd-sed-4.8.drv
  /tmp/guix-tests/store/1w09mdcm3m9sv3f8g1xyxpy8wwj7kiq5-sed-4.8.tar.xz.drv
  /tmp/guix-tests/store/4svif0a4ygcjhdvwy71pma2iq0jsq6n7-module-import-compiled.drv
  /tmp/guix-tests/store/5bnbndrkhsl75rvx5zng1m1v7gn2qjnh-mkfontscale-1.2.1.drv
  /tmp/guix-tests/store/4vapcas9i0qkizpxklai6s1gc0qns7jh-libpng-1.6.37.drv
  /tmp/guix-tests/store/n0aqcbf5kjy8jnwfj52brx3swqyn1syw-libpng-1.6.37.tar.xz.drv
  /tmp/guix-tests/store/96j0l82k0267fa23fspksjgi4asqhsx6-xorgproto-2021.5.drv
  /tmp/guix-tests/store/g0vfc817956bvw2va79wnhvdr8jis7z0-xorgproto-2021.5.tar.bz2.drv
  /tmp/guix-tests/store/xqzk1zi52v1d57vf1sn3bb1lssk34hc3-util-macros-1.19.3.drv
  /tmp/guix-tests/store/xs001m7234ps32bfmsh34n6kfsfyv14p-util-macros-1.19.3.tar.bz2.drv
  /tmp/guix-tests/store/mpv16qsfnmcx9d7r22d823s3m8ris5zi-libfontenc-1.1.4.drv
  /tmp/guix-tests/store/850nm8pgj16sr6wx5w1c2wdvizkw1l8k-libfontenc-1.1.4.tar.bz2.drv
  /tmp/guix-tests/store/qixrfz32ym54k82wk8jllcdsskgkfix4-freetype-2.10.4.drv
  /tmp/guix-tests/store/3a14siwd06f243hh5ffw3wf4i1s6wh8r-freetype-2.10.4.tar.xz.drv
  /tmp/guix-tests/store/swbzw0r258fcwy2zwqgvx3m181ybbpxa-mkfontscale-1.2.1.tar.bz2.drv
  /tmp/guix-tests/store/r68y9vxqa4f9iwdp1kycghy5vwcgx0id-mkfontdir-1.0.7.drv
  /tmp/guix-tests/store/13w2afx08lhxzxj85d8hdfaz9h17v925-automake-1.16.3.drv
  /tmp/guix-tests/store/hvnhlr8ha7czasn5m55rpxbypr6fpxr3-autoconf-wrapper-2.69.drv
  /tmp/guix-tests/store/87vmhiih0yzzznbawa44bh441yxwp2zr-autoconf-2.69.drv
  /tmp/guix-tests/store/cpswkgwna56j6f1dx549ayark1h4k0d5-autoconf-2.69.tar.xz.drv
  /tmp/guix-tests/store/sqp06q2gisn774rqfr53ds0232g1q7sp-bash-minimal-5.1.8.drv
  /tmp/guix-tests/store/c6v3ng6xk682jdymilmkkhgfx67gw0jq-guile-3.0.7.drv
  /tmp/guix-tests/store/qc2mcdhy3jssl3h2bmpx70mnb76p1hws-guile-3.0.7.tar.xz.drv
  /tmp/guix-tests/store/x5xkq26miwqas0619bdcpy07lxqjrmfj-libgc-8.0.4.drv
  /tmp/guix-tests/store/zsd10dgjkbmcxlalplbxqy14dy3wf8j5-automake-1.16.3.tar.xz.drv
  /tmp/guix-tests/store/m3103za60mkp2jz3is7vzv06s6bq80br-automake-1.16.3.tar.xz.drv
  /tmp/guix-tests/store/y6zsi3in6pdrrlpz6jkkf85mfqh7bssf-mkfontdir-1.0.7.tar.bz2.drv
  /tmp/guix-tests/store/sss24ngcgw51sliprb1mi7gm6f02c9cg-module-import-compiled.drv

+ mv t-guix-manifest-12319/manifest.scm t-guix-manifest-12319/manifest.scm.previous
+ for options in "coreutils grep sed" "gsl openblas gcc-toolchain --tune" "guile -m $manifest.previous" "git:send-email gdb guile:debug" "git -D coreutils"
+ guix shell --export-manifest gsl openblas gcc-toolchain --tune
Backtrace:
In ice-9/boot-9.scm:
  1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
In unknown file:
          12 (apply-smob/0 #<thunk 5bd2e0>)
In ice-9/boot-9.scm:
    724:2 11 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8 10 (_ #(#(#<directory (guile-user) 5c2c80>)))
In guix/ui.scm:
   2230:7  9 (run-guix . _)
  2193:10  8 (run-guix-command _ . _)
In guix/scripts/shell.scm:
   160:17  7 (guix-shell . _)
In ice-9/boot-9.scm:
  1747:15  6 (with-exception-handler #<procedure 4bd7b0 at ice-9/bo…> …)
In srfi/srfi-37.scm:
   201:16  5 (next-arg)
   113:18  4 (invoke-option-processor _ _ _ _ _)
In unknown file:
           3 (_ #<procedure 4bd660 at srfi/srfi-37.scm:114:22 ()> # #)
           2 (_ #<procedure 9aa9c0 at ice-9/boot-9.scm:798:28 ()> # #)
In guix/transformations.scm:
   864:25  1 (_ _ _ _ ((package ad-hoc-package "gcc-toolchain") (…) …))
In guix/cpu.scm:
     94:2  0 (cpu->gcc-architecture #f)

guix/cpu.scm:94:2: In procedure cpu->gcc-architecture:
In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
+ rm -r t-guix-manifest-12319
FAIL tests/guix-shell-export-manifest.sh (exit status: 1)
--8<---------------cut here---------------end--------------->8---

This is ca. 312879fddcf0713c0f1dafcc6faa089edbbb6e04.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Fri, 06 May 2022 00:29:02 GMT) Full text and rfc822 format available.

Message #8 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: raingloom <raingloom <at> riseup.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 55283 <at> debbugs.gnu.org
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Fri, 6 May 2022 02:28:26 +0200
On Fri, 06 May 2022 00:50:21 +0200
Ludovic Courtès <ludo <at> gnu.org> wrote:

> The log goes like this:
> ...
> + guix shell --export-manifest gsl openblas gcc-toolchain --tune

This seems to be the important part, it looks like the CPU arch isn't
being detected.

> Backtrace:
> In ice-9/boot-9.scm:
>   1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
> In unknown file:
>           12 (apply-smob/0 #<thunk 5bd2e0>)
> In ice-9/boot-9.scm:
>     724:2 11 (call-with-prompt _ _ #<procedure
> default-prompt-handle…>) In ice-9/eval.scm:
>     619:8 10 (_ #(#(#<directory (guile-user) 5c2c80>)))
> In guix/ui.scm:
>    2230:7  9 (run-guix . _)
>   2193:10  8 (run-guix-command _ . _)
> In guix/scripts/shell.scm:
>    160:17  7 (guix-shell . _)
> In ice-9/boot-9.scm:
>   1747:15  6 (with-exception-handler #<procedure 4bd7b0 at ice-9/bo…>
> …) In srfi/srfi-37.scm:
>    201:16  5 (next-arg)
>    113:18  4 (invoke-option-processor _ _ _ _ _)
> In unknown file:
>            3 (_ #<procedure 4bd660 at srfi/srfi-37.scm:114:22 ()> # #)
>            2 (_ #<procedure 9aa9c0 at ice-9/boot-9.scm:798:28 ()> # #)
> In guix/transformations.scm:
>    864:25  1 (_ _ _ _ ((package ad-hoc-package "gcc-toolchain") (…)
> …)) In guix/cpu.scm:
>      94:2  0 (cpu->gcc-architecture #f)

This indicates the same to me.
But I don't know the internals of --tune well enough, so it's just a
hunch.

> guix/cpu.scm:94:2: In procedure cpu->gcc-architecture:
> In procedure struct-vtable: Wrong type argument in position 1
> (expecting struct): #f
> + rm -r t-guix-manifest-12319
> FAIL tests/guix-shell-export-manifest.sh (exit status: 1)
> --8<---------------cut here---------------end--------------->8---
> 
> This is ca. 312879fddcf0713c0f1dafcc6faa089edbbb6e04.
> 
> Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Fri, 06 May 2022 20:44:02 GMT) Full text and rfc822 format available.

Message #11 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Vagrant Cascadian <vagrant <at> debian.org>
To: raingloom <raingloom <at> riseup.net>, Ludovic Courtès
 <ludo <at> gnu.org>
Cc: 55283 <at> debbugs.gnu.org
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Fri, 06 May 2022 13:43:47 -0700
[Message part 1 (text/plain, inline)]
On 2022-05-06, raingloom <at> riseup.net wrote:
> On Fri, 06 May 2022 00:50:21 +0200
> Ludovic Courtès <ludo <at> gnu.org> wrote:
>
>> The log goes like this:
>> ...
>> + guix shell --export-manifest gsl openblas gcc-toolchain --tune
>
> This seems to be the important part, it looks like the CPU arch isn't
> being detected.
>
>> Backtrace:
>> In ice-9/boot-9.scm:
>>   1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
>> In unknown file:
>>           12 (apply-smob/0 #<thunk 5bd2e0>)
>> In ice-9/boot-9.scm:
>>     724:2 11 (call-with-prompt _ _ #<procedure
>> default-prompt-handle…>) In ice-9/eval.scm:
>>     619:8 10 (_ #(#(#<directory (guile-user) 5c2c80>)))
>> In guix/ui.scm:
>>    2230:7  9 (run-guix . _)
>>   2193:10  8 (run-guix-command _ . _)
>> In guix/scripts/shell.scm:
>>    160:17  7 (guix-shell . _)
>> In ice-9/boot-9.scm:
>>   1747:15  6 (with-exception-handler #<procedure 4bd7b0 at ice-9/bo…>
>> …) In srfi/srfi-37.scm:
>>    201:16  5 (next-arg)
>>    113:18  4 (invoke-option-processor _ _ _ _ _)
>> In unknown file:
>>            3 (_ #<procedure 4bd660 at srfi/srfi-37.scm:114:22 ()> # #)
>>            2 (_ #<procedure 9aa9c0 at ice-9/boot-9.scm:798:28 ()> # #)
>> In guix/transformations.scm:
>>    864:25  1 (_ _ _ _ ((package ad-hoc-package "gcc-toolchain") (…)
>> …)) In guix/cpu.scm:
>>      94:2  0 (cpu->gcc-architecture #f)
>
> This indicates the same to me.
> But I don't know the internals of --tune well enough, so it's just a
> hunch.
>
>> guix/cpu.scm:94:2: In procedure cpu->gcc-architecture:
>> In procedure struct-vtable: Wrong type argument in position 1
>> (expecting struct): #f
>> + rm -r t-guix-manifest-12319
>> FAIL tests/guix-shell-export-manifest.sh (exit status: 1)
>> --8<---------------cut here---------------end--------------->8---

I'm getting this same error too; happy to test any proposed patches.


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Fri, 06 May 2022 21:13:01 GMT) Full text and rfc822 format available.

Message #14 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: raingloom <raingloom <at> riseup.net>, Ludovic Courtès
 <ludo <at> gnu.org>
Cc: 55283 <at> debbugs.gnu.org
Subject: Re: bug#55283:
 ‘tests/guix-shell-export-manifest.sh’ fails
 on aarch64-linux
Date: Fri, 06 May 2022 23:12:33 +0200
[Message part 1 (text/plain, inline)]
raingloom schreef op vr 06-05-2022 om 02:28 [+0200]:
> > …)) In guix/cpu.scm:
> >       94:2  0 (cpu->gcc-architecture #f)
> 
> This indicates the same to me.
> But I don't know the internals of --tune well enough, so it's just a
> hunch.

Could anyone who encounters the issue on aarch64-linux send their
/proc/cpuinfo, such that other people can test the body of 'current-
cpu' on that copy?

Also, why doesn't 'current-cpu' throw some kind of exception instead of
#false?  No users of 'current-cpu' appear to handle #false and
returning #false is not documented in the docstring.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Fri, 06 May 2022 22:14:02 GMT) Full text and rfc822 format available.

Message #17 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Vagrant Cascadian <vagrant <at> debian.org>
To: Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>,
 Ludovic Courtès <ludo <at> gnu.org>
Cc: 55283 <at> debbugs.gnu.org
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Fri, 06 May 2022 15:13:36 -0700
[Message part 1 (text/plain, inline)]
On 2022-05-06, Maxime Devos wrote:
> raingloom schreef op vr 06-05-2022 om 02:28 [+0200]:
>> > …)) In guix/cpu.scm:
>> >       94:2  0 (cpu->gcc-architecture #f)
>> 
>> This indicates the same to me.
>> But I don't know the internals of --tune well enough, so it's just a
>> hunch.
>
> Could anyone who encounters the issue on aarch64-linux send their
> /proc/cpuinfo, such that other people can test the body of 'current-
> cpu' on that copy?

On a rockpro64:

$ cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 4
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 2

processor       : 5
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 2


I'll test on some other hardware with a very different cpu and see if it
has the same problem too.


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Sat, 07 May 2022 00:15:02 GMT) Full text and rfc822 format available.

Message #20 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Vagrant Cascadian <vagrant <at> debian.org>
To: Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>,
 Ludovic Courtès <ludo <at> gnu.org>
Cc: 55283 <at> debbugs.gnu.org
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Fri, 06 May 2022 17:14:45 -0700
[Message part 1 (text/plain, inline)]
On 2022-05-06, Vagrant Cascadian wrote:
> On 2022-05-06, Maxime Devos wrote:
>> raingloom schreef op vr 06-05-2022 om 02:28 [+0200]:
>>> > …)) In guix/cpu.scm:
>>> >       94:2  0 (cpu->gcc-architecture #f)
>>> 
>>> This indicates the same to me.
>>> But I don't know the internals of --tune well enough, so it's just a
>>> hunch.
>>
>> Could anyone who encounters the issue on aarch64-linux send their
>> /proc/cpuinfo, such that other people can test the body of 'current-
>> cpu' on that copy?

What is reading from /proc/cpuinfo? I've heard it suggested that
/proc/cpuinfo was more informational and not something to be relied on
for anything that actually matters... ?

Well, I guess I answered my initial question by reading the error
message... guix/cpu.scm ... how did that work before for things like
cross-building, where /proc/cpuinfo is *definitely* wrong to get
information about the architecture you're building for?


> On a rockpro64:
>
> $ cat /proc/cpuinfo
> processor       : 0
> BogoMIPS        : 48.00
> Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
> CPU implementer : 0x41
> CPU architecture: 8
> CPU variant     : 0x0
> CPU part        : 0xd03
> CPU revision    : 4
...
> I'll test on some other hardware with a very different cpu and see if it
> has the same problem too.

And on an APM mustang:

$ cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 100.00
Features        : fp asimd evtstrm cpuid
CPU implementer : 0x50
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0x000
CPU revision    : 0

processor       : 1
BogoMIPS        : 100.00
Features        : fp asimd evtstrm cpuid
CPU implementer : 0x50
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0x000
CPU revision    : 0

processor       : 2
BogoMIPS        : 100.00
Features        : fp asimd evtstrm cpuid
CPU implementer : 0x50
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0x000
CPU revision    : 0

processor       : 3
BogoMIPS        : 100.00
Features        : fp asimd evtstrm cpuid
CPU implementer : 0x50
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0x000
CPU revision    : 0

processor       : 4
BogoMIPS        : 100.00
Features        : fp asimd evtstrm cpuid
CPU implementer : 0x50
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0x000
CPU revision    : 0

processor       : 5
BogoMIPS        : 100.00
Features        : fp asimd evtstrm cpuid
CPU implementer : 0x50
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0x000
CPU revision    : 0

processor       : 6
BogoMIPS        : 100.00
Features        : fp asimd evtstrm cpuid
CPU implementer : 0x50
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0x000
CPU revision    : 0

processor       : 7
BogoMIPS        : 100.00
Features        : fp asimd evtstrm cpuid
CPU implementer : 0x50
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0x000
CPU revision    : 0


Both exhibit the same error when building guix, just like the original
report, basically:

guix/cpu.scm:94:2: In procedure cpu->gcc-architecture:
In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
+ rm -r t-guix-manifest-18135
FAIL tests/guix-shell-export-manifest.sh (exit status: 1)



live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Sat, 07 May 2022 00:46:02 GMT) Full text and rfc822 format available.

Message #23 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Vagrant Cascadian <vagrant <at> debian.org>
To: Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>,
 Ludovic Courtès <ludo <at> gnu.org>
Cc: 55283 <at> debbugs.gnu.org
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Fri, 06 May 2022 17:45:15 -0700
[Message part 1 (text/plain, inline)]
On 2022-05-06, Vagrant Cascadian wrote:
> On 2022-05-06, Vagrant Cascadian wrote:
>> On 2022-05-06, Maxime Devos wrote:
>>> raingloom schreef op vr 06-05-2022 om 02:28 [+0200]:
>>>> > …)) In guix/cpu.scm:
>>>> >       94:2  0 (cpu->gcc-architecture #f)
>>>> 
>>>> This indicates the same to me.
>>>> But I don't know the internals of --tune well enough, so it's just a
>>>> hunch.
>>>
>>> Could anyone who encounters the issue on aarch64-linux send their
>>> /proc/cpuinfo, such that other people can test the body of 'current-
>>> cpu' on that copy?
>
> What is reading from /proc/cpuinfo? I've heard it suggested that
> /proc/cpuinfo was more informational and not something to be relied on
> for anything that actually matters... ?
>
> Well, I guess I answered my initial question by reading the error
> message... guix/cpu.scm ... how did that work before for things like
> cross-building, where /proc/cpuinfo is *definitely* wrong to get
> information about the architecture you're building for?

So, the simplest reproducer is just to call what was in the test,
essentially:

  $ guix shell --export-manifest gsl openblas gcc-toolchain --tune
  Backtrace:
            10 (primitive-load "/home/vagrant/.config/guix/current/bin…")
  In guix/ui.scm:
     2230:7  9 (run-guix . _)
    2193:10  8 (run-guix-command _ . _)
  In guix/scripts/shell.scm:
     160:17  7 (guix-shell . _)
  In ice-9/boot-9.scm:
    1747:15  6 (with-exception-handler #<procedure 3cb7d8d0 at ice-9/…> …)
  In srfi/srfi-37.scm:
     201:16  5 (next-arg)
     113:18  4 (invoke-option-processor _ _ _ _ _)
  In unknown file:
             3 (_ #<procedure 3cb7d780 at srfi/srfi-37.scm:114:22 ()> # …)
             2 (_ #<procedure 3cc05060 at ice-9/boot-9.scm:798:28 ()> # …)
  In guix/transformations.scm:
     864:25  1 (_ _ _ _ ((package ad-hoc-package "gcc-toolchain") (…) …))
  In guix/cpu.scm:
       94:2  0 (cpu->gcc-architecture #f)
  
  guix/cpu.scm:94:2: In procedure cpu->gcc-architecture:
  In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f

Calling "guix shell --export-manifest gsl openblas gcc-toolchain"
without the "--tune" argument works fine. So whatever codepath is not
handling cpu->gcc-architecture being #f should somehow... handle that
reasonably. Not sure what that is, as calling --tune you asked for somet
tuning and failing makes sense...

So apparently --tune is broken on aarch64 (and presumably any other
architecture that doesn't return anything). Seems cpu->gcc-architecture
should always at least return a safe baseline for all supported
architectures, maybe?


live well,
  vagrant
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Sun, 08 May 2022 22:15:01 GMT) Full text and rfc822 format available.

Message #26 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Vagrant Cascadian <vagrant <at> debian.org>
Cc: 55283 <at> debbugs.gnu.org, Maxime Devos <maximedevos <at> telenet.be>,
 raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Mon, 09 May 2022 00:14:50 +0200
Hi!

Vagrant Cascadian <vagrant <at> debian.org> skribis:

> Well, I guess I answered my initial question by reading the error
> message... guix/cpu.scm ... how did that work before for things like
> cross-building, where /proc/cpuinfo is *definitely* wrong to get
> information about the architecture you're building for?

(guix cpu) is used when passing ‘--tune’, which is used for native
builds:

  https://hpc.guix.info/blog/2022/01/tuning-packages-for-a-cpu-micro-architecture/

Ludo’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 08 May 2022 22:16:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Mon, 09 May 2022 08:46:02 GMT) Full text and rfc822 format available.

Message #31 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, 55283 <at> debbugs.gnu.org,
 Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Mon, 9 May 2022 11:44:28 +0300
[Message part 1 (text/plain, inline)]
On Mon, May 09, 2022 at 12:14:50AM +0200, Ludovic Courtès wrote:
> Hi!
> 
> Vagrant Cascadian <vagrant <at> debian.org> skribis:
> 
> > Well, I guess I answered my initial question by reading the error
> > message... guix/cpu.scm ... how did that work before for things like
> > cross-building, where /proc/cpuinfo is *definitely* wrong to get
> > information about the architecture you're building for?
> 
> (guix cpu) is used when passing ‘--tune’, which is used for native
> builds:
> 
>   https://hpc.guix.info/blog/2022/01/tuning-packages-for-a-cpu-micro-architecture/

I have a WIP patch for adding CPU detection for aarch64. Perhaps it'll
help with the issues?

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[0005-WIP-guix-cpu-Add-detection-for-aarch64-CPUs.patch (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Mon, 09 May 2022 08:58:01 GMT) Full text and rfc822 format available.

Message #34 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>,
 Vagrant Cascadian <vagrant <at> debian.org>, 55283 <at> debbugs.gnu.org,
 Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Mon, 9 May 2022 11:57:01 +0300
[Message part 1 (text/plain, inline)]
On Mon, May 09, 2022 at 11:44:28AM +0300, Efraim Flashner wrote:
> On Mon, May 09, 2022 at 12:14:50AM +0200, Ludovic Courtès wrote:
> > Hi!
> > 
> > Vagrant Cascadian <vagrant <at> debian.org> skribis:
> > 
> > > Well, I guess I answered my initial question by reading the error
> > > message... guix/cpu.scm ... how did that work before for things like
> > > cross-building, where /proc/cpuinfo is *definitely* wrong to get
> > > information about the architecture you're building for?
> > 
> > (guix cpu) is used when passing ‘--tune’, which is used for native
> > builds:
> > 
> >   https://hpc.guix.info/blog/2022/01/tuning-packages-for-a-cpu-micro-architecture/
> 
> I have a WIP patch for adding CPU detection for aarch64. Perhaps it'll
> help with the issues?

(ins)[efraim <at> pbp guix]$ ./pre-inst-env guix shell --export-manifest gsl openblas gcc-toolchain --tune
;;; note: source file /home/efraim/workspace/guix/guix/cpu.scm
;;;       newer than compiled /home/efraim/workspace/guix/guix/cpu.go

;;; ("aarch64" #f #f #f #<<set> vhash: #<vhash 1602dca0 9 pairs> insert: #<procedure %insert (t-5ce36f5c768e728-317 t-5ce36f5c768e728-319)> ref: #<procedure vhash-assoc (key vhash #:optional equal? hash)>>)
hint: Consider passing the `--check' option once to make sure your shell does not clobber environment variables.

guix shell: tuning gsl <at> 2.7 for CPU armv8-a
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.

(use-modules (guix transformations))

(define transform1
  (options->transformation '((tune . "armv8-a"))))

(packages->manifest
  (list (transform1 (specification->package "gsl"))
        (transform1 (specification->package "openblas"))
        (transform1
          (specification->package "gcc-toolchain"))))


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Mon, 09 May 2022 10:04:02 GMT) Full text and rfc822 format available.

Message #37 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Efraim Flashner <efraim <at> flashner.co.il>, Ludovic Courtès
 <ludo <at> gnu.org>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, 55283 <at> debbugs.gnu.org,
 raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283:
 ‘tests/guix-shell-export-manifest.sh’ fails
 on aarch64-linux
Date: Mon, 09 May 2022 12:03:46 +0200
[Message part 1 (text/plain, inline)]
Efraim Flashner schreef op ma 09-05-2022 om 11:44 [+0300]:
> +                (loop vendor family (string->number (string-append
> "#x" (string-drop model 2)))))

#x is for hexadecimal, right?  If so, this can be simplified by using
the second argument of string->number: (string->number (string-drop
model 2) 16).


Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Mon, 09 May 2022 12:27:02 GMT) Full text and rfc822 format available.

Message #40 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Sébastien Lerique <sl <at> eauchat.org>
To: 55283 <at> debbugs.gnu.org
Subject: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Mon, 09 May 2022 21:04:23 +0900
Hello all,

> I have a WIP patch for adding CPU detection for aarch64. Perhaps it'll
> help with the issues?
>

Just confirming this works on rock64.

---
sl <at> matrixbox ~/guix [env]$ ./pre-inst-env guix shell --export-manifest gsl openblas gcc-toolchain --tune

;;; ("aarch64" #f #f #f #<<set> vhash: #<vhash 8d0ff60 9 pairs> insert: #<procedure %insert (t-5ce36f5c768e728-317 t-5ce36f5c768e728-319)> ref: #<procedure vhash-assoc (key vhash #:optional equal? hash)>>)
guix shell: tuning gsl <at> 2.7 for CPU armv8-a
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.

(use-modules (guix transformations))

(define transform1
  (options->transformation '((tune . "armv8-a"))))

(packages->manifest
  (list (transform1 (specification->package "gsl"))
        (transform1 (specification->package "openblas"))
        (transform1
          (specification->package "gcc-toolchain"))))
---

In case this is still useful, on the same rock64 /proc/cpuinfo is:

sl <at> matrixbox ~$ cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
BogoMIPS        : 48.00
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4


Cheers!
Sébastien




Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Mon, 09 May 2022 12:38:02 GMT) Full text and rfc822 format available.

Message #43 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Sébastien Lerique <sl <at> eauchat.org>
To: 55283 <at> debbugs.gnu.org
Subject: Re: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Mon, 09 May 2022 21:32:47 +0900
> #x is for hexadecimal, right? If so, this can be simplified by using
> the second argument of string->number: (string->number (string-drop
> model 2) 16).
>

So does this:

--8<---------------cut here---------------start------------->8---
sl <at> matrixbox ~/guix [env]$ ./pre-inst-env guix shell --export-manifest gsl openblas gcc-toolchain --tune

;;; ("aarch64" #f #f #f #<<set> vhash: #<vhash 36d16e00 9 pairs> insert: #<procedure %insert (t-5ce36f5c768e728-317 t-5ce36f5c768e728-319)> ref: #<procedure vhash-assoc (key vhash #:optional equal? hash)>>)
guix shell: tuning gsl <at> 2.7 for CPU armv8-a
;; What follows is a "manifest" equivalent to the command line you gave.
;; You can store it in a file that you may then pass to any 'guix' command
;; that accepts a '--manifest' (or '-m') option.

(use-modules (guix transformations))

(define transform1
  (options->transformation '((tune . "armv8-a"))))

(packages->manifest
  (list (transform1 (specification->package "gsl"))
        (transform1 (specification->package "openblas"))
        (transform1
          (specification->package "gcc-toolchain"))))
--8<---------------cut here---------------end--------------->8---

(I'm happy to provide ssh access to this rock64 if that can help.)

Best,
Sébastien




Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Mon, 09 May 2022 14:19:01 GMT) Full text and rfc822 format available.

Message #46 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, 55283 <at> debbugs.gnu.org,
 Ludovic Courtès <ludo <at> gnu.org>,
 raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Mon, 9 May 2022 17:17:55 +0300
[Message part 1 (text/plain, inline)]
On Mon, May 09, 2022 at 12:03:46PM +0200, Maxime Devos wrote:
> Efraim Flashner schreef op ma 09-05-2022 om 11:44 [+0300]:
> > +                (loop vendor family (string->number (string-append
> > "#x" (string-drop model 2)))))
> 
> #x is for hexadecimal, right?  If so, this can be simplified by using
> the second argument of string->number: (string->number (string-drop
> model 2) 16).

I hadn't realized that. I took the chance to take another look at it and
now it actually works, not just fills in each field with #f. I also
added more chips based on gcc-12 and fixed the fallback case.


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[guix-cpu-aarch64.diff (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Tue, 10 May 2022 15:41:02 GMT) Full text and rfc822 format available.

Message #49 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, 55283 <at> debbugs.gnu.org,
 Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Tue, 10 May 2022 17:40:28 +0200
Hello!

Nice to have AArch64 support in (guix cpu)!

Efraim Flashner <efraim <at> flashner.co.il> skribis:

> diff --git a/guix/cpu.scm b/guix/cpu.scm
> index a44cd082f1..37ed6f0a18 100644
> --- a/guix/cpu.scm
> +++ b/guix/cpu.scm
> @@ -62,31 +62,51 @@ (define (prefix? prefix)
>        (lambda (port)
>          (let loop ((vendor #f)
>                     (family #f)
> -                   (model #f))
> +                   (model #f)
> +                   (flags (list->set '())))

You can replace (list->set '()) by (set).

> +    ("aarch64"
> +     ;; Transcribed from GCC's list of aarch64 processors in aarch64-cores.def
> +     ;; What to do with big.LITTLE cores?
> +     (match (cpu-vendor cpu)
> +       ("0x41"

Is /proc/cpuinfo more or less guaranteed to return hex numbers like
this?

>      (architecture
> -     ;; TODO: AArch64.
> -     architecture)))
> +      ;; TODO: More architectures
> +      (utsname:machine (uname)))))

We can return ‘architecture’ as is, no need to re-call ‘uname’.

I haven’t run the code but at first sight it LGTM!

(The bug reported at the beginning of this thread looks rather basic
though; I’ll follow up on that.)

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Tue, 10 May 2022 15:44:02 GMT) Full text and rfc822 format available.

Message #52 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, 55283 <at> debbugs.gnu.org,
 Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Tue, 10 May 2022 17:43:43 +0200
Ludovic Courtès <ludo <at> gnu.org> skribis:

> (The bug reported at the beginning of this thread looks rather basic
> though; I’ll follow up on that.)

Actually no.  :-)

I guess the first hunk of your patch, which modifies ‘current-cpu’ so
that it does not return #f on AArch64, is the actual fix (it can be a
patch of its own).

The second hunk, which modifies ‘cpu->gcc-architecture’, is an
enhancement.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Tue, 10 May 2022 15:52:01 GMT) Full text and rfc822 format available.

Message #55 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, 55283 <at> debbugs.gnu.org,
 Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Tue, 10 May 2022 18:50:54 +0300
[Message part 1 (text/plain, inline)]
On Tue, May 10, 2022 at 05:40:28PM +0200, Ludovic Courtès wrote:
> Hello!
> 
> Nice to have AArch64 support in (guix cpu)!
> 
> Efraim Flashner <efraim <at> flashner.co.il> skribis:
> 
> > diff --git a/guix/cpu.scm b/guix/cpu.scm
> > index a44cd082f1..37ed6f0a18 100644
> > --- a/guix/cpu.scm
> > +++ b/guix/cpu.scm
> > @@ -62,31 +62,51 @@ (define (prefix? prefix)
> >        (lambda (port)
> >          (let loop ((vendor #f)
> >                     (family #f)
> > -                   (model #f))
> > +                   (model #f)
> > +                   (flags (list->set '())))
> 
> You can replace (list->set '()) by (set).
> 
> > +    ("aarch64"
> > +     ;; Transcribed from GCC's list of aarch64 processors in aarch64-cores.def
> > +     ;; What to do with big.LITTLE cores?
> > +     (match (cpu-vendor cpu)
> > +       ("0x41"
> 
> Is /proc/cpuinfo more or less guaranteed to return hex numbers like
> this?

I'm almost certain it is on aarch64. I don't have an armhf machine to
check with.

> >      (architecture
> > -     ;; TODO: AArch64.
> > -     architecture)))
> > +      ;; TODO: More architectures
> > +      (utsname:machine (uname)))))
> 
> We can return ‘architecture’ as is, no need to re-call ‘uname’.

That's what we had before and we got the error.

> I haven’t run the code but at first sight it LGTM!
> 
> (The bug reported at the beginning of this thread looks rather basic
> though; I’ll follow up on that.)
> 
> Thanks,
> Ludo’.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Tue, 10 May 2022 15:56:02 GMT) Full text and rfc822 format available.

Message #58 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, 55283 <at> debbugs.gnu.org,
 Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Tue, 10 May 2022 18:55:01 +0300
[Message part 1 (text/plain, inline)]
On Tue, May 10, 2022 at 05:43:43PM +0200, Ludovic Courtès wrote:
> Ludovic Courtès <ludo <at> gnu.org> skribis:
> 
> > (The bug reported at the beginning of this thread looks rather basic
> > though; I’ll follow up on that.)
> 
> Actually no.  :-)
> 
> I guess the first hunk of your patch, which modifies ‘current-cpu’ so
> that it does not return #f on AArch64, is the actual fix (it can be a
> patch of its own).
> 
> The second hunk, which modifies ‘cpu->gcc-architecture’, is an
> enhancement.
> 
> Ludo’.

On aarch64 Features (flags on x86_64) isn't last, so I changed the loop
to keep running until the end of the file. I suppose I could've changed
it to run until it hit a blank line and left the eof-object? for #f.

the change from (architecture architecture) at the end I tossed in at
the last minute. It was more to keep it from erroring on untuned
architectures.

(ins)efraim <at> 3900XT ~$ ssh pbp cat /proc/cpuinfo
processor	: 0
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 1
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 2
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 3
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 4

processor	: 4
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 2

processor	: 5
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
CPU implementer: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd08
CPU revision	: 2

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Thu, 12 May 2022 08:10:02 GMT) Full text and rfc822 format available.

Message #61 received at 55283 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: Vagrant Cascadian <vagrant <at> debian.org>, 55283 <at> debbugs.gnu.org,
 Maxime Devos <maximedevos <at> telenet.be>, raingloom <raingloom <at> riseup.net>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Thu, 12 May 2022 10:09:47 +0200
Efraim Flashner <efraim <at> flashner.co.il> skribis:

> On Tue, May 10, 2022 at 05:40:28PM +0200, Ludovic Courtès wrote:

[...]

>> >      (architecture
>> > -     ;; TODO: AArch64.
>> > -     architecture)))
>> > +      ;; TODO: More architectures
>> > +      (utsname:machine (uname)))))
>> 
>> We can return ‘architecture’ as is, no need to re-call ‘uname’.
>
> That's what we had before and we got the error.

The error reported at the beginning of this thread was different: it
came from the fact that (current-cpu) would return #f on aarch64,
whereas ‘current-cpu’ is meant to always return a <cpu> record.

Thanks,
Ludo’.




Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Tue, 17 May 2022 12:32:02 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludo <at> gnu.org>:
bug acknowledged by developer. (Tue, 17 May 2022 12:32:02 GMT) Full text and rfc822 format available.

Message #66 received at 55283-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 55283-done <at> debbugs.gnu.org
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Tue, 17 May 2022 15:29:48 +0300
[Message part 1 (text/plain, inline)]
This is now fixed with 41ed6db81e7b52673e5f973a1edc88b69a274614, with
fd00ac7e27c8a6d4b4d4719b4f8797bdce204623 adding actual detection for
aarch64 CPUs.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Tue, 17 May 2022 16:28:02 GMT) Full text and rfc822 format available.

Message #69 received at 55283-done <at> debbugs.gnu.org (full text, mbox):

From: Pavel Shlyak <p.shlyak <at> pantherx.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 55283-done <at> debbugs.gnu.org, Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Tue, 17 May 2022 18:01:21 +0300
[pavel <at> alarm factory]$ cat /proc/cpuinfo
processor	: 0
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp flagm2 frint
CPU implementer	: 0x00
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0x000
CPU revision	: 0

processor	: 1
BogoMIPS	: 48.00
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp flagm2 frint
CPU implementer	: 0x00
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0x000
CPU revision	: 0

The issue is still there.

> 17 мая 2022 г., в 15:29, Efraim Flashner <efraim <at> flashner.co.il> написал(а):
> 
> This is now fixed with 41ed6db81e7b52673e5f973a1edc88b69a274614, with
> fd00ac7e27c8a6d4b4d4719b4f8797bdce204623 adding actual detection for
> aarch64 CPUs.
> 
> -- 
> Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted





Information forwarded to bug-guix <at> gnu.org:
bug#55283; Package guix. (Tue, 17 May 2022 17:14:01 GMT) Full text and rfc822 format available.

Message #72 received at 55283-done <at> debbugs.gnu.org (full text, mbox):

From: Pavel Shlyak <p.shlyak <at> pantherx.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 55283-done <at> debbugs.gnu.org, Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: bug#55283: ‘tests/guix-shell-export-manifest.sh’ fails on aarch64-linux
Date: Tue, 17 May 2022 19:38:08 +0300
Issue’s not there!
My fault I didn’t wait til guix package is updated.

PASS: tests/guix-shell-export-manifest.sh

Thank you!

> 17 мая 2022 г., в 18:01, Pavel Shlyak <p.shlyak <at> pantherx.org> написал(а):
> 
> [pavel <at> alarm factory]$ cat /proc/cpuinfo
> processor	: 0
> BogoMIPS	: 48.00
> Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp flagm2 frint
> CPU implementer	: 0x00
> CPU architecture: 8
> CPU variant	: 0x0
> CPU part	: 0x000
> CPU revision	: 0
> 
> processor	: 1
> BogoMIPS	: 48.00
> Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp flagm2 frint
> CPU implementer	: 0x00
> CPU architecture: 8
> CPU variant	: 0x0
> CPU part	: 0x000
> CPU revision	: 0
> 
> The issue is still there.
> 
>> 17 мая 2022 г., в 15:29, Efraim Flashner <efraim <at> flashner.co.il> написал(а):
>> 
>> This is now fixed with 41ed6db81e7b52673e5f973a1edc88b69a274614, with
>> fd00ac7e27c8a6d4b4d4719b4f8797bdce204623 adding actual detection for
>> aarch64 CPUs.
>> 
>> -- 
>> Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
>> GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
>> Confidentiality cannot be guaranteed on emails sent or received unencrypted
> 
> 
> 
> 





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 Jun 2022 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 316 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.