unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guix package -i kicad will fait with  #error "Unsupported CPU architecture" on my Talos II
@ 2024-11-30 20:18 Tobias Alexandra Platen
  2024-11-30 20:59 ` Ian Eure
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Alexandra Platen @ 2024-11-30 20:18 UTC (permalink / raw)
  To: guix-devel

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/

I guess that libcxi is optional for Kicad, so I could hack guix to
build Kicad without libcxi.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix package -i kicad will fait with  #error "Unsupported CPU architecture" on my Talos II
  2024-11-30 20:18 guix package -i kicad will fait with #error "Unsupported CPU architecture" on my Talos II Tobias Alexandra Platen
@ 2024-11-30 20:59 ` Ian Eure
  2024-12-01 11:54   ` Tobias Alexandra Platen
  2024-12-01 13:50   ` Efraim Flashner
  0 siblings, 2 replies; 5+ messages in thread
From: Ian Eure @ 2024-11-30 20:59 UTC (permalink / raw)
  To: guix-devel

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix package -i kicad will fait with  #error "Unsupported CPU architecture" on my Talos II
  2024-11-30 20:59 ` Ian Eure
@ 2024-12-01 11:54   ` Tobias Alexandra Platen
  2024-12-01 13:50   ` Efraim Flashner
  1 sibling, 0 replies; 5+ messages in thread
From: Tobias Alexandra Platen @ 2024-12-01 11:54 UTC (permalink / raw)
  To: Ian Eure, guix-devel

On Sat, 2024-11-30 at 20:59 +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.
Since I do not have that interconnect I would make it optional.
The fastest interconnect that I have is USB 3.0 between my Talos II
(host) and ROCKPro64 (device/otg). I plan to make my own guix channel
anyway with personal changes and for software development. For example
I plan to add guile scripting to eeschema, after I found out that the
python scripts are broken and upgrade to KiCad 8 or any later version.
> > 
> 
> 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
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix package -i kicad will fait with  #error "Unsupported CPU architecture" on my Talos II
  2024-11-30 20:59 ` Ian Eure
  2024-12-01 11:54   ` Tobias Alexandra Platen
@ 2024-12-01 13:50   ` Efraim Flashner
  2024-12-01 17:51     ` Tobias Alexandra Platen
  1 sibling, 1 reply; 5+ messages in thread
From: Efraim Flashner @ 2024-12-01 13:50 UTC (permalink / raw)
  To: Ian Eure; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 3232 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: guix package -i kicad will fait with  #error "Unsupported CPU architecture" on my Talos II
  2024-12-01 13:50   ` Efraim Flashner
@ 2024-12-01 17:51     ` Tobias Alexandra Platen
  0 siblings, 0 replies; 5+ messages in thread
From: Tobias Alexandra Platen @ 2024-12-01 17:51 UTC (permalink / raw)
  To: guix-devel

Confimed, it is working.


On Sun, 2024-12-01 at 15:50 +0200, Efraim Flashner wrote:
> 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.
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-01 17:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-30 20:18 guix package -i kicad will fait with #error "Unsupported CPU architecture" on my Talos II Tobias Alexandra Platen
2024-11-30 20:59 ` Ian Eure
2024-12-01 11:54   ` Tobias Alexandra Platen
2024-12-01 13:50   ` Efraim Flashner
2024-12-01 17:51     ` Tobias Alexandra Platen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).