-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Errors cross compiling go-yara #23
Comments
The I have never tried to work with xgo, can you provide the command line you used? |
Hi, I cut some bits just for shorten it a little bit. Compiling & Installing YaraYou can see while configuring the Yara sources log2 is availabe.
Compiling the project with go-yaraDo you have any idea why this is happening? I put the entire log.
|
@Xumeiquer Please tell me what exact command you used to build your program so I can try to reproduce it. One thing that strikes me as odd is that even though you seem to have built a custom copy of yara, libyara that has been installed to /usr/local/ is used by the build system. |
Hi, As I already said I am using What I suggest if you try to reproduce is to download the It may be a little bit tedious but it is a way to cross compile projects easily. After all of this, the command line I use to build my project is:
The same way to cross compile my project for Linux 64bit I use the following command:
Just in case you ask, I can cross compile without any issues for Windows and Darwin. |
A thing that seems odd to me is that you are patching specific configure options into the setup script; did Could you try if adding |
Hi, I also tried to modify the yara.pc, but unfortunately it doesn't work either. What I have done in terms to "debug" this is running the build process manually step by step. I have discover that exporting the
Do you have any clue about if it would be possible to add |
Using --depsargs doesn't work because what yara build process needs is
to run the bootstrap first.
Ah, this is probably why I roll my own scripts / Makefiles for
cross-building instead of relying on tools like xgo. :-)
I also tried to modify the yara.pc, but unfortunately it doesn't work
either.
Ah, I forgot to mention it: You'd have to pass the "yara_static" build
tag, so the Go toolchain calls "pkg-config --static yara".
|
Assuming that the issue has been fixed or become irrelevant at some point in the last 5 years, I'm closing it. |
I am trying to cross compile go-yara for x86 and x64 and I am getting some errors.
The tool set for cross compiling is xgo.
I can cross compile correctly for
darwin
orwindows
, but I am unable to do it forlinux
.x64
x86
I am not sure that the errors came either from go-yara or yara itself.
If you need more datils, please ask them.
The text was updated successfully, but these errors were encountered: