-
Notifications
You must be signed in to change notification settings - Fork 413
cross compiling libgit2-sys 0.7.6 fails with http-parser installed on the host #337
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
Comments
Hm yeah that says This'll probably invole poking around libgit2's build system to see if there's a way we can force it http-parser to not be detected from the environment and the built-in one to be used |
It turns out http-parser doesn't provide a consistent way to find it, and there is a CMake module that doesn't seem to consider cross-compiling in libgit2: see
There is this option in libgit2's CMakeLists.txt that can be used to force that: Adding Maybe cross-compilation can be detected in |
Oh awesome, that sounds perfect! When the environment variable |
will do :) |
Should be fixed with https://github.com/alexcrichton/git2-rs/pull/338! |
The details of my system are as follows:
When cross compiling to armv7 (armv7-unknown-linux-gnueabihf) and http-parser is installed on the main system the build fails. It seems CMake is not looking for http-parser on the target paths:
The naive, and fastest workaround is uninstalling http-parser from the host system. I've been looking around for some environment variable that I can pass to CMake to build it with the bundled http-parser with no luck.
Here is the full log:
The text was updated successfully, but these errors were encountered: