* [ISSUE] [FTBFS] cargo for x86_64-musl
@ 2019-05-31 16:49 voidlinux-github
2019-06-01 11:41 ` voidlinux-github
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: voidlinux-github @ 2019-05-31 16:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 995 bytes --]
New issue by pullmoll on void-packages repository
https://github.com/void-linux/void-packages/issues/12058
Description: ```
â¦
Compiling jobserver v0.1.13
error[E0308]: mismatched types
--> /tmp/.cargo/registry/src/github.com-1ecc6299db9ec823/jobserver-0.1.13/src/lib.rs:665:40
|
665 | libc::pthread_kill(self.thread.as_pthread_t(), libc::SIGUSR1);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected *-ptr, found u64
|
= note: expected type `*mut imp::libc::c_void`
found type `u64`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `jobserver`.
warning: build failed, waiting for other jobs to finish...
error: build failed
=> ERROR: cargo-0.36.0_1: do_build: '$cargo build --release $(vopt_if static --features="all-static")' exited with 101
=> ERROR: in do_build() at srcpkgs/cargo/template:103
```
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [FTBFS] cargo for x86_64-musl
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
@ 2019-06-01 11:41 ` voidlinux-github
2019-06-01 12:33 ` voidlinux-github
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-06-01 11:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 763 bytes --]
New comment by pullmoll on void-packages repository
https://github.com/void-linux/void-packages/issues/12058#issuecomment-497937635
Comment:
Now trying to build rust for x86_64-musl with this patch:
```
--- rustc-1.35.0-src/vendor/libc/src/unix/notbsd/linux/mod.rs 2019-05-20 15:47:24.000000000 +0200
+++ rustc-1.35.0-src/vendor/libc/src/unix/notbsd/linux/mod.rs 2019-06-01 12:57:27.526582596 +0200
@@ -3,7 +3,7 @@
pub type useconds_t = u32;
pub type dev_t = u64;
pub type socklen_t = u32;
-pub type pthread_t = c_ulong;
+pub type pthread_t = u64;
pub type mode_t = u32;
pub type ino64_t = u64;
pub type off64_t = i64;
```
and see if that fixes building cargo.
I have no experience with rust and cargo so this patch may be plain stupid.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [FTBFS] cargo for x86_64-musl
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
2019-06-01 11:41 ` voidlinux-github
@ 2019-06-01 12:33 ` voidlinux-github
2019-06-01 13:04 ` voidlinux-github
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-06-01 12:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 805 bytes --]
New comment by pullmoll on void-packages repository
https://github.com/void-linux/void-packages/issues/12058#issuecomment-497937635
Comment:
Now trying to build rust for x86_64-musl with this patch:
```
--- rustc-1.35.0-src/vendor/libc/src/unix/notbsd/linux/mod.rs 2019-05-20 15:47:24.000000000 +0200
+++ rustc-1.35.0-src/vendor/libc/src/unix/notbsd/linux/mod.rs 2019-06-01 12:57:27.526582596 +0200
@@ -3,7 +3,7 @@
pub type useconds_t = u32;
pub type dev_t = u64;
pub type socklen_t = u32;
-pub type pthread_t = c_ulong;
+pub type pthread_t = u64;
pub type mode_t = u32;
pub type ino64_t = u64;
pub type off64_t = i64;
```
and see if that fixes building cargo.
I have no experience with rust and cargo so this patch may be plain stupid.
Edit: Nope, does not change a thing...
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [FTBFS] cargo for x86_64-musl
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
2019-06-01 11:41 ` voidlinux-github
2019-06-01 12:33 ` voidlinux-github
@ 2019-06-01 13:04 ` voidlinux-github
2019-06-01 13:14 ` voidlinux-github
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-06-01 13:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
New comment by jnbr on void-packages repository
https://github.com/void-linux/void-packages/issues/12058#issuecomment-497943573
Comment:
Interesting. Cargo doesn't ship with a `Caro.lock` file, so the versions of the dependencies can change and the builds aren't reproducible. The problem is most likely because of a change in the rust `libc` crate between version 0.2.56 and 0.2.57.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [FTBFS] cargo for x86_64-musl
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
` (2 preceding siblings ...)
2019-06-01 13:04 ` voidlinux-github
@ 2019-06-01 13:14 ` voidlinux-github
2019-06-01 13:14 ` voidlinux-github
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-06-01 13:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 513 bytes --]
New comment by jnbr on void-packages repository
https://github.com/void-linux/void-packages/issues/12058#issuecomment-497944240
Comment:
here is a workaround to use a fixed (working) version of libc:
```
--- a/srcpkgs/cargo/template
+++ b/srcpkgs/cargo/template
@@ -100,6 +100,9 @@ do_build() {
cargo="./cargo"
fi
+ $cargo update
+ $cargo update --package libc --precise 0.2.55
+
$cargo build --release $(vopt_if static --features="all-static")
}
```
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [FTBFS] cargo for x86_64-musl
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
` (3 preceding siblings ...)
2019-06-01 13:14 ` voidlinux-github
@ 2019-06-01 13:14 ` voidlinux-github
2019-06-01 14:32 ` voidlinux-github
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-06-01 13:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
New comment by jnbr on void-packages repository
https://github.com/void-linux/void-packages/issues/12058#issuecomment-497943573
Comment:
Interesting. Cargo doesn't ship with a `Caro.lock` file, so the versions of the dependencies can change and the builds aren't reproducible. The problem is most likely because of a change in the rust `libc` crate between version 0.2.55 and 0.2.57.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [FTBFS] cargo for x86_64-musl
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
` (4 preceding siblings ...)
2019-06-01 13:14 ` voidlinux-github
@ 2019-06-01 14:32 ` voidlinux-github
2019-06-02 23:20 ` voidlinux-github
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-06-01 14:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 206 bytes --]
New comment by pullmoll on void-packages repository
https://github.com/void-linux/void-packages/issues/12058#issuecomment-497949682
Comment:
Thanks @jnbr this indeed fixes the cargo build for x86_64-musl.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [FTBFS] cargo for x86_64-musl
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
` (5 preceding siblings ...)
2019-06-01 14:32 ` voidlinux-github
@ 2019-06-02 23:20 ` voidlinux-github
2019-06-03 13:38 ` voidlinux-github
2019-06-03 13:38 ` [ISSUE] [CLOSED] " voidlinux-github
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-06-02 23:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
New comment by jnbr on void-packages repository
https://github.com/void-linux/void-packages/issues/12058#issuecomment-498073770
Comment:
The definition of `libc::pthread_t` was changed [here](https://github.com/rust-lang/libc/commit/8f403e5ac262508b763da173d545195710d10494#diff-f78d94e8743c5dfc443c2b1351137950R1)
There is a PR for rustc to handle the breakage: https://github.com/rust-lang/rust/pull/61428
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [FTBFS] cargo for x86_64-musl
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
` (6 preceding siblings ...)
2019-06-02 23:20 ` voidlinux-github
@ 2019-06-03 13:38 ` voidlinux-github
2019-06-03 13:38 ` [ISSUE] [CLOSED] " voidlinux-github
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-06-03 13:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 198 bytes --]
New comment by jnbr on void-packages repository
https://github.com/void-linux/void-packages/issues/12058#issuecomment-498260380
Comment:
Fixed for now with b68db8e7f60a6e5ce57e77d7f6865b9bc7b28f76
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [ISSUE] [CLOSED] [FTBFS] cargo for x86_64-musl
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
` (7 preceding siblings ...)
2019-06-03 13:38 ` voidlinux-github
@ 2019-06-03 13:38 ` voidlinux-github
8 siblings, 0 replies; 10+ messages in thread
From: voidlinux-github @ 2019-06-03 13:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 998 bytes --]
Closed issue by pullmoll on void-packages repository
https://github.com/void-linux/void-packages/issues/12058
Description: ```
â¦
Compiling jobserver v0.1.13
error[E0308]: mismatched types
--> /tmp/.cargo/registry/src/github.com-1ecc6299db9ec823/jobserver-0.1.13/src/lib.rs:665:40
|
665 | libc::pthread_kill(self.thread.as_pthread_t(), libc::SIGUSR1);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected *-ptr, found u64
|
= note: expected type `*mut imp::libc::c_void`
found type `u64`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `jobserver`.
warning: build failed, waiting for other jobs to finish...
error: build failed
=> ERROR: cargo-0.36.0_1: do_build: '$cargo build --release $(vopt_if static --features="all-static")' exited with 101
=> ERROR: in do_build() at srcpkgs/cargo/template:103
```
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-06-03 13:38 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-31 16:49 [ISSUE] [FTBFS] cargo for x86_64-musl voidlinux-github
2019-06-01 11:41 ` voidlinux-github
2019-06-01 12:33 ` voidlinux-github
2019-06-01 13:04 ` voidlinux-github
2019-06-01 13:14 ` voidlinux-github
2019-06-01 13:14 ` voidlinux-github
2019-06-01 14:32 ` voidlinux-github
2019-06-02 23:20 ` voidlinux-github
2019-06-03 13:38 ` voidlinux-github
2019-06-03 13:38 ` [ISSUE] [CLOSED] " voidlinux-github
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).