-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unix AIX - Problem to build node_exporter #840
Comments
There is not much we can do there. AIX does not seem to be supported by golang.org/x/crypto and this seems to be the root cause of your error. You may try to open a ticket to this library but I'm not sure that this target is in their scope. What we may do to mitigate your build problem is to provide an empty implementation for AIX of checkIfTerminal which would always return false, the drawback would be that the TextFormatter could not automatically activate output coloring. Alas, there is no way to perform nor testing neither cross-compiling for aix. I've no idea which build constraint or file extension must be set with gccgo on the specific aix file to only be included on aix build, and which build constraint to add in the file terminal_check_notappengine.go to exclude from the aix build. As you have such environment to test, if you provide a patch which pass all our builds and test suite, I would happily merge it in our code base. |
Actually you probably can set any build constraint from the command line in gccgo. |
Can you test if the branch I've just pushed upstream/fix_aix_build fixes your issue ? |
Hi david, Thanks a lot ! For information:
When we run a "/opt/freeware/bin/make -i", there is lots of others errors..
Finaly, i'm not sure node_exporter can be build for AIX system. |
@BilouteMaif can you confirm first that the branch builds for aix target and that all tests pass ? |
@BilouteMaif can you provide some feedback on the proposed fix ? |
Hi david, Sorry for the delay, i was on vacation. |
We try to build node_exporter v0.15.2 on aix system v7.2.
Prerequisites:
yum (and its dependencies), gcc-go version gccgo go1.10 (GCC) 8.1.0 aix / ppc (and its dependencies) and git version 2.8.1 (and its dependencies).
It failed with this issue:
[root@samaq024] /data/go/src/github.com/prometheus/node_exporter
# /opt/freeware/bin/make
>> formatting code
>> vetting code
# github.com/prometheus/node_exporter/vendor/github.com/sirupsen/logrus
vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go:15:19: error: reference to > undefined identifier 'terminal.IsTerminal'
return terminal.IsTerminal(int(v.Fd()))
^
make: *** [Makefile:98: vet] Error 2
Logrus version is 1.1.1
Exchange in prometheus-users group:
https://groups.google.com/forum/#!topic/prometheus-users/-TloFSp7y54
The text was updated successfully, but these errors were encountered: