Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2021 22:18:21 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        tech-lists <tech-lists@zyxst.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: the clang compiler does not support '-march=native'
Message-ID:  <6E5624A0-6456-4C22-A090-6C1496257AC8@FreeBSD.org>
In-Reply-To: <YMe3K8uDXHktRDCZ@ceres.zyxst.net>
References:  <YMe3K8uDXHktRDCZ@ceres.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <tech-lists@zyxst.net> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E5624A0-6456-4C22-A090-6C1496257AC8>