-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can't compile for 32-bit Tigo systems? #3
Comments
Could you try to replace the
Otherwise I guess you would need to also patch that out of |
Even after replacing 64 with 32 everywhere in the main.rs file, the same problem persists compiling the prometheus-client. This however looks hopeful! prometheus/client_rust#206 |
yes this sounds promising |
Hi ! I’m writing this PR and have more coming for a more complete 32 bits support as I’m in the same embedded situation. Just prometheus/client_rust#206 by itself will not help you, you’ll also need at least prometheus/client_rust#203. I’m maintaining my master branch with a merged version that includes all my in-flight PRs, hopefully it should give you what you need. In particular, it contains some commits for things not currently present in any PRs, like You can try temporarily adding this to your Cargo.toml: [patch.crates-io]
prometheus-client = { git = "https://github.com/navaati/prometheus_client_rust.git", branch = "master" } Then cargo update to pin the git hash in your lock file and go on github and check the exact diff between that git hash and upstream master, that way you don’t have to trust me. I’ll make sure to leave that commit available in the repo until everything is upstream. You can track the current status of things in prometheus/client_rust#207 to know what works or not in upstream master. Test feedbacks are welcome :). |
That helped resolve a number of issues, however, I'm still not able to create that rust binary:
Just for fun, I gave this rust source file to ChatGPT and asked it to convert it to Go. With one additional follow up question, it was able to produce the code in .go and gave instructions to successfully create a working binary: https://github.com/zestysoft/tigo-exporter |
Heya, trying to cross compile this to work with my 32-bit (armv5) Tigo CCS running v2.8.5 of the firmware, but it looks like the prometheus-client might be 64-bit only. Just wondering if there is any workaround for this?
The text was updated successfully, but these errors were encountered: