bic icon indicating copy to clipboard operation
bic copied to clipboard

failed to install on Mac OS

Open gomjellie opened this issue 4 years ago • 2 comments

I tried to follow steps on README

input:

brew install bison flex gmp readline autoconf-archive
autoreconf -i

output:

Can't exec "aclocal": No such file or directory at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory

I googled how to resolve it and I found that I should install automake

input:

brew install automake
autoreconf -i
YACC="$(brew --prefix bison)/bin/bison -y" ./configure --enable-debug

and I found suspicious line at log of configure command

output:

...
checking ... yes
./configure: line 7593: LT_SYS_SYMBOL_USCORE: command not found 
checking ... yes
...

anyway I kept going on

input:

make

output:

/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in src
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in x86_64
make[4]: Nothing to be done for `all'.
  CCLD     bic
Undefined symbols for architecture x86_64:
  "___do_call", referenced from:
      _do_call in libbic_x86_64.a(libbic_x86_64_a-function_call.o)
  "_entry_point_0", referenced from:
      _get_entry_point_for_fn in libbic_x86_64.a(libbic_x86_64_a-ptr_call.o)
      _next_entry_point in libbic_x86_64.a(libbic_x86_64_a-ptr_call.o)
  "_entry_point_1", referenced from:
      _get_entry_point_for_fn in libbic_x86_64.a(libbic_x86_64_a-ptr_call.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[4]: *** [bic] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

gomjellie avatar May 29 '20 03:05 gomjellie

Hi there,

this looks like a missing dependency (one that's probably not listed in the README.md). The LT_SYS_SYMBOL_USCORE symbol is needed as MacOS prepends a __ before symbols. Since there is assembly in bic this needs to be detected and the symbol names prepended. It appears as though these macros are exported by libtool. Do you have that installed?

hexagonal-sun avatar Jun 09 '20 21:06 hexagonal-sun

I have default one.


libtool -V
> Apple Inc. version cctools-959.0.1

gomjellie avatar Jun 20 '20 14:06 gomjellie