Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hererocks setup failed on macos 10.15 #4

Closed
WinWisely268 opened this issue Jul 7, 2020 · 8 comments
Closed

hererocks setup failed on macos 10.15 #4

WinWisely268 opened this issue Jul 7, 2020 · 8 comments

Comments

@WinWisely268
Copy link
Contributor

Logs:

Fetching LuaJIT 2.1.0-beta3 (cached)
Verifying SHA256 checksum
Building LuaJIT 2.1.0-beta3
Running make
==== Building LuaJIT 2.1.0-beta3 ====
/Library/Developer/CommandLineTools/usr/bin/make -C src
HOSTCC    host/minilua.o
HOSTLINK  host/minilua
DYNASM    host/buildvm_arch.h
HOSTCC    host/buildvm.o
HOSTCC    host/buildvm_asm.o
HOSTCC    host/buildvm_peobj.o
HOSTCC    host/buildvm_lib.o
HOSTCC    host/buildvm_fold.o
HOSTLINK  host/buildvm
BUILDVM   lj_vm.S
ASM       lj_vm.o
CC        lj_gc.o
BUILDVM   lj_ffdef.h
CC        lj_err.o
CC        lj_char.o
BUILDVM   lj_bcdef.h
CC        lj_bc.o
CC        lj_obj.o
CC        lj_buf.o
CC        lj_str.o
CC        lj_tab.o
CC        lj_func.o
CC        lj_udata.o
CC        lj_meta.o
CC        lj_debug.o
CC        lj_state.o
CC        lj_dispatch.o
CC        lj_vmevent.o
CC        lj_vmmath.o
CC        lj_strscan.o
CC        lj_strfmt.o
CC        lj_strfmt_num.o
CC        lj_api.o
CC        lj_profile.o
CC        lj_lex.o
CC        lj_parse.o
CC        lj_bcread.o
CC        lj_bcwrite.o
CC        lj_load.o
CC        lj_ir.o
CC        lj_opt_mem.o
BUILDVM   lj_folddef.h
CC        lj_opt_fold.o
CC        lj_opt_narrow.o
CC        lj_opt_dce.o
CC        lj_opt_loop.o
CC        lj_opt_split.o
CC        lj_opt_sink.o
CC        lj_mcode.o
CC        lj_snap.o
CC        lj_record.o
CC        lj_crecord.o
BUILDVM   lj_recdef.h
CC        lj_ffrecord.o
CC        lj_asm.o
CC        lj_trace.o
CC        lj_gdbjit.o
CC        lj_ctype.o
CC        lj_cdata.o
CC        lj_cconv.o
CC        lj_ccall.o
CC        lj_ccallback.o
CC        lj_carith.o
CC        lj_clib.o
CC        lj_cparse.o
CC        lj_lib.o
CC        lj_alloc.o
CC        lib_aux.o
BUILDVM   lj_libdef.h
CC        lib_base.o
CC        lib_math.o
CC        lib_bit.o
CC        lib_string.o
CC        lib_table.o
CC        lib_io.o
CC        lib_os.o
CC        lib_package.o
CC        lib_debug.o
CC        lib_jit.o
CC        lib_ffi.o
CC        lib_init.o
AR        libluajit.a
CC        luajit.o
BUILDVM   jit/vmdef.lua
DYNLINK   libluajit.so
LINK      luajit
Undefined symbols for architecture x86_64:
  "__Unwind_DeleteException", referenced from:
      _lj_err_unwind_dwarf in libluajit.a(lj_err.o)
  "__Unwind_GetCFA", referenced from:
      _lj_err_unwind_dwarf in libluajit.a(lj_err.o)
  "__Unwind_RaiseException", referenced from:
      _lj_err_throw in libluajit.a(lj_err.o)
  "__Unwind_SetGR", referenced from:
      _lj_err_unwind_dwarf in libluajit.a(lj_err.o)
  "__Unwind_SetIP", referenced from:
      _lj_err_unwind_dwarf in libluajit.a(lj_err.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [luajit] Error 1
make: *** [default] Error 2
Error: got exitcode 2 from command make

[Process exited 1]

Neovim version:

NVIM v0.5.0-589-g91572ddad
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/Users/travis/build/neovim/bot-ci/build/neovim/build/config -I/Users/travis/build/neovim/bot-ci/build/neovim/src -I/Users/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/usr/local/opt/gettext/include -I/Users/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/Users/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by [email protected]

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info

Proposed solution:

set environment MACOSX_DEPLOYMENT_TARGET to 10.15

@tjdevries
Copy link
Member

Oh wow, someone is using this :)

Have you tested building this with that environment variable set? Did that fix the problem? Thanks for the issue btw.

@WinWisely268
Copy link
Contributor Author

WinWisely268 commented Jul 8, 2020

Yeah setting that env var fixed it.

Glad to help

@Mathijs-Bakker
Copy link

set environment MACOSX_DEPLOYMENT_TARGET to 10.15

Where do you set this environment?

@Mathijs-Bakker
Copy link

The results of print(vim.inspect(jit)):

{
  arch = "x64",
  attach = <function 1>,
  flush = <function 2>,
  off = <function 3>,
  on = <function 4>,
  opt = {
    start = <function 5>
  },
  os = "OSX",
  status = <function 6>,
  util = {
    funcbc = <function 7>,
    funcinfo = <function 8>,
    funck = <function 9>,
    funcuvname = <function 10>,
    ircalladdr = <function 11>,
    traceexitstub = <function 12>,
    traceinfo = <function 13>,
    traceir = <function 14>,
    tracek = <function 15>,
    tracemc = <function 16>,
    tracesnap = <function 17>
  },
  version = "LuaJIT 2.0.5",
  version_num = 20005
}

@tjdevries
Copy link
Member

I have a PR where I'm working on getting github actions working.

If I get this working, then I can add OSX to this and then actually test this for myself. Might be a bit because I'm working on a fewother projects at the moment, but hoping I can figure it out

@wbthomason
Copy link

@WinWisely268: how did you discover that setting that env var would help? (apologies if this is in the output you posted and I'm just blind)

@alanwsmith
Copy link

For those asking, this is what I did on Mac OS 11.x (Big Sur) to set the environmental variable in the terminal:

 export MACOSX_DEPLOYMENT_TARGET=10.15

I did that on the command line before trying to install nvim_rocks and it worked.

@tjdevries
Copy link
Member

I've removed neorocks btw, so you should use packer instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants