From nobody Wed Aug 27 08:57:14 2025 X-Original-To: bugs@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 4cBdhB3FNGz65yjF for ; Wed, 27 Aug 2025 08:57:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cBdhB2gNHz3K9W for ; Wed, 27 Aug 2025 08:57:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756285034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LjxJ19ZUVydv64QqSk51hBroUWdBdWXEpWTMtR2sHaY=; b=IIEHhoobQvcP2BKIbV5ZYw7oT3THdW1HjreWay/VfyXcIEYBy1q5oYx3L/MIMfoLsG7yJ1 hNMykknTJx7O8RjKqXp3ZJuCGQtt7Zij/MvlghDqBYOoB0hk1GLPTYZxeZEyYH62CYAgXt 91ODP4Q0c8T96ZQ/wPanqIlprV5sVapMH99ZTTehO/AHMBo0c/MiwkZBoqp+faQmf58OHB 3PymKU365sr/G5o3xT5ay9dUwKsGeK43l4X8hO1JBSXgWUDFyhZCI3morf4qVGAyYu5uJH ai9tTFGUkT9eu9kwDxoePe9jwg/9uF44j+dtE1m74qihNZ7qeIbNdcuDHTizhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756285034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LjxJ19ZUVydv64QqSk51hBroUWdBdWXEpWTMtR2sHaY=; b=N2lc/K5u7z3UwVHgz9pN/rnRoXPpcL/TEnJC5zllPQUx9sTFXDWEa/AWWfGVvNGhsF3mNT bswDCMS8HpjTGfadzKIsX2CtOaWEAgSR7wym/bNmK/kWrmKYFaJ+dhpDwnY6PpQrxP0Bvm ams3HCYZ0VcU0j7R0s1P6rDgvAz/IEZNav183eHiNadG5Bv8LvA1uA3h/WAhD/Jw4CtOyT sidk/76ZmH4u3x+lFuxe8dQz70I9UWWk6XDdiA9ZpUcO3yhlwnXrkrDi87hQrytkwCNQ2g SRSU0vrb3b9/QTgsTtSeMpik2TtOVnXeNMuvj5qzpfDSpENaJ8j45oVDVT3HSg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756285034; a=rsa-sha256; cv=none; b=F/sPxEd5QCzyGZB16iJBF7x5MSp3UKMuyneBNV7m1SlQBtFe82hkMdXo/NFqM8g2T9maPz VlL/a0q26LIqPOt2zA4xCmxwDqZjr9b8mZ2xtk7fTxN1UIT8R0d+W9sT/qRLTzUjgGHTXa eNzeJs1I4tJr738z6Sqtyf29yiEXIRnd8CYsMHSQxb/grEqL9LFOghUYh9rccDBho4dkw1 qovG9ZUYpczXoEqGcFB5DkSBOJDELmM8gvP+paQtQdHzvyn7x+fZAOle8jduyr3n80U7Gx 2OP43mdOrCXFW0gejTm28Uj1bjrU6fs6IHAFKO0Ob90ISXSqVpY4iaiDMypxrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cBdhB1xRlz1T4 for ; Wed, 27 Aug 2025 08:57:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 57R8vEYY028470 for ; Wed, 27 Aug 2025 08:57:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57R8vEor028458 for bugs@FreeBSD.org; Wed, 27 Aug 2025 08:57:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 289122] powerpc: llvm.threadlocal.address first argument must be a GlobalValue Date: Wed, 27 Aug 2025 08:57:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pkubaj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289122 Bug ID: 289122 Summary: powerpc: llvm.threadlocal.address first argument must be a GlobalValue Product: Base System Version: CURRENT Hardware: powerpc OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: pkubaj@FreeBSD.org There seems to be an issue with building math/nauty port on powerpc*. Clang throws (when using reduced reproducer): llvm.threadlocal.address first argument must be a GlobalValue in function g fatal error: error in backend: Broken function found, compilation aborted! This error doesn't happen with 14.3-RELEASSE, only CURRENT, even though both use LLVM 19.1.7. It's in a C file, so probably something changed in our base libraries. It also doesn't happen when trying to use llvm-devel port, so I'm not reporting it upstream. I'm not sure which upstream commit fixed it, but would it be possible to backport the fix to our LLVM? Reproducer: static int a[] =3D {0, 1}; static _Thread_local int b[] =3D {0, 0, 1}; int f, e, ah; void g(void) { f =3D b[e]; ah =3D a[f]; } Build with: cc -cc1 -triple powerpc64le-unknown-freebsd15.0 -emit-obj -O1 gentourng-15988f.c --=20 You are receiving this mail because: You are the assignee for the bug.=