From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 87862 invoked by alias); 16 Dec 2019 21:52:36 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 87853 invoked by uid 89); 16 Dec 2019 21:52:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=cobbled, sitting, interest X-HELO: elaine.keithp.com Received: from home.keithp.com (HELO elaine.keithp.com) (63.227.221.253) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 16 Dec 2019 21:52:34 +0000 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id E1E993F2998D for ; Mon, 16 Dec 2019 13:52:31 -0800 (PST) Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hIvrOaYgYKpb for ; Mon, 16 Dec 2019 13:52:31 -0800 (PST) Received: from keithp.com (unknown [172.58.35.89]) by elaine.keithp.com (Postfix) with ESMTPSA id 6AA183F2995B for ; Mon, 16 Dec 2019 13:52:31 -0800 (PST) Received: by keithp.com (Postfix, from userid 1000) id DD63A1582169; Mon, 16 Dec 2019 13:52:25 -0800 (PST) From: keithp@keithp.com ("Keith Packard") To: newlib@sourceware.org Subject: Making newlib tests work again Date: Mon, 16 Dec 2019 21:52:00 -0000 Message-ID: <87sglk0wh2.fsf@keithp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-IsSubscribed: yes X-SW-Source: 2019/txt/msg00661.txt.bz2 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Content-length: 1239 I spent a bunch of time over the last couple of weeks getting the newlib tests running again in my 'picolibc' fork. In the process, I found a few bugs in the library which I've got patches for, but I'm wondering if anyone here has any interest in having the test fixes merged in. I'm not sure how useful they would be in the newlib tree as I'm not sure how to run them here. The 'big' change was to re-generate all of the math test cases using glibc on x86-64. There's code in the libm tests to re-emit the C code which I used for that. For the string conversion tests, I cobbled some hacks together. The newlib code I'm using now passes all of the tests on x86-64-linux-gnu, i686-linux-gnu, arm-none-eabi and riscv64-unknown-elf. For riscv64-unknown-elf, qemu is able to emulate all possible processor configurations and I'm testing them all (30 different newlib builds). For arm-none-eabi, I'm only testing cortex-m3 for now (qemu-system-arm is not as flexible as qemu-system-riscv32/ qemu-system-riscv64). I don't want to spam the list with a large set of huge patches unless there's some interest in them; for now, I've got them sitting on github: https://github.com/keith-packard/picolibc/tree/fixes-newlib --=20 -keith --=-=-= Content-Type: application/pgp-signature; name="signature.asc" Content-length: 832 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAl33/JkACgkQ2yIaaQAA ABFEhBAAgDenlP+xPQHainBg1UI9wC2Hlndv1Bec40d5SWugItqI31hQtEgJRf8k N6kDQipI1qO2ISJW7TOyvLxXM1YiMd8HzKFmZmUZ0wQT6QJ3wl6V5j+IwKnmaaTZ 0ZFdFh0IetLV5YOxZkU0POxebScPbDevzXb59BO+NJDcNj1Q03N1qnJU5EyNqjHv k5ge0VceZisS1cX449L6T/PlLK4LYFUTvt0Rhxy/eIKqS2Tc3YVgC3ctzCUykH4P XuyrnICooeZa1RHHtbCSUFTy00FFXK4CQI1um5ZajgO3BdJDVoy8vvbYBzVZk5qi TknyFJDhwqMdZh8FMTVxGmbrkAJ1TvWkFG+wIulPVn0nzxeAOQRwMkVQOO5MbMSp JIAXIksop2alRqSgpOl3L0ZtOJZtOF7HBQicNtC+4dN8b80nYWP6qZxU8iJzQEl4 T7YHULo9K2viyhplE9p010ZVrVBLPRKq0gNkz8Nkdf6ZbCcX+Tq+TAN+nonMknNd JnywDtYafVaUWXpYghLyk6qqjl7/1HxQFVZ46JdS2KT+1MaJ6RIStBTWSY+IRvew Gs63NToWrw6DNVW+E9aARLVAQLOCmYooR2q78hC5Asro42Ppg4QM/Z8IQhYjc/9A sfmP/ttM6OsDEAultYJRw4o7Ay4Z43emUmMBwPavkURh1rutLfM= =vnS7 -----END PGP SIGNATURE----- --=-=-=--