From owner-freebsd-toolchain@freebsd.org Sun Aug 16 21:00:46 2020 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 4CCED3C629C for ; Sun, 16 Aug 2020 21:00:46 +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 4BV8ht1802z3YVQ for ; Sun, 16 Aug 2020 21:00:46 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 271113C60CD; Sun, 16 Aug 2020 21:00:46 +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 26D083C6052 for ; Sun, 16 Aug 2020 21:00:46 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BV8ht0D2jz3YmV for ; Sun, 16 Aug 2020 21:00:46 +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 DEAA315CE0 for ; Sun, 16 Aug 2020 21:00:45 +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 07GL0jmV094185 for ; Sun, 16 Aug 2020 21:00:45 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07GL0jhw094184 for toolchain@FreeBSD.org; Sun, 16 Aug 2020 21:00:45 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202008162100.07GL0jhw094184@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, 16 Aug 2020 21:00:45 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 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, 16 Aug 2020 21:00:46 -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 Mon Aug 17 06:50:37 2020 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 1C5A03A8F89 for ; Mon, 17 Aug 2020 06:50:37 +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 4BVPnT00Vnz4HV1 for ; Mon, 17 Aug 2020 06:50:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id F3E983A8F88; Mon, 17 Aug 2020 06:50:36 +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 F28F53A8DD4 for ; Mon, 17 Aug 2020 06:50:36 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BVPnS6D5Fz4HV0 for ; Mon, 17 Aug 2020 06:50:36 +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 B4EA11CCEB for ; Mon, 17 Aug 2020 06:50:36 +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 07H6oaq0047240 for ; Mon, 17 Aug 2020 06:50:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07H6oaW2047239 for toolchain@FreeBSD.org; Mon, 17 Aug 2020 06:50:36 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 240495] emulators/rpcs3: 0.0.6.8549 or later crash on FreeBSD 11.* Date: Mon, 17 Aug 2020 06:50:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jbeich@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords resolution bug_status assigned_to 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.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2020 06:50:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240495 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-qa | Resolution|--- |FIXED Status|New |Closed Assignee|ports-bugs@FreeBSD.org |jbeich@FreeBSD.org --- Comment #4 from Mark Linimon --- Worked around by r533725 May 3 01:19:53 UTC 2020. ^Triage: assign to committer that resolved. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Tue Aug 18 04:42:55 2020 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 B0C2C3ADDC8 for ; Tue, 18 Aug 2020 04:42:55 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-23.consmr.mail.gq1.yahoo.com (sonic304-23.consmr.mail.gq1.yahoo.com [98.137.68.204]) (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 4BVyvf3N6Zz4j0h for ; Tue, 18 Aug 2020 04:42:54 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: i9qatKIVM1msp9JqfB6uriQXXIUIqzx4wboKZkLdmv0XBiuJmH62hvKrfLAK5mj 8eHiYNuSbN9PLq1BSLc9JesGY4F6nBkIv63fhJsC4rbxAHbgoBs2F_0kyT_yD_QQOj.tGQokki2v Ywr_wXFHa.62w.7AOEHwHX8TvXPQ2VueixBEtyVwzZq7peTV7s7NhuT_d3dSaoxzH4zyWCVCftDq GcwOTZh6aFZBWKLL.gPcHo9ATE96gxy5cKXkDKtbQM.ZAcAuz.2ohqYuuxGiahh71lOINzCmWQEa IVc_8PPfFL1.hZrOuNOz.SzJymFot3M0EDpbCBzc83822LC710bXAfp0Bz7W9ycBtc2UxElwdlOL 3NO8Ye5aePI58tC4HSjGsUhKhNS_EznIkLSy0_XiCIS03fgv807iiD1kAFwT7zYxPaXaUneQzn8J pcT3fwGPlHNkDua2lJb69zm494SPKiF3JJA8N5zSL0GTDM0sbmKjwiBbkeH_tShp2zlJ2utGKV_Q MKLi1gFYHwF3KicXwXc_p.XsUu8p_78jKg3JkJZV6eLAHpOH0bu4ZIReQ94q2dJaVyHMfrOOEX4r KMScUhWZrAr_QGA_7IgV3ye.YfsBcfVg3ih3o1EYTjYtszyRW46mbFHMIhTBWtNRbTrTJ.S6XBK2 jhjc5Br61Ds5SvTu4BogrCu.svr.PON_3zddJ8dybpOHCnDkTi_VUwryLOo4RNvMJeRcV_wEpcgl eF91Gp8sEDUiBUxdW3T4sQT0MF68SW07BBsYmf7IQZr0NGTV0XZEgSe2eu6DyHu5gNPfPQtHuOHU Ek7B2tLY26iEl1nGIuE46L5iEuh1JMiplx.f6q4lmEsrczwUBOEQ20i5ssPeGBA61FjqC1httw1V bTcDMwuO2Lccm4QEgMvmsnODJY6ZnZCmuOC4phqy7zI.YmUwXm9RE.pqvsrsW_ZuknZqBAcHMtPk g79UAMjkK2YFYcEmVMfBo6lCsXUq8J3vWRRQiTKUh.CJJM6_W_2eIDozSNktUTh1nJg9.sdJ1hCW kTXF6JI7nR2RTiyQMqBs4hXVPedMXiNqENTY0LNdkiyiy7LYRUtmkFnSERqKgNHy0re_Xacazw99 E3zd8YsUZ.sm62s32f2Eh4137c8gA6TMl.D1uuPNtBu7eAiGwes8qTYKTJrsNTRixuPmTl7aBQMK ffhchPhYQjGQHznOOAccGpEvynABVu.bDt.os4m_dP0GJUdLyzEw8OqGoZOzVofw0ulIexCq2NAv 4ZFvDeomdxB68KOBBt4vEmrRpzsYjeMBq7rtYz2y4RZZU3XwiFNxFgZ9VQyDr6y23zrIGArxbOo9 6uPdAqWipC85nobHJb7iqdxz0cQGhtlO_fab.shEonFS0ZDcTfQrXKloRj.Sq0dnp5C4voGPCwAQ ImAfXaVWd4U4mMZEv7lBUbFbrm0AJGte9ZpM7xIWMqY_oUwVg31YrQJoNmTUHbx8AJuSQ0Qm_j71 vi1.ULMDmFr4RafzaBEhFJJll_ac- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Tue, 18 Aug 2020 04:42:52 +0000 Received: by smtp421.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 61024815e016ada32ed3a8b144d8a283; Tue, 18 Aug 2020 04:42:50 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: CPU_FFS, its ffsl use, and the need for including if using "ISO" compiler modes Message-Id: <5C4EB8F3-F184-4FC0-82CD-4A0B8CFCAF9D@yahoo.com> Date: Mon, 17 Aug 2020 21:42:49 -0700 To: FreeBSD Current , FreeBSD Toolchain X-Mailer: Apple Mail (2.3608.120.23.2.1) References: <5C4EB8F3-F184-4FC0-82CD-4A0B8CFCAF9D.ref@yahoo.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1597725775; 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: references:references:dkim-signature; bh=9ombrryWbh9/52rLI5hXm6gsymlyrhbwdizZ4LNevd0=; b=Ss758tNsbwxY8mevwpj3EV2CuPLL8h44V1s5nA8jiBrMc3P96esnDmg0trf1/gr4BfNPyM JJ+uLGArs0tKbdbCY1YK02GDmoAT42vIcs6iKjSxaLq9hG1264wuVdVoGcya1i5W/dBI+U bNTiCoHbtwOwDWKuunJshM9eI2T8ryxSQQG3tRfuGbAquYIbKjgIp1vN4dJhOmfMYLp1TC nfPWK3IxrUHOHlDeYl6gpGI3z+EhYE8IjG3jhkqE97FBnsdWkQnJBoJNo+ncLc2WRNeeWa aSoNGVx5+/oacUkOSpp+XAuDvn0j0zzotoaaQvteTBycjZ+dKziso1GimgilWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1597725775; a=rsa-sha256; cv=none; b=aMMGSP+uc0L6IQwjsI9J8mfVIU2e3Zu7xuMXxf4ABh0rBzRhz1lZtjLfTkkNoDCSyrm7y4 qhTOo/ru8vCX8AgvjwIrL8+1Ls0SdNks1GDy5tlbQbU7jM6xj6wVqGnJ5mjwuOI96X4qeg SodvQ5KWaJr8WmxK7v6mMNv12sfCPm6Kh2BlDRjYuL2SOI+w9nHPjWnJoWt8SzyRkpnRxp tw3dcigOyIn7NRBedgF78MpArT+DHxlc25tHN7hQB9+u8hymT145W5XcE5XvzMXyQbTl6h JrtjoJjDk6b02AP6maH4ycIajiBwvFWo324i7QfhfXTicJ4ONp0xDc0CSCaSgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=A+0a76ky; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.204 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Rspamd-Queue-Id: 4BVyvf3N6Zz4j0h X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.21 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; ARC_SIGNED(0.00)[i=1]; 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(-0.74)[-0.744]; 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/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.983]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.986]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.204:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.204:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 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, 18 Aug 2020 04:42:55 -0000 In a aarch64 head -r363590 context with g++9 from ports in use (so ffsl is only compiler-defined outside strict ISO modes) . . . I got a compile failure for using CPU_FFS because ffsl "was not declared". My code was being compiled via -std=c++17 . (Other than enabling one feature, it is not system specific code overall.) Well, it turns out that /usr/include/sys/bitset.h is indirectly used by /usr/include/sys/cpuset.h and bitset.h has use of ffsl in BIT_FFS but bitset.h does nothing to cause use of a: #include to pick up the FreeBSD's libc declaration of the ffsl routine. (There are other "bit string" routines with similar issues.) Nor does "man 2 cpuset" or /usr/include/sys/cpuset.h or /usr/include/sys/bitset.h explicitly suggest the potential need for including to declare things used by the header files that are mentioned in those places. I'll note that g++10 did not object before this change. But I had reason to also build using g++9 . [Compiling the -updated code with g++10 did not complain. Nor did linking the results complain.] Note: The c++17 code involved is not part of a FreeBSD port. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Wed Aug 19 18:16:10 2020 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 6B32B3C6755 for ; Wed, 19 Aug 2020 18:16:10 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BWwvZ1Z3Pz4PDW for ; Wed, 19 Aug 2020 18:16:10 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 33D2D3C6754; Wed, 19 Aug 2020 18:16:10 +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 3285F3C6948 for ; Wed, 19 Aug 2020 18:16:10 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BWwvY33dwz4P36 for ; Wed, 19 Aug 2020 18:16:09 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f173.google.com with SMTP id g6so26385301ljn.11 for ; Wed, 19 Aug 2020 11:16:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=C3t3DCjQaDv2jmhBk0Q40PQ20zZZ462lelp5sC+McJ4=; b=UR6Z8dX3+q1jMlCO4JiXhEFcueZQqsFAAVFD0XFUNWopzghS7ddh/lcKquo4t/rwrM qeHpDvTpQaYH01g0UL/ZLmeM2eLzkAbNv73fPcDpyKTY4y0a5S3MMcXvGq02RH4FECPW reZ56kWhrIQoOI4d+AKbfLUC8hts6no0gvA3c2VI4hViGsFR+gYQ5dgUiJfz84SJySTR MrqAjTDRlkpi5RI6Fex6Laek3fdvHnC/UY5PIItUdyhk6oHPP/HVhT2LbjD08aKmgU8d r18AllNTq5E6laXPcVSCaPpK8c8um0E9NRq3jlqV6iodAcdSwyWRFk0nDnpb/SPuSe8W 4pFQ== X-Gm-Message-State: AOAM530tgO7lXCqU5Ffk1q+S/V8f4L3Sb9YPy9e4KloOu9lSXTU1/MAm cPBeMCd4jOjCPGmIvT4ZDiXCY4mGBGjNRQ== X-Google-Smtp-Source: ABdhPJx/lYy7kyUd4HrqQ1HschrWal/5HIUCKqGmSWQ+UnkjTwPnQI6w9DGRXa2CjwQiJEDfEDOCRQ== X-Received: by 2002:a2e:85d1:: with SMTP id h17mr11760637ljj.341.1597860967502; Wed, 19 Aug 2020 11:16:07 -0700 (PDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id s4sm7443356lfc.56.2020.08.19.11.16.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Aug 2020 11:16:07 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id m22so26408530ljj.5 for ; Wed, 19 Aug 2020 11:16:07 -0700 (PDT) X-Received: by 2002:a2e:b0db:: with SMTP id g27mr13670521ljl.69.1597860966718; Wed, 19 Aug 2020 11:16:06 -0700 (PDT) MIME-Version: 1.0 From: Gleb Popov Date: Wed, 19 Aug 2020 22:15:41 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Undefined reference to __bswapsi2/__bswapdi2 To: toolchain@freebsd.org X-Rspamd-Queue-Id: 4BWwvY33dwz4P36 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.208.173 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-0.47 / 15.00]; ARC_NA(0.00)[]; MAILMAN_DEST(0.00)[toolchain]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[toolchain@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_SHORT(-0.47)[-0.473]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.173:from]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; DMARC_NA(0.00)[freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.173:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2020 18:16:10 -0000 Hi toolchain@ I'm building the latest GHC on 12.1-RELEASE i386 and having almost the same problem as with atomic functions. This time the error is d: error: undefined symbol: __bswapsi2 >>> referenced by TTY.c >>> RTS.thr_p_o:(rtsSyms) in archive /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.a ld: error: undefined symbol: __bswapdi2 >>> referenced by TTY.c >>> RTS.thr_p_o:(rtsSyms) in archive /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.a What's wrong with that? These functions seem to be present in our compiler-rt. From owner-freebsd-toolchain@freebsd.org Thu Aug 20 17:53:04 2020 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 C89C23C4930 for ; Thu, 20 Aug 2020 17:53:04 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BXXLS4CYZz3WRR for ; Thu, 20 Aug 2020 17:53:04 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 9004E3C4763; Thu, 20 Aug 2020 17:53:04 +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 8FC013C4C89 for ; Thu, 20 Aug 2020 17:53:04 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXXLR5d3hz3WRG for ; Thu, 20 Aug 2020 17:53:03 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f177.google.com with SMTP id g6so3037034ljn.11 for ; Thu, 20 Aug 2020 10:53:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=BQUklBasloRq4s5xrp618X0bkcbleQF00meaqaR6Rn0=; b=tjkwFjHHsmGVRhsfjP6vRX8JIn8KnhXWteNp5s1SX0u8YPuONiW0iDXp/mW1Sec9Ft YeDI/lLjTmQvicfhXl1bm+ONoWUK7T/P0itTB40gtRRP2UkCTig6AZ9Qohe8+S+cv+/D xCAUZREIQAaxngfDn8xvaW8a1F3LH5W4UBfp3hUVmj3Xx908vOa/SkUXXTciWOyRVvWz gGxNTN+ZL8aAZ016owrLeIe2Z9Gj4NC/zyhm5S7wMifCgbwStg3dNHjfZiPC74UzA9ao lt37g4/ebBz8uaZSQhgHeY4f/Totz1IU/43q19RmQJEhTZ0Qms5WhmVq8+IFd84Hk/n4 FjlQ== X-Gm-Message-State: AOAM532XsPIwHxryngY3m2qqYgIpADMdxctZOdp0HfcUX3iYsCyIfyO6 a43L+R3+F6uKZzxB1ZoSjhPLvHMmyWodYw== X-Google-Smtp-Source: ABdhPJzfp3fxvRsop1Yf3Bf8fLJwCnNeq1AZi59l3N16ctfcNwUVJ9XgOka+JPG8YQe/raNKMYbpPA== X-Received: by 2002:a2e:b009:: with SMTP id y9mr1957153ljk.119.1597945981693; Thu, 20 Aug 2020 10:53:01 -0700 (PDT) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com. [209.85.167.54]) by smtp.gmail.com with ESMTPSA id b81sm633197lfg.60.2020.08.20.10.53.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Aug 2020 10:53:01 -0700 (PDT) Received: by mail-lf1-f54.google.com with SMTP id r25so1384652lfe.5 for ; Thu, 20 Aug 2020 10:53:01 -0700 (PDT) X-Received: by 2002:ac2:5963:: with SMTP id h3mr1326997lfp.201.1597945980994; Thu, 20 Aug 2020 10:53:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Gleb Popov Date: Thu, 20 Aug 2020 21:52:35 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Undefined reference to __bswapsi2/__bswapdi2 To: toolchain@freebsd.org X-Rspamd-Queue-Id: 4BXXLR5d3hz3WRG X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.208.177 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [0.06 / 15.00]; ARC_NA(0.00)[]; MAILMAN_DEST(0.00)[toolchain]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[toolchain@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_SPAM_SHORT(0.06)[0.058]; RCVD_IN_DNSWL_NONE(0.00)[209.85.208.177:from]; NEURAL_HAM_MEDIUM(-0.00)[-0.002]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; DMARC_NA(0.00)[freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.208.177:from]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DOM_EQ_FROM_DOM(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 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, 20 Aug 2020 17:53:04 -0000 On Wed, Aug 19, 2020 at 10:15 PM Gleb Popov wrote: > Hi toolchain@ > > I'm building the latest GHC on 12.1-RELEASE i386 and having almost the > same problem as with atomic functions. This time the error is > > d: error: undefined symbol: __bswapsi2 > >>> referenced by TTY.c > >>> RTS.thr_p_o:(rtsSyms) in archive > /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.a > > ld: error: undefined symbol: __bswapdi2 > >>> referenced by TTY.c > >>> RTS.thr_p_o:(rtsSyms) in archive > /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.a > > What's wrong with that? These functions seem to be present in our > compiler-rt. > Reading /usr/src/lib/libcompiler_rt/Makefile.inc, it seems that we don't compile these functions. What's the reason for this? From owner-freebsd-toolchain@freebsd.org Thu Aug 20 19:53:15 2020 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 1132D3C753A for ; Thu, 20 Aug 2020 19:53:15 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BXb166lrHz3fyt for ; Thu, 20 Aug 2020 19:53:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id E7AD03C7423; Thu, 20 Aug 2020 19:53:14 +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 E76D13C7538 for ; Thu, 20 Aug 2020 19:53:14 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXb165rGpz3fng; Thu, 20 Aug 2020 19:53:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 897BF22ED3; Thu, 20 Aug 2020 19:53:14 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::459d:4fb7:46d4:19b1] (unknown [IPv6:2001:470:7a58:0:459d:4fb7:46d4:19b1]) (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 D90CB6398C; Thu, 20 Aug 2020 21:53:11 +0200 (CEST) From: Dimitry Andric Message-Id: <4616D1DE-55B4-43AA-B8D9-A3C0513C9BC1@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_63982B89-1BCA-4B48-9617-A82EB06C6569"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.15\)) Subject: Re: Undefined reference to __bswapsi2/__bswapdi2 Date: Thu, 20 Aug 2020 21:53:02 +0200 In-Reply-To: Cc: toolchain@freebsd.org To: Gleb Popov References: X-Mailer: Apple Mail (2.3445.104.15) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 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, 20 Aug 2020 19:53:15 -0000 --Apple-Mail=_63982B89-1BCA-4B48-9617-A82EB06C6569 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 20 Aug 2020, at 19:52, Gleb Popov wrote: >=20 > On Wed, Aug 19, 2020 at 10:15 PM Gleb Popov = wrote: >=20 >> Hi toolchain@ >>=20 >> I'm building the latest GHC on 12.1-RELEASE i386 and having almost = the >> same problem as with atomic functions. This time the error is >>=20 >> d: error: undefined symbol: __bswapsi2 >>>>> referenced by TTY.c >>>>> RTS.thr_p_o:(rtsSyms) in archive >> = /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.= a >>=20 >> ld: error: undefined symbol: __bswapdi2 >>>>> referenced by TTY.c >>>>> RTS.thr_p_o:(rtsSyms) in archive >> = /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.= a >>=20 >> What's wrong with that? These functions seem to be present in our >> compiler-rt. >>=20 >=20 > Reading /usr/src/lib/libcompiler_rt/Makefile.inc, it seems that we = don't > compile these functions. What's the reason for this? I'm not aware of any particular reason, except that nobody seems to have run into this omission before. It looks like on x86, compilers usually just emit bswap instructions instead of libcalls for these situations. Apparently we have historically only added bswapdi and bswapsi for arm, mips and riscv. -Dimitry --Apple-Mail=_63982B89-1BCA-4B48-9617-A82EB06C6569 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXz7UngAKCRCwXqMKLiCW owIqAKDUepZKmj4GIXLSb0uvGlEbUqL+EQCgulf0I6BmTbcrAWydumj/23oS56o= =qlMy -----END PGP SIGNATURE----- --Apple-Mail=_63982B89-1BCA-4B48-9617-A82EB06C6569-- From owner-freebsd-toolchain@freebsd.org Fri Aug 21 01:53:39 2020 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 AFE5C3AF8E3 for ; Fri, 21 Aug 2020 01:53:39 +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 4BXl0z4GhGz4JZ8 for ; Fri, 21 Aug 2020 01:53:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 92A283AFEA7; Fri, 21 Aug 2020 01:53:39 +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 926B93AFD23 for ; Fri, 21 Aug 2020 01:53:39 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXl0z3Rggz4JZ7 for ; Fri, 21 Aug 2020 01:53:39 +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 59BEA1DF16 for ; Fri, 21 Aug 2020 01:53:39 +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 07L1rdlN025512 for ; Fri, 21 Aug 2020 01:53:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07L1rd48025511 for toolchain@FreeBSD.org; Fri, 21 Aug 2020 01:53:39 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: Fri, 21 Aug 2020 01:53:39 +0000 X-Bugzilla-Reason: AssignedTo 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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to 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.33 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, 21 Aug 2020 01:53:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248745 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |toolchain@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Aug 21 04:32:15 2020 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 5A01D3B2C75 for ; Fri, 21 Aug 2020 04:32:15 +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 4BXpWz1kycz4Qbm for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3BA943B2B96; Fri, 21 Aug 2020 04:32:15 +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 3B7013B2A69 for ; Fri, 21 Aug 2020 04:32:15 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXpWz0rj0z4QLw for ; Fri, 21 Aug 2020 04:32:15 +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 00A5B1FC2F for ; Fri, 21 Aug 2020 04:32:15 +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 07L4WEbZ010288 for ; Fri, 21 Aug 2020 04:32:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07L4WELB010287 for toolchain@FreeBSD.org; Fri, 21 Aug 2020 04:32:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: maintainer-feedback requested: [Bug 248795] std::random_shuffle broken with LLVM11 Date: Fri, 21 Aug 2020 04:32:14 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: 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.33 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, 21 Aug 2020 04:32:15 -0000 Tobias Kortkamp has asked freebsd-toolchain (Nobody) for maintainer-feedback: Bug 248795: std::random_shuffle broken with LLVM11 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248795 --- Description --- The following example no longer compiles after the LLVM11 import. This affects a number of ports like x11/workrave, www/newsboat, japanese/zinnia, ... I can patch them to use shuffle instead, but even though random_shuffle is deprecated it should still work, right? $ cat foo.cc #include #include int main() { std::vector v =3D {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; std::random_shuffle(v.begin(), v.end()); } $ c++ foo.cc foo.cc:7:10: warning: 'random_shuffle>' is deprecated [-Wdeprecated-declarations] std::random_shuffle(v.begin(), v.end()); ^ /usr/include/c++/v1/algorithm:3095:1: note: 'random_shuffle>' has been explicitly marked deprecated here _LIBCPP_DEPRECATED_IN_CXX14 void ^ /usr/include/c++/v1/__config:991:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX14' # define _LIBCPP_DEPRECATED_IN_CXX14 _LIBCPP_DEPRECATED ^ /usr/include/c++/v1/__config:974:48: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__ ((deprecated)) ^ 1 warning generated. ld: error: undefined symbol: std::__1::__rs_get() >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(void std::__1::random_shuffle >(std::__1::__wrap_iter, std::__1::__wrap_iter)) ld: error: undefined symbol: std::__1::__rs_default::~__rs_default() >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(void std::__1::random_shuffle >(std::__1::__wrap_iter, std::__1::__wrap_iter)) >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(void std::__1::random_shuffle >(std::__1::__wrap_iter, std::__1::__wrap_iter)) ld: error: undefined symbol: std::__1::__rs_default::operator()() >>> referenced by foo.cc >>>=09=09=20 /tmp/foo-6a4153.o:(std::__1::__independent_bits_engine::__eval(std::__1::integral_constant)) >>> referenced by foo.cc >>>=09=09=20 /tmp/foo-6a4153.o:(std::__1::__independent_bits_engine::__eval(std::__1::integral_constant)) c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) From owner-freebsd-toolchain@freebsd.org Fri Aug 21 04:32:15 2020 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 8BD4B3B2C84 for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BXpWz3D0lz4QSj for ; Fri, 21 Aug 2020 04:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6E7FB3B2B97; Fri, 21 Aug 2020 04:32:15 +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 6E4DC3B2999 for ; Fri, 21 Aug 2020 04:32:15 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXpWz2Pc6z4QQM for ; Fri, 21 Aug 2020 04:32:15 +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 329D01FE85 for ; Fri, 21 Aug 2020 04:32:15 +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 07L4WF9e010292 for ; Fri, 21 Aug 2020 04:32:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07L4WFoP010291 for toolchain@FreeBSD.org; Fri, 21 Aug 2020 04:32:15 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 248795] std::random_shuffle broken with LLVM11 Date: Fri, 21 Aug 2020 04:32:14 +0000 X-Bugzilla-Reason: CC 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: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tobik@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: 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.33 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, 21 Aug 2020 04:32:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248795 Bug ID: 248795 Summary: std::random_shuffle broken with LLVM11 Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: regression Severity: Affects Only Me Priority: --- Component: bin Assignee: toolchain@FreeBSD.org Reporter: tobik@freebsd.org CC: toolchain@FreeBSD.org Flags: maintainer-feedback?(toolchain@FreeBSD.org) CC: toolchain@FreeBSD.org The following example no longer compiles after the LLVM11 import. This affects a number of ports like x11/workrave, www/newsboat, japanese/zinnia, ... I can patch them to use shuffle instead, but even though random_shuffle is deprecated it should still work, right? $ cat foo.cc #include #include int main() { std::vector v =3D {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; std::random_shuffle(v.begin(), v.end()); } $ c++ foo.cc foo.cc:7:10: warning: 'random_shuffle>' is deprecated [-Wdeprecated-declarations] std::random_shuffle(v.begin(), v.end()); ^ /usr/include/c++/v1/algorithm:3095:1: note: 'random_shuffle>' has been explicitly marked deprecated here _LIBCPP_DEPRECATED_IN_CXX14 void ^ /usr/include/c++/v1/__config:991:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX14' # define _LIBCPP_DEPRECATED_IN_CXX14 _LIBCPP_DEPRECATED ^ /usr/include/c++/v1/__config:974:48: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__ ((deprecated)) ^ 1 warning generated. ld: error: undefined symbol: std::__1::__rs_get() >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(void std::__1::random_shuffle >(std::__1::__wrap_iter, std::__1::__wrap_iter)) ld: error: undefined symbol: std::__1::__rs_default::~__rs_default() >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(void std::__1::random_shuffle >(std::__1::__wrap_iter, std::__1::__wrap_iter)) >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(void std::__1::random_shuffle >(std::__1::__wrap_iter, std::__1::__wrap_iter)) ld: error: undefined symbol: std::__1::__rs_default::operator()() >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(std::__1::__independent_bits_engine::__eval(std::__1::integral_constant)) >>> referenced by foo.cc >>> /tmp/foo-6a4153.o:(std::__1::__independent_bits_engine::__eval(std::__1::integral_constant)) c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Aug 21 10:55:04 2020 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 8B3813BA599 for ; Fri, 21 Aug 2020 10:55:04 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BXz1h2RzLz3WxQ for ; Fri, 21 Aug 2020 10:55:04 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 540613BA607; Fri, 21 Aug 2020 10:55:04 +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 53CBD3BA598 for ; Fri, 21 Aug 2020 10:55:04 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BXz1g3pFCz3WxP; Fri, 21 Aug 2020 10:55:03 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f180.google.com with SMTP id 185so1349068ljj.7; Fri, 21 Aug 2020 03:55:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=W+EV3za4B0fKSGFDijvI4UGrLbRaOu15xK2eoMywPcQ=; b=GvDNoNwp6B77NUwKmHhciB40jlPyTziBr26KGqqyfAdtbyG48VPC29eLBF78SLp/wM Lm8/7tfQh4IacD5qT9ykvVgHujbPp4sgjUpGVXtv/2bertzyiZOtoMc/RWVotPd3cbZf z8DdnQOCXG3HTCM+YmjfRi5HmmERIfplsevDGcAuxdkWKRpIr9uZJE7rEHR2zGA+rZCl 9UNgHaMEs2kB/0+tHA9Lf5f2sV2s4zjTx9QspLgW2SvJVrwViQhXwugw2Ow7sKIfOhkY qj0GeTQamLNtytvPQE0lTm08E4jqrapfyWXnhEpnR/nb45eJymbGTSDM/RWJEqYCo3Wm iaiQ== X-Gm-Message-State: AOAM530ojyEBFC7JFJlp5erkwiNuIX4URl7393tdUnqCVA4ZmHnVhJXG QyU1VvyocgMoALMPguYMg6VTwl9HUNj7pw== X-Google-Smtp-Source: ABdhPJxQYiUe/8nYZJxWOnCqWhJlAvY8qmYoJa87DDen9FaLgY4t4OLCTmiaoUsKUZY6gxuyPze5qQ== X-Received: by 2002:a2e:87c1:: with SMTP id v1mr1281756ljj.384.1598007301665; Fri, 21 Aug 2020 03:55:01 -0700 (PDT) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id h26sm313250lfj.20.2020.08.21.03.55.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Aug 2020 03:55:01 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id i19so700553lfj.8; Fri, 21 Aug 2020 03:55:01 -0700 (PDT) X-Received: by 2002:a19:431c:: with SMTP id q28mr1161999lfa.211.1598007301022; Fri, 21 Aug 2020 03:55:01 -0700 (PDT) MIME-Version: 1.0 References: <4616D1DE-55B4-43AA-B8D9-A3C0513C9BC1@FreeBSD.org> In-Reply-To: <4616D1DE-55B4-43AA-B8D9-A3C0513C9BC1@FreeBSD.org> From: Gleb Popov Date: Fri, 21 Aug 2020 14:54:35 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Undefined reference to __bswapsi2/__bswapdi2 To: Dimitry Andric Cc: toolchain@freebsd.org X-Rspamd-Queue-Id: 4BXz1g3pFCz3WxP X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 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, 21 Aug 2020 10:55:04 -0000 On Thu, Aug 20, 2020 at 11:53 PM Dimitry Andric wrote: > On 20 Aug 2020, at 19:52, Gleb Popov wrote: > > > > On Wed, Aug 19, 2020 at 10:15 PM Gleb Popov wrote: > > > >> Hi toolchain@ > >> > >> I'm building the latest GHC on 12.1-RELEASE i386 and having almost the > >> same problem as with atomic functions. This time the error is > >> > >> d: error: undefined symbol: __bswapsi2 > >>>>> referenced by TTY.c > >>>>> RTS.thr_p_o:(rtsSyms) in archive > >> > /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.a > >> > >> ld: error: undefined symbol: __bswapdi2 > >>>>> referenced by TTY.c > >>>>> RTS.thr_p_o:(rtsSyms) in archive > >> > /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.a > >> > >> What's wrong with that? These functions seem to be present in our > >> compiler-rt. > >> > > > > Reading /usr/src/lib/libcompiler_rt/Makefile.inc, it seems that we don't > > compile these functions. What's the reason for this? > > I'm not aware of any particular reason, except that nobody seems to have > run into this omission before. It looks like on x86, compilers usually > just emit bswap instructions instead of libcalls for these situations. > > Apparently we have historically only added bswapdi and bswapsi for arm, > mips and riscv. > > -Dimitry > > I see thanks. I worked my problem around by adding implementations of these functions right into GHC code. From owner-freebsd-toolchain@freebsd.org Fri Aug 21 12:49:42 2020 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 D47F33BCECE for ; Fri, 21 Aug 2020 12:49:42 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BY1Yy5BS9z3d4j for ; Fri, 21 Aug 2020 12:49:42 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B224A3BCDA2; Fri, 21 Aug 2020 12:49:42 +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 B1EBE3BCAD8 for ; Fri, 21 Aug 2020 12:49:42 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay102.isp.belgacom.be (mailrelay102.isp.belgacom.be [195.238.20.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign RSA OV SSL CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BY1Yy05KLz3cns; Fri, 21 Aug 2020 12:49:41 +0000 (UTC) (envelope-from tijl@freebsd.org) IronPort-SDR: RzBdT4dDEYoGRHSpjajKt9RsqDcYrxI8+F5CfXVhJbmRLW5SkSCXts6uryLlaHi7SH54Tm47Ry qpQGH5ZA6Nj4kFDzsQGhqlIqCk5vYlGyHB5L8pOQ3ZfB6jx0DFO5cEIsr0r84TOOybHqVil9n+ Wh0u3sey/GXCnjRFlg77N6sH8MKQfSK00Yy2/F6YS8MCP+zLlOaqVBOJ33WuVjm2sA6LMtL/51 2ct+bYIRfVU1pUGqMwUFaIhSwlZzMOIqVoLJA29HbxZzFCfx1rLb54r63nFQh7v0UkW3GQD22s iHM= X-Belgacom-Dynamic: yes IronPort-PHdr: =?us-ascii?q?9a23=3AGvH5cxXLGAI77m1hI7e3QCgLPsXV8LGtZVwlr6?= =?us-ascii?q?E/grcLSJyIuqrYbRaHt8tkgFKBZ4jH8fUM07OQ7/m+HzVZu93d7jgrS99lb1?= =?us-ascii?q?c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUh?= =?us-ascii?q?rwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrrAjdrNQajZZ8Jqo+xR?= =?us-ascii?q?bEo2ZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PW?= =?us-ascii?q?wt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WS?= =?us-ascii?q?in4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhJxw4DafpybOvl8caPTctwVWW?= =?us-ascii?q?VPU91NVyFDGI6wc5cDA/YfMetesoLzp0EOrRy7BQS0Gu3tzztIjWLo0K091O?= =?us-ascii?q?QhCh/J3Ak6ENIIq3TfsdL4NLsTUeC3yKnF1jXNb+lI1jjj9YXGbx4vreuLXb?= =?us-ascii?q?Jqfsrc0E8iHB7KgVuMs4LqJS+V1vgTvGiB6eptTfyihnA6pw1vvDWiyMchh4?= =?us-ascii?q?nJiI8VxV3J+yt3zYUrKNC8SUN2Y96pHYdNui+aN4Z7Qd0vTn9mtSs1zrALuI?= =?us-ascii?q?C3ciYMxZ86xBDfc+SKfouV7h75SuqcLit0iGhqdb+9nRq+7Eytx+n6W8Kpyl?= =?us-ascii?q?hFtDBFncPJtn0V0hzT7dWIReVl80e63DaPyxjT6uZZIUAojabbK4Auwro3lp?= =?us-ascii?q?cLskTMBCv2mETzjKCIbEUk/fKk6/jmYrXkop+QLZN7igb5MqQ1hMO/BP43Mg?= =?us-ascii?q?4VX2SB/uS8zrLj8VX4QLVMkPI2jrHUvZPHKcgBuKK0DBNZ3pws5hu9FTuqzd?= =?us-ascii?q?AVkH0fIFJAYh2HjozpO1/UIPD/CPeym0iskDZpx/DCJbDhDI/NIWbdn7j6Zr?= =?us-ascii?q?Zy9lRQyA0pzdBQ/55UEK0OIOrvWk/ts9zVFgM5Mwuzw+bjFNp91pkRWWOJAq?= =?us-ascii?q?KCPqPSq0GH6fw0LOmXeYAZojH9K+Iq5/T2l382hUcdfbW13ZsQcH23A/VmI0?= =?us-ascii?q?CCbHrimNcOD3kFsRElTOP3klGCViRTZ3mqVaIm+j47EJ6mDZvERo21mrOBxj?= =?us-ascii?q?27HppYZ29bEV2MH23oeJuaVPgXcyKdP9VtkjseVbiuGMcd0kSBsALwg4JgNu?= =?us-ascii?q?3KsnkRr4jky9Rd6ffemBsp+XpzFcvLgE+XSGQhooQMDxQx27typEV70R/Xza?= =?us-ascii?q?l6h9R2D9FezchlFAAgOsiPnKRBF9nuV1eZLZ+yQ1G8T4D+DA=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CIAACswT9f/8cv8FFfGwEBAQEBAQE?= =?us-ascii?q?BBQEBARIBAQEDAwEBAUAHgTIDAQEBCwEBgwNpAUkVjTiGIIISiGWCJZEQCwE?= =?us-ascii?q?BAQEBAQEBATcEAQGETAKCRSU3Bg4CAwEBAQMCBQEBBgEBAQEBAQUEAYYPRUM?= =?us-ascii?q?BDAGBZiKDGgEFOhwjEAsOCi5XBhOGJ7AbgTSFUoQXgQWBOAGNPIIAg2w1Poo?= =?us-ascii?q?0BJsnmxaCbZoVMKAyLbNugXtNMAiDJFAZDZxoPwMwNwIGCgEBAwmJeocZAQE?= X-IPAS-Result: =?us-ascii?q?A2CIAACswT9f/8cv8FFfGwEBAQEBAQEBBQEBARIBAQEDA?= =?us-ascii?q?wEBAUAHgTIDAQEBCwEBgwNpAUkVjTiGIIISiGWCJZEQCwEBAQEBAQEBATcEA?= =?us-ascii?q?QGETAKCRSU3Bg4CAwEBAQMCBQEBBgEBAQEBAQUEAYYPRUMBDAGBZiKDGgEFO?= =?us-ascii?q?hwjEAsOCi5XBhOGJ7AbgTSFUoQXgQWBOAGNPIIAg2w1Poo0BJsnmxaCbZoVM?= =?us-ascii?q?KAyLbNugXtNMAiDJFAZDZxoPwMwNwIGCgEBAwmJeocZAQE?= Received: from 199.47-240-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.240.47.199]) by relay.skynet.be with ESMTP; 21 Aug 2020 14:49:39 +0200 Received: from localhost (localhost [127.0.0.1]) by kalimero.tijl.coosemans.org (8.16.1/8.16.1) with ESMTP id 07LCnbKH025289; Fri, 21 Aug 2020 14:49:38 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Fri, 21 Aug 2020 14:49:36 +0200 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Gleb Popov Cc: Dimitry Andric , toolchain@freebsd.org Subject: Re: Undefined reference to __bswapsi2/__bswapdi2 Message-ID: <20200821144936.4d5201e2@FreeBSD.org> In-Reply-To: References: <4616D1DE-55B4-43AA-B8D9-A3C0513C9BC1@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BY1Yy05KLz3cns X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; ASN(0.00)[asn:5432, ipnet:195.238.0.0/19, country:BE] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 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, 21 Aug 2020 12:49:42 -0000 On Fri, 21 Aug 2020 14:54:35 +0400 Gleb Popov wrote: > On Thu, Aug 20, 2020 at 11:53 PM Dimitry Andric wrote: >> On 20 Aug 2020, at 19:52, Gleb Popov wrote: >>> On Wed, Aug 19, 2020 at 10:15 PM Gleb Popov wrote: >>>> I'm building the latest GHC on 12.1-RELEASE i386 and having almost the >>>> same problem as with atomic functions. This time the error is >>>> >>>> d: error: undefined symbol: __bswapsi2 >>>> >>> referenced by TTY.c >>>> >>> RTS.thr_p_o:(rtsSyms) in archive >>>> /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.a >>>> >>>> ld: error: undefined symbol: __bswapdi2 >>>> >>> referenced by TTY.c >>>> >>> RTS.thr_p_o:(rtsSyms) in archive >>>> /wrkdirs/usr/ports/lang/ghc/work/ghc-8.10.2/rts/dist/build/libHSrts_thr_p.a >>>> >>>> What's wrong with that? These functions seem to be present in our >>>> compiler-rt. >>>> >>> >>> Reading /usr/src/lib/libcompiler_rt/Makefile.inc, it seems that we don't >>> compile these functions. What's the reason for this? >> >> I'm not aware of any particular reason, except that nobody seems to have >> run into this omission before. It looks like on x86, compilers usually >> just emit bswap instructions instead of libcalls for these situations. >> >> Apparently we have historically only added bswapdi and bswapsi for arm, >> mips and riscv. > > I see thanks. I worked my problem around by adding implementations of these > functions right into GHC code. The bswap instruction was added in the i486 so something very weird is going on that should be investigated instead of simply worked around. From owner-freebsd-toolchain@freebsd.org Fri Aug 21 18:52:31 2020 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 569553C61CA for ; Fri, 21 Aug 2020 18:52:31 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic303-25.consmr.mail.gq1.yahoo.com (sonic303-25.consmr.mail.gq1.yahoo.com [98.137.64.206]) (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 4BY9cZ4HZzz4Ln7 for ; Fri, 21 Aug 2020 18:52:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: m2NweIUVM1l3iplc_QmD7rNw5kH72tPWpCG.DqIQ_IRcfNKuj4y2WQmEQZDfF3G 84fZ1DlzCHGWrU6oe5u21My2pI4gSQvNEWiPfmmqQfQgOiBJ.dtVNHVAS7kWcJ0G2OG8Ntbihb7o mAUi8xDlZDio2uqO7uoEiE7Uc99QmSb.__Uyzwd_T1PmQo89LTZ_L7NeUwT2OQsL8b2xbC25mxw9 f11bZ42YxFm0JmmJiz5Tj8iLnZOrwrDFvVWqct9S6XQArBEswsLrXK87VZanafQYIOXad0Us0hHr zH7527M1PqC1jRbf6rZGtLOP0qlQkzRz1PoVzhNObizieQRM1YQjRraUo6v8o42h34WAImJVHseE W.W2Z4ZVhy0WsHvJr3Zx02fSxtaVvmvPqZiRTBExjR.AhH8JJPjn4L68mBx0Rfybf9OxJ9wPrQkY vYpqyhETvi5IozptupVXl6eHyoC5sCHyxs_bPKjRhc9FTxmKBt92HgzqwlFR7hzDDyRMh_T7KFkO kzzV8oyPnAGXioNRRGsaHE_p4MxOW5GcgFWuKDcATMW3gEo4fNxBWgRQTXeCOvvPyBe6lmBFGUiJ re7_GPBWG5PqkSjqPwBVMJCWZmvka5ySu2B5_8AHDAsYxp1IXogH.562a.L2Gxa4VIr0cOqG2xLr Cf.8IzBP1ZJl1Dm6fPYrdLfbWbLgQahkHhJ2yZv4H3XeRAO1FpzZQkGXpn11y_ezwhqlL1YLG0eL uiKnTq0ORwWAO4qWJvYOKO7DO3Az838JStd3RoOmssTNL9Zq40JegMIRY1emmB6SiHoSywWunhcZ QsUNisajJe6TA_yHiyOKqQIb4nUTH.YjALPEOo9LjQV58VCnD6xPjNIsbbLYyOfB8Qpm5FhDWjRI ABySX6hWy9acwcvwF6vV2E.9JrPM5Sf9hnuU1w5s70RRP3KTdVWlQkmfxIdMiW_eOeflxRlm3AVS kJp6I_pNn6zu1bRbQVjzAdJYkZDi4D7NYQVIP_2dQOR9yq5gy7VAmiIZT9xz55Gbrs6BgzpXTJ1t AZ63WiqqCkBQqJyL7FKC2rNBoMaqjlwHwcyHzMBc49phvpFMSIhfbw2HajcoplCwJEx.oYzcb.0S UlChLO_vR4NBB00lnabFQDTVc6h9S6GdzAWz0Cm3xnUfPpzDPr6dmT.FLb9EIxPAbTkSnO8RtpKP uAdo0t9Bf0bytxiFF8jKYyQAQEueaZHK_e9dFxPFScS5TeeGO_a.o4SkYZCq8tegQqdnDECuBh_j 2yBK.kQnt_zEjhmm4Fa83EWJFdvnJDuEAeCUSsJbxA91iLULhQ48lwKG5XCXecIMFa7XTel1WaJ0 7go01cHLZjBieulKlzOH2IhxvaSF6uOsOKShsH3bmvzzeJ1wLmrpflY0yc78Gp4X_OWTLe09WEPr Pf1sIkMEmwjYJXFck1UvKG9prrwbpp7ENb2nET8GiYI9yLu8wj7rL9js_0loZYJ8KixxCfkxQ1EY JnmzgqjqxcERWYC_FFznoKyfB9PSL.JNdyTzT9a.n_umoi7oWjtys7BVV7tl2hbrmJ2Ad_UNy4At u1g-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Fri, 21 Aug 2020 18:52:29 +0000 Received: by smtp405.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 041dde3f83bda0f19f2ce808289ca7c9; Fri, 21 Aug 2020 18:52:24 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: /usr/lib/libomp.so : is there a reason that aarch64 does not have such by default? Message-Id: <2E4E8340-E4C1-4ED4-9E3D-F249D85D10FF@yahoo.com> Date: Fri, 21 Aug 2020 11:52:23 -0700 Cc: freebsd-arm To: FreeBSD Current , FreeBSD Toolchain X-Mailer: Apple Mail (2.3608.120.23.2.1) References: <2E4E8340-E4C1-4ED4-9E3D-F249D85D10FF.ref@yahoo.com> X-Rspamd-Queue-Id: 4BY9cZ4HZzz4Ln7 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.89 / 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:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.41)[-0.407]; 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]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-0.98)[-0.975]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.01)[-1.012]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.206:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.206:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-toolchain] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 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, 21 Aug 2020 18:52:31 -0000 My context: head ( currently at -r363590 ) man src.conf is explicit that WITHOUT_OPENMP is the default for aarch64 (for example). But I note that https://openmp.llvm.org/README.txt says: (it has the more detailed breakdown of OS/compiler combinations for architectures where it matters) QUOTE Architectures Supported ======================= * IA-32 architecture * Intel(R) 64 architecture * Intel(R) Many Integrated Core Architecture * ARM* architecture * Aarch64 (64-bit ARM) architecture * IBM(R) Power architecture (big endian) * IBM(R) Power architecture (little endian) * MIPS and MIPS64 architectures * RISC-V 64 bit architecture Supported RTL Build Configurations ================================== Supported Architectures: IA-32 architecture, Intel(R) 64, and Intel(R) Many Integrated Core Architecture ---------------------------------------------- | icc/icl | gcc | clang | --------------|---------------|----------------------------| | Linux* OS | Yes(1,5) | Yes(2,4) | Yes(4,6,7) | | FreeBSD* | No | No | Yes(4,6,7,8) | | OS X* | Yes(1,3,4) | No | Yes(4,6,7) | | Windows* OS | Yes(1,4) | No | No | ------------------------------------------------------------ . . . (7) Clang* currently does not offer a software-implemented 128 bit extended precision type. Thus, all entry points reliant on this type are removed from the library and cannot be called in the user program. The following functions are not available: __kmpc_atomic_cmplx16_* __kmpc_atomic_float16_* __kmpc_atomic_*_fp . . . Supported Architectures: IBM(R) Power 7 and Power 8 ----------------------------- | gcc | clang | --------------|------------|--------------| | Linux* OS | Yes(1,2) | Yes(3,4) | ------------------------------------------- . . . ENDQUOTE Nothing stands out for why WITH_OPENMP is in use by default only for amd64, i386, and powerpc64. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Fri Aug 21 21:49:58 2020 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 50B033CB43D for ; Fri, 21 Aug 2020 21:49: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 4BYFYL1TBVz3T0v for ; Fri, 21 Aug 2020 21:49:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 30C5C3CB524; Fri, 21 Aug 2020 21:49: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 2F7763CB619 for ; Fri, 21 Aug 2020 21:49: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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYFYL0Lj5z3Sv6 for ; Fri, 21 Aug 2020 21:49: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 E4918C097 for ; Fri, 21 Aug 2020 21:49:57 +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 07LLnvNi040447 for ; Fri, 21 Aug 2020 21:49:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07LLnvRv040446 for toolchain@FreeBSD.org; Fri, 21 Aug 2020 21:49:57 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 248818] clang11 import breaks WANT_LINKER_VERSION check forcing extra cross-tools to be built Date: Fri, 21 Aug 2020 21:49:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@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 cc Message-ID: 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.33 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, 21 Aug 2020 21:49:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248818 Bug ID: 248818 Summary: clang11 import breaks WANT_LINKER_VERSION check forcing extra cross-tools to be built Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: toolchain@FreeBSD.org Reporter: bz@FreeBSD.org CC: dim@FreeBSD.org, emaste@freebsd.org, jhb-bugs@FreeBSD.org Hi, the clang11 import changed the #defines in Version.inc for lld; see: https://svnweb.freebsd.org/base/head/lib/clang/include/lld/Common/Version.i= nc?r1=3D361410&r2=3D364284 This makes the Makefile.inc1 WANT_LINKER_VERSION check to fail (becomes emp= ty). I don't know if changing the Version.inc back to have the other #defines is= the right solution or to change the check in Makefile.inc1. The latter done as follows does fix the later checks and we do not built cross-tools lib/clang= /* anymore for LLD: Index: Makefile.inc1 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- Makefile.inc1 (revision 364456) +++ Makefile.inc1 (working copy) @@ -264,7 +264,7 @@ _WANT_LINKER_FREEBSD_VERSION!=3D \ WANT_LINKER_FREEBSD_VERSION=3D${_WANT_LINKER_FREEBSD_VERSION:C/.*-(.*)/\1/} WANT_LINKER_VERSION_FILE=3D lib/clang/include/lld/Common/Version.inc WANT_LINKER_VERSION!=3D \ - awk '$$2 =3D=3D "LLD_VERSION" {split($$3, a, "."); print a[1] * 100= 00 + a[2] * 100 + a[3]}' \ + awk '$$2 =3D=3D "LLD_VERSION_STRING" { gsub("\"", "", $$3); split($= $3, a, "."); print a[1] * 10000 + a[2] * 100 + a[3]}' \ ${SRCDIR}/${WANT_LINKER_VERSION_FILE} || echo unknown .else WANT_LINKER_FREEBSD_VERSION_FILE=3D --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Aug 21 22:08:33 2020 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 BC2153CBB87 for ; Fri, 21 Aug 2020 22:08:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BYFyn4fggz3Tc3 for ; Fri, 21 Aug 2020 22:08:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9D36D3CBB05; Fri, 21 Aug 2020 22:08:33 +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 9CFD93CB9A6 for ; Fri, 21 Aug 2020 22:08:33 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYFyn3d2Hz3TkM for ; Fri, 21 Aug 2020 22:08:33 +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 5FC1AC3C4 for ; Fri, 21 Aug 2020 22:08:33 +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 07LM8Xd9059553 for ; Fri, 21 Aug 2020 22:08:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07LM8Xmm059552 for toolchain@FreeBSD.org; Fri, 21 Aug 2020 22:08:33 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 248818] clang11 import breaks WANT_LINKER_VERSION check forcing extra cross-tools to be built Date: Fri, 21 Aug 2020 22:08:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: 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.33 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, 21 Aug 2020 22:08:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248818 --- Comment #1 from Dimitry Andric --- The Version.inc is as generated by upstream's CMake scripts, and they don't= use the LLD_VERSION, LLD_VERSION_MAJOR and LLD_VERSION_MINOR macros anymore. So indeed parsing LLD_VERSION_STRING is probably the best way forward. That will also work for the earlier Version.inc headers. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Aug 21 22:32:52 2020 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 3C0CF3CBF26 for ; Fri, 21 Aug 2020 22:32:52 +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 4BYGVm4G9Wz3VY3 for ; Fri, 21 Aug 2020 22:32:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 210203CBEC1; Fri, 21 Aug 2020 22:32:47 +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 122CE3CC010 for ; Fri, 21 Aug 2020 22:32:47 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYGVj4wXtz3Vbj for ; Fri, 21 Aug 2020 22:32:45 +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 EABADCB0A for ; Fri, 21 Aug 2020 22:32:44 +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 07LMWiXZ089269 for ; Fri, 21 Aug 2020 22:32:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07LMWiRJ089268 for toolchain@FreeBSD.org; Fri, 21 Aug 2020 22:32:44 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 248818] clang11 import breaks WANT_LINKER_VERSION check forcing extra cross-tools to be built Date: Fri, 21 Aug 2020 22:32:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: 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.33 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, 21 Aug 2020 22:32:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248818 --- Comment #2 from commit-hook@FreeBSD.org --- A commit references this bug: Author: bz Date: Fri Aug 21 22:31:46 UTC 2020 New revision: 364466 URL: https://svnweb.freebsd.org/changeset/base/364466 Log: After the clang/llvm version 11 import LLD_VERSION is no longer used upstream so Version.inc now only defines LLD_VERSION_STRING. This breaks the WANT_LINKER_VERSION magic and might lead to us building more than needed (e.g., for croos-tools). Change the awk script to parse LLD_VERSION_STRING instead of LLD_VERSION, which not only unbreaks the current situation but should also be backwards compatible as dim points out. PR: 248818 Reviewed by: emaste, dim (seems right and the way to go) MFC after: 4 weeks X-MFC before: 364284 Changes: head/Makefile.inc1 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Aug 21 22:33:54 2020 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 B1D433CC019 for ; Fri, 21 Aug 2020 22:33:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BYGX24H0Bz3Vvp for ; Fri, 21 Aug 2020 22:33:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 92C823CC283; Fri, 21 Aug 2020 22:33:54 +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 929333CC282 for ; Fri, 21 Aug 2020 22:33:54 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYGX23R94z3W1J for ; Fri, 21 Aug 2020 22:33:54 +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 5964ECAB9 for ; Fri, 21 Aug 2020 22:33: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 07LMXssc090135 for ; Fri, 21 Aug 2020 22:33:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07LMXsSM090134 for toolchain@FreeBSD.org; Fri, 21 Aug 2020 22:33:54 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 248818] clang11 import breaks WANT_LINKER_VERSION check forcing extra cross-tools to be built Date: Fri, 21 Aug 2020 22:33:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bz@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bz@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution cc assigned_to bug_status 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.33 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, 21 Aug 2020 22:33:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248818 Bjoern A. Zeeb changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED CC| |bz@FreeBSD.org Assignee|toolchain@FreeBSD.org |bz@FreeBSD.org Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Aug 22 09:08:05 2020 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 2A76E3B350B; Sat, 22 Aug 2020 09:08:05 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYXbl5Kphz4MZK; Sat, 22 Aug 2020 09:08:03 +0000 (UTC) (envelope-from greg@unrelenting.technology) Date: Sat, 22 Aug 2020 09:07:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unrelenting.technology; s=default; t=1598087275; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mqPwZmjSASNp9BN2RtRE47tg20eHCkWN6l59h3ueu9U=; b=EmH2pao9yyfBZCFT72rHH1sA7mSuxj2ruR/Na/3gEfpcIFJeipCzPpU+jcH+E7ZcK5Pdr+ yFpfrcWMtH+r53mFAyvwp8o20Eni4xiw2kzzCWpTtHW2zguk5kABkIJc5tja8lfnYwMMkR OMJFMxoYNo5/gDgPd2GccET8DBchrDo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: myfreeweb To: Mark Millard , FreeBSD Current , FreeBSD Toolchain CC: freebsd-arm Subject: Re: /usr/lib/libomp.so : is there a reason that aarch64 does not have such by default? In-Reply-To: <2E4E8340-E4C1-4ED4-9E3D-F249D85D10FF@yahoo.com> References: <2E4E8340-E4C1-4ED4-9E3D-F249D85D10FF.ref@yahoo.com> <2E4E8340-E4C1-4ED4-9E3D-F249D85D10FF@yahoo.com> Message-ID: <90091F80-717F-4405-952B-B6B955AE6E1F@unrelenting.technology> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.90 X-Rspamd-Queue-Id: 4BYXbl5Kphz4MZK X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=EmH2pao9; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 2001:41d0:2:863f:: as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-0.48 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2001:41d0:2:863f::]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; NEURAL_HAM_SHORT(-0.48)[-0.480]; FREEMAIL_TO(0.00)[yahoo.com,freebsd.org]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm,freebsd-current,freebsd-toolchain] X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 09:08:05 -0000 On August 21, 2020 6:52:23 PM UTC, Mark Millard via freebsd-arm wrote: >My context: head ( currently at -r363590 ) > >man src=2Econf is explicit that WITHOUT_OPENMP is the default for >aarch64 (for example)=2E [=2E=2E=2E] >Nothing stands out for why WITH_OPENMP is in use by default only >for amd64, i386, and powerpc64=2E Because nobody has bothered to merge https://reviews=2Efreebsd=2Eorg/D2116= 7 From owner-freebsd-toolchain@freebsd.org Sat Aug 22 10:56:02 2020 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 B96BF3B684F for ; Sat, 22 Aug 2020 10:56:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BYb0L0bsVz4Sns for ; Sat, 22 Aug 2020 10:56:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 89A433B664C; Sat, 22 Aug 2020 10:56:01 +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 87D1E3B64C0 for ; Sat, 22 Aug 2020 10:56:01 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYb0J6lgyz4Snn for ; Sat, 22 Aug 2020 10:56:00 +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 ADB3415593 for ; Sat, 22 Aug 2020 10:56:00 +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 07MAu0nF092834 for ; Sat, 22 Aug 2020 10:56:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07MAu0C7092833 for toolchain@FreeBSD.org; Sat, 22 Aug 2020 10:56:00 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: Sat, 22 Aug 2020 10:56:00 +0000 X-Bugzilla-Reason: AssignedTo 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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: 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.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 10:56:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248745 --- Comment #1 from commit-hook@FreeBSD.org --- A commit references this bug: Author: dim Date: Sat Aug 22 10:55:55 UTC 2020 New revision: 364480 URL: https://svnweb.freebsd.org/changeset/base/364480 Log: 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 pr= ior 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/rais= e.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 Changes: head/contrib/llvm-project/lldb/source/Target/Target.cpp --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Aug 22 11:12:25 2020 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 481043B6D45 for ; Sat, 22 Aug 2020 11:12:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BYbMF1H72z4ThM for ; Sat, 22 Aug 2020 11:12:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2BDA73B694E; Sat, 22 Aug 2020 11:12:25 +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 2BA303B6D44 for ; Sat, 22 Aug 2020 11:12:25 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYbMF0KKvz4ThL for ; Sat, 22 Aug 2020 11:12:25 +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 E433D1565E for ; Sat, 22 Aug 2020 11:12:24 +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 07MBCOPw010106 for ; Sat, 22 Aug 2020 11:12:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07MBCOBp010105 for toolchain@FreeBSD.org; Sat, 22 Aug 2020 11:12:24 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 248795] std::random_shuffle broken with LLVM11 Date: Sat, 22 Aug 2020 11:12:25 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: thierry@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: 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.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 11:12:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248795 Thierry Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thierry@FreeBSD.org --- Comment #1 from Thierry Thomas --- Same error for the port math/hpcombi: [14/22] : && /usr/bin/c++ -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -O2 -p= ipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fstack-protector-strong -L/usr/local/lib benchmark/CMakeFiles/sort.dir/sort.cpp.o -o benchmark/sort -lbenchmark -lpthread && : FAILED: benchmark/sort : && /usr/bin/c++ -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -O2 -p= ipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fstack-protector-strong -L/usr/local/lib benchmark/CMakeFiles/sort.dir/sort.cpp.o -o benchmark/sort -lbenchmark -lpthread && : ld: error: undefined symbol: std::__1::__rs_default::~__rs_default() >>> referenced by algorithm:3112 (/usr/include/c++/v1/algorithm:3112) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(rand_perms(int)) >>> referenced by algorithm:3112 (/usr/include/c++/v1/algorithm:3112) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(rand_perms(int)) ld: error: undefined symbol: std::__1::__rs_get() >>> referenced by algorithm:3105 (/usr/include/c++/v1/algorithm:3105) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(rand_perms(int)) ld: error: undefined symbol: std::__1::__rs_default::operator()() >>> referenced by algorithm:2950 (/usr/include/c++/v1/algorithm:2950) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(long std::__1::uniform_int_distribution::operator()(s td::__1::__rs_default&, std::__1::uniform_int_distribution::param_type const&)) >>> referenced by algorithm:2950 (/usr/include/c++/v1/algorithm:2950) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(long std::__1::uniform_int_distribution::operator()(s td::__1::__rs_default&, std::__1::uniform_int_distribution::param_type const&)) >>> referenced by algorithm:2950 (/usr/include/c++/v1/algorithm:2950) >>> benchmark/CMakeFiles/sort.dir/sort.cpp.o:(long std::__1::uniform_int_distribution::operator()(s td::__1::__rs_default&, std::__1::uniform_int_distribution::param_type const&)) >>> referenced 1 more times c++: error: linker command failed with exit code 1 (use -v to see invocatio= n) --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Aug 22 12:05:15 2020 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 261603B8AA5 for ; Sat, 22 Aug 2020 12:05:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BYcXB6jywz4XFf for ; Sat, 22 Aug 2020 12:05:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id E11413B85DF; Sat, 22 Aug 2020 12:05:14 +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 DD70C3B8A72 for ; Sat, 22 Aug 2020 12:05: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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYcXB4wvbz4XT4 for ; Sat, 22 Aug 2020 12:05:14 +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 7EE8816312 for ; Sat, 22 Aug 2020 12:05: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 07MC5E3D066481 for ; Sat, 22 Aug 2020 12:05:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07MC5Exq066480 for toolchain@FreeBSD.org; Sat, 22 Aug 2020 12:05:14 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 248795] std::random_shuffle broken with LLVM11 Date: Sat, 22 Aug 2020 12:05:14 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? 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.33 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 12:05:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248795 --- Comment #2 from commit-hook@FreeBSD.org --- A commit references this bug: Author: dim Date: Sat Aug 22 12:05:12 UTC 2020 New revision: 364482 URL: https://svnweb.freebsd.org/changeset/base/364482 Log: Add a few new source files to libc++, in particular the implementation part of std::random_shuffle. These were split off at some point by upstream, but I forgot to add them to our Makefile. This should allow some ports which use std::random_shuffle to correctly link again. Reported by: thierry PR: 248795 MFC after: 6 weeks X-MFX-With: r364284 Changes: head/lib/libc++/Makefile --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=