ruby-packer icon indicating copy to clipboard operation
ruby-packer copied to clipboard

MacOS Errors

Open stahnma opened this issue 8 years ago • 1 comments

I've been trying to build a few things using rubyc on MacOS in the last couple days and getting symbol linking issues.

I'm on Sierra 10.12.6.

generating enc.mk
making srcs under enc
make[1]: Entering directory '/private/var/folders/11/5pldwnwx76xfh_qgmcqq15h80000gn/T/rubyc/ruby-2.4.1-0.5.0'
generating table from enc/trans/big5.c
dyld: lazy symbol binding failed: Symbol not found: _utimensat
  Referenced from: /private/var/folders/11/5pldwnwx76xfh_qgmcqq15h80000gn/T/rubyc/ruby-2.4.1-0.5.0/./miniruby
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _utimensat
  Referenced from: /private/var/folders/11/5pldwnwx76xfh_qgmcqq15h80000gn/T/rubyc/ruby-2.4.1-0.5.0/./miniruby
  Expected in: /usr/lib/libSystem.B.dylib

make[1]: *** [enc.mk:284: enc/trans/big5.c] Abort trap: 6
make[1]: Leaving directory '/private/var/folders/11/5pldwnwx76xfh_qgmcqq15h80000gn/T/rubyc/ruby-2.4.1-0.5.0'
make: *** [uncommon.mk:855: srcs-enc] Error 2

This attempt was to build rubyc from master.

bin/rubyc -c bin/rubyc

stahnma avatar Oct 10 '17 17:10 stahnma

Can you run xcode-select --install then retry running rubyc?

This seems to be a cross-project issue: https://github.com/rbenv/ruby-build/issues/1133#issuecomment-331498031

drbrain avatar May 09 '18 22:05 drbrain