From owner-freebsd-toolchain@freebsd.org Sun Apr 4 21:00:54 2021 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2DFEE5B4E5B for ; Sun, 4 Apr 2021 21:00:54 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FD5mP5h7qz4Snd for ; Sun, 4 Apr 2021 21:00:53 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1419E5B5247; Sun, 4 Apr 2021 21:00:52 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0FB025B50B5 for ; Sun, 4 Apr 2021 21:00:51 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FD5mM2pCKz4SqH for ; Sun, 4 Apr 2021 21:00:51 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) 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 93C5A44F8 for ; Sun, 4 Apr 2021 21:00:48 +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 134L0mSO090874 for ; Sun, 4 Apr 2021 21:00:48 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 134L0mrf090873 for toolchain@FreeBSD.org; Sun, 4 Apr 2021 21:00:48 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202104042100.134L0mrf090873@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: toolchain@FreeBSD.org Subject: Problem reports for toolchain@FreeBSD.org that need special attention Date: Sun, 4 Apr 2021 21:00:48 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Apr 2021 21:00:54 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 234232 | clang Assertion failed when building the port dev Open | 245179 | lld: wrong/misleading "SHF_MERGE section size mus Open | 247665 | emulators/rpcs3: clang 10 crashes during build 3 problems total for which you should take action. From owner-freebsd-toolchain@freebsd.org Tue Apr 6 19:21:04 2021 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 825A05B58FE for ; Tue, 6 Apr 2021 19:21:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFHSF3wRdz4f4T for ; Tue, 6 Apr 2021 19:21:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7852C5B59E5; Tue, 6 Apr 2021 19:20:58 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 777145B5A1E for ; Tue, 6 Apr 2021 19:20:58 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FFHS95VGhz4djG for ; Tue, 6 Apr 2021 19:20:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4130211B35 for ; Tue, 6 Apr 2021 19:20:54 +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 136JKsiP010205 for ; Tue, 6 Apr 2021 19:20:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 136JKsZV010204 for toolchain@FreeBSD.org; Tue, 6 Apr 2021 19:20:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 248745] /usr/bin/lldb: Dumps core when attempting to print variable with `p`, `fr v` works Date: Tue, 06 Apr 2021 19:20:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: mfc-stable12+ mfc-stable11+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2021 19:21:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248745 --- Comment #9 from commit-hook@FreeBSD.org --- A commit in branch releng/12.2 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Df1d1353d2d7b84434cb7d6bb003d6f560= bfc83e3 commit f1d1353d2d7b84434cb7d6bb003d6f560bfc83e3 Author: Dimitry Andric AuthorDate: 2020-10-31 18:42:03 +0000 Commit: Mark Johnston CommitDate: 2021-04-06 19:01:24 +0000 MFC r364480: Merge commit 1ce07cd614be from llvm git (by me): Instantiate Error in Target::GetEntryPointAddress() only when necessary When Target::GetEntryPointAddress() calls exe_module->GetObjectFile()->GetEntryPointAddress(), and the returned entry_addr is valid, it can immediately be returned. However, just before that, an llvm::Error value has been setup, but in this case it is not consumed before returning, like is done further below in the function. In https://bugs.freebsd.org/248745 we got a bug report for this, where a very simple test case aborts and dumps core: * thread #1, name =3D 'testcase', stop reason =3D breakpoint 1.1 frame #0: 0x00000000002018d4 testcase`main(argc=3D1, argv=3D0x00007fffffffea18) at testcase.c:3:5 1 int main(int argc, char *argv[]) 2 { -> 3 return 0; 4 } (lldb) p argc Program aborted due to an unhandled Error: Error value was Success. (Note: Success values must still be checked prior to being destroyed). Thread 1 received signal SIGABRT, Aborted. thr_kill () at thr_kill.S:3 3 thr_kill.S: No such file or directory. (gdb) bt #0 thr_kill () at thr_kill.S:3 #1 0x00000008049a0004 in __raise (s=3D6) at /usr/src/lib/libc/gen/raise.c:52 #2 0x0000000804916229 in abort () at /usr/src/lib/libc/stdlib/abort.= c:67 #3 0x000000000451b5f5 in fatalUncheckedError () at /usr/src/contrib/llvm-project/llvm/lib/Support/Error.cpp:112 #4 0x00000000019cf008 in GetEntryPointAddress () at /usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:267 #5 0x0000000001bccbd8 in ConstructorSetup () at /usr/src/contrib/llvm-project/lldb/source/Target/ThreadPlanCallFunction.cpp= :67 #6 0x0000000001bcd2c0 in ThreadPlanCallFunction () at /usr/src/contrib/llvm-project/lldb/source/Target/ThreadPlanCallFunction.cpp= :114 #7 0x00000000020076d4 in InferiorCallMmap () at /usr/src/contrib/llvm-project/lldb/source/Plugins/Process/Utility/InferiorC= allPOSIX.cpp:97 #8 0x0000000001f4be33 in DoAllocateMemory () at /usr/src/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessFr= eeBSD.cpp:604 #9 0x0000000001fe51b9 in AllocatePage () at /usr/src/contrib/llvm-project/lldb/source/Target/Memory.cpp:347 #10 0x0000000001fe5385 in AllocateMemory () at /usr/src/contrib/llvm-project/lldb/source/Target/Memory.cpp:383 #11 0x0000000001974da2 in AllocateMemory () at /usr/src/contrib/llvm-project/lldb/source/Target/Process.cpp:2301 #12 CanJIT () at /usr/src/contrib/llvm-project/lldb/source/Target/Process.cpp:2331 #13 0x0000000001a1bf3d in Evaluate () at /usr/src/contrib/llvm-project/lldb/source/Expression/UserExpression.cpp:190 #14 0x00000000019ce7a2 in EvaluateExpression () at /usr/src/contrib/llvm-project/lldb/source/Target/Target.cpp:2372 #15 0x0000000001ad784c in EvaluateExpression () at /usr/src/contrib/llvm-project/lldb/source/Commands/CommandObjectExpression.= cpp:414 #16 0x0000000001ad86ae in DoExecute () at /usr/src/contrib/llvm-project/lldb/source/Commands/CommandObjectExpression.= cpp:646 #17 0x0000000001a5e3ed in Execute () at /usr/src/contrib/llvm-project/lldb/source/Interpreter/CommandObject.cpp:1003 #18 0x0000000001a6c4a3 in HandleCommand () at /usr/src/contrib/llvm-project/lldb/source/Interpreter/CommandInterpreter.cp= p:1762 #19 0x0000000001a6f98c in IOHandlerInputComplete () at /usr/src/contrib/llvm-project/lldb/source/Interpreter/CommandInterpreter.cp= p:2760 #20 0x0000000001a90b08 in Run () at /usr/src/contrib/llvm-project/lldb/source/Core/IOHandler.cpp:548 #21 0x00000000019a6c6a in ExecuteIOHandlers () at /usr/src/contrib/llvm-project/lldb/source/Core/Debugger.cpp:903 #22 0x0000000001a70337 in RunCommandInterpreter () at /usr/src/contrib/llvm-project/lldb/source/Interpreter/CommandInterpreter.cp= p:2946 #23 0x0000000001d9d812 in RunCommandInterpreter () at /usr/src/contrib/llvm-project/lldb/source/API/SBDebugger.cpp:1169 #24 0x0000000001918be8 in MainLoop () at /usr/src/contrib/llvm-project/lldb/tools/driver/Driver.cpp:675 #25 0x000000000191a114 in main () at /usr/src/contrib/llvm-project/lldb/tools/driver/Driver.cpp:890 Fix the incorrect error catch by only instantiating an Error object if it is necessary. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D86355 This should fix lldb aborting as described in the scenario above. Reported by: dmgk PR: 248745 Approved by: so Security: FreeBSD-EN-21:07.lldb (cherry picked from commit eb41eed03c084bd6eefe91992b0f704caa0fb58b) contrib/llvm-project/lldb/source/Target/Target.cpp | 31 +++++++++++-------= ---- 1 file changed, 15 insertions(+), 16 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Tue Apr 6 19:44:58 2021 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 70B175B6A4E for ; Tue, 6 Apr 2021 19:44:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFHzt2ZNmz4hrH for ; Tue, 6 Apr 2021 19:44:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 585815B6A4D; Tue, 6 Apr 2021 19:44:58 +0000 (UTC) Delivered-To: toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 582395B6C2E for ; Tue, 6 Apr 2021 19:44:58 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FFHzt1zbTz4hrG for ; Tue, 6 Apr 2021 19:44:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 374B411F48 for ; Tue, 6 Apr 2021 19:44:58 +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 136JiwkC023031 for ; Tue, 6 Apr 2021 19:44:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 136JiwIO023030 for toolchain@FreeBSD.org; Tue, 6 Apr 2021 19:44:58 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: toolchain@FreeBSD.org Subject: [Bug 248745] /usr/bin/lldb: Dumps core when attempting to print variable with `p`, `fr v` works Date: Tue, 06 Apr 2021 19:44:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: mfc-stable12+ mfc-stable11+ X-Bugzilla-Changed-Fields: resolution bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2021 19:44:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248745 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|In Progress |Closed CC| |markj@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Apr 8 17:46:26 2021 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7F96E5BA183 for ; Thu, 8 Apr 2021 17:46:26 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-20.consmr.mail.gq1.yahoo.com (sonic306-20.consmr.mail.gq1.yahoo.com [98.137.68.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FGTG936pCz3pvT for ; Thu, 8 Apr 2021 17:46:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1617903983; bh=H68Q+A18whRgYb60gRQz6CGY6RFaUeEiKnhNYnJQPvv=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=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6jQVICZ0uxDL18CM_PFN PQEIWLWRUletYLnL13OIRioRIgQ8Xd2l31FIzrjiJ0LEvXCcpuT3iFZk8N6DlcxdpLSGvr6jVt8N 1zH5uX990d4qLuf00MY0HValh6IOHhS6Y3Ic8obP6YivilrpPqlVhpzuCtOgEoVLyGAsn0gIS0XT jYBDX2PWO0hZXDlFxTMZwOkLdQyCnQCbmOOeWohd7QrMy14hT6Vr9666PYpMqCizLktfXaco01LZ ePcMgURoTV0EGMWT7XzQO4pv9UiefVqTz_ILmO7tt2FpcBX8otM8yqQt07JSS.AktFvzv1H.oXjR CNhYP1H1mrbGbxJ4gdXciK0oLgWyJ_PQyKgCMu_XGQXYI7JZBoWWYLRDc1FMKTN_GP3V3CmHYUo4 6YUOXqAy8bYmY.M306faD13_4f7pou2zDk0zaSCqZaFXm4.bhiFQC6EHQQq4.fvX4H5EOqJAV5DF 6VPjmvYz_DDOpGMi6gtXt9b_s0KpTgRWi.sWKszcpXxUBPRmfrxzd_evurncu77cR0FA5s5MtMoI SBTWKn9KVC0Tlpk5LW8DV7OGdZc6LB2lozGVYLrTN5LRnYeEjXVCQr.TRWdslqVRCKGHw7kocyXS ezPJ3FVX2AYQg5F_5o3Tci.EmAxAfYHN5FJUSsVQxdMwj6f8UzuaN.S2O69ZnBlexcBrZKWDnF8U fVVqs36JgVI7ZbaQjuCdDMrBonB4SIM6Jw4miKk7nPDE8fb72SGt7XSDXOEAzE4aHG1G7tFw1hqa YP5rGA0.Sng6o1ljNueWeilr1DqhVZs.x33gzR.rAlVtYCwn4q67qviectjExCfwnI7pImVdxCLa mEsHOGxXcAltz X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Thu, 8 Apr 2021 17:46:23 +0000 Received: by kubenode531.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 3f928ca5a1ebd499cd0e8693f1db1938; Thu, 08 Apr 2021 17:46:20 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: devel/llvm10 (and 11) on aarch64: only BE_AMDGPU registered targets despite OPTIONS_FILE_SET+=BE_NATIVE also being set Message-Id: Date: Thu, 8 Apr 2021 10:46:19 -0700 To: FreeBSD Toolchain , FreeBSD ports X-Mailer: Apple Mail (2.3654.60.0.2.21) References: X-Rspamd-Queue-Id: 4FGTG936pCz3pvT X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.68.83:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.68.83:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.83:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.83:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-toolchain] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2021 17:46:26 -0000 Building devel/llvm10 via poudriere-devel on a Cortex-A57 system (OverDrive 1000), I ended up with just: # /usr/local/llvm10/bin/llc -version LLVM (http://llvm.org/): LLVM version 10.0.1 Optimized build. Default target: aarch64-portbld-freebsd14.0 Host CPU: (unknown) Registered Targets: amdgcn - AMD GCN GPUs r600 - AMD GPUs HD2XXX-HD6XXX from a context that has: # grep -r BE /usr/local/etc/poudriere.d/options/devel_llvm10/ = /usr/local/etc/poudriere.d/options/devel_llvm10/options:_FILE_COMPLETE_OPT= IONS_LIST=3DBE_AMDGPU CLANG DOCS EXTRAS LIT LLD LLDB LLD_LINK OPENMP = PYCLANG BE_FREEBSD BE_NATIVE BE_STANDARD = /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_SET+=3D= BE_AMDGPU = /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_UNSET= +=3DBE_FREEBSD = /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_SET+=3D= BE_NATIVE = /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_UNSET= +=3DBE_STANDARD (I've used the combination in various llvm*'s for years, including using such for llvm10. Something has changed.) I'll not repeat the material here but llvm11 got the same sort of result. May be that "Host CPU: (unknown)" has something to do with it? This has been true since I built and installed back on 2021-Feb-11 and is true of my updating build started yesterday (bulk still in progress). LLVM10 pkg info from active install: # pkg info llvm10 llvm10-10.0.1_5 Name : llvm10 Version : 10.0.1_5 Installed on : Thu Feb 11 12:05:43 2021 PST Origin : devel/llvm10 Architecture : FreeBSD:14:aarch64 Prefix : /usr/local Categories : devel lang Licenses : MIT, BSD3CLAUSE, PD, LLVM, REGEX, LLVM2 Maintainer : brooks@FreeBSD.org WWW : http://llvm.org/ Comment : LLVM and Clang Options : BE_AMDGPU : on BE_FREEBSD : off BE_NATIVE : on BE_STANDARD : off CLANG : on DOCS : on EXTRAS : on LIT : on LLD : on LLDB : on LLD_LINK : on OPENMP : on PYCLANG : off Shared Libs required: libedit.so.0 liblua-5.2.so libpython3.7m.so.1.0 libxml2.so.2 Shared Libs provided: libRemarks.so.10 libarcher.so libclang-cpp.so.10 liblldb.so.10 libLTO.so.10 libLLVM-10.so libomptarget.so libomp.so libclang.so.10 Annotations : FreeBSD_version: 1400004 repo_type : binary repository : custom Flat size : 509MiB Description : The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This port includes Clang (a C/C++/Objective-C compiler), LLD (a linker), LLDB (a debugger), an OpenMP runtime library, and the LLVM = infrastructure these are built on. WWW: http://llvm.org/ (So the above predates the git conversion.) The issue was first noticed via build failures like (from a log file): . . . Sanity testing C compiler: /usr/local/bin/clang10 Is cross compiler: False. Sanity check compiler command line: /usr/local/bin/clang10 = /wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-20.2.3/_build/meson-privat= e/sanitycheckc.c -o = /wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-20.2.3/_build/meson-privat= e/sanitycheckc.exe -O2 -pipe -mcpu=3Dcortex-a57 -g = -fstack-protector-strong -fno-strict-aliasing -mcpu=3Dcortex-a57 -pipe = -D_FILE_OFFSET_BITS=3D64 -Wl,-rpath=3D/usr/local/llvm10/lib Sanity check compile stdout: ----- Sanity check compile stderr: error: unable to create target: 'No available targets are compatible = with triple "aarch64-portbld-freebsd14.0"' 1 error generated. . . . The FreeBSD is a non-debug build based on main 7381bbee29df: # ~/fbsd-based-on-what-freebsd-main.sh=20 FreeBSD FBSDCA57 14.0-CURRENT FreeBSD 14.0-CURRENT = mm-src-n245445-def0058cc690 GENERIC-NODBG arm64 aarch64 1400005 1400005 def0058cc690 (HEAD -> mm-src) mm-src snapshot for mm's patched build in = git context. merge-base: 7381bbee29df959e88ec59866cf2878263e7f3b2 merge-base: CommitDate: 2021-03-12 20:29:42 +0000 7381bbee29df (freebsd/main, freebsd/HEAD, pure-src, main) cam: Run all = XPT_ASYNC ccbs in a dedicated thread n245444 (--first-parent --count for merge-base) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Fri Apr 9 17:51:42 2021 Return-Path: Delivered-To: freebsd-toolchain@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AF08E5BF213 for ; Fri, 9 Apr 2021 17:51:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FH5Kn30Cnz3Cdq for ; Fri, 9 Apr 2021 17:51:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1617990699; bh=bplHZ7FWmRHQnQey+qZeQmTNfiiTxwailycCAoTETLW=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=UOeUjqFuNB/Z4qSQKGbNP+2LolB0juoEgFQYp6X8YhfW8WuicTOaAoqA0/MqPGHJM97KObs941QzFnkYF3XMy4gLoiAhT4JNGnmUv9xnPucZBbwyaQmMz7gS2qPOju/YJQ4rytm8Pdex915jFwMUgK2AJm7WzSlVL6TnaquwyqC1SSh3x1ox0S/K3tfeHiNmuoK+yXBXE+LfDkuATPakHPgmkST89+310WZjsy65BYv4zOszR/xiqvVW95uB/AOoYKjJLU6Mjy+x4GQv2EALOGFO4WIcI9wem7u8G6que+s+6WkCpQK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ewMTBx_rzk_5em 4l4x1qgS4.BWECXsczRIfDwmy7QdlCWiIaSD6IvissmkNW0khvUuCS3dqX3fRkTSUQgnkg0mQSTY tQ1jN9cQsOIVVvNhb_ztrEqA8fPSCSSbqcyi2yAMVKIF2J0qtKGD.kmm2fZHGSFDUDCupupqgGDE fWPQKQ7IYAtsekBfdFOrgcx.O7KUCC0pFfH_UO4HF4hYQwcRVrgmkkvdebNyDmzIXdWfz6Dm1kRz l_2btTvD.PKMXm2oN0HR7TGJOdWK8x_w36fEKjnJwXezPvwbDfTFSjS3z.OhG5RanDNSFjnb3DET DkorTcgKXcIswreZ1NeIR80__sr7va4EG2SVBquSPJ2EtTqzdH709TABzzzfUMuqfuRswqRMuylT xzQYFoB6X7xID4iFJOhqN.w271_g0G14i_6.so9h7E38sSoW9RWJz8icsjPY5IodihtoQk4QKp.f KJe3.YKmgpgxJem2YwrwpVARDTNQF1oyVEMBwHPAnxhpPWFnYlpGE3nnM50bRkeyd4KBeLAm_gGZ U5f0Ftho.wEPH9BQObQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Fri, 9 Apr 2021 17:51:39 +0000 Received: by kubenode547.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 83d5f114d58dcfb62c2cc8ca589897db; Fri, 09 Apr 2021 17:51:33 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: devel/llvm10 (and 11) on aarch64: only BE_AMDGPU registered targets despite OPTIONS_FILE_SET+=BE_NATIVE also being set Date: Fri, 9 Apr 2021 10:51:32 -0700 References: To: FreeBSD Toolchain , FreeBSD ports In-Reply-To: Message-Id: <01DB1415-575E-46FA-B421-30AD3190A9F7@yahoo.com> X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Rspamd-Queue-Id: 4FH5Kn30Cnz3Cdq X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.65.147:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[98.137.65.147:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.147:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.147:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-toolchain] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2021 17:51:42 -0000 On 2021-Apr-8, at 10:46, Mark Millard wrote: > Building devel/llvm10 via poudriere-devel on a Cortex-A57 > system (OverDrive 1000), I ended up with just: >=20 > # /usr/local/llvm10/bin/llc -version > LLVM (http://llvm.org/): > LLVM version 10.0.1 > Optimized build. > Default target: aarch64-portbld-freebsd14.0 > Host CPU: (unknown) >=20 > Registered Targets: > amdgcn - AMD GCN GPUs > r600 - AMD GPUs HD2XXX-HD6XXX >=20 > from a context that has: >=20 > # grep -r BE /usr/local/etc/poudriere.d/options/devel_llvm10/ > = /usr/local/etc/poudriere.d/options/devel_llvm10/options:_FILE_COMPLETE_OPT= IONS_LIST=3DBE_AMDGPU CLANG DOCS EXTRAS LIT LLD LLDB LLD_LINK OPENMP = PYCLANG BE_FREEBSD BE_NATIVE BE_STANDARD > = /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_SET+=3D= BE_AMDGPU > = /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_UNSET= +=3DBE_FREEBSD > = /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_SET+=3D= BE_NATIVE > = /usr/local/etc/poudriere.d/options/devel_llvm10/options:OPTIONS_FILE_UNSET= +=3DBE_STANDARD >=20 > (I've used the combination in various llvm*'s for years, > including using such for llvm10. Something has changed.) >=20 > I'll not repeat the material here but llvm11 got the same > sort of result. >=20 > May be that "Host CPU: (unknown)" has something to do with > it? >=20 > This has been true since I built and installed back on > 2021-Feb-11 and is true of my updating build started > yesterday (bulk still in progress). LLVM10 pkg info > from active install: >=20 > # pkg info llvm10 > llvm10-10.0.1_5 > Name : llvm10 > Version : 10.0.1_5 > Installed on : Thu Feb 11 12:05:43 2021 PST > Origin : devel/llvm10 > Architecture : FreeBSD:14:aarch64 > Prefix : /usr/local > Categories : devel lang > Licenses : MIT, BSD3CLAUSE, PD, LLVM, REGEX, LLVM2 > Maintainer : brooks@FreeBSD.org > WWW : http://llvm.org/ > Comment : LLVM and Clang > Options : > BE_AMDGPU : on > BE_FREEBSD : off > BE_NATIVE : on > BE_STANDARD : off > CLANG : on > DOCS : on > EXTRAS : on > LIT : on > LLD : on > LLDB : on > LLD_LINK : on > OPENMP : on > PYCLANG : off > Shared Libs required: > libedit.so.0 > liblua-5.2.so > libpython3.7m.so.1.0 > libxml2.so.2 > Shared Libs provided: > libRemarks.so.10 > libarcher.so > libclang-cpp.so.10 > liblldb.so.10 > libLTO.so.10 > libLLVM-10.so > libomptarget.so > libomp.so > libclang.so.10 > Annotations : > FreeBSD_version: 1400004 > repo_type : binary > repository : custom > Flat size : 509MiB > Description : > The LLVM Project is a collection of modular and reusable compiler and > toolchain technologies. >=20 > This port includes Clang (a C/C++/Objective-C compiler), LLD (a = linker), > LLDB (a debugger), an OpenMP runtime library, and the LLVM = infrastructure > these are built on. >=20 > WWW: http://llvm.org/ >=20 >=20 > (So the above predates the git conversion.) >=20 > The issue was first noticed via build failures like (from a > log file): >=20 > . . . > Sanity testing C compiler: /usr/local/bin/clang10 > Is cross compiler: False. > Sanity check compiler command line: /usr/local/bin/clang10 = /wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-20.2.3/_build/meson-privat= e/sanitycheckc.c -o = /wrkdirs/usr/ports/graphics/mesa-libs/work/mesa-20.2.3/_build/meson-privat= e/sanitycheckc.exe -O2 -pipe -mcpu=3Dcortex-a57 -g = -fstack-protector-strong -fno-strict-aliasing -mcpu=3Dcortex-a57 -pipe = -D_FILE_OFFSET_BITS=3D64 -Wl,-rpath=3D/usr/local/llvm10/lib > Sanity check compile stdout: >=20 > ----- > Sanity check compile stderr: > error: unable to create target: 'No available targets are compatible = with triple "aarch64-portbld-freebsd14.0"' > 1 error generated. > . . . >=20 >=20 > The FreeBSD is a non-debug build based on main 7381bbee29df: >=20 > # ~/fbsd-based-on-what-freebsd-main.sh=20 > FreeBSD FBSDCA57 14.0-CURRENT FreeBSD 14.0-CURRENT = mm-src-n245445-def0058cc690 GENERIC-NODBG arm64 aarch64 1400005 1400005 > def0058cc690 (HEAD -> mm-src) mm-src snapshot for mm's patched build = in git context. > merge-base: 7381bbee29df959e88ec59866cf2878263e7f3b2 > merge-base: CommitDate: 2021-03-12 20:29:42 +0000 > 7381bbee29df (freebsd/main, freebsd/HEAD, pure-src, main) cam: Run all = XPT_ASYNC ccbs in a dedicated thread > n245444 (--first-parent --count for merge-base) Using OPTIONS_FILE_SET+=3DBE_STANDARD instead of OPTIONS_FILE_SET+=3DBE_NATIVE did not have this problem. (I've not tried BE_FREEBSD so far.) Also, my Cortex-A7 (so: armv7) context did not have the "amdgcn/r600 only" problem with OPTIONS_FILE_SET+=3DBE_NATIVE : # /usr/local/llvm10/bin/llc -version LLVM (http://llvm.org/): LLVM version 10.0.1 Optimized build. Default target: armv7-portbld-freebsd14.0-gnueabihf Host CPU: (unknown) Registered Targets: amdgcn - AMD GCN GPUs arm - ARM armeb - ARM (big endian) r600 - AMD GPUs HD2XXX-HD6XXX thumb - Thumb thumbeb - Thumb (big endian) # pkg info llvm10 llvm10-10.0.1_5 Name : llvm10 Version : 10.0.1_5 Installed on : Fri Feb 12 11:59:11 2021 PST Origin : devel/llvm10 Architecture : FreeBSD:14:armv7 Prefix : /usr/local Categories : devel lang Licenses : MIT, BSD3CLAUSE, PD, REGEX, LLVM2, LLVM Maintainer : brooks@FreeBSD.org WWW : http://llvm.org/ Comment : LLVM and Clang Options : BE_AMDGPU : on BE_FREEBSD : off BE_NATIVE : on BE_STANDARD : off CLANG : on DOCS : on EXTRAS : on LIT : on LLD : on LLDB : on LLD_LINK : on PYCLANG : off Shared Libs required: libedit.so.0 liblua-5.2.so libpython3.7m.so.1.0 libxml2.so.2 Shared Libs provided: libLTO.so.10 libRemarks.so.10 libLLVM-10.so libclang-cpp.so.10 liblldb.so.10 libclang.so.10 Annotations : FreeBSD_version: 1400004 repo_type : binary repository : custom Flat size : 511MiB Description : The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This port includes Clang (a C/C++/Objective-C compiler), LLD (a linker), LLDB (a debugger), an OpenMP runtime library, and the LLVM = infrastructure these are built on. WWW: http://llvm.org/ So somehow specific to Cortex-A57/Cortex-A72 or to aarch64 generally. (The MACCHIATObin Double Shot had the same build problem as the OverDrive 1000.) It might be appropriate to disable the BE_NATIVE option for aarch64 if it is going to silently not produce aarch64 support. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)