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

RESOLVED FIXED in Firefox 64

Status

defect
--
critical
RESOLVED FIXED
7 months ago
6 months ago

People

(Reporter: kmag, Assigned: kmag)

Tracking

(Depends on 2 bugs, Blocks 1 bug)

unspecified
mozilla64
x86_64
Linux
Dependency tree / graph

Firefox Tracking Flags

(firefox64 fixed)

Details

Assignee

Description

7 months ago
+++ 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.
Assignee

Comment 1

7 months ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/d0e3cbf73f04bd02cb9e5ef1b4a0c79123d7ae42
Bug 1497976: Pass close_fds when running commands for configure. r=glandium

Comment 2

7 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/d0e3cbf73f04
Status: NEW → RESOLVED
Last Resolved: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64

Updated

6 months ago
Depends on: 1507655
You need to log in before you can comment on or make changes to this bug.