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 COnuJLPmM2DPKgAA0tVLHw (envelope-from ) for ; Mon, 22 Feb 2021 17:15:31 +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 6MfAILPmM2D/VQAA1q6Kng (envelope-from ) for ; Mon, 22 Feb 2021 17:15:31 +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 0B5CA2AFBB for ; Mon, 22 Feb 2021 18:15:31 +0100 (CET) Received: from localhost ([::1]:44886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEEny-0002B9-2J for larch@yhetil.org; Mon, 22 Feb 2021 12:15:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEEie-0004q2-IF; Mon, 22 Feb 2021 12:10:00 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:59714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEEib-0003N7-Ic; Mon, 22 Feb 2021 12:10:00 -0500 Received: from localhost (80-110-127-104.cgn.dynamic.surfer.at [80.110.127.104]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 9661F3362060; Mon, 22 Feb 2021 18:09:52 +0100 (CET) Date: Mon, 22 Feb 2021 18:09:51 +0100 From: Danny Milosavljevic To: Jan Nieuwenhuizen Subject: Re: Update on wip-arm-bootstrap Message-ID: <20210222180951.70edf64d@scratchpost.org> In-Reply-To: <87v9akljyi.fsf@gnu.org> References: <87blco9v58.fsf@gnu.org> <87h7m91d3j.fsf@yucca> <874ki9cabq.fsf@gnu.org> <20210219052341.5f10e637@scratchpost.org> <871rdceg30.fsf@gnu.org> <87v9als2ag.fsf@gnu.org> <20210222020330.74832a2b@scratchpost.org> <20210222025037.76a9ca9f@scratchpost.org> <87v9akljyi.fsf@gnu.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/fNUxUtc5gN2GiGHTUzgyJV4"; protocol="application/pgp-signature"; micalg=pgp-sha512 Received-SPF: none client-ip=85.13.145.193; envelope-from=dannym@scratchpost.org; helo=dd26836.kasserver.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: -4.47 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 0B5CA2AFBB X-Spam-Score: -4.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: KV7KSY+IoxpE --Sig_/fNUxUtc5gN2GiGHTUzgyJV4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > Hmm, I'm not seeing this (I did see something like this before). You > *are* on >=20 > e44b6b7eed squash! commencement: binutils-mesboot0: Support ARM. >=20 > right? Yes, but your gcc-mesboot.sh hardcoded a specific (older) path. Sorry. With updated gcc-mesboot.sh I get: Program terminated with signal SIGSEGV, Segmentation fault. (gdb) bt #0 _IO_setb (f=3D0x4, b=3D0x4b , eb=3D0x4c , a=3D0) at geno= ps.c:387 #1 0x00008f1c in _IO_doallocbuf (fp=3D0x4) at genops.c:406 #2 0x0002409c in _IO_new_file_overflow (f=3D0x6cde0 <_IO_2_1_stdout_>, ch= =3D0) at fileops.c:576 #3 0x000249b0 in _IO_new_file_xsputn (f=3D0x6cde0 <_IO_2_1_stdout_>, data= =3D0xbecfd313, n=3D1) at fileops.c:962 #4 0x0001a09c in _IO_vfprintf (s=3D0x6cde0 <_IO_2_1_stdout_>, format=3D0xb= ecfd313 "2\224\323=CF=BE\001",=20 ap=3D) at vfprintf.c:1523 #5 0x00008828 in printf (format=3D0x525f0 "%d\n") at printf.c:33 #6 0x00008214 in main (argc=3D,=20 argv=3D) at test.c:6 Looks like a NULL pointer for a FILE* ? Or is gdb just weird? glibc-2.2.5/libio/genops.c: void _IO_setb (f, b, eb, a) _IO_FILE *f; char *b; char *eb; int a; { if (f->_IO_buf_base && !(f->_flags & _IO_USER_BUF)) <---------------- here FREE_BUF (f->_IO_buf_base, _IO_blen (f)); f->_IO_buf_base =3D b; f->_IO_buf_end =3D eb; if (a) f->_flags &=3D ~_IO_USER_BUF; else f->_flags |=3D _IO_USER_BUF; } int _IO_new_file_overflow (f, ch) _IO_FILE *f; int ch; { if (f->_flags & _IO_NO_WRITES) /* SET ERROR */ { f->_flags |=3D _IO_ERR_SEEN; __set_errno (EBADF); return EOF; } /* If currently reading or no buffer allocated. */ if ((f->_flags & _IO_CURRENTLY_PUTTING) =3D=3D 0 || f->_IO_write_base =3D= =3D 0) { /* Allocate a buffer if needed. */ if (f->_IO_write_base =3D=3D 0) { _IO_doallocbuf (f); <------------- here _IO_setg (f, f->_IO_buf_base, f->_IO_buf_base, f->_IO_buf_base); } Maybe add some debugging statements there? But printf is broken, so maybe use write(2, "foo\n", 4) and similar. (I'm not sure about just defining -D__ARM_EABI__=3D1 as you are doing--afte= r all, it entails further stack alignment requirements. Maybe try +++ glibc-2.2.5/sysdeps/unix/sysv/linux/arm/sysdep.h 2021-02-22 00:44:43= .300906460 +0100 @@ -29,8 +29,8 @@ of the kernel. But these symbols do not follow the SYS_* syntax so we have to redefine the `SYS_ify' macro here. */ #undef SYS_ify -#define SWI_BASE (0x900000) -#define SYS_ify(syscall_name) (__NR_##syscall_name) +#define SWI_BASE (0x000000) +#define SYS_ify(syscall_name) (__NR_##syscall_name & 0x8fffff) as a more minimal patch? Not sure...) --Sig_/fNUxUtc5gN2GiGHTUzgyJV4 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAmAz5V8ACgkQ5xo1VCww uqXANgf8Do4Jv+mdhQkncIZZ36VJwX81K/XoATH0X0vAw2Cx/t4oAbFKyBGsoWtH B3cNVWPsK3POEEVGfHs2rOWVYKqt0UxBKrensXTPlIjvSo0aCcHNrxpNzHfIPiJW Cj4GsVL6u/YdQ1fNesHkzVQaaANKPnVFNGAnGd5qFGAPnGPyIEFXok4NNU8rUgyT 6QzucGZK0ZunF9ExOd0vJnJB0DmXVDJQL8KvZLr2uXoVi0iWSrH7g0CMyZFrthVj YYvhCbe5jcwVTfQuUBQddiB1LTr2+lm0pMqjbp6jO3Vsx3gESB7ZUxqn/OZo1iaF 1G22MZB8uqCaVw4Nyuu97pVU/2v4vA== =ePti -----END PGP SIGNATURE----- --Sig_/fNUxUtc5gN2GiGHTUzgyJV4--