unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel@gnu.org
Subject: Re: Desktops on non-x86_64 systems
Date: Tue, 30 Nov 2021 10:36:28 -0500	[thread overview]
Message-ID: <87wnkphczn.fsf@gmail.com> (raw)
In-Reply-To: <87k0gsnnvy.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 28 Nov 2021 19:15:47 +0100")

Hello,

Ricardo Wurmus <rekado@elephly.net> writes:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> We could try that, but IMO we first need a solution within days—we
>> just
>> cannot reasonably let this branch go on for longer than that. The
>> librsvg 2.40 hack would give us Xfce (maybe GNOME?) on i686 today.
>>
>> Perhaps we can address all this in several steps:
>>
>>   1. apply the librsvg 2.40 hack now so we can merge
>>      ‘core-updates-frozen’ this week for real;
>>
>>   2. later on, introduce some Rust binary for non-x86_64; that
>> would
>>      lead to rebuilds only on those architectures;
>>
>>   3. eventually, update mrustc (and have it call gcc with -O0 to
>> reduce
>>      its memory footprint), or use GCC-Rust instead of that’s
>> viable.
>>
>> WDYT?
>
> This sounds sensible.  Merging core-updates-frozen does *not* mean
> that it needs to be ready for release.  It’s been delayed for too 
> long and further delays just serve to taint our morale and drain our
> energy, applying fixes again and again with no end in sight.
>
> These ongoing delays have made core-updates-frozen grow so much in
> scope that we cannot afford to delay a merge any longer.  Let’s 
> merge asap, even if that means using an older librsvg right now. Then
> add rust for non-x86_64 — either by cross-building it ourselves or
> getting an existing binary to restore feature parity. Then work on a
> long-term solution.

I hear your frustration w.r.t to delays; I don't mind if this stopgap
solution is implemented *now*, but I'm skeptical that it'd allow GNOME
to built.

I've been experimenting with a cross-compiled rustc; it's building, but
there are some things to fix (the ld-wrapper used to wrap rustc so far
is the native one, which is incorrect I believe, and cargo doesn't find
the correct libz, libssh2).

The branch is wip-cross-built-rust on our Savannah repo.

I 'guix pack'd rust-i686-linux and tried it on a 32-bit Debian VM:

For rustc:

--8<---------------cut here---------------start------------->8---
$ file /gnu/store/6fkn8fc0m642xlnbblv3026cpp4i2411-profile/bin/rustc
/gnu/store/6fkn8fc0m642xlnbblv3026cpp4i2411-profile/bin/rustc: symbolic link to /gnu/store/50fsf4g5xb51qa9jg7xhaaxcwh7h5v2w-rust-i686-linux-1.54.0/bin/rustc

 $ file /gnu/store/50fsf4g5xb51qa9jg7xhaaxcwh7h5v2w-rust-i686-linux-1.54.0/bin/.rustc-real
/gnu/store/50fsf4g5xb51qa9jg7xhaaxcwh7h5v2w-rust-i686-linux-1.54.0/bin/.rustc-real:
ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically
linked, interpreter
/gnu/store/miwzifnpn3lgzd6kvkcmz1i0hx7vvdfm-glibc-cross-i686-linux-gnu-2.33/lib/ld-linux.so.2,
for GNU/Linux 2.6.32, stripped

$ /gnu/store/6fkn8fc0m642xlnbblv3026cpp4i2411-profile/bin/rustc --version
rustc 1.54.0
--8<---------------cut here---------------end--------------->8---

For cargo:

--8<---------------cut here---------------start------------->8---
$ file /gnu/store/6fkn8fc0m642xlnbblv3026cpp4i2411-profile/bin/cargo
/gnu/store/6fkn8fc0m642xlnbblv3026cpp4i2411-profile/bin/cargo: symbolic link to /gnu/store/vhfdxbxla54n56qggv975c39vyaa0z91-rust-i686-linux-1.54.0-cargo/bin/cargo

$ file /gnu/store/vhfdxbxla54n56qggv975c39vyaa0z91-rust-i686-linux-1.54.0-cargo/bin/cargo
/gnu/store/vhfdxbxla54n56qggv975c39vyaa0z91-rust-i686-linux-1.54.0-cargo/bin/cargo: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /gnu/store/miwzifnpn3lgzd6kvkcmz1i0hx7vvdfm-glibc-cross-i686-linux-gnu-2.33/lib/ld-linux.so.2, for GNU/Linux 2.6.32, stripped

$ /gnu/store/vhfdxbxla54n56qggv975c39vyaa0z91-rust-i686-linux-1.54.0-cargo/bin/cargo --version
/gnu/store/vhfdxbxla54n56qggv975c39vyaa0z91-rust-i686-linux-1.54.0-cargo/bin/cargo:
error while loading shared libraries: libz.so: wrong ELF class:
ELFCLASS64

$ ldd /gnu/store/vhfdxbxla54n56qggv975c39vyaa0z91-rust-i686-linux-1.54.0-cargo/bin/cargo 
	linux-gate.so.1 (0xb7f22000)
	libz.so => not found
	libcurl.so.4 => not found
	libssl.so.1.1 => /lib/i386-linux-gnu/libssl.so.1.1 (0xb71ae000)
	libcrypto.so.1.1 => /lib/i386-linux-gnu/libcrypto.so.1.1 (0xb6eeb000)
	libgcc_s.so.1 => /gnu/store/x5y2ngh1asiv3dkcbzaga9ml56xcm3ps-gcc-cross-i686-linux-gnu-10.3.0-lib/lib/gcc/i686-linux-gnu/10.3.0/../../../../i686-linux-gnu/lib/libgcc_s.so.1 (0xb6ecb000)
	libpthread.so.0 => /gnu/store/miwzifnpn3lgzd6kvkcmz1i0hx7vvdfm-glibc-cross-i686-linux-gnu-2.33/lib/libpthread.so.0 (0xb6eaa000)
	libm.so.6 => /gnu/store/miwzifnpn3lgzd6kvkcmz1i0hx7vvdfm-glibc-cross-i686-linux-gnu-2.33/lib/libm.so.6 (0xb6da8000)
	libdl.so.2 => /gnu/store/miwzifnpn3lgzd6kvkcmz1i0hx7vvdfm-glibc-cross-i686-linux-gnu-2.33/lib/libdl.so.2 (0xb6da0000)
	libc.so.6 => /gnu/store/miwzifnpn3lgzd6kvkcmz1i0hx7vvdfm-glibc-cross-i686-linux-gnu-2.33/lib/libc.so.6 (0xb6bb0000)
	/gnu/store/miwzifnpn3lgzd6kvkcmz1i0hx7vvdfm-glibc-cross-i686-linux-gnu-2.33/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7f24000)
--8<---------------cut here---------------end--------------->8---

To be continued...

Maxim


  reply	other threads:[~2021-11-30 15:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-27 22:36 Desktops on non-x86_64 systems Ludovic Courtès
2021-11-27 22:43 ` Ricardo Wurmus
2021-11-28  3:05   ` Maxim Cournoyer
2021-11-28  3:28     ` Maxim Cournoyer
2021-11-28  3:43       ` John Soo
2021-11-28  7:29         ` Tobias Platen
2021-11-28  8:57           ` Ricardo Wurmus
2021-11-28 17:49       ` Ludovic Courtès
2021-11-28 18:15         ` Ricardo Wurmus
2021-11-30 15:36           ` Maxim Cournoyer [this message]
2021-12-06 12:38             ` Ludovic Courtès
2021-12-01  4:56         ` Maxim Cournoyer
2021-12-01 17:49           ` Ludovic Courtès
2021-12-01 19:37             ` Maxim Cournoyer
2021-12-02  3:26             ` Maxim Cournoyer
2021-12-06  2:18             ` Maxim Cournoyer
2021-12-06 12:30               ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnkphczn.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).