Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cross-compiling fails on MacOS

On Mon, Feb 25, 2019 at 15:55:33 +0100, K. Schreiner wrote:

> tryed to cross-compile NetBSD (amd64) on MacOS and failed with
>      create  compat/.depend
>      compile  compat/atoll.lo
> clang: error: unknown argument: '-fno-ipa-sra'
> *** Failed target:  atoll.lo
> *** Failed command: cc -O -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-ipa-sra -no-cpp-precomp -I. -I./include -I/u/NetBSD/src/tools/compat -I/u/NetBSD/src/tools/compat/sys -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o atoll.lo.o /u/NetBSD/src/tools/compat/../../lib/libc/stdlib/atoll.c
> *** Error code 1
> Any idea what to change where to get things going?

share/mk/ has

# disable compiler options that interfere with dtrace
HOST_DTRACE_OPTS?=	-fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-ipa-sra

which should probably be conditionalized depending on what the host
compiler is, but it doesn't look like we have the infrastructure in

For now you can just override it in your local build.


Home | Main Index | Thread Index | Old Index