LuaJIT / LuaJIT

Mirror of the LuaJIT git repository
http://luajit.org
Other
4.71k stars 969 forks source link

Makefile MacOSX M1 Monterey ld: unknown option: -soname #832

Closed QuattroCS-Myriad closed 2 years ago

QuattroCS-Myriad commented 2 years ago

Hello,

I'm having this issue, I was not able to find a solution yet after searching

UILDVM jit/vmdef.lua DYNLINK libluajit.so ld: unknown option: -soname clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [libluajit.so] Error 1 make: [default] Error 2

any help appreciated Thank you

QuattroCS-Myriad commented 2 years ago

~/git/luajit   v2.1 ±  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_assert.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_prng.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_serialize.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_buffer.o CC lib_init.o AR libluajit.a CC luajit.o BUILDVM jit/vmdef.lua DYNLINK libluajit.so ld: unknown option: -soname clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: [libluajit.so] Error 1 make: [default] Error 2

MikePall commented 2 years ago

This shouldn't happen, because the -soname option is not used at all for macOS builds. The Makefile assumes uname -s returns Darwin on macOS. If that's not the case in your build environment, then I'd like to know what it returns. Maybe try with a standard account without any environment variables set except for MACOSX_DEPLOYMENT_TARGET.

QuattroCS-Myriad commented 2 years ago
 ~  uname -s
Darwin

I realized what my issue was, I commented out more than mentioned

https://github.com/LuaJIT/LuaJIT/issues/653

Made a new copy started fresh, it completed make.

Thank you for the assistance.