Skip to content

Fails to build on x86_64-unknown-linux-gnux32 due to size mismatch (32 vs. 64 bits) #3

@glaubitz

Description

@glaubitz

Trying to bootstrap rustc for x86_64-unknown-linux-gnux32 fails due to mismatching sizes for self.thread.as_pthread_t():

   Compiling jobserver v0.1.8
   Compiling env_logger v0.4.3
error[E0308]: mismatched types
   --> /home/glaubitz/.cargo/registry/src/github.spider-man.dpdns.org-1ecc6299db9ec823/jobserver-0.1.8/src/lib.rs:628:40
    |
628 |                     libc::pthread_kill(self.thread.as_pthread_t(), libc::SIGUSR1);
    |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u64, found u32

error: aborting due to previous error

error: Could not compile `jobserver`.

Caused by:
  process didn't exit successfully: `/home/glaubitz/rust/rust/build/bootstrap/debug/rustc --crate-name jobserver /home/glaubitz/.cargo/registry/src/github.spider-man.dpdns.org-1ecc6299db9ec823/jobserver-0.1.8/src/lib.rs --error-format json --crate-type lib --emit=dep-info,link -C opt-level=2 -C metadata=d0dd8f3422c113bb -C extra-filename=-d0dd8f3422c113bb --out-dir /home/glaubitz/rust/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnux32/release/deps --target x86_64-unknown-linux-gnux32 -L dependency=/home/glaubitz/rust/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnux32/release/deps -L dependency=/home/glaubitz/rust/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/release/deps --extern libc=/home/glaubitz/rust/rust/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnux32/release/deps/liblibc-0d148f7402aae6cb.rlib --cap-lints allow` (exit code: 101)
warning: build failed, waiting for other jobs to finish...
error: build failed
thread 'main' panicked at 'command did not execute successfully: "/home/glaubitz/rust/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnux32" "--release" "--features" " jemalloc llvm" "--manifest-path" "/home/glaubitz/rust/rust/src/rustc/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101', src/bootstrap/compile.rs:873:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failed to run: /home/glaubitz/rust/rust/build/bootstrap/debug/bootstrap build
Build completed unsuccessfully in 0:29:29
Makefile:22: recipe for target 'all' failed
make: *** [all] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions