From nobody Tue Mar 07 11:45:02 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 4PWDCB3LzPz3xHKh for ; Tue, 7 Mar 2023 11:45:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PWDCB2sGzz3lwp; Tue, 7 Mar 2023 11:45:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678189510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=u1ZimPKdYfoaZbJx3WWB+gTz/21BF61Mh8aKxGVPObA=; b=egE7uXPMHX8EFARVvMWDZA48o+KMgtHsS7g1Mqcz/AD+G0LRzTC/l9FMB1+FA8RA2XpKKZ 2AWjhnp63fSSNVDYO6Nr+b/d6+4RtQDK0vAl90vAj8i2ijIFRVhhdpL6EgnfErq1de/1Ti LetBuRB4DfV3gLo+EPiFHSGoubyn8OWAy3EK94qzrDvj3EKDqdrR8489Nikdwf5JRgN5WN axli4DH0N9qQ0Q+OcwY8c/zMFhPi0ab80eOF32cSeYtuqx3v/3O9jaPGrMqQ0DVJaLuK9+ 0v2Jkx8EeZnHBiec5VI1v9jo7TBQfUShvK8OuUVDCWj3EkNwJhp8z8zsf4B3tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678189510; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=u1ZimPKdYfoaZbJx3WWB+gTz/21BF61Mh8aKxGVPObA=; b=ZoBxgR2qbllers/dpEGPxnUh6HeiJjY2BofCyNe2Jvbz66CBA9uhfYVPw70+j2Os7SaPB0 XMg/bPcyJgtX8Cl8ObfVP+oUSh3LCxMRcO6BUQkWAy5dmet+geaNAq+3+MhUOTlqhRcZ2A zxN6Ix7lhvayOm+ewhMzxYkljEndVgeli0EJxfYMQ+5nVkokCV5syxjpbzp3PD7QNDO521 uT0SWCmq8mMnoARC19gK2Dhz5u1/79g0o8WGHwchZd4KUuiy3c90opZkm+IGICDUbJ6Yqs xkrFY2eo/1X0gFq6zi72kB3bZvFnCfXbcKJ8rT1iaLEbi1iZoOVyycimG/4Vsg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678189510; a=rsa-sha256; cv=none; b=eq15Eq0tQ+p+x+ER+Sxaj03zj0RjsZ7bQeBv1lYHyVFEuB++ggsiQ4nzYz5CjrpCWDXf4x ajP9t5EWoiFne0JJtZvPJ+f0DqnDmtmh0oOdvBH1ySDTY0wEe5dWQgQHIyi5tuRt/mCO8T EwfZx0pgqVybV3CvBSj3vkRbVFIBdxSyPZclRhC86MlogHsbHEkLgqbU5EAhLiiW7HwvPr 5DlCordyIYx7LSnJ7IVvorVWO/XuCvPOHSYysZnAqd3BSC+g0t5Mzt1UA3dSFzjODuKYMG /9DOGFBeDHkWYeK51S26NYqxWUnXlqhmZeBfMmvA+g3uk2BdSDuVXjoVNAcbqQ== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PWDCB1B1JzXFw; Tue, 7 Mar 2023 11:45:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id E28543F59E; Tue, 7 Mar 2023 12:45:08 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_05DDBCD7-BF0C-4CB0-B1D1-F686A9512E89"; protocol="application/pgp-signature"; micalg=pgp-sha1 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: Dimitry Andric In-Reply-To: Date: Tue, 7 Mar 2023 12:45:02 +0100 Cc: Lorenzo Salvadore , Brooks Davis , "salvadore@freebsd.org" , FreeBSD Mailing List Message-Id: <4BC33DD0-E2AD-452B-AE54-9701CA01F95E@FreeBSD.org> 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> To: Mark Millard X-Mailer: Apple Mail (2.3731.400.51.1.1) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_05DDBCD7-BF0C-4CB0-B1D1-F686A9512E89 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 7 Mar 2023, at 11:26, Mark Millard wrote: > > 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. > > # cc -g -O2 partition.c > # ./a.out > 0: 0x40a84 : next?: 0x40a84 > 1: 0x40a90 : next?: 0x40a84 > 2: 0x40a9c : next?: 0x40a84 > 3: 0x40aa8 : next?: 0x40a84 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? -Dimitry --Apple-Mail=_05DDBCD7-BF0C-4CB0-B1D1-F686A9512E89 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZAcjvgAKCRCwXqMKLiCW o9k0AJ49N4csOhpw3JcsnjneV2SONcH+YQCg4jkMpNfGlA8SuIE1wfDt99pW6ig= =MLm2 -----END PGP SIGNATURE----- --Apple-Mail=_05DDBCD7-BF0C-4CB0-B1D1-F686A9512E89--