guix-devel
[Top][All Lists]
Advanced

[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: Efraim Flashner
Subject: Re: guix package -i kicad will fait with #error "Unsupported CPU architecture" on my Talos II
Date: Sun, 1 Dec 2024 15:50:57 +0200

On Sat, Nov 30, 2024 at 08:59:02PM +0000, Ian Eure wrote:
> 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.

I pushed a patch limiting cassini-headers (one of libcxi's dependencies)
to the architectures it supports, and then I adjusted libfabric to check
the transitive-supported-packages.  Kicad should now build again on
ppc64le.

-- 
Efraim Flashner   <efraim@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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]