neovim / neovim

Vim-fork focused on extensibility and usability
https://neovim.io
Other
81.53k stars 5.57k forks source link

build fails with OSX Mojave #9050

Closed FuzzOli87 closed 5 years ago

FuzzOli87 commented 5 years ago

Attempting to build from master fails on OSX mojave.

Actual behaviour

make CMAKE_BUILD_TYPE=Release

build output ``` In file included from unibilium.c:22: ./unibilium.h:25:10: fatal error: 'stdio.h' file not found #include ^~~~~~~~~ 1 error generated. gmake[1]: *** [Makefile:69: unibilium.lo] Error 1 gmake[1]: Leaving directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/unibilium' [13/66] Performing install step for 'libvterm' FAILED: build/src/libvterm-stamp/libvterm-install cd /Users/daniel.olivares/Development/neovim/.deps/build/src/libvterm && /usr/local/bin/gmake CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc PREFIX=/Users/daniel.olivares/Development/neovim/.deps/usr CFLAGS=-fPIC CFLAGS+=-Og CFLAGS+=-g install && /usr/local/Cellar/cmake/3.12.2/bin/cmake -E touch /Users/daniel.olivares/Development/neovim/.deps/build/src/libvterm-stamp/libvterm-install gmake[1]: Entering directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/libvterm' install -d /Users/daniel.olivares/Development/neovim/.deps/usr/include install -m644 include/vterm.h include/vterm_keycodes.h /Users/daniel.olivares/Development/neovim/.deps/usr/include install -d /Users/daniel.olivares/Development/neovim/.deps/usr/lib/pkgconfig sed -e "s,@PREFIX@,/Users/daniel.olivares/Development/neovim/.deps/usr," -e "s,@LIBDIR@,/Users/daniel.olivares/Development/neovim/.deps/usr/lib," -e "s,@VERSION@,0.0," /Users/daniel.olivares/Development/neovim/.deps/usr/lib/pkgconfig/vterm.pc CC src/encoding.c In file included from src/encoding.c:1: In file included from src/vterm_internal.h:4: include/vterm.h:9:10: fatal error: 'stdlib.h' file not found #include ^~~~~~~~~~ 1 error generated. gmake[1]: *** [Makefile:63: src/encoding.lo] Error 1 gmake[1]: Leaving directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/libvterm' [14/66] Performing install step for 'luajit' FAILED: build/src/luajit-stamp/luajit-install cd /Users/daniel.olivares/Development/neovim/.deps/build/src/luajit && /usr/local/bin/gmake CFLAGS=-fPIC CFLAGS+=-DLUAJIT_DISABLE_JIT CFLAGS+=-DLUA_USE_APICHECK CFLAGS+=-DLUA_USE_ASSERT CCDEBUG+=-g Q= install CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc PREFIX=/Users/daniel.olivares/Development/neovim/.deps/usr && /usr/local/Cellar/cmake/3.12.2/bin/cmake -E touch /Users/daniel.olivares/Development/neovim/.deps/build/src/luajit-stamp/luajit-install gmake[1]: Entering directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/luajit' ==== Building LuaJIT 2.0.5 ==== /usr/local/bin/gmake -C src gmake[2]: Entering directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/luajit/src' In file included from lj_arch.h:9: In file included from ./lua.h:16: ./luaconf.h:145:10: fatal error: 'assert.h' file not found #include ^~~~~~~~~~ 1 error generated. In file included from lj_arch.h:9: In file included from ./lua.h:16: ./luaconf.h:145:10: fatal error: 'assert.h' file not found #include ^~~~~~~~~~ 1 error generated. In file included from lj_arch.h:9: In file included from ./lua.h:16: ./luaconf.h:145:10: fatal error: 'assert.h' file not found #include ^~~~~~~~~~ 1 error generated. In file included from lj_arch.h:9: In file included from ./lua.h:16: ./luaconf.h:145:10: fatal error: 'assert.h' file not found #include ^~~~~~~~~~ 1 error generated. In file included from lj_arch.h:9: In file included from ./lua.h:16: ./luaconf.h:145:10: fatal error: 'assert.h' file not found #include ^~~~~~~~~~ 1 error generated. In file included from lj_arch.h:9: In file included from ./lua.h:16: ./luaconf.h:145:10: fatal error: 'assert.h' file not found #include ^~~~~~~~~~ 1 error generated. In file included from lj_arch.h:9: In file included from ./lua.h:16: ./luaconf.h:145:10: fatal error: 'assert.h' file not found #include ^~~~~~~~~~ 1 error generated. In file included from lj_arch.h:9: In file included from ./lua.h:16: ./luaconf.h:145:10: fatal error: 'assert.h' file not found #include ```

Expected behaviour

For the build process to succeed.

I tried doing the typical xcode stuff xcode-select --install and the license accepting stuff. But so far nothing has worked.

jamessan commented 5 years ago

I would suggest trying make distclean first. From what I've read, Mojave has moved standard header files out of /usr/include, so CMake may need to re-run to find where they are.

If that doesn't work, there's not much we can do. This is clearly a macOS issue, not an nvim issue.

clason commented 5 years ago

Starting with Mojave, the headers are no longer installed under /usr/include/ by default -- look under Command Line Tools -> New Features in the release notes. Running

open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

from the command line fixes the issue (at least for me and using brew).

The release notes also states that this compatibility package will no longer be provided in the near future, so the build system on macOS will have to be adapted to look for headers in the SDK, making this (at that future point) indeed an nvim issue (if you do not want to punt this to homebrew). @jamessan

FuzzOli87 commented 5 years ago

@jamessan That did not work. What @clason recommended got me past that struggle.

@clason This got me closer to it! It got passed that error but now it's failing somewhere else and I'm not really sure where.

clason commented 5 years ago

@FuzzOli87 Have you tried homebrew? This works for me (using https://github.com/Homebrew/homebrew-core/pull/32204).

jamessan commented 5 years ago

the build system on macOS will have to be adapted to look for headers in the SDK

Any help making that happen is appreciated -- pointers to documentation or PRs. I'm not familiar with what would be needed here.

clason commented 5 years ago

@jamessan I'd have to understand neovim's build system first; from the release notes linked above, the headers are now no longer installed in /usr/include but in either

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk

(with a full Xcode install) or

/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

(with only the command line tools installed). Having to special case macOS (>=10.14) will be a pain...

In the meantime, I've added this step to the Building section of the wiki for those compiling neovim themselves (i.e., not using homebrew, which gives an explicit error message pointing to the missing headers and the compatibility file).

jamessan commented 5 years ago

According to CMake's documentation, it seems the end-user building the software should be setting CMAKE_OSX_SYSROOT appropriately for the SDK they're targeting.

However, it's supposed to default to $SDKROOT or, if that's not set, get calculated based on $MACOSX_DEPLOYMENT_TARGET. Are these no longer set in your build environment?

FuzzOli87 commented 5 years ago

Homebrew/homebrew-core#32204

No I've always just built from source. I had a reason at some point but I probably don't need that anymore. The error I'm getting is:

build output ``` mkdir -p .deps cd .deps && \ cmake -G 'Ninja' \ /Users/daniel.olivares/Development/neovim/third-party -- The C compiler identification is AppleClang 10.0.0.10001145 -- The CXX compiler identification is AppleClang 10.0.0.10001145 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test HAS_OG_FLAG -- Performing Test HAS_OG_FLAG - Success -- Found GNU Make at /usr/local/bin/gmake -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") -- Configuring done -- Generating done -- Build files have been written to: /Users/daniel.olivares/Development/neovim/.deps mkdir -p build touch build/.ran-third-party-cmake ninja -C .deps ninja: Entering directory `.deps' [8/90] Performing download step for 'gperf' -- file: /Users/daniel.olivares/Development/neovim/.deps/build/downloads/gperf/gperf-3.1.tar.gz -- downloading... src='https://github.com/neovim/deps/raw/ff5b4b18a87397a8564016071ae64f64bcd8c635/opt/gperf-3.1.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/gperf/gperf-3.1.tar.gz' timeout='none' -- downloading... done -- extracting... src='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/gperf/gperf-3.1.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/src/gperf' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [11/90] Performing download step for 'libvterm' -- file: /Users/daniel.olivares/Development/neovim/.deps/build/downloads/libvterm/3f62ac6b7bdffda39d68f723fb1806dfd6d6382d.tar.gz -- downloading... src='https://github.com/neovim/libvterm/archive/3f62ac6b7bdffda39d68f723fb1806dfd6d6382d.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/libvterm/3f62ac6b7bdffda39d68f723fb1806dfd6d6382d.tar.gz' timeout='none' -- downloading... done -- extracting... src='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/libvterm/3f62ac6b7bdffda39d68f723fb1806dfd6d6382d.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/src/libvterm' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [15/90] Performing download step for 'unibilium' -- file: /Users/daniel.olivares/Development/neovim/.deps/build/downloads/unibilium/v2.0.0.tar.gz -- downloading... src='https://github.com/mauke/unibilium/archive/v2.0.0.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/unibilium/v2.0.0.tar.gz' timeout='none' -- downloading... done -- extracting... src='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/unibilium/v2.0.0.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/src/unibilium' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [20/90] Performing download step for 'luajit' -- file: /Users/daniel.olivares/Development/neovim/.deps/build/downloads/luajit/7dbf0b05f1228c1c719866db5e5f3d58f87f74c8.tar.gz -- downloading... src='https://github.com/LuaJIT/LuaJIT/archive/7dbf0b05f1228c1c719866db5e5f3d58f87f74c8.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/luajit/7dbf0b05f1228c1c719866db5e5f3d58f87f74c8.tar.gz' timeout='none' -- downloading... done -- extracting... src='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/luajit/7dbf0b05f1228c1c719866db5e5f3d58f87f74c8.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/src/luajit' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [25/90] Performing download step for 'libuv' -- file: /Users/daniel.olivares/Development/neovim/.deps/build/downloads/libuv/v1.12.0.tar.gz -- downloading... src='https://github.com/libuv/libuv/archive/v1.12.0.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/libuv/v1.12.0.tar.gz' timeout='none' -- downloading... done -- extracting... src='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/libuv/v1.12.0.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/src/libuv' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [28/90] Performing download step for 'jemalloc' -- file: /Users/daniel.olivares/Development/neovim/.deps/build/downloads/jemalloc/jemalloc-4.5.0.tar.bz2 -- downloading... src='https://github.com/jemalloc/jemalloc/releases/download/4.5.0/jemalloc-4.5.0.tar.bz2' dst='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/jemalloc/jemalloc-4.5.0.tar.bz2' timeout='none' -- downloading... done -- extracting... src='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/jemalloc/jemalloc-4.5.0.tar.bz2' dst='/Users/daniel.olivares/Development/neovim/.deps/build/src/jemalloc' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [31/90] Performing download step for 'msgpack' -- file: /Users/daniel.olivares/Development/neovim/.deps/build/downloads/msgpack/msgpack-3.0.0.tar.gz -- downloading... src='https://github.com/msgpack/msgpack-c/releases/download/cpp-3.0.0/msgpack-3.0.0.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/msgpack/msgpack-3.0.0.tar.gz' timeout='none' -- downloading... done -- extracting... src='/Users/daniel.olivares/Development/neovim/.deps/build/downloads/msgpack/msgpack-3.0.0.tar.gz' dst='/Users/daniel.olivares/Development/neovim/.deps/build/src/msgpack' -- extracting... [tar xfz] -- extracting... [analysis] -- extracting... [rename] -- extracting... [clean up] -- extracting... done [34/90] Performing configure step for 'msgpack' -- The C compiler identification is AppleClang 10.0.0.10001145 -- The CXX compiler identification is AppleClang 10.0.0.10001145 -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY) -- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11") -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - found -- Found Threads: TRUE -- Performing Test MSGPACK_ENABLE_GCC_CXX_ATOMIC -- Performing Test MSGPACK_ENABLE_GCC_CXX_ATOMIC - Failed -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Configuring done -- Generating done -- Build files have been written to: /Users/daniel.olivares/Development/neovim/.deps/build/src/msgpack-build [35/90] Performing build step for 'msgpack' [1/13] Building C object CMakeFiles/msgpackc-static.dir/src/vrefbuffer.c.o [2/13] Building C object CMakeFiles/msgpackc-static.dir/src/version.c.o [3/13] Building C object CMakeFiles/msgpackc-static.dir/src/zone.c.o [4/13] Building C object CMakeFiles/msgpackc.dir/src/version.c.o [5/13] Building C object CMakeFiles/msgpackc.dir/src/vrefbuffer.c.o [6/13] Building C object CMakeFiles/msgpackc.dir/src/zone.c.o [7/13] Building C object CMakeFiles/msgpackc-static.dir/src/objectc.c.o [8/13] Building C object CMakeFiles/msgpackc.dir/src/objectc.c.o [9/13] Building C object CMakeFiles/msgpackc-static.dir/src/unpack.c.o [10/13] Building C object CMakeFiles/msgpackc.dir/src/unpack.c.o [11/13] Linking C static library libmsgpackc.a [12/13] Linking C shared library libmsgpackc.2.0.0.dylib [13/13] Creating library symlink libmsgpackc.2.dylib libmsgpackc.dylib [36/90] Performing install step for 'msgpack' [0/1] Install the project... -- Install configuration: "Release" -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/lib/libmsgpackc.2.0.0.dylib -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/lib/libmsgpackc.2.dylib -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/lib/libmsgpackc.dylib -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/lib/libmsgpackc.a -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/fbuffer.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/gcc_atomic.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/object.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/pack.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/pack_define.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/pack_template.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/alpha.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/arm.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/blackfin.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/convex.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/ia64.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/m68k.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/mips.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/parisc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/ppc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/pyramid.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/rs6k.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/sparc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/superh.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/sys370.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/sys390.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/x86.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/x86/32.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/x86/64.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/architecture/z.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/borland.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/clang.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/comeau.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/compaq.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/diab.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/digitalmars.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/dignus.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/edg.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/ekopath.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/gcc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/gcc_xml.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/greenhills.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/hp_acc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/iar.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/ibm.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/intel.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/kai.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/llvm.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/metaware.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/metrowerks.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/microtec.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/mpw.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/palm.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/pgi.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/sgi_mipspro.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/sunpro.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/tendra.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/visualc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/compiler/watcom.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/detail/_cassert.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/detail/_exception.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/detail/comp_detected.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/detail/endian_compat.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/detail/os_detected.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/detail/platform_detected.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/detail/test.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/detail/test_def.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware/simd.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware/simd/arm.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware/simd/arm/versions.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware/simd/ppc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware/simd/ppc/versions.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware/simd/x86.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware/simd/x86/versions.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware/simd/x86_amd.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/hardware/simd/x86_amd/versions.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/language.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/language/objc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/language/stdc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/language/stdcpp.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/c.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/c/_prefix.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/c/gnu.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/c/uc.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/c/vms.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/c/zos.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/_prefix.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/cxx.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/dinkumware.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/libcomo.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/modena.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/msl.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/roguewave.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/sgi.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/stdcpp3.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/stlport.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/library/std/vacpp.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/make.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/aix.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/amigaos.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/android.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/beos.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/bsd.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/bsd/bsdi.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/bsd/dragonfly.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/bsd/free.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/bsd/net.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/bsd/open.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/cygwin.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/haiku.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/hpux.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/ios.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/irix.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/linux.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/macos.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/os400.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/qnxnto.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/solaris.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/unix.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/vms.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/os/windows.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/other.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/other/endian.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/platform.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/platform/mingw.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/platform/windows_desktop.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/platform/windows_phone.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/platform/windows_runtime.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/platform/windows_store.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/version.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/predef/version_number.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/sbuffer.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/sysdep.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/unpack.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/unpack_define.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/unpack_template.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/util.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/version.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/version_master.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/vrefbuffer.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/zbuffer.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/include/msgpack/zone.h -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/lib/pkgconfig/msgpack.pc -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/lib/cmake/msgpack/msgpack-targets.cmake -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/lib/cmake/msgpack/msgpack-targets-release.cmake -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/lib/cmake/msgpack/msgpack-config.cmake -- Installing: /Users/daniel.olivares/Development/neovim/.deps/usr/lib/cmake/msgpack/msgpack-config-version.cmake [38/90] Performing install step for 'libvterm' gmake[1]: Entering directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/libvterm' install -d /Users/daniel.olivares/Development/neovim/.deps/usr/include install -m644 include/vterm.h include/vterm_keycodes.h /Users/daniel.olivares/Development/neovim/.deps/usr/include install -d /Users/daniel.olivares/Development/neovim/.deps/usr/lib/pkgconfig sed -e "s,@PREFIX@,/Users/daniel.olivares/Development/neovim/.deps/usr," -e "s,@LIBDIR@,/Users/daniel.olivares/Development/neovim/.deps/usr/lib," -e "s,@VERSION@,0.0," /Users/daniel.olivares/Development/neovim/.deps/usr/lib/pkgconfig/vterm.pc TBL src/encoding/DECdrawing.tbl TBL src/encoding/uk.tbl CC src/encoding.c CC src/keyboard.c CC src/mouse.c CC src/parser.c CC src/pen.c CC src/screen.c CC src/state.c CC src/unicode.c src/unicode.c:215:12: warning: unused function 'mk_wcswidth' [-Wunused-function] static int mk_wcswidth(const uint32_t *pwcs, size_t n) ^ src/unicode.c:306:12: warning: unused function 'mk_wcswidth_cjk' [-Wunused-function] static int mk_wcswidth_cjk(const uint32_t *pwcs, size_t n) ^ 2 warnings generated. CC src/vterm.c LINK libvterm.la install -d /Users/daniel.olivares/Development/neovim/.deps/usr/lib glibtool --quiet --mode=install install libvterm.la /Users/daniel.olivares/Development/neovim/.deps/usr/lib/libvterm.la glibtool --quiet --mode=finish /Users/daniel.olivares/Development/neovim/.deps/usr/lib CC bin/unterm.c bin/unterm.c:157:32: warning: suggest braces around initialization of subobject [-Wmissing-braces] VTermScreenCell prevcell = { 0 }; ^ {} bin/unterm.c:175:32: warning: suggest braces around initialization of subobject [-Wmissing-braces] VTermScreenCell prevcell = { 0 }; ^ {} 2 warnings generated. CC bin/vterm-ctrl.c bin/vterm-ctrl.c:117:10: warning: implicit declaration of function 'strdup' is invalid in C99 [-Wimplicit-function-declaration] return strdup(csi); ^ bin/vterm-ctrl.c:117:10: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'char *' [-Wint-conversion] return strdup(csi); ^~~~~~~~~~~ bin/vterm-ctrl.c:142:10: warning: implicit declaration of function 'strdup' is invalid in C99 [-Wimplicit-function-declaration] return strdup(dcs); ^ bin/vterm-ctrl.c:142:10: warning: incompatible integer to pointer conversion returning 'int' from a function with result type 'char *' [-Wint-conversion] return strdup(dcs); ^~~~~~~~~~~ bin/vterm-ctrl.c:129:10: warning: result of comparison of constant 156 with expression of type 'char' is always false [-Wtautological-constant-out-of-range-compare] if(c == 0x9c) // ST ~ ^ ~~~~ 5 warnings generated. CC bin/vterm-dump.c install -d /Users/daniel.olivares/Development/neovim/.deps/usr/bin glibtool --quiet --mode=install install bin/unterm bin/vterm-ctrl bin/vterm-dump /Users/daniel.olivares/Development/neovim/.deps/usr/bin/ gmake[1]: Leaving directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/libvterm' [40/90] Performing configure step for 'gperf' checking whether /usr/local/bin/gmake sets $(MAKE)... yes configure: creating ./config.status config.status: creating Makefile === configuring in lib (/Users/daniel.olivares/Development/neovim/.deps/build/src/gperf/lib) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/Users/daniel.olivares/Development/neovim/.deps/usr' 'MAKE=/usr/local/bin/gmake' --cache-file=/dev/null --srcdir=. checking whether /usr/local/bin/gmake sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for ar... ar checking for ranlib... ranlib checking for a BSD compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile === configuring in src (/Users/daniel.olivares/Development/neovim/.deps/build/src/gperf/src) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/Users/daniel.olivares/Development/neovim/.deps/usr' 'MAKE=/usr/local/bin/gmake' --cache-file=/dev/null --srcdir=. checking whether /usr/local/bin/gmake sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for a BSD compatible install... /usr/bin/install -c checking for stack-allocated variable-size arrays... yes checking for rand in -lm... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h === configuring in tests (/Users/daniel.olivares/Development/neovim/.deps/build/src/gperf/tests) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/Users/daniel.olivares/Development/neovim/.deps/usr' 'MAKE=/usr/local/bin/gmake' --cache-file=/dev/null --srcdir=. checking whether /usr/local/bin/gmake sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E configure: creating ./config.status config.status: creating Makefile === configuring in doc (/Users/daniel.olivares/Development/neovim/.deps/build/src/gperf/doc) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/Users/daniel.olivares/Development/neovim/.deps/usr' 'MAKE=/usr/local/bin/gmake' --cache-file=/dev/null --srcdir=. checking whether /usr/local/bin/gmake sets $(MAKE)... yes checking for a BSD compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile [41/90] Performing install step for 'luajit' FAILED: build/src/luajit-stamp/luajit-install cd /Users/daniel.olivares/Development/neovim/.deps/build/src/luajit && /usr/local/bin/gmake CFLAGS=-fPIC CFLAGS+=-DLUAJIT_DISABLE_JIT CFLAGS+=-DLUA_USE_APICHECK CFLAGS+=-DLUA_USE_ASSERT CCDEBUG+=-g Q= install CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc PREFIX=/Users/daniel.olivares/Development/neovim/.deps/usr && /usr/local/Cellar/cmake/3.12.2/bin/cmake -E touch /Users/daniel.olivares/Development/neovim/.deps/build/src/luajit-stamp/luajit-install gmake[1]: Entering directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/luajit' ==== Building LuaJIT 2.0.5 ==== /usr/local/bin/gmake -C src gmake[2]: Entering directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/luajit/src' HOSTCC host/minilua.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -g -O2 -fomit-frame-pointer -Wall -fPIC -DLUAJIT_DISABLE_JIT -DLUA_USE_APICHECK -DLUA_USE_ASSERT -I. -DLUAJIT_TARGET=LUAJIT_ARCH_x64 -DLJ_ARCH_HASFPU=1 -DLJ_ABI_SOFTFP=0 -c -o host/minilua.o host/minilua.c HOSTLINK host/minilua /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -g -L/usr/local/opt/openssl/lib -o host/minilua host/minilua.o -lm ld: library not found for -lgcc_s.10.4 clang: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [Makefile:606: host/minilua] Error 1 gmake[2]: Leaving directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/luajit/src' gmake[1]: *** [Makefile:110: src/luajit] Error 2 gmake[1]: Leaving directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/luajit' [43/90] Performing configure step for 'jemalloc' checking for xsltproc... /usr/bin/xsltproc checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc accepts -g... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc option to accept ISO C89... none needed checking whether compiler is cray... no checking whether compiler supports -std=gnu11... yes checking whether compiler supports -Wall... yes checking whether compiler supports -Werror=declaration-after-statement... yes checking whether compiler supports -Wshorten-64-to-32... yes checking whether compiler supports -Wsign-compare... yes checking whether compiler supports -pipe... yes checking whether compiler supports -g3... yes checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking size of void *... 8 checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking size of intmax_t... 8 checking build system type... x86_64-apple-darwin18.0.0 checking host system type... x86_64-apple-darwin18.0.0 checking whether pause instruction is compilable... yes checking for ar... ar checking malloc.h usability... no checking malloc.h presence... no checking for malloc.h... no checking for library containing log... none required checking whether __attribute__ syntax is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether tls_model attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether alloc_size attribute is compilable... yes checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether format(gnu_printf, ...) attribute is compilable... no checking whether compiler supports -Werror... yes checking whether compiler supports -herror_on_warning... no checking whether format(printf, ...) attribute is compilable... yes checking for a BSD-compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for ld... /usr/bin/ld checking for autoconf... /usr/local/bin/autoconf checking for memalign... no checking for valloc... yes checking whether compiler supports -O3... yes checking whether compiler supports -funroll-loops... yes checking configured backtracing method... N/A checking for sbrk... yes Disabling dss allocation because sbrk is deprecated checking whether utrace(2) is compilable... no checking whether valgrind is compilable... no checking whether a program using __builtin_unreachable is compilable... yes checking whether a program using __builtin_ffsl is compilable... yes checking LG_PAGE... 12 checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_create in -lpthread... yes checking whether pthread_atfork(3) is compilable... yes checking for library containing clock_gettime... none required checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... no checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... no checking whether mach_absolute_time() is compilable... yes checking whether compiler supports -Werror... yes checking whether syscall(2) is compilable... no checking for secure_getenv... no checking for issetugid... yes checking for _malloc_thread_cleanup... no checking for _pthread_mutex_init_calloc_cb... no Forcing no TLS to avoid allocator/threading bootstrap issues checking whether C11 atomics is compilable... yes checking whether atomic(9) is compilable... no checking whether Darwin OSAtomic*() is compilable... yes checking whether madvise(2) is compilable... yes checking whether madvise(..., MADV_FREE) is compilable... yes checking whether madvise(..., MADV_DONTNEED) is compilable... yes checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... no checking for __builtin_clz... yes checking whether Darwin os_unfair_lock_*() is compilable... yes checking whether Darwin OSSpin*() is compilable... yes checking whether glibc malloc hook is compilable... no checking whether glibc memalign hook is compilable... no checking whether pthreads adaptive mutexes is compilable... no checking for stdbool.h that conforms to C99... yes checking for _Bool... yes configure: creating ./config.status config.status: creating Makefile config.status: creating jemalloc.pc config.status: creating doc/html.xsl config.status: creating doc/manpages.xsl config.status: creating doc/jemalloc.xml config.status: creating include/jemalloc/jemalloc_macros.h config.status: creating include/jemalloc/jemalloc_protos.h config.status: creating include/jemalloc/jemalloc_typedefs.h config.status: creating include/jemalloc/internal/jemalloc_internal.h config.status: creating test/test.sh config.status: creating test/include/test/jemalloc_test.h config.status: creating config.stamp config.status: creating bin/jemalloc-config config.status: creating bin/jemalloc.sh config.status: creating bin/jeprof config.status: creating include/jemalloc/jemalloc_defs.h config.status: creating include/jemalloc/internal/jemalloc_internal_defs.h config.status: creating test/include/test/jemalloc_test_defs.h config.status: executing include/jemalloc/internal/private_namespace.h commands config.status: executing include/jemalloc/internal/private_unnamespace.h commands config.status: executing include/jemalloc/internal/public_symbols.txt commands config.status: executing include/jemalloc/internal/public_namespace.h commands config.status: executing include/jemalloc/internal/public_unnamespace.h commands config.status: executing include/jemalloc/internal/size_classes.h commands config.status: executing include/jemalloc/jemalloc_protos_jet.h commands config.status: executing include/jemalloc/jemalloc_rename.h commands config.status: executing include/jemalloc/jemalloc_mangle.h commands config.status: executing include/jemalloc/jemalloc_mangle_jet.h commands config.status: executing include/jemalloc/jemalloc.h commands =============================================================================== jemalloc version : 4.5.0-0-g04380e79f1e2428bd0ad000bbc6e3d2dfc6b66a5 library revision : 2 CONFIG : CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc --prefix=/Users/daniel.olivares/Development/neovim/.deps/usr LDFLAGS=-L/usr/local/opt/openssl/lib CPPFLAGS=-I/usr/local/opt/openssl/include CC : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc CONFIGURE_CFLAGS : -std=gnu11 -Wall -Werror=declaration-after-statement -Wshorten-64-to-32 -Wsign-compare -pipe -g3 -O3 -funroll-loops SPECIFIED_CFLAGS : EXTRA_CFLAGS : CPPFLAGS : -I/usr/local/opt/openssl/include -D_REENTRANT LDFLAGS : -L/usr/local/opt/openssl/lib EXTRA_LDFLAGS : LIBS : -lpthread RPATH_EXTRA : XSLTPROC : /usr/bin/xsltproc XSLROOT : PREFIX : /Users/daniel.olivares/Development/neovim/.deps/usr BINDIR : /Users/daniel.olivares/Development/neovim/.deps/usr/bin DATADIR : /Users/daniel.olivares/Development/neovim/.deps/usr/share INCLUDEDIR : /Users/daniel.olivares/Development/neovim/.deps/usr/include LIBDIR : /Users/daniel.olivares/Development/neovim/.deps/usr/lib MANDIR : /Users/daniel.olivares/Development/neovim/.deps/usr/share/man srcroot : abs_srcroot : /Users/daniel.olivares/Development/neovim/.deps/build/src/jemalloc/ objroot : abs_objroot : /Users/daniel.olivares/Development/neovim/.deps/build/src/jemalloc/ JEMALLOC_PREFIX : je_ JEMALLOC_PRIVATE_NAMESPACE : je_ install_suffix : malloc_conf : autogen : 0 cc-silence : 1 debug : 0 code-coverage : 0 stats : 1 prof : 0 prof-libunwind : 0 prof-libgcc : 0 prof-gcc : 0 tcache : 1 thp : 0 fill : 1 utrace : 0 valgrind : 0 xmalloc : 0 munmap : 1 lazy_lock : 0 tls : 0 cache-oblivious : 1 =============================================================================== [44/90] Performing build step for 'unibilium' gmake[1]: Entering directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/unibilium' glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o unibilium.lo -c unibilium.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c unibilium.c -fno-common -DPIC -o .libs/unibilium.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c unibilium.c -o unibilium.o >/dev/null 2>&1 glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o uninames.lo -c uninames.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c uninames.c -fno-common -DPIC -o .libs/uninames.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c uninames.c -o uninames.o >/dev/null 2>&1 glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -DTERMINFO_DIRS='"/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo"' -Wall -std=c99 -fPIC -o uniutil.lo -c uniutil.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -DTERMINFO_DIRS=\"/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo\" -Wall -std=c99 -fPIC -c uniutil.c -fno-common -DPIC -o .libs/uniutil.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -DTERMINFO_DIRS=\"/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo\" -Wall -std=c99 -fPIC -c uniutil.c -o uniutil.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -rpath '/Users/daniel.olivares/Development/neovim/.deps/usr/lib' -version-info 4:0:0 -o libunibilium.la unibilium.lo uninames.lo uniutil.lo glibtool: link: clang -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libunibilium.4.dylib .libs/unibilium.o .libs/uninames.o .libs/uniutil.o -L/usr/local/opt/openssl/lib -install_name /Users/daniel.olivares/Development/neovim/.deps/usr/lib/libunibilium.4.dylib -compatibility_version 5 -current_version 5.0 -Wl,-single_module glibtool: link: (cd ".libs" && rm -f "libunibilium.dylib" && ln -s "libunibilium.4.dylib" "libunibilium.dylib") glibtool: link: ar cru .libs/libunibilium.a unibilium.o uninames.o uniutil.o glibtool: link: ranlib .libs/libunibilium.a glibtool: link: ( cd ".libs" && rm -f "libunibilium.la" && ln -s "../libunibilium.la" "libunibilium.la" ) pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_from_term.pod | gzip > man/unibi_from_term.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_dump.pod | gzip > man/unibi_dump.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_add_ext_str.pod | gzip > man/unibi_add_ext_str.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_str_from_var.pod | gzip > man/unibi_str_from_var.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_num.pod | gzip > man/unibi_set_num.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_short_name_str.pod | gzip > man/unibi_short_name_str.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_add_ext_bool.pod | gzip > man/unibi_add_ext_bool.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_ext_str.pod | gzip > man/unibi_get_ext_str.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_num.pod | gzip > man/unibi_get_num.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_name_str.pod | gzip > man/unibi_name_str.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_from_fd.pod | gzip > man/unibi_from_fd.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_ext_bool_name.pod | gzip > man/unibi_set_ext_bool_name.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_ext_str_name.pod | gzip > man/unibi_set_ext_str_name.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_from_fp.pod | gzip > man/unibi_from_fp.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_name_num.pod | gzip > man/unibi_name_num.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_ext_str.pod | gzip > man/unibi_set_ext_str.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_ext_num_name.pod | gzip > man/unibi_get_ext_num_name.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_ext_bool.pod | gzip > man/unibi_set_ext_bool.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_ext_bool_name.pod | gzip > man/unibi_get_ext_bool_name.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_ext_bool.pod | gzip > man/unibi_get_ext_bool.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_short_name_num.pod | gzip > man/unibi_short_name_num.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_ext_str_name.pod | gzip > man/unibi_get_ext_str_name.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_count_ext_bool.pod | gzip > man/unibi_count_ext_bool.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_name_bool.pod | gzip > man/unibi_name_bool.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_var_from_num.pod | gzip > man/unibi_var_from_num.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_from_file.pod | gzip > man/unibi_from_file.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_ext_num.pod | gzip > man/unibi_set_ext_num.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_var_from_str.pod | gzip > man/unibi_var_from_str.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibilium.h.pod | gzip > man/unibilium.h.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_name.pod | gzip > man/unibi_set_name.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_str.pod | gzip > man/unibi_get_str.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_name.pod | gzip > man/unibi_get_name.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_add_ext_num.pod | gzip > man/unibi_add_ext_num.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_int_from_var.pod | gzip > man/unibi_int_from_var.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_from_mem.pod | gzip > man/unibi_from_mem.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_from_env.pod | gzip > man/unibi_from_env.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_terminfo_dirs.pod | gzip > man/unibi_terminfo_dirs.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_run.pod | gzip > man/unibi_run.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_bool.pod | gzip > man/unibi_set_bool.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_format.pod | gzip > man/unibi_format.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_dummy.pod | gzip > man/unibi_dummy.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_del_ext_bool.pod | gzip > man/unibi_del_ext_bool.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_ext_num_name.pod | gzip > man/unibi_set_ext_num_name.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_str.pod | gzip > man/unibi_set_str.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_set_aliases.pod | gzip > man/unibi_set_aliases.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_count_ext_str.pod | gzip > man/unibi_count_ext_str.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_short_name_bool.pod | gzip > man/unibi_short_name_bool.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_aliases.pod | gzip > man/unibi_get_aliases.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_bool.pod | gzip > man/unibi_get_bool.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_get_ext_num.pod | gzip > man/unibi_get_ext_num.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_destroy.pod | gzip > man/unibi_destroy.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_num_from_var.pod | gzip > man/unibi_num_from_var.3.gz pod2man -c "unibilium" -s3 -r "unibilium-2.0.0" doc/unibi_count_ext_num.pod | gzip > man/unibi_count_ext_num.3.gz glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o tools/gen-static-test.lo -c tools/gen-static-test.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c tools/gen-static-test.c -fno-common -DPIC -o tools/.libs/gen-static-test.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c tools/gen-static-test.c -o tools/gen-static-test.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o tools/gen-static-test libunibilium.la tools/gen-static-test.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o tools/.libs/gen-static-test tools/.libs/gen-static-test.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o tools/unibi-dump.lo -c tools/unibi-dump.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c tools/unibi-dump.c -fno-common -DPIC -o tools/.libs/unibi-dump.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c tools/unibi-dump.c -o tools/unibi-dump.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o tools/unibi-dump libunibilium.la tools/unibi-dump.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o tools/.libs/unibi-dump tools/.libs/unibi-dump.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o tools/unibi-put.lo -c tools/unibi-put.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c tools/unibi-put.c -fno-common -DPIC -o tools/.libs/unibi-put.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c tools/unibi-put.c -o tools/unibi-put.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o tools/unibi-put libunibilium.la tools/unibi-put.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o tools/.libs/unibi-put tools/.libs/unibi-put.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o t/static_screen.lo -c t/static_screen.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_screen.c -fno-common -DPIC -o t/.libs/static_screen.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_screen.c -o t/static_screen.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o t/static_screen.t libunibilium.la t/static_screen.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o t/.libs/static_screen.t t/.libs/static_screen.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o t/if-then-else.lo -c t/if-then-else.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/if-then-else.c -fno-common -DPIC -o t/.libs/if-then-else.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/if-then-else.c -o t/if-then-else.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o t/if-then-else.t libunibilium.la t/if-then-else.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o t/.libs/if-then-else.t t/.libs/if-then-else.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o t/wide-format.lo -c t/wide-format.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/wide-format.c -fno-common -DPIC -o t/.libs/wide-format.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/wide-format.c -o t/wide-format.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o t/wide-format.t libunibilium.la t/wide-format.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o t/.libs/wide-format.t t/.libs/wide-format.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o t/static_tmux.lo -c t/static_tmux.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_tmux.c -fno-common -DPIC -o t/.libs/static_tmux.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_tmux.c -o t/static_tmux.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o t/static_tmux.t libunibilium.la t/static_tmux.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o t/.libs/static_tmux.t t/.libs/static_tmux.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o t/static_xterm.lo -c t/static_xterm.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_xterm.c -fno-common -DPIC -o t/.libs/static_xterm.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_xterm.c -o t/static_xterm.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o t/static_xterm.t libunibilium.la t/static_xterm.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o t/.libs/static_xterm.t t/.libs/static_xterm.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o t/static_screen-256color.lo -c t/static_screen-256color.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_screen-256color.c -fno-common -DPIC -o t/.libs/static_screen-256color.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_screen-256color.c -o t/static_screen-256color.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o t/static_screen-256color.t libunibilium.la t/static_screen-256color.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o t/.libs/static_screen-256color.t t/.libs/static_screen-256color.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o t/00_load.lo -c t/00_load.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/00_load.c -fno-common -DPIC -o t/.libs/00_load.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/00_load.c -o t/00_load.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o t/00_load.t libunibilium.la t/00_load.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o t/.libs/00_load.t t/.libs/00_load.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib glibtool --mode=compile --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -o t/static_xterm-256color.lo -c t/static_xterm-256color.c glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_xterm-256color.c -fno-common -DPIC -o t/.libs/static_xterm-256color.o glibtool: compile: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I. -Wall -std=c99 -fPIC -c t/static_xterm-256color.c -o t/static_xterm-256color.o >/dev/null 2>&1 glibtool --mode=link --tag=CC /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -L/usr/local/opt/openssl/lib -o t/static_xterm-256color.t libunibilium.la t/static_xterm-256color.lo glibtool: link: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o t/.libs/static_xterm-256color.t t/.libs/static_xterm-256color.o -L/usr/local/opt/openssl/lib ./.libs/libunibilium.dylib rm tools/unibi-dump.lo t/wide-format.lo tools/unibi-put.lo t/static_xterm-256color.lo t/static_xterm.lo t/static_screen-256color.lo t/static_screen.lo tools/gen-static-test.lo t/00_load.lo t/if-then-else.lo t/static_tmux.lo gmake[1]: Leaving directory '/Users/daniel.olivares/Development/neovim/.deps/build/src/unibilium' [45/90] Performing configure step for 'libuv' + glibtoolize --copy glibtoolize: putting auxiliary files in '.'. glibtoolize: copying file './ltmain.sh' glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. glibtoolize: copying file 'm4/libtool.m4' glibtoolize: copying file 'm4/ltoptions.m4' glibtoolize: copying file 'm4/ltsugar.m4' glibtoolize: copying file 'm4/ltversion.m4' glibtoolize: copying file 'm4/lt~obsolete.m4' + aclocal -I m4 + autoconf + automake --add-missing --copy configure.ac:38: installing './ar-lib' configure.ac:25: installing './compile' configure.ac:22: installing './config.guess' configure.ac:22: installing './config.sub' configure.ac:21: installing './install-sh' configure.ac:21: installing './missing' Makefile.am: installing './depcomp' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /Users/daniel.olivares/Development/neovim/.deps/build/src/libuv/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether /usr/local/bin/gmake sets $(MAKE)... yes checking whether /usr/local/bin/gmake supports nested variables... yes checking build system type... x86_64-apple-darwin18.0.0 checking host system type... x86_64-apple-darwin18.0.0 checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc accepts -g... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc option to accept ISO C89... none needed checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc understands -c and -o together... yes checking whether /usr/local/bin/gmake supports the include directive... yes (GNU style) checking dependency style of /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc... gcc3 checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -pedantic flag... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc way to treat warnings as errors... -Werror checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -fvisibility=hidden... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -g flag... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -std=gnu89 flag... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -Wall flag... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -Wextra flag... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -Wno-unused-parameter flag... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -Wstrict-prototypes flag... yes checking for ar... ar checking the archiver (ar) interface... ar checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking how to convert x86_64-apple-darwin18.0.0 file names to x86_64-apple-darwin18.0.0 format... func_convert_file_noop checking how to convert x86_64-apple-darwin18.0.0 file names to toolchain format... func_convert_file_noop checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dsymutil... dsymutil checking for nmedit... nmedit checking for lipo... lipo checking for otool... otool checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking for -force_load linker flag... yes checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -fno-rtti -fno-exceptions... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc option to produce PIC... -fno-common -DPIC checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc PIC flag -fno-common -DPIC works... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc static flag -static works... no checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -c -o file.o... yes checking if /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc supports -c -o file.o... (cached) yes checking whether the /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin18.0.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking whether /usr/local/bin/gmake supports nested variables... (cached) yes checking for dlopen in -ldl... yes checking for kstat_lookup in -lkstat... no checking for gethostbyname in -lnsl... no checking for perfstat_cpu in -lperfstat... no checking for pthread_mutex_init in -lpthread... yes checking for clock_gettime in -lrt... no checking for sendfile in -lsendfile... no checking for socket in -lsocket... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for kvm_open in -lkvm... no checking sys/ahafs_evProds.h usability... no checking sys/ahafs_evProds.h presence... no checking for sys/ahafs_evProds.h... no checking for pkg-config... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating libuv.pc config.status: creating Makefile config.status: executing depfiles commands config.status: executing libtool commands ninja: build stopped: subcommand failed. make: *** [deps] Error 1 ```

With particular interest here:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -g -L/usr/local/opt/openssl/lib   -o host/minilua host/minilua.o -lm
ld: library not found for -lgcc_s.10.4

Which might be related to the issues the homebrew-core peeps are having.

FuzzOli87 commented 5 years ago

After some digging, I finally got it to build locally by running: export MACOSX_DEPLOYMENT_TARGET=10.14 I was led to this by: https://github.com/Homebrew/homebrew-core/issues/31483 Which led to this: https://luajit.org/install.html

And finally, led to my experimentation which worked. I don't know anything about the build process or how/when this variable is set, if even, but that worked for me.

jamessan commented 5 years ago

Ok, well that correlates with the CMake documentation I linked earlier. I guess the question is why this isn't being set in your build environment.

My assumption (never having built anything on macOS) is that there are certain environment variables set based on the SDK you're building with, which CMake should be able to pick up. Maybe that's not the case and everyone used to just get away with it because the headers were installed to /usr/include.

In which case, maybe there's a "run terminal with SDK environment set" button somewhere that people should be using to perform builds. I know there is on the Windows side of the world, since you can have multiple SDKs installed, so you start a cmd prompt targeting the SDK you're trying to build with.

clason commented 5 years ago

Note that @FuzzOli87 seems to have had already installed the compatibility package at this point.

macOS is a bit of a walled garden; Apple assumes that people are building macOS apps with the macOS tools, which know the correct path... (I share your suspicion on why other things mostly "just work".) I myself rely on homebrew for compiling open source software.

Unfortunately, there's no "developer terminal"; the used developer environment is selected from the command line via an xcode-select utility (or from within Xcode, if that is installed). This includes the SDKs; the command line tools should automatically pick up the right SDK (I have no idea how cross-compilation works on macOS). Why this doesn't happen here is not clear to me; either (a not Mojave-aware version of) cmake overrides this with "default" settings, or some settings were cached before upgrading to Mojave and were still being picked up.

Ideally, it suffices to do

MACOSX_DEPLOYMENT_TARGET=10.14 make

(and, if so, add this to the build instructions), but it's apparently not that easy. (CMake seems to be picking up the correct SYSROOT, though, so something else must be going on.)

jamessan commented 5 years ago

If there's a way to query the running macOS for the version, then we could default MACOSX_DEPLOYMENT_TARGET to that, if it isn't already set.

jamessan commented 5 years ago

Does this diff help?

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 02b555d54..8fb213638 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,10 @@
 #   intro: https://codingnest.com/basic-cmake/
 #   best practices (3.0+): https://gist.github.com/mbinna/c61dbb39bca0e4fb7d1f73b0d66a4fd1

+if(APPLE AND NOT DEFINED ENV{MACOSX_DEPLOYMENT_TARGET} AND NOT DEFINED ENV{SDKROOT})
+  set(CMAKE_OSX_DEPLOYMENT_TARGET ${CMAKE_SYSTEM_VERSION})
+endif()
+
 cmake_minimum_required(VERSION 2.8.12)
 project(nvim C)
clason commented 5 years ago

@jamessan Unfortunately not.

But that's not the problem -- I can compile libuv and luajit individually from the respective source directories in .deps/build/src (setting the $MACOSX_DEPLOYMENT_TARGET for luajit first), but make deps fails (with conftest complaining about 'stdio.h' file not found).

jamessan commented 5 years ago

Ah, right. What if add those 3 lines to third-party/CMakeLists.txt before project(NVIM_DEPS)?

clason commented 5 years ago

Still no luck 😞 (And setting the environment variable manually before building also doesn't work -- for some reason, it must get overwritten or discarded downstream.)

I'm just doing make from the top-level directory of a fresh checkout of the neovim repo, by the way (which works in Linux).

jamessan commented 5 years ago

Ok, then someone will need to do some more investigation. :)

clason commented 5 years ago

And probably see why homebrew's https://github.com/Homebrew/homebrew-core/blob/master/Formula/neovim.rb works while make doesn't :)

(Honestly, I'm fine with relying on homebrew for compiling neovim on macOS. And if anything needs to be changed on the neovim side to keep this working later on, I'm sure the brew community will open a much more detailed issue.)

danilo-augusto commented 5 years ago

@clason Both builds crash for me though

FuzzOli87 commented 5 years ago

@clason I installed the header stuff that you pointed too earlier. And I also ran brew reinstall to reinstall everything, including the listed dependencies to build neovim.

@jamessan If you need to find out anything else about my environment, let me know and I can provide.

danilo-augusto commented 5 years ago

Solved for me by installing the newest version of Xcode and its tools. πŸŽ‰

ChrisBFusion commented 5 years ago

I have Xcode 10.0 with its tools installed and the build fails similarly. nvimbuild.txt

zhaozg commented 5 years ago

I meet same issue after install Mojave

  1. after xcode-select --install, issue exist
  2. after open xcode.app, auto install components, issue keep exist
  3. after open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg , issue keep exist
  4. after sudo xcode-select -s /Library/Developer/CommandLineTools , issue keep exist
  5. keep eye on this.

Got it, Update makefile for Luajit will pass. Success build after remove https://github.com/LuaJIT/LuaJIT/blob/master/src/Makefile#L301-L303 lines

dm1try commented 5 years ago

ok, one more working recipe just arrived :)

it works without installing the compatibility package mentioned above, though I'm still not sure who to blame; will investigate this later

dm1try commented 5 years ago

Hi, there! So I did some investigation^

Actually, the providing two additional environment variables(MACOSX_DEPLOYMENT_TARGET and SDKROOT) points that we have ✌️ problems :

  1. the first one, that was already mentioned above,luajit sets MACOSX_DEPLOYMENT_TARGET to 10.4 if it is not provided(see the docs, code). IMHO the implicit setting of this value leads to inconsistency(some components are built with the default target if the value is not provided, but the luajit is built with 10.4) for this target value on Mojave clang(in cooperation with ld) cannot find system lib:
    
    # 10.4
    MACOSX_DEPLOYMENT_TARGET=10.4 cc -lgcc_s.1
    ld: library not found for -lgcc_s.10.4

default

cc -lgcc_s.1 Undefined symbols for architecture x86_64: "_main", referenced from: ...

So if `MACOSX_DEPLOYMENT_TARGET` is not provided we can set `CMAKE_OSX_DEPLOYMENT_TARGET` value to it while building `luagit` here:
https://github.com/neovim/neovim/blob/e568ac7a68d3b7a05af34d931fad1d2c18fa396c/third-party/cmake/BuildLuajit.cmake#L53-L54
In the case `MACOSX_DEPLOYMENT_TARGET/CMAKE_OSX_DEPLOYMENT_TARGET` is empty, it looks like `clang` will fallback to a default value

MACOSX_DEPLOYMENT_TARGET= cc -lgcc_s.1 Undefined symbols for architecture x86_64: "_main", referenced from: ...


So all components should depend on `CMAKE_OSX_DEPLOYMENT_TARGET` at least, otherwise, a user must provide `MACOSX_DEPLOYMENT_TARGET` explicitly for solving the issue^

2. the second issue is related to the latest changes in the management of system headers(they moved from `/usr/include` to MacOS SDK path; was also mentioned above). the trick is what how this path is resolved by `clang`.
if you run `clang` directly from toolchain without providing `isysroot` option it cannot resolve the sdk path, that leads to the build errors:

configure:3481: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o conftes conftest.c >&5 configure:3485: $? = 0 configure:3507: result: configure:3529: checking whether we are cross compiling configure:3537: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -o conftes conftest.c >&5 conftest.c:11:10: fatal error: 'stdio.h' file not found

include

host/minilua.c:34:10: fatal error: 'math.h' file not found

include

So to make the compiler happy we should provide sdk path to the compiler in `isysroot` option(does it sound like a proper solution?). On my machine those values are properly resolved by `cmake`

cmake -LA &> /dev/null| grep 'COMPILER|SDK' CMAKE_C_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk

 but sdk path is not passed to the compiler.

OK. But why does the explicit `SDKROOT` value also solve the problem? `SDKROOT` is just another way to pass sdk path to the `clang`; internally it is used by `xcrun` tool
   xcrun provides a means to locate or invoke developer tools from the command-line, without requiring users to modify Makefiles or otherwise take inconvenient measures to support multiple Xcode tool chains.
   SDKROOT
      Specifies the default SDK to be used when looking up tools (some tools may have SDK specific versions).
      ....
      For example, if xcrun is used to invoke clang via:
          xcrun --sdk macosx clang test.c
      then xcrun will provide the full path to the macosx SDK in the environment variable SDKROOT. That in turn will be used by clang(1) to automatically select that SDK when compiling the test.c file.

so according to all this information, the updated snippet to make the build on Mojave is:
```bash
# make clang happy and trick luajit πŸ˜„ 
make SDKROOT=`xcrun --show-sdk-path` MACOSX_DEPLOYMENT_TARGET=

I'm still not sure about the proper solution for the second problem, though

justinmk commented 5 years ago

Nice. Can you send a patch?

dm1try commented 5 years ago

Nice. Can you send a patch?

sure, I'm going to continue tomorrow and make a PR(will check the possible solution for the second problem)

nyngwang commented 2 years ago

I'm using macOS Monterey 12.2.1, and I encountered build error minutes ago. This resolves my problem:

sudo make distclean
Sleepful commented 2 months ago

thank you @nyngwang