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

LLVM build fails with "libtool: unrecognized option `-static'" #118

Closed
prokash opened this issue Jan 29, 2018 · 5 comments
Closed

LLVM build fails with "libtool: unrecognized option `-static'" #118

prokash opened this issue Jan 29, 2018 · 5 comments

Comments

@prokash
Copy link

prokash commented Jan 29, 2018

I downloaded the source on 1/26/2018. It does have lot more help. But I'm having problem with the LLVM part of the whole build ---

[  1%] Performing build step for 'llvm-project'
[  0%] Linking CXX static library ../libLLVMSupport.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make[5]: *** [lib/libLLVMSupport.a] Error 1
make[4]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [external/src/llvm-project-stamp/llvm-project-build] Error 2
make[1]: *** [deps/llvm/CMakeFiles/llvm-project.dir/all] Error 2

Now if I go directly to the source of this external component and issue a make, I get --

[  0%] Linking CXX static library ../libLLVMSupport.a
libtool: unrecognized option `-static'
libtool: Try `libtool --help' for more information.
make[2]: *** [lib/libLLVMSupport.a] Error 1
make[1]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: *** [all] Error 2

So is anyone else seeing this on OS X 10.11 build environment ???

Thanks in advance,
Prokash

@PeterMatula
Copy link
Collaborator

What does command which libtool return?

@s3rvac s3rvac changed the title LLVM library not found LLVM build fails with "libtool: unrecognized option `-static'" Jan 30, 2018
@prokash
Copy link
Author

prokash commented Jan 30, 2018

Thanks for change of Title!
I guess that also answers PeterMatula's Question ...

@prokash
Copy link
Author

prokash commented Jan 30, 2018

BTW, any pointers is well appreciated, since I could not use any of the shelf built binaries of this for Mac.

@s3rvac
Copy link
Member

s3rvac commented Jan 31, 2018

@prokash I suspect that you have an incompatible version of libtool in your PATH (e.g. GNU libtool from MacPorts or Homebrew). You will need to adjust your PATH so that libtool runs /usr/bin/libtool that comes from Xcode (running which libtool should print /usr/bin/libtool). For more details, see the following links

Let us know if this solved the build issue.

@s3rvac
Copy link
Member

s3rvac commented Feb 15, 2018

I am closing the issue as there was no reaction in the past 14 days. If the hint above did not fix the build issue for you, feel free to reopen.

@s3rvac s3rvac closed this as completed Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants