From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sHpBFhxE31+2RAAA0tVLHw (envelope-from ) for ; Sun, 20 Dec 2020 12:31:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yObzERxE31/tNwAAbx9fmQ (envelope-from ) for ; Sun, 20 Dec 2020 12:31:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9C5B7940148 for ; Sun, 20 Dec 2020 12:31:23 +0000 (UTC) Received: from localhost ([::1]:37956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqxru-0002vm-KE for larch@yhetil.org; Sun, 20 Dec 2020 07:31:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqxr8-0002sk-3g; Sun, 20 Dec 2020 07:30:34 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45726) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqxr7-0003fI-Nc; Sun, 20 Dec 2020 07:30:33 -0500 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=50648 helo=dundal.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kqxr4-0005h0-Jf; Sun, 20 Dec 2020 07:30:32 -0500 From: Jan Nieuwenhuizen To: guix-devel@gnu.org Subject: wip-arm-bootstrap: Reduced binary seed bootstrap Organization: AvatarAcademy.nl to: Danny Milosavljevic X-Url: http://AvatarAcademy.nl Date: Sun, 20 Dec 2020 13:30:28 +0100 Message-ID: <87ft40vevv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-mes@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 9C5B7940148 X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: KzLehblzC1R+ Hi! I pushed an initial wip-arm-bootstrap that builds up to tcc-boot: --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix build -e '(@@ (gnu packages commencement) tcc-boot)' --8<---------------cut here---------------end--------------->8--- Danny did a terrific job on armhf-linux support for GNU Mes and we are getting close to release v0.23. What's known to be missing is "setjmp" support for tcc/gcc. And, of course, for the Reduced binary seed bootstrap to work on ARM! In the previous status report https://lists.gnu.org/archive/html/bug-mes/2020-12/msg00002.html I was stuck trying to get floats to work in tinycc but last weekend I finally managed to bootstrap tcc, with long longs and floats enabled. (this all took quite some effort). Moving this into Guix should have been almost trivial...but some silly "things" happened such as me working off a dirty mes build tree; took me several days to find. Anyway, the problem I'm looking at now is that while tcc-boot builds on an ARM box, it does not build on aarch64-linux, i.e. this --8<---------------cut here---------------start------------->8--- ./pre-inst-env guix build --system=3Darmhf-linux \ -e '(@@ (gnu packages commencement) tcc-boot0)' --8<---------------cut here---------------end--------------->8--- fails on overdrive1. What's next? * Fix the aarch64-linux problem, * the current wip-arm-bootstrap is based on master: it needs to be rebased on core-updates, * the rest of the bootstrap needs attention, * which probably means supporting "setjmp" in the Mes C Library on ARM * remove binary seeds for binutils, gcc, glibc, coreutils&co, * verify the x86 bootstrap still works, * and the current version of tcc-boot0 applies two inexplicable hacks 477134b1 HACK bootstrappable: ARM: "tccgen_ok". 33b60f03 HACK bootstrappable: ARM: "tccpp_ok". that would be great to understand and get rid of, * and IWBN to fix Gash's stacktraces on failing exec configure: error: 'mescc' failed to compile conftest.c. Backtrace: In unknown file: ?: 19 [apply-smob/1 #] [..] In gash/shell.scm: 165: 1 [sh:exec-let () "./conftest" "triplet"] In unknown file: ?: 0 [execle "./conftest" # "./conftest" ...] ERROR: In procedure execle: ERROR: In procedure execle: No such file or directory Greetings, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com