Closed Bug 1497976 Opened 6 years ago Closed 6 years ago

Build fails: error: failed to acquire jobserver token: Bad file descriptor (os error 9)

Categories

(Firefox Build System :: General, defect)

x86_64
Linux
defect
Not set
critical

Tracking

(firefox64 fixed)

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: kmag, Assigned: kmag)

References

(Blocks 1 open bug)

Details

+++ This bug was initially created as a clone of Bug #1457583 +++

(In reply to Kris Maglione [:kmag] from Bug #1457583 comment #4)
> I'm now seeing this whenever I try to run configure. The failing command
> works fine when I run it locally.
> 
> DEBUG: rustc: Trying rustc
> INFO: /usr/bin/rustc
> INFO: checking for cargo... 
> DEBUG: cargo: Trying cargo
> INFO: /usr/bin/cargo
> INFO: checking rustc version... 
> DEBUG: Executing: `/usr/bin/rustc --version --verbose`
> INFO: 1.29.1
> INFO: checking cargo version... 
> DEBUG: Executing: `/usr/bin/cargo --version --verbose`
> INFO: 1.29.0
> DEBUG: Executing: `/usr/bin/rustc --print target-list`
> DEBUG: Creating `/tmp/conftestRkjYSg.rs` with content:
> DEBUG: | pub extern fn hello() { println!("Hello world"); }
> DEBUG: Executing: `/usr/bin/rustc --crate-type staticlib
> --target=x86_64-unknown-linux-gnu -o /tmp/conftest7Vx1zH.rlib
> /tmp/conftestRkjYSg.rs`
> DEBUG: The command returned non-zero exit status 1.
> DEBUG: Its error output was:
> DEBUG: | thread '<unnamed>' panicked at 'failed to acquire jobserver token:
> Bad file descriptor (os error 9)',
> librustc_codegen_llvm/back/write.rs:1824:29
> DEBUG: | note: Run with `RUST_BACKTRACE=1` for a backtrace.
> DEBUG: | error: failed to acquire jobserver token: Bad file descriptor (os
> error 9)
> DEBUG: | 
> DEBUG: | error: aborting due to previous error
> DEBUG: | 
> ERROR: Cannot compile for x86_64-pc-linux-gnu with /usr/bin/rustc
> 
> Seeing as this prevents me from doing my job, marking critical.
https://hg.mozilla.org/integration/mozilla-inbound/rev/d0e3cbf73f04bd02cb9e5ef1b4a0c79123d7ae42
Bug 1497976: Pass close_fds when running commands for configure. r=glandium
https://hg.mozilla.org/mozilla-central/rev/d0e3cbf73f04
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Depends on: 1507655
You need to log in before you can comment on or make changes to this bug.