Date: Wed, 16 Jun 2021 00:13:55 +0100 From: tech-lists <tech-lists@zyxst.net> To: freebsd-hackers@freebsd.org Subject: Re: the clang compiler does not support '-march=native' Message-ID: <YMk0MykqjK4%2BrL77@ceres.zyxst.net> In-Reply-To: <6E5624A0-6456-4C22-A090-6C1496257AC8@FreeBSD.org> References: <YMe3K8uDXHktRDCZ@ceres.zyxst.net> <6E5624A0-6456-4C22-A090-6C1496257AC8@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--QfKjyXxLXg2Z3rdM Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 14, 2021 at 10:18:21PM +0200, Dimitry Andric wrote: >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=3Dnative'" >> >> % 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=3D >> WITH_LLVM_TARGET_AARCH64=3D >> WITH_LLVM_TARGET_ARM=3D >> >> (this is on a rpi4 arm64.aarch64) > >No, this is because whatever you are trying to compile has apparently >hardcoded "-march=3Dnative" in its compile flags. Try removing that. :) Yeah. I prob can't do that without breakage. It was something off github I tried to compile. thanks, --=20 J. --QfKjyXxLXg2Z3rdM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmDJNCgACgkQs8o7QhFz NAU8CQ//aO9jiTcV420IC2HXNkKAhs+PIAci/1t/btC9IOX+IzqTREcqO3SQ6LyR 4Ml5F7xWI6pdP0uTBI+tvikgNagW+4XVMQKcLx0AMzjuO07pn776nk3lkpDow2aV IPIqxfZoDfZeII6Dbums+UATGx2+1XqOr7Z6Iis/OpfbxWu4j5OARP3YSnnTwk8Y MoKzApU8QAuhpx/AGokvWQpZo+oWR9CA8u+7/982Nm1ydNBfsd9+Zi1uARtDNYiJ +Vg+JRuT7UcOtnkIR2VTsa4M+hbzXz7gf4tT7Guhd5ggoG+vortJRMO42Ufp+GbC OwYyOTH+CakfSqX8NGWlF8fvrzIcQwHFfdulEQg7awip8lrh5hMjcfHRzAxLucgN ZHqCb2dYxJZKfmxhtCuHlq52BefWhGFGEeq70AQFpwNiCemlQaGL2F5iB+10Xn8G b2dAoWbq4ir6Bdz9k8wuLuZxIrs4AlDiljJXBTdmyUCcpo1fZ62dp/FmeL05eNi8 8byRVFfE+ENInC5apcofrHGvl/7kgwU2bdCICJHOYUs+P4asJJntUn4vnZHkijCZ oCdI8qguEzIh4hDpVPJBLuhXiSrM3UokPdVoCBauJX5qwkFIDD25NX5gAxyFpC7s tPcSA1YbPD3LlN65BVLu2FuSt5L9skNS6fgbZriG5AcmMjov6a0= =D/pM -----END PGP SIGNATURE----- --QfKjyXxLXg2Z3rdM--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YMk0MykqjK4%2BrL77>