From nobody Mon Jun 14 20:18:21 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 102E47EFA2D for ; Mon, 14 Jun 2021 20:18:33 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G3jSm73yDz4jWK; Mon, 14 Jun 2021 20:18:32 +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 "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id BDAB0202B5; Mon, 14 Jun 2021 20:18:32 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (unknown [IPv6:2001:470:7a58:0:9062:5662:3b4e:5bd]) (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 E971DB3B6; Mon, 14 Jun 2021 22:18:29 +0200 (CEST) From: Dimitry Andric Message-Id: <6E5624A0-6456-4C22-A090-6C1496257AC8@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_FFDC8444-8069-410E-A590-F531FDB7F0F9"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: the clang compiler does not support '-march=native' Date: Mon, 14 Jun 2021 22:18:21 +0200 In-Reply-To: Cc: freebsd-hackers@freebsd.org To: tech-lists References: X-Mailer: Apple Mail (2.3654.100.0.2.22) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_FFDC8444-8069-410E-A590-F531FDB7F0F9 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 14 Jun 2021, at 22:08, tech-lists wrote: > > There's a program I'd like to compile, but I'm getting an error "the > clang compiler does not support '-march=native'" > > % clang --version > FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git > llvmorg-11.0.1-0-g43ff75f2c3fe) > Target: aarch64-unknown-freebsd13.0 > Thread model: posix > InstalledDir: /usr/bin > > Is this because I have this in /etc/src.conf: > > WITHOUT_LLVM_TARGET_ALL= > WITH_LLVM_TARGET_AARCH64= > WITH_LLVM_TARGET_ARM= > > (this is on a rpi4 arm64.aarch64) No, this is because whatever you are trying to compile has apparently hardcoded "-march=native" in its compile flags. Try removing that. :) -Dimitry --Apple-Mail=_FFDC8444-8069-410E-A590-F531FDB7F0F9 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 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYMe5jgAKCRCwXqMKLiCW owUrAJ0TgVrDhooaS29JX/3IMcrv9iSdRgCeORCiQ1E0Ds1iO+pyZoNRxIA81Jk= =jpk0 -----END PGP SIGNATURE----- --Apple-Mail=_FFDC8444-8069-410E-A590-F531FDB7F0F9--