Current-Users archive

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

cross-compiling fails on MacOS


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

nbmake[3]: stopped in /u/NetBSD/src/tools/compat

*** Failed target:  dependall
*** Failed command: cd "/u/NetBSD/src/tools/compat"; /u/NetBSD/arch/amd64/TOOLS/bin/nbmake realall
*** Error code 1

MacOS is:

>-2585: sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14.4
BuildVersion:	18E194d

Compiler is:

>-2586: gcc -v
Configured with: --prefix=/Applications/ --with-gxx-include-dir=/Applications/
Apple LLVM version 10.0.1 (clang-1001.0.43.3)
Target: x86_64-apple-darwin18.5.0
Thread model: posix
InstalledDir: /Applications/

Any idea what to change where to get things going?


Home | Main Index | Thread Index | Old Index