From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wLFJMDZYL2BuNwAA0tVLHw (envelope-from ) for ; Fri, 19 Feb 2021 06:18:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id YARCLDZYL2CvbAAA1q6Kng (envelope-from ) for ; Fri, 19 Feb 2021 06:18:30 +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 28BFC21C9C for ; Fri, 19 Feb 2021 07:18:30 +0100 (CET) Received: from localhost ([::1]:57760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCz7V-0004Fw-1M for larch@yhetil.org; Fri, 19 Feb 2021 01:18:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCz76-0004D3-0J; Fri, 19 Feb 2021 01:18:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57259) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCz72-0001RO-Rm; Fri, 19 Feb 2021 01:18:02 -0500 Received: from [2001:980:1b4f:1:42d2:832d:bb59:862] (port=52242 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 1lCz70-0003ol-Cz; Fri, 19 Feb 2021 01:18:00 -0500 From: Jan Nieuwenhuizen To: Danny Milosavljevic Subject: Re: Update on wip-arm-bootstrap Organization: AvatarAcademy.nl References: <87blco9v58.fsf@gnu.org> <87h7m91d3j.fsf@yucca> <874ki9cabq.fsf@gnu.org> <20210219052341.5f10e637@scratchpost.org> X-Url: http://AvatarAcademy.nl Date: Fri, 19 Feb 2021 07:17:55 +0100 In-Reply-To: <20210219052341.5f10e637@scratchpost.org> (Danny Milosavljevic's message of "Fri, 19 Feb 2021 05:23:41 +0100") Message-ID: <871rdceg30.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: Vagrant Cascadian , guix-devel@gnu.org, 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: -2.87 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: 28BFC21C9C X-Spam-Score: -2.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2AJ97Ryeyps2 Danny Milosavljevic writes: Hey Danny, > On Thu, 18 Feb 2021 22:52:57 +0100 > Jan Nieuwenhuizen wrote: > >> # CONFIG_OABI_COMPAT is not set >>=20 >> ...certainly a lot easier to find when you know what you're looking >> for. >>=20 >> @Danny: I'm wondering if we could (should?) try a kernel with OABI >> compatibility? I suppose it would be better to somehow target >> EABI...but I'm not sure that's possible with glibc-2.2.5 / gcc-2.95.3. >> Interesting choices here! > > OABI is older than year 2000, and the kernel docs say not to enable it. > It also breaks seccomp. > I doubt that people have it enabled, and thus would have trouble reproduc= ing > our stuff. Okay, I agree; better to not go this route if we can avoid it. > Since this only affects the syscall interface and since also our > ELF headers specify EABI, I would just change the syscalls to EABI: > Just put the syscall number into r7 and use svc 0. Oh, if that's all we should be able to find and fix it? > I'd do it myself but I don't see what libc the gcc 2.95 we built has been > using. > Is it ours? > If so, how come it then uses svc 90000... in the first place?=20 > We don't do that. > > Or is it using glibc ? Not it's not ours, it's gcc-core-mesboot0-2.95.3 binaries built against glibc-mesboot0-2.2.5. So then it's probably glibc-2.2.5 that is using/built for OABI. I didn't know of OABI before, but did look for EABI options and didn't find any in those early gcc/glibc's... We'll have to see if that glibc can be built for OABI, possibly by patching it. If we need to upgrade glibc then that may be an "interesting" undertaking... >From Vagrant's link, I found that Lenny (5.0) is the first armel (EABI) release, it uses glibc-2.7, gcc-4.1, binutils-2.18. > How do I build that gcc on novena? Where would the syscall headers that > I could change be? On latest wip-arm-bootstrap 3c78496c32 DRAFT gnu: mes: Update to 0.22-124-33cf5ea5e8. then building ./pre-inst-env guix build -e '(@@ (gnu packages commencement) gcc-mesbo= ot0)' will be using the gcc,glibc,binutils that's broken and configure will fail on running a conftest. You can get the PATH and other environment settings from that build. I have those settings also in a script: novena:~janneke/src/guix/gcc-mesboot.sh is a reproducer. Greetings, Janneke --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com