[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guix package -i kicad will fait with #error "Unsupported CPU archit
From: |
Ian Eure |
Subject: |
Re: guix package -i kicad will fait with #error "Unsupported CPU architecture" on my Talos II |
Date: |
Sat, 30 Nov 2024 20:59:02 +0000 |
Hi Tobias,
On Sat, Nov 30, 2024, at 8:18 PM, Tobias Alexandra Platen wrote:
> When I try to install Kicad, I'll get the following output:
>
> The following derivations will be built:
> /gnu/store/5rinv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1-
> 0.5b6f8b5.drv
> /gnu/store/x26zsx3fw74vhfc35i79fansmlmhl0cc-libfabric-1.22.0.drv
> /gnu/store/nfj2qvhyxvfc7x5fkdlyg2z1wnpqw9cz-openmpi-4.1.6.drv
> /gnu/store/l1rbmwj9m4kgkm1qada665mm0m6g10w1-libngspice-43.drv
> /gnu/store/y88c48hzcm78ch39wjfa3dpdgw9n6m7r-webkitgtk-with-libsoup2-
> 2.44.1.drv
> /gnu/store/qv0zpz8h2dvhbmxz6smsbmc763rdkdxm-wxwidgets-3.2.5.drv
> /gnu/store/llydl3baxardzgf9xmdbgjikny68vaar-python-wxpython-4.2.0.drv
> /gnu/store/b0s2jgimknw6035kcqvpb6sdxkhakz7b-kicad-7.0.11.drv
>
> After a few minutes the build fails with:
>
> building /gnu/store/5rinv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1-
> 0.5b6f8b5.drv...
> \ 'build' phasebuilder for
> `/gnu/store/5rinv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1-
> 0.5b6f8b5.drv' failed with exit code 1
> build of /gnu/store/5rinv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1-
> 0.5b6f8b5.drv failed
> View build log at
> '/var/log/guix/drvs/5r/inv8djwjz0bdami6nr6cm3zj382fsb-libcxi-1.0.1-
> 0.5b6f8b5.drv.gz'.
> ........
> CC utils/read_lat.o
> ........
> #error "Unsupported CPU architecture"
>
> I also found a blogpost which mentions libcxi, what does libcxi do?
> https://hpc.guix.info/blog/2024/11/targeting-the-crayhpe-slingshot-interconnect/
>
The package description provides a pretty good summary:
Interface to the Cassini/Slingshot high-speed interconnect
Libcxi provides applications with a low-level interface to the
Cray/HPE Cassini high-speed NIC (network interface controller), also
known as Slingshot.
> I guess that libcxi is optional for Kicad, so I could hack guix to
> build Kicad without libcxi.
>
I think this is worth a bug report, and maybe you're also up to sending some
patches? I think it's slightly more complicated than just the kicad package,
though, since libcxi isn't a direct dependency:
$ guix graph --path kicad libcxi
kicad@7.0.11
libngspice@43
openmpi@4.1.6
libfabric@1.22.0
libcxi@1.0.1-0.5b6f8b5
So, I think what needs to happen is that libcxi needs to have POWER9 removed
from its supported-systems field; and libfabric needs to conditionally include
libcxi in its inputs based on architecture. I think the best way to do that is
by checking for the build system in (package-supported-systems libcxi), which
will avoid hardcoding duplicate arch tests in two packages.
-- Ian