From owner-freebsd-toolchain@freebsd.org Sun Dec 31 00:57:46 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDFEEEB68EA for ; Sun, 31 Dec 2017 00:57:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 AA670770C5 for ; Sun, 31 Dec 2017 00:57:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBV0vhXA015508 for ; Sun, 31 Dec 2017 00:57:46 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222641] www/firefox: OPTIMIZED_CFLAGS=off build fails: libgkrust.a: could not read symbols Date: Sun, 31 Dec 2017 00:57:44 +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: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ 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.25 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, 31 Dec 2017 00:57:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222641 --- Comment #28 from commit-hook@freebsd.org --- A commit references this bug: Author: jbeich Date: Sun Dec 31 00:57:07 UTC 2017 New revision: 457657 URL: https://svnweb.freebsd.org/changeset/ports/457657 Log: www/firefox: unbreak OPTIMIZED_CFLAGS=3Doff build after r450707 x86_64-unknown-freebsd/release/libgkrust.a: could not read symbols: File format not recognized PR: 222641 Reported by: many Changes: head/Mk/bsd.gecko.mk --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Dec 31 00:58:50 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95D60EB69C0 for ; Sun, 31 Dec 2017 00:58:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 833E577209 for ; Sun, 31 Dec 2017 00:58:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBV0wnck017190 for ; Sun, 31 Dec 2017 00:58:50 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222641] www/firefox: OPTIMIZED_CFLAGS=off build fails: libgkrust.a: could not read symbols Date: Sun, 31 Dec 2017 00:58:50 +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: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ 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.25 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, 31 Dec 2017 00:58:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222641 --- Comment #29 from commit-hook@freebsd.org --- A commit references this bug: Author: jbeich Date: Sun Dec 31 00:58:13 UTC 2017 New revision: 457658 URL: https://svnweb.freebsd.org/changeset/ports/457658 Log: MFH: r457657 www/firefox: unbreak OPTIMIZED_CFLAGS=3Doff build after r450707 x86_64-unknown-freebsd/release/libgkrust.a: could not read symbols: File format not recognized PR: 222641 Reported by: many Approved by: ports-secteam blanket Changes: _U branches/2017Q4/ branches/2017Q4/Mk/bsd.gecko.mk --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Dec 31 00:59:52 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E15D4EB6A74 for ; Sun, 31 Dec 2017 00:59:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 CDBBF7727A for ; Sun, 31 Dec 2017 00:59:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBV0xpif018760 for ; Sun, 31 Dec 2017 00:59:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222641] www/firefox: OPTIMIZED_CFLAGS=off build fails: libgkrust.a: could not read symbols Date: Sun, 31 Dec 2017 00:59:52 +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: jbeich@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ maintainer-feedback? X-Bugzilla-Changed-Fields: bug_status resolution 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.25 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, 31 Dec 2017 00:59:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222641 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |FIXED --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Jan 4 22:18:27 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DFF41EBBC62 for ; Thu, 4 Jan 2018 22:18:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 CA0A864204 for ; Thu, 4 Jan 2018 22:18:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w04MIRXD055203 for ; Thu, 4 Jan 2018 22:18:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w04MIRHM055202 for freebsd-toolchain@FreeBSD.org; Thu, 4 Jan 2018 22:18:27 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: freebsd-toolchain@FreeBSD.org Subject: [Bug 222641] www/firefox: OPTIMIZED_CFLAGS=off build fails: libgkrust.a: could not read symbols Date: Thu, 04 Jan 2018 22:18:26 +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: jbeich@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ 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.25 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, 04 Jan 2018 22:18:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222641 --- Comment #30 from Jan Beich --- OPTIMIZED_CFLAGS=3Doff is still broken on 11.1 i386 because new ld.bfd cann= ot handle DTRACE=3Don for some reason. /usr/local/bin/ld: ../../js/src/js-dtrace.o: warning: relocation against `_ZN2js13ExecuteKernelEP9JSContextN2JS6HandleIP8JSScriptEER8JSObjectRKNS2_5= ValueENS_16AbstractFramePtrEPS9_' in readonly section `.SUNW_dof' /usr/local/bin/ld: read-only segment has dynamic relocations. build log: https://ptpb.pw/Erv2 --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Jan 5 05:52:15 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E27BBEB49D8 for ; Fri, 5 Jan 2018 05:52:15 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D293C775F8 for ; Fri, 5 Jan 2018 05:52:15 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D1E3DEB49D7; Fri, 5 Jan 2018 05:52:15 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D183FEB49D6 for ; Fri, 5 Jan 2018 05:52:15 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B41FB775F7; Fri, 5 Jan 2018 05:52:15 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 05A9FE244; Fri, 5 Jan 2018 05:52:15 +0000 (UTC) From: Jan Beich To: toolchain@freebsd.org Cc: linimon@freebsd.org Subject: Is -march/-mtune=native actually supported on FreeBSD arm* or aarch64? Date: Fri, 05 Jan 2018 06:52:08 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 05 Jan 2018 05:52:16 -0000 Some ports pass -march=native and/or -mtune=native. Both are extensively documented by GCC for x86. For other architectures some excerpts say "native" is only supported on Linux (via /proc/cpuinfo). For example, $ uname -p armv6 $ echo 'int main() {}' >a.c $ clang -march=native a.c clang: error: the clang compiler does not support '-march=native' $ clang -mtune=native a.c $ pkg install -qy gcc7 $ gcc7 -march=native a.c $ gcc7 -mtune=native a.c $ uname -p aarch64 $ echo 'int main() {}' >a.c $ clang -march=native a.c clang: error: the clang compiler does not support '-march=native' $ clang -mtune=native a.c clang: error: the clang compiler does not support '-mtune=native' $ pkg install -qy gcc7 $ gcc7 -march=native a.c $ gcc7 -mtune=native a.c What's the rationale for Clang vs. GCC difference? Is it safe to run FreeBSD arm* -mtune=native binaries on CPUs older than build machine? From owner-freebsd-toolchain@freebsd.org Fri Jan 5 06:11:11 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8664FEB583C for ; Fri, 5 Jan 2018 06:11:11 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 73FE878003 for ; Fri, 5 Jan 2018 06:11:11 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 6BE1BEB583B; Fri, 5 Jan 2018 06:11:11 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B8A0EB5839 for ; Fri, 5 Jan 2018 06:11:11 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D23A78001; Fri, 5 Jan 2018 06:11:11 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 81778E4D9; Fri, 5 Jan 2018 06:11:10 +0000 (UTC) From: Jan Beich To: toolchain@freebsd.org Cc: linimon@freebsd.org Subject: Re: Is -march/-mtune=native actually supported on FreeBSD arm* or aarch64? References: Date: Fri, 05 Jan 2018 07:11:05 +0100 In-Reply-To: (Jan Beich's message of "Fri, 05 Jan 2018 06:52:08 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 05 Jan 2018 06:11:11 -0000 Jan Beich writes: > Some ports pass -march=native and/or -mtune=native. Both are extensively > documented by GCC for x86. For other architectures some excerpts say > "native" is only supported on Linux (via /proc/cpuinfo). For example, Oops, found a partial answer: https://lists.freebsd.org/pipermail/freebsd-arm/2016-February/013190.html From owner-freebsd-toolchain@freebsd.org Fri Jan 5 12:57:41 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04D8BEA7B14 for ; Fri, 5 Jan 2018 12:57:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id E159367B61 for ; Fri, 5 Jan 2018 12:57:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id DDBF5EA7B13; Fri, 5 Jan 2018 12:57:40 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB907EA7B12 for ; Fri, 5 Jan 2018 12:57:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 87C5167B5F; Fri, 5 Jan 2018 12:57:37 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (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 DBE8945743; Fri, 5 Jan 2018 13:57:33 +0100 (CET) From: Dimitry Andric Message-Id: <41A329D5-0554-4450-A675-718F32A29EBF@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_302B3B81-9735-4AB0-8D29-518B7B2E850D"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Is -march/-mtune=native actually supported on FreeBSD arm* or aarch64? Date: Fri, 5 Jan 2018 13:57:33 +0100 In-Reply-To: Cc: toolchain@freebsd.org, linimon@freebsd.org To: Jan Beich References: X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 05 Jan 2018 12:57:41 -0000 --Apple-Mail=_302B3B81-9735-4AB0-8D29-518B7B2E850D Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 5 Jan 2018, at 06:52, Jan Beich wrote: > > Some ports pass -march=native and/or -mtune=native. Both are extensively > documented by GCC for x86. For other architectures some excerpts say > "native" is only supported on Linux (via /proc/cpuinfo). For example, > > $ uname -p > armv6 > $ echo 'int main() {}' >a.c > $ clang -march=native a.c > clang: error: the clang compiler does not support '-march=native' > $ clang -mtune=native a.c > $ pkg install -qy gcc7 > $ gcc7 -march=native a.c > $ gcc7 -mtune=native a.c > > $ uname -p > aarch64 > $ echo 'int main() {}' >a.c > $ clang -march=native a.c > clang: error: the clang compiler does not support '-march=native' > $ clang -mtune=native a.c > clang: error: the clang compiler does not support '-mtune=native' > $ pkg install -qy gcc7 > $ gcc7 -march=native a.c > $ gcc7 -mtune=native a.c > > What's the rationale for Clang vs. GCC difference? Is it safe to run > FreeBSD arm* -mtune=native binaries on CPUs older than build machine? On non-x86, llvm has not implemented CPU detection, as far as I know. And since we don't export any CPU identification sysctl or even a /proc/cpuinfo, getting that information from userland is tricky. (I've seen programs that attempt to parse /var/run/dmesg.boot, but it is very error-prone, obviously.) It is safer to just specify the target CPU explicitly, IMO. -Dimitry --Apple-Mail=_302B3B81-9735-4AB0-8D29-518B7B2E850D 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWk92PQAKCRCwXqMKLiCW o4xoAJ9beS3z/uwkg8xamoG7bbTIUNpXgwCgjUNp96orf4z3tekSrEtx5dEtlbo= =rR2M -----END PGP SIGNATURE----- --Apple-Mail=_302B3B81-9735-4AB0-8D29-518B7B2E850D--