i’m trying to do a guix build (of the master branch) on RISC-V hardware. The device is a Scaleway EM-RV1-C4M16S128-A server from Scaleway. It has a four core T-HEAD C910 CPU:
0Architecture: riscv64
1 Byte Order: Little Endian
2CPU(s): 4
3 On-line CPU(s) list: 0-3
0processor : 0
1hart : 0
2isa : rv64imafdcsu
3mmu : sv39
4cpu-freq : 1.848Ghz
5cpu-icache : 64KB
6cpu-dcache : 64KB
7cpu-l2cache : 1MB
8cpu-tlb : 1024 4-ways
9cpu-cacheline : 64Bytes
10⋮ (4 times)
However, it fails in the tests of python-py-cpuinfo (a dependency of LIEF).
0building /gnu/store/gs9j7j3c0z9wph9y2ag7j60xfq0jhhnr-python-py-cpuinfo-8.0.0-1.4d6987e.drv...
1/ 'check' phasenote: keeping build directory `/tmp/guix-build-python-py-cpuinfo-8.0.0-1.4d6987e.drv-3'
2builder for `/gnu/store/gs9j7j3c0z9wph9y2ag7j60xfq0jhhnr-python-py-cpuinfo-8.0.0-1.4d6987e.drv' failed with exit code 1
3build of /gnu/store/gs9j7j3c0z9wph9y2ag7j60xfq0jhhnr-python-py-cpuinfo-8.0.0-1.4d6987e.drv failed
4View build log at '/var/log/guix/drvs/gs/9j7j3c0z9wph9y2ag7j60xfq0jhhnr-python-py-cpuinfo-8.0.0-1.4d6987e.drv.gz'.
5cannot build derivation `/gnu/store/wmcihcrlgln588v5xbk89zh05rvr2hdi-python-fastjsonschema-2.15.1.drv': 1 dependencies couldn't be built
6building /gnu/store/gqr2b58a66m4gwblgprqbmp3yfnfq41c-python-pycparser-2.21.drv...
7cannot build derivation `/gnu/store/vllqd95n44lpzfpj08v5wgp61gg23dr2-python-pydantic-2.5.3.drv': 1 dependencies couldn't be built
8note: keeping build directory `/tmp/guix-build-python-pycparser-2.21.drv-3'
9cannot build derivation `/gnu/store/a0a1wwiwdgk9mxlspkl6p5mddfsdhrkh-python-lief-0.16.6.drv': 1 dependencies couldn't be built
Detailed failure:
0======================================================================
1FAIL: test_all (test_actual.TestActual)
2----------------------------------------------------------------------
3Traceback (most recent call last):
4 File "/tmp/guix-build-python-py-cpuinfo-8.0.0-1.4d6987e.drv-0/source/tests/test_actual.py", line 74, in test_all
5 self.assertTrue(len(cpuinfo._get_cpu_info_from_proc_cpuinfo()) > 0)
6AssertionError: False is not true
7
8----------------------------------------------------------------------
9Ran 152 tests in 17.371s
10
11FAILED (failures=1, skipped=1)
12Test failed: <unittest.runner.TextTestResult run=152 errors=0 failures=1>
13error: Test failed: <unittest.runner.TextTestResult run=152 errors=0 failures=1>
14error: in phase 'check': uncaught exception:
15%exception #<&invoke-error program: "python" arguments: ("-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test") exit-status: 1 term-signal: #f stop-signal: #f>
16phase `check' failed after 19.5 seconds
17command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed with status 1
18build process 6 exited with status 256