From nobody Wed Mar 08 00:35:55 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PWYJw3QzPz3wrxg for ; Wed, 8 Mar 2023 00:36:16 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PWYJv4R8Fz4NqV for ; Wed, 8 Mar 2023 00:36:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=eH419r+y; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678235773; bh=QVoociGixZ2l9gL+zQXDYWBVqHyuP7J/XNuln9TKks0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=eH419r+yspyQAyR3Bm3J/UCWRZbRoYstb5xTH4Gk29IZapCJTmV6OVM8hvSiEQfYUD/lkn5eS8N5quiHrTpie1FK33RSQLp6O6uW/si9E+sidFKJeMFaGIaZSVHhPdRyAPG/n3zS8d0V8ZnkCBzwb1RmQ3PIqu3Cgoh8mBhaL5AW0WqhqxUZKp9DKF4erMmAMaI0aztPs8THVPVzPs0EnC2qvPdGC2WwIhCaB6yopqkEeRbEd9jm2e1NnQ80Ljlsdz5ersFZ0J1NR11jn3h/VjGeGY7ngGXoCkj1IjeFNaieJxcFwNOoCMbwvpUxnxNIWFvi6eCenPt8RXkG/sHkKQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678235773; bh=k4uxIHl5OBD2W96wTmqQfNpslsN3ZauzcfNY+LjPrYB=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=WU7AYl4DQMrt2qjSv7l578BwACNhMuFYCtnynNyhZQCAtWqfMkZwCZlG4jId8HiKt8xtzsnfz6Aemd/Rp+sZ3AfG6yUJOoT8MXWbAOTqwyfqH2DzEWkqiHJLL+TGsXBS4jH+Lb4OcPnvTBF9DiOz08lPQETKAL3r2hCOsgnpGeVD/ZFoKeJsdDI4Wzet2hW5W1J1Pm6vezToVc+VBkJ8wAU3c066NTjqY0dFVWZRPoGjGDVnatMjFXTEQHFY0Huho31VdOgRgGP3IAELSlQG7QWtdRxuzPjsXDc8dLYFK+gSue0BtIbD7mpOeJ3nxkV44CTxXb/RmYwZFxYdt8cE0w== X-YMail-OSG: uJTMq2YVM1kEdfwom0AmkuXvu0qGvIRs7acKHk9876lwpTfgus9tZ6WnyxufZDK Q7aQi1U_kkOO24xgL7LS37f2xtWJZ_4Z4kSgoTEBmQqZCAo_C2GEoK1NMuLIA6Qil_HxsPRNUy93 7TeZjqVL8C7jTBNnYxC6uj1RLXryzcNqO.tnH8jBW.evn7dWVfXr0cKLncT9vsdePnIhmvP4J_JO GpNGbCBqbmChpqEOKKArdYexQOITDi2MtqyxIIv4RcOLF9UkSBYc7mslXa_gYYu59lVDKfVWv7JW S2CTcau01LEuzBXB3AS5djktJgzQc9x2Mlo4Ji_9Lk08iRUODJqYImQNAntnexW1e_R9X09teI2T 5aPNaX1SMaOpEd72nuY8fTPYMJXqGbbfpTm6fOqrJg.gUswSyD99P_815n5QyW7MbNjYESdsgqQr ETqKelqUeeYD5ER9PdiKrNmIdjXBt9tTw9YnoEUHLpZrG_06iReU3zxxmFaLb6ovy182Yq2IbKEB x.DSdZFg_lUV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dWgWLMaqwukUsxrmLLdasyVb4c7We8qB0TxFIT1o_yaj2r2e30dPxqgBIDC v1tV8QA2jqnrzvdyn6.2EI9H8rAslD3__DnqnexhRy.uaa3bUpbB95tzOURbfqCzoG_bNgF9xbTQ OHbI.BQvfkMjT7hF1ulMOPqE6xdnLorQhPKWXW53o4sPVj6eMm8R3CDbBnpKHyQzhx1jYC3zZBhp 03JdMuggzgGUiQbmHlukpPTecPycIiFvMEo.LnVATOdv0px.QWAqZclrlnQywm3SxRFgmfsvttRR fxood1NiHYNpO5Dmq0D1F5Djqbqcbmfq900CAlYnve9Kz1yCgLOVuIo62eeOwEfDiA1tmSpaB6Fu JIp4aODUtbUObVsdz2EGTGxH6IvLD2PxaetQJoYm0QDNRlmwe7TAhoRCClso7lLUAUJUrjS_EXoZ PKcoFxAEkIJjcO6RDpM4mNs5eUUEL6iEGYX3cWCODKC2ROfNLiJ121qa40v.I9L1f0helaYgzw6O jC1ZtgE1im1igyMnoYiM6OzuSGTHP4BWNwB1F4pGjsgrwdL.PAxWa2FtdG7vxRMhc.hhUJftc3e1 28_k_oRH6ueB2fZ0EeuqCmZZztDp0ka.QQO5.1wMx9GA.xr8k_J7TYfQo8W3d0sy9dajRJwMcnvV rZqLLndCQa.LU4tFcthAWaylFmMidFOedXIcy3CKBWYDbPS9kWFlnH27SJ_EgcNz7LD6bATm8H0g ybMfaa0ihg4s- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Wed, 8 Mar 2023 00:36:13 +0000 Received: by hermes--production-bf1-777648578f-277mr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fb8bfee70cdaed62f7b5e841854eb12f; Wed, 08 Mar 2023 00:36:08 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: armv7 lang/gcc12 "no bootstrap" build via system clang 15.0.7 based poudriere build ends up stuck in a small loop From: Mark Millard In-Reply-To: <1809C9AD-84B2-488D-B92B-2D753320A0B9@yahoo.com> Date: Tue, 7 Mar 2023 16:35:55 -0800 Cc: Lorenzo Salvadore , "salvadore@freebsd.org" , FreeBSD Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <2HOLCFE6Z_cOyGycU4ZBU7Lf6kcqohVx7tiLiRLzdjMEc6a8DFeH1IaJqdPNJOqFVTh1MGE7_UUJLcg2gg0UbTZIHZl72NbaNEsqrJwJ3xA=@lorenzosalvadore.it> <93707ED2-F529-49DE-A018-794827F56247@yahoo.com> <7AA0AE73-87CC-4B26-92B2-A0EC4281F429@yahoo.com> <480C8278-DC30-40D6-AED2-F52F59E78EBC@yahoo.com> <4BC33DD0-E2AD-452B-AE54-9701CA01F95E@FreeBSD.org> <1809C9AD-84B2-488D-B92B-2D753320A0B9@yahoo.com> To: Dimitry Andric , Brooks Davis X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spamd-Result: default: False [-3.46 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.965]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.206:from]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCPT_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.206:from] X-Rspamd-Queue-Id: 4PWYJv4R8Fz4NqV X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N [I got a openSUSE tumblweed linux going on a RPi2 v1.1 (so: armv7) and installed clang 15. I show the test fails there as well.] On Mar 7, 2023, at 04:04, Mark Millard wrote: > On Mar 7, 2023, at 03:45, Dimitry Andric wrote: >=20 >> On 7 Mar 2023, at 11:26, Mark Millard wrote: >>>=20 >>> Below is a small example C source showing the clang 15+ armv7 >>> problem that leads to the unbounded looping in later code in >>> the lang/gcc12+ builds: a data structure is mis-initialized, >>> breaking its invariant properties used by the later code >>> structure. >> ... >>> In the output below, note the blocks of 4 "next" >>> values that do not change. Each should match the >>> earlier hexadecimal value on the same line: point >>> back to same element of the array. 3 of 4 do not. >>>=20 >>> # cc -g -O2 partition.c >>> # ./a.out >>> 0: 0x40a84 : next?: 0x40a84 >>> 1: 0x40a90 : next?: 0x40a84 >>> 2: 0x40a9c : next?: 0x40a84 >>> 3: 0x40aa8 : next?: 0x40a84 >>=20 >> Very strange, I don't see this at all here. All the values are always >> correct, at every optimization level. I tried clang 13, clang 14, = clang >> 15 from base and clang 15 from ports. However, my architecture is = amd64, >> so maybe you are running into a armv7 specific issue? >>=20 >=20 > Yep: aarch64 and amd64 gcc builds all worked fine > via system-clang 15 and the test case also works > fine in my context on those. (All platforms > have FreeBSD built from copies of the same > source code.) >=20 > It is only on armv7 that I got the gcc build > problems and the test case failures. >=20 > FYI: >=20 > aarch64 Fedora 37 using clang-15 also works > fine for me (only tried the test case, not > gcc builds): >=20 > # clang-15 -g -O2 partition.c ; ./a.out > 0: 0x420038 : next?: 0x420038 > 1: 0x420048 : next?: 0x420048 > 2: 0x420058 : next?: 0x420058 > 3: 0x420068 : next?: 0x420068 > 4: 0x420078 : next?: 0x420078 > 5: 0x420088 : next?: 0x420088 > 6: 0x420098 : next?: 0x420098 > 7: 0x4200a8 : next?: 0x4200a8 > 8: 0x4200b8 : next?: 0x4200b8 > 9: 0x4200c8 : next?: 0x4200c8 > 10: 0x4200d8 : next?: 0x4200d8 > 11: 0x4200e8 : next?: 0x4200e8 > 12: 0x4200f8 : next?: 0x4200f8 > 13: 0x420108 : next?: 0x420108 > 14: 0x420118 : next?: 0x420118 > 15: 0x420128 : next?: 0x420128 > 16: 0x420138 : next?: 0x420138 > 17: 0x420148 : next?: 0x420148 > 18: 0x420158 : next?: 0x420158 > 19: 0x420168 : next?: 0x420168 > 20: 0x420178 : next?: 0x420178 > 21: 0x420188 : next?: 0x420188 > 22: 0x420198 : next?: 0x420198 > 23: 0x4201a8 : next?: 0x4201a8 > 24: 0x4201b8 : next?: 0x4201b8 > 25: 0x4201c8 : next?: 0x4201c8 > 26: 0x4201d8 : next?: 0x4201d8 > 27: 0x4201e8 : next?: 0x4201e8 > 28: 0x4201f8 : next?: 0x4201f8 > 29: 0x420208 : next?: 0x420208 > 30: 0x420218 : next?: 0x420218 > 31: 0x420228 : next?: 0x420228 >=20 > # clang-15 -v > clang version 15.0.7 (Fedora 15.0.7-1.fc37) > Target: aarch64-redhat-linux-gnu > Thread model: posix > InstalledDir: /usr/bin > Found candidate GCC installation: = /usr/bin/../lib/gcc/aarch64-redhat-linux/12 > Selected GCC installation: /usr/bin/../lib/gcc/aarch64-redhat-linux/12 > Candidate multilib: .;@m64 > Selected multilib: .;@m64 >=20 > If I understand right, Lorenzo indicates that he has > more failing contexts. I've no evidence of my own of > such. # uname -ap Linux localhost.localdomain 6.2.0-1-lpae #1 SMP Mon Feb 20 06:22:59 UTC = 2023 (89e2785) armv7l armv7l armv7l GNU/Linux # clang-15 -v clang version 15.0.7 Target: armv7hl-suse-linux-gnueabihf Thread model: posix InstalledDir: /usr/bin Found candidate GCC installation: = /usr/bin/../lib/gcc/armv7hl-suse-linux-gnueabi/12 Selected GCC installation: = /usr/bin/../lib/gcc/armv7hl-suse-linux-gnueabi/12 Candidate multilib: .;@m32 Selected multilib: .;@m32 # clang-15 -g -O2 partition.c ; ./a.out 0: 0x498044 : next?: 0x498044 1: 0x498050 : next?: 0x498044 2: 0x49805c : next?: 0x498044 3: 0x498068 : next?: 0x498044 4: 0x498074 : next?: 0x498074 5: 0x498080 : next?: 0x498074 6: 0x49808c : next?: 0x498074 7: 0x498098 : next?: 0x498074 8: 0x4980a4 : next?: 0x4980a4 9: 0x4980b0 : next?: 0x4980a4 10: 0x4980bc : next?: 0x4980a4 11: 0x4980c8 : next?: 0x4980a4 12: 0x4980d4 : next?: 0x4980d4 13: 0x4980e0 : next?: 0x4980d4 14: 0x4980ec : next?: 0x4980d4 15: 0x4980f8 : next?: 0x4980d4 16: 0x498104 : next?: 0x498104 17: 0x498110 : next?: 0x498104 18: 0x49811c : next?: 0x498104 19: 0x498128 : next?: 0x498104 20: 0x498134 : next?: 0x498134 21: 0x498140 : next?: 0x498134 22: 0x49814c : next?: 0x498134 23: 0x498158 : next?: 0x498134 24: 0x498164 : next?: 0x498164 25: 0x498170 : next?: 0x498164 26: 0x49817c : next?: 0x498164 27: 0x498188 : next?: 0x498164 28: 0x498194 : next?: 0x498194 29: 0x4981a0 : next?: 0x498194 30: 0x4981ac : next?: 0x498194 31: 0x4981b8 : next?: 0x498194 So: Not FreeBSD specific at all. =3D=3D=3D Mark Millard marklmi at yahoo.com