-
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
Build fails without Go source tree #5
Comments
There is a possible fix, but I'm not sure, try changing:
to:
|
Also you were pointing at line 74 in waftools/go.py, doesn't make sense to me, I see no 'bld' even around it: |
Sorry, line 173. I'm at work right now and can't test your fix, but I'll be sure to give it a shot and let you know soon. |
Indeed a bug on line 173. I've applied a fix and now the code uses |
Building gogobject failed for me because the internal go tool dist failed with this error (I'm using openSUSE, not Ubuntu, but it's the same error). The dist tool appears to expect you to be working from the Go source tree, but I installed it through my package manager, which effectively renders it useless.
In order to get the build to work, I changed this section of code in
waftools/go.py
into
This forces waf to check the system variables directly, rather than the dist tool. The downside to this is that any missing variables (like GOHOSTARCH and GOCHAR) need to be set and exported before building. For reference, here are the values I used to get it working (64-bit openSUSE):
Every variable needs to have a value, because otherwise line 74 in waftools/go.py throws this error:
After that, I was able to get it to build.
If there's a way to use the go tools to get values for each of these variables without requiring the Go source code, that would be a preferable fix, but I'm not familiar enough with them to know if there's an easy way to do that.
Hope this helps.
The text was updated successfully, but these errors were encountered: