Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681548 - www-client/firefox-66.0-r1: thread '<unnamed>' panicked at 'failed to acquire jobserver token: Bad file descriptor (os error 9)', src/librustc_codegen_ssa/back/write.rs:1310:29
Summary: www-client/firefox-66.0-r1: thread '<unnamed>' panicked at 'failed to acquire...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-23 15:18 UTC by John Dallahan
Modified: 2019-03-27 23:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge -pqv '=www-client/firefox-66.0-r1::gentoo' (file_681548.txt,834 bytes, text/plain)
2019-03-23 15:18 UTC, John Dallahan
Details
emerge --info '=www-client/firefox-66.0-r1::gentoo' (file_681548.txt,17.60 KB, text/plain)
2019-03-23 15:19 UTC, John Dallahan
Details
build.log (file_681548.txt,28.09 KB, text/plain)
2019-03-23 15:20 UTC, John Dallahan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Dallahan 2019-03-23 15:18:51 UTC
Created attachment 570398 [details]
emerge -pqv '=www-client/firefox-66.0-r1::gentoo'

Fails at configure section with a weird Rust related error.
Comment 1 John Dallahan 2019-03-23 15:19:18 UTC
Created attachment 570400 [details]
emerge --info '=www-client/firefox-66.0-r1::gentoo'
Comment 2 John Dallahan 2019-03-23 15:20:07 UTC
Created attachment 570402 [details]
build.log
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-03-24 13:08:39 UTC
Your rust installation isn't working. That's not a firefox problem.
Comment 4 John Dallahan 2019-03-24 17:48:26 UTC
A build of firefox-65.0.2 worked fine, only firefox-66.0 doesn't work.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2019-03-24 18:13:24 UTC
Where are you building? Where's your build dir located (filesystem)?
Unpack, delete $WORKDIR/firefox/6004_revert-bug1497976_bug1507655.patch ... this will probably "fix" the problem for you but unless we understand why you hit this I am not going to drop this revert.
Comment 6 John Dallahan 2019-03-24 20:31:59 UTC
Yes, removing the patch does indeed make the build run to finish. It seems like Python 2.7 has close_fd=False on subprocess.Popen by default, and that's what runs the configure process. My theory is that close_fds=False leaves those "extra file descriptors" open and rustc tries to read from them, and fails.
Comment 7 Thomas Deutschmann (RETIRED) gentoo-dev 2019-03-24 21:28:36 UTC
The main question is why _you_ are hitting this. Keep in mind that this was the default until FF64 (see https://bugzilla.mozilla.org/show_bug.cgi?id=1497976).

Then, Mozilla changed the code to address a build problem on other platforms.

However, this is causing performance regressing, see https://bugzilla.mozilla.org/show_bug.cgi?id=1507655.
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2019-03-27 19:32:54 UTC
I'll drop the patch.
Comment 9 Larry the Git Cow gentoo-dev 2019-03-27 23:19:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f1462820b95e68cd9fa572f5183fc85587b424b

commit 5f1462820b95e68cd9fa572f5183fc85587b424b
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-03-27 23:09:28 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-03-27 23:17:45 +0000

    www-client/firefox: bump to v66.0.2
    
    - drop 6004_revert-bug1497976_bug1507655.patch which causes build
      problems for some users. [Bug 681548]
    
    - TerminalLoggingHandler patched to allow non-ascii characters. [Bug 666948]
    
    - Add rust-1.33+ support. [Bug 679656]
    
    Bug: https://bugs.gentoo.org/679656
    Closes: https://bugs.gentoo.org/666948
    Closes: https://bugs.gentoo.org/681548
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 www-client/firefox/Manifest                        | 185 +++++++++++----------
 ...firefox-66.0.1.ebuild => firefox-66.0.2.ebuild} |   2 +-
 2 files changed, 94 insertions(+), 93 deletions(-)