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

failed to install on Mac OS #46

Open
gomjellie opened this issue May 29, 2020 · 2 comments
Open

failed to install on Mac OS #46

gomjellie opened this issue May 29, 2020 · 2 comments

Comments

@gomjellie
Copy link

gomjellie commented May 29, 2020

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
@hexagonal-sun
Copy link
Owner

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?

@gomjellie
Copy link
Author

I have default one.

libtool -V
> Apple Inc. version cctools-959.0.1

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

2 participants