Skip to content
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

process_collector: fix compilation on 32-bit targets #446

Merged
merged 1 commit into from
Jun 27, 2022
Merged

process_collector: fix compilation on 32-bit targets #446

merged 1 commit into from
Jun 27, 2022

Conversation

jedisct1
Copy link
Contributor

The crate didn't compile on 32-bit targets any more due to libc::sysconf() returning a 32-bit value on those targets.

Fixes #442

jedisct1 added a commit to DNSCrypt/encrypted-dns-server that referenced this pull request Jun 24, 2022
This is extremely useful, in particular to watch the number of
file descriptors used by the application.

Unfortunately, the prometheus crate is currently broken on 32-bit
platforms.

For that reason, Until tikv/rust-prometheus#446
is merged, we have to use a fork on that crate.
@lucab
Copy link
Member

lucab commented Jun 27, 2022

LGTM, thanks for the patch, can you please sign-off your commit?

The crate didn't compile on 32-bit targets any more due to
libc::sysconf() returning a 32-bit value on those targets.

Signed-off-by: Frank Denis <github@pureftpd.org>
@jedisct1
Copy link
Contributor Author

LGTM, thanks for the patch, can you please sign-off your commit?

Done!

@lucab lucab merged commit 5ca37fe into tikv:master Jun 27, 2022
@jedisct1 jedisct1 deleted the 32-bit-fix branch June 27, 2022 13:14
@yinheli
Copy link

yinheli commented Sep 6, 2022

ping @lucab @overvenus, Could you please publish this to crates.io ?

@jedisct1
Copy link
Contributor Author

jedisct1 commented Sep 6, 2022

@yinheli meanwhile your can use the prometheus-32bitfix crate.

@lucab lucab mentioned this pull request Sep 7, 2022
@lucab
Copy link
Member

lucab commented Sep 7, 2022

Oh yes sorry, I wanted to tackle #451 too before releasing but never found proper time for that.
Let's not delay this any longer and cut 0.13.2 directly, PR at #457.

JanBerktold pushed a commit to JanBerktold/rust-prometheus that referenced this pull request Nov 12, 2022
The crate didn't compile on 32-bit targets any more due to
libc::sysconf() returning a 32-bit value on those targets.

Signed-off-by: Frank Denis <github@pureftpd.org>
Signed-off-by: Jan Berktold <jberktold@roblox.com>
JanBerktold pushed a commit to JanBerktold/rust-prometheus that referenced this pull request Nov 12, 2022
The crate didn't compile on 32-bit targets any more due to
libc::sysconf() returning a 32-bit value on those targets.

Signed-off-by: Frank Denis <github@pureftpd.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cross-compilation broken for 32-bit builds
3 participants