all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: branch core-updates updated: gnu: coreutils-boot0: Fix building on arm architectures.
Date: Sun, 12 Feb 2023 21:10:40 +0200	[thread overview]
Message-ID: <Y+k5sPwwPZ1kRn7V@3900XT> (raw)
In-Reply-To: <87a63oogvb.fsf@gnu.org>

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

On Thu, Dec 15, 2022 at 03:56:24PM +0100, Ludovic Courtès wrote:
> Hi,

Sorry for taking a while to get back to answer this.

> Efraim Flashner <efraim@flashner.co.il> skribis:
> 
> > On December 12, 2022 1:47:29 PM UTC, "Ludovic Courtès" <ludo@gnu.org> wrote:
> 
> [...]
> 
> >>> +       ,@(if (target-arm?)
> >>> +           ;; Some binaries fail to build.
> >>> +           `(#:configure-flags '(,(string-append
> >>> +                                    "--enable-no-install-program="
> >>> +                                    ;; the defaults
> >>> +                                    "arch,coreutils,hostname"
> >>> +                                    ;; fails on aarch64
> >>> +                                    ",timeout,sort")))
> >>
> >>Isn’t there a risk that things will break down the road if ‘sort’,
> >>‘hostname’, etc. are missing?  How hard would it be to address the build
> >>failure instead?
> >>
> >>Thanks,
> >>Ludo’.
> >
> > I built all the way out to hello without any problems. Also %final-inputs has coreutils-final, so it really shouldn't be noticable.
> 
> That’s odd though.  Isn’t there some upstream patch we could take?
> Surely ‘sort’ has no reason to contain arch-specific code?
> 
> If there’s no such patch, we can go with the patch above, but then there
> should be a comment linking to bug reports and reassuring the reader
> that yes, some packages do build even without these commands.  :-)

In file included from src/timeout.c:53:0:
/gnu/store/4fy2658sxphy1kgclxrrmcka6lwiwap0-glibc-bootstrap-0/include/sys/prctl.h:22:66: fatal error: linux/prctl.h: No such file or directory
 #include <linux/prctl.h>  /*  The magic values come from here  */

I'm not sure if it's because armhf and aarch64 are using
%bootstrap-glibc vs glibc-2.16, but I didn't see this problem with
glibc-mesboot or with the %bootstrap-glibc from architectures using
2.31.

Other workarounds I thought of were adding in a glibc-boot0 here to
replace libc for everybody or using an older version (the last one in
the 8 series), but this seemed like the least invasive option for now.

I've also added a comment so it'll be clearer what's happening there.

> (There’s no “coreutils” command BTW, unless enabling the
> everything-in-one-binary trick, no?)

It turns out coreutils does allow for that.

> Thanks,
> Ludo’.

-- 
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 --]

      reply	other threads:[~2023-02-12 19:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <167079131409.22455.5790377740841482505@vcs2.savannah.gnu.org>
2022-12-12 13:47 ` branch core-updates updated: gnu: coreutils-boot0: Fix building on arm architectures Ludovic Courtès
2022-12-12 14:03   ` Efraim Flashner
2022-12-15 14:56     ` Ludovic Courtès
2023-02-12 19:10       ` Efraim Flashner [this message]

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

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

  git send-email \
    --in-reply-to=Y+k5sPwwPZ1kRn7V@3900XT \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.