<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello all,<div class=""><br class=""></div><div class="">I try to build ghc-8.2.2 based on a brew installed ghc (8.2.1) on macOS 10.13.1 with current Xcode. I follow the guidelines at <a href="https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS" class="">https://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS</a> and come to an error at step 5 where </div><div class=""><br class=""></div><div class="">./configure CC=arm-apple-darwin10-clang --target=arm-apple-darwin10; make</div><div class=""><br class=""></div><div class="">is being executed.</div><div class=""><br class=""></div><div class="">The error reads…</div><div class=""><br class=""></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><div class=""><font face="Menlo" class="">arm-apple-darwin10-clang -E -DPROFILING -DTHREADED_RTS -DDEBUG -fno-stack-protector -Wall -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Winline -Waggregate-return -Wpointer-arith -Wmissing-noreturn -Wnested-externs -Wredundant-decls -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header -Irts -Irts/dist/build -DCOMPILING_RTS -DUSE_LIBFFI_FOR_ADJUSTORS -fno-strict-aliasing -fno-common -Irts/dist/build/./autogen -Wno-unknown-pragmas -O2 -fomit-frame-pointer -g -DRtsWay=\"rts_v\" -Wno-strict-prototypes -MM -x c rts/linker/LoadArchive.c -MF rts/dist/build/.depend-v-l-debug-thr-thr_debug-thr_l.c_asm.bit</font></div></div><div class=""><div class=""><font face="Menlo" class="">clang: warning: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]</font></div></div><div class=""><div class=""><font face="Menlo" class="">rts/linker/LoadArchive.c:57:2: error: Unknown Darwin architecture</font></div></div><div class=""><div class=""><font face="Menlo" class="">#error Unknown Darwin architecture</font></div></div><div class=""><div class=""><font face="Menlo" class=""> ^</font></div></div><div class=""><div class=""><font face="Menlo" class="">1 error generated.</font></div></div><div class=""><div class=""><font face="Menlo" class="">make[1]: *** [rts/dist/build/.depend-v-l-debug-thr-thr_debug-thr_l.c_asm] Error 1</font></div></div><div class=""><div class=""><font face="Menlo" class="">make: *** [all] Error 2</font></div></div></blockquote><div class=""><br class=""></div><div class="">This stems from the following code in rts/linker/LoadArchive.c…</div><div class=""><span class="" style="font-family: Menlo;"><br class=""></span></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><div class=""><font face="Menlo" class="">static StgBool loadFatArchive(char tmp[static 20], FILE* f, pathchar* path)</font></div></div><div class=""><div class=""><font face="Menlo" class="">{</font></div></div><div class=""><div class=""><font face="Menlo" class=""> uint32_t nfat_arch, nfat_offset, cputype, cpusubtype;</font></div></div><div class=""><div class=""><font face="Menlo" class="">#if defined(i386_HOST_ARCH)</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycputype = CPU_TYPE_X86;</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycpusubtype = CPU_SUBTYPE_X86_ALL;</font></div></div><div class=""><div class=""><font face="Menlo" class="">#elif defined(x86_64_HOST_ARCH)</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycputype = CPU_TYPE_X86_64;</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycpusubtype = CPU_SUBTYPE_X86_64_ALL;</font></div></div><div class=""><div class=""><font face="Menlo" class="">#elif defined(powerpc_HOST_ARCH)</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycputype = CPU_TYPE_POWERPC;</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycpusubtype = CPU_SUBTYPE_POWERPC_ALL;</font></div></div><div class=""><div class=""><font face="Menlo" class="">#elif defined(powerpc64_HOST_ARCH)</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycputype = CPU_TYPE_POWERPC64;</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycpusubtype = CPU_SUBTYPE_POWERPC_ALL;</font></div></div><div class=""><div class=""><font face="Menlo" class="">#elif defined(aarch64_HOST_ARCH)</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycputype = CPU_TYPE_ARM64;</font></div></div><div class=""><div class=""><font face="Menlo" class=""> const uint32_t mycpusubtype = CPU_SUBTYPE_ARM64_ALL;</font></div></div><div class=""><div class=""><font face="Menlo" class="">#else</font></div></div><div class=""><div class=""><font face="Menlo" class="">#error Unknown Darwin architecture</font></div></div><div class=""><div class=""><font face="Menlo" class="">#endif</font></div></div></blockquote><div class=""><div class="" style="font-family: Menlo;"><br class=""></div><div class="">It seems that the necessary architecture is not provided here?</div></div><div class=""><br class=""></div><div class="">Any help would be very much appreciated!</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">Torsten</div></body></html>