From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12022 Path: news.gmane.org!.POSTED!not-for-mail From: Reiner Herrmann Newsgroups: gmane.linux.lib.musl.general Subject: Build failure on ARM <5 Date: Fri, 20 Oct 2017 21:04:00 +0200 Message-ID: <20171020190400.2vbeywawzh2ompoa@apollo> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3tuhqjqbrzayssfe" X-Trace: blaine.gmane.org 1508526288 16272 195.159.176.226 (20 Oct 2017 19:04:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Oct 2017 19:04:48 +0000 (UTC) User-Agent: NeoMutt/20170609 (1.8.3) To: musl@lists.openwall.com Original-X-From: musl-return-12035-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 20 21:04:42 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1e5cal-0000zM-0D for gllmg-musl@m.gmane.org; Fri, 20 Oct 2017 21:04:23 +0200 Original-Received: (qmail 9954 invoked by uid 550); 20 Oct 2017 19:04:27 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 9806 invoked from network); 20 Oct 2017 19:04:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=reiner-h.de; s=mail; t=1508526236; bh=OgkaNzmSn7+jFboxu0BoL6CJVAXWZO7liYmyBx8XaHk=; h=Date:From:To:Subject:From; b=kBfVVGs0cu1Asg5OoKjHrrTaDS0Ul0oFv0gWXhfTygUzczfpS89UvMtd5x3UPLl5W JjAiytSoqvaVp/LVY8Edh4sg/IxEJR3s5wH8dXzrpu1fxIDHaK6BJxOT8ajtIh5Tnn VDRE6NPhS4MQhbuCX9jGxFwxcNAFVSYZHy770dMs= Content-Disposition: inline Xref: news.gmane.org gmane.linux.lib.musl.general:12022 Archived-At: --3tuhqjqbrzayssfe Content-Type: multipart/mixed; boundary="yu5umseuvgnmvqrj" Content-Disposition: inline --yu5umseuvgnmvqrj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, musl 1.1.17 fails to build [1] on arm versions <5 because of an unsupported clz instruction. The attached patch by Adrian Bunk [2] fixes this issue. Kind regards, Reiner [1] https://buildd.debian.org/status/fetch.php?pkg=musl&arch=armel&ver=1.1.17-1&stamp=1508450839 [2] https://bugs.debian.org/879190 --yu5umseuvgnmvqrj Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-CLZ-is-only-available-with-ARM-5.patch" Content-Transfer-Encoding: quoted-printable =46rom 1e98ea50a49712931c482ca490a0ca38e0501602 Mon Sep 17 00:00:00 2001 =46rom: Adrian Bunk Date: Fri, 20 Oct 2017 20:57:23 +0200 Subject: [PATCH] CLZ is only available with ARM >=3D 5 --- arch/arm/atomic_arch.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/atomic_arch.h b/arch/arm/atomic_arch.h index a121010f..c5c56f81 100644 --- a/arch/arm/atomic_arch.h +++ b/arch/arm/atomic_arch.h @@ -82,9 +82,13 @@ static inline void a_crash() : : : "memory"); } =20 +#if __ARM_ARCH >=3D 5 + #define a_clz_32 a_clz_32 static inline int a_clz_32(uint32_t x) { __asm__ ("clz %0, %1" : "=3Dr"(x) : "r"(x)); return x; } + +#endif --=20 2.15.0.rc1 --yu5umseuvgnmvqrj-- --3tuhqjqbrzayssfe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE2Pb6feok2Q1urHM7zPBJKNsO6qcFAlnqSJsACgkQzPBJKNsO 6qcI9A//Ypnrz6Gv4zKNdCyoJLlfBC4ezt7NR77/vD5WLXOCsiyiRRIxT6MauaVF vZ2QEGesNiz0I9A2PnPI+GFTNZa9a2qFB6MrCnLjvrUxZYAmMsNJtUTfsICe3unp GgC9B/3UVE8RlrDt9Dir7niqSAiD2pxvpnr4llg/KKy++eGkIOm1jhgq6j3HLCv8 bUIg3ZGN//FDrw9008S4GFnLzg0G8ed1HLtmpSzQnVyDPTsvl6WUGxuxdQSiDAZD tzAd5R936pT3BuycqsYItM/opQTdwbVyp8XxMjhVeG3R9NIbBU9BvEg94X2pMHBk p2qjCyWNn+PFsJjS2O4OGW5tTi58uJB7DjeMBsCSiiLr8++IOIp4I/onmMgr+GPR 1qUHvsbl+g2k/e+Z4JNwgKL9h2cdmeRthx1hLPDhMQ1IyQVkgMoIjcCRCz6MWloA W8yPuo6uPja37xCHIiW6IcnR+mxfmwFM3IGIRHwA7LtMbOC9dO9qW/EmimQxFiID G6ojFtvNoaWo0Vb/+G5YNSy9VNbv4jhxREG7vLTRMXtCXCVphFmVHgKnIlnCIJqm gzPktJ82rJCdOX9X6XES0sOpVcj/RglvGlNW6CZ4vAWVOYYZquHaS8JtaezERdcX KE8DnJn8IsVAaQC3w1Gn6GjhZTYKDYBCtzm2cXH+Gqjd1gsane0= =wNfj -----END PGP SIGNATURE----- --3tuhqjqbrzayssfe--