-
Notifications
You must be signed in to change notification settings - Fork 5
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
Example for static linking of go-clang #132
Comments
@zimmski Hi, the previous issue has been closed, I will write here. I totally figured out this issue. That's related the libc++ or libc++abi library. At least macOS system library is not compatible to LLVM..? Anyway I tried
exclude LLVM's and use system. It's always not hung at After that investigate, maybe I can write how to statically link the "go-clang-dump" example to README :) I'm glad if you merge it. |
It would be enormously helpful if you would contribute a solution for this issue :-) Do not worry about the binary size, it is statically linked after all. I tried Any ideas? |
@zimmski I think you are missing libclang.a in |
There is a libclang.a in the libdir directory:
|
Maybe it is a good idea to post the output of the command
|
@zimmski Thanks! :) Just now, I investigate the really require library file. https://gist.github.com/zchee/b02bbcf83fbc6041cf7bc6c665b2695e Note that I use darwin, you use openSUSE...?(I saw design repository issue thread) Also, actually I did build command and log is here. Please click arrow image.
|
The development environment of go-clang is still on Ubuntu Trusty (14.04) see https://github.com/go-clang/gen/#how-to-contribute |
@zimmski Ah! sorry, I posted I understand your environment. but, might be the number of Also what result of that?
Sorry, now I have not vagrant environment and might be wrong of dir path. EDIT:
So, |
@zimmski And now understand. Just for reference, your #116 (comment) comment Add: Here is |
I think I will wait for your working solution @zchee since this is not my strong suite, and I already put too much time into this. |
To make this portable, LLVM libraries should be parsed from They should be located in |
@zimmski Sorry for the delay. @jupp0r This is a very good reference for my future reference. Thanks to share. |
Maybe this thread helps https://groups.google.com/forum/#!msg/golang-nuts/hs8Gj1Ukqmc/hkskTVllEQAJ |
After go-clang/bootstrap#15 has been merged, it would be nice to add an example on how to statically link go-clang into a binary. There are some pointers in #116 but no working solution, yet. I tried to make this work but failed miserably. I would be really happy if someone else found a solution for to statically link the "go-clang-dump" example so that we can put it in the README (IMHO this should be in the bootstrap repository's README and therefore forwarded to every version repository).
The text was updated successfully, but these errors were encountered: