Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687028 - www-client/firefox-67.0 - with make option "-j1": thread 'main' panicked at 'failed printing to stdout: Resource temporarily unavailable (os error 11)'
Summary: www-client/firefox-67.0 - with make option "-j1": thread 'main' panicked at '...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
: 692396 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-30 18:24 UTC by Pistos
Modified: 2019-08-23 12:40 UTC (History)
4 users (show)

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


Attachments
Firefox 67.0 build log (www-client:firefox-67.0:20190530-170701.log.bz2,62.26 KB, application/x-bzip)
2019-05-30 18:29 UTC, Pistos
Details
emerge --info (emerge-info.txt,6.38 KB, text/plain)
2019-05-30 18:31 UTC, Pistos
Details
output of emerge --info (emerge--info.arm,5.29 KB, text/plain)
2019-06-03 16:36 UTC, tt_1
Details
compressed build log (build.log.gz,115.10 KB, application/gzip)
2019-06-03 16:38 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pistos 2019-05-30 18:24:03 UTC
www-client/firefox-67.0 does not emerge.

Full build log and emerge info at https://bpaste.net/show/1e2192eaa3c2 .
Comment 1 Jeroen Roovers gentoo-dev 2019-05-30 18:26:54 UTC
(In reply to Pistos from comment #0)
> www-client/firefox-67.0 does not emerge.
> 
> Full build log and emerge info at https://bpaste.net/show/1e2192eaa3c2 .

Please attach those to this bug report directly.
Comment 2 Pistos 2019-05-30 18:29:55 UTC
Created attachment 578116 [details]
Firefox 67.0 build log
Comment 3 Pistos 2019-05-30 18:31:02 UTC
Created attachment 578118 [details]
emerge --info
Comment 4 Jory A. Pratt gentoo-dev 2019-05-30 23:15:12 UTC
Rust team please have a look, I am not seeing any failure with 67.0 or 68.0b* on an x86_64 musl setup.
Comment 5 tt_1 2019-06-03 15:38:51 UTC
I do hit the same bug, but on armv7a. Right now I'm trying to finish the build with 

ebuild /usr/portage/www-client/firefox-67.0 install

to see wether this "low level" approach may be helpfull

I opened an issue at rusts upstream
https://github.com/rust-lang/rust/issues/61468

and will upload my emerge --info and build.log in a minute
Comment 6 tt_1 2019-06-03 16:36:43 UTC
Created attachment 578522 [details]
output of emerge --info

this is from arm, but same error
Comment 7 tt_1 2019-06-03 16:38:22 UTC
Created attachment 578526 [details]
compressed build log

same, this from arm but with the same error
Comment 8 Pistos 2019-06-04 01:53:47 UTC
When I changed from MAKEOPTS="-s -j1 -l 2" to MAKEOPTS="-s -j2 -l 3", the emerge finished successfully.  No idea why that would make a difference, but thank you to @tt_1 for suggesting this.  I will update the bug title accordingly.
Comment 9 tt_1 2019-06-04 17:50:42 UTC
I was able to reproduce on amd64 today, using MAKEOPTS="-j1" to trigger. 

Also its possible to resume the compile with ebuild install/merge command, which produces a fully working firefox binary.
Comment 10 tt_1 2019-06-06 17:32:11 UTC
MAKEOPTS="-j2 -l 1" seems to be working as a workaround, if you're working with a memory restrained system and can't go beyond one job at a time.
Comment 11 fkater 2019-08-06 07:47:05 UTC
I have the same issue with firefox-68.0.1. The workaround WFM:

MAKEOPTS="-j5 -l1"

It seems that "-l1" is the critical part here. "-j5" or "-j1" only did not help.
Comment 12 Georgy Yakovlev gentoo-dev 2019-08-21 20:34:24 UTC
*** Bug 692396 has been marked as a duplicate of this bug. ***
Comment 13 Georgy Yakovlev gentoo-dev 2019-08-22 23:46:03 UTC
can you guys try building it without makeopts workaround, but with

FEATURES="-pid-sandbox" ?
Comment 14 Paul Osmialowski 2019-08-23 11:44:00 UTC
@Georgy, I've tried to follow your advice and removed MAKEOPTS introducing FEATURES="-pid-sandbox". Unfortunately, re-building firefox now is failing with different error:

```
18:42.54 [style 0.0.1] cargo:rerun-if-changed=/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/ff/dist/include/js/Utility.h
18:42.54 [style 0.0.1] cargo:rerun-if-changed=/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/ff/dist/include/mozilla/Range.h
18:42.54 thread 'main' panicked at 'stack backtrace:
18:42.54    0:       0x556b6ac0f4 - <unknown>
18:42.54    1:       0x556b6b1d14 - <unknown>
18:42.54    2:       0x556b6b1adc - <unknown>
18:42.54    3:       0x556b6b2440 - <unknown>
18:42.54    4:       0x556b6b203c - <unknown>
18:42.55    5:       0x556b6b1fa0 - <unknown>
18:42.55    6:       0x556b6aa764 - <unknown>
18:42.55    7:       0x556b2c9804 - <unknown>
18:42.55    8:       0x556b2f4158 - <unknown>
18:42.55    9:       0x556b6b8ad0 - <unknown>
18:42.55   10:       0x556b390ffc - <unknown>
18:42.55   11:       0x556b2c7e54 - <unknown>
18:42.55   12:       0x556b35e350 - <unknown>
18:42.55   13:       0x556b1181a0 - <unknown>
18:42.55   14:       0x556b1170f8 - <unknown>
18:42.56   15:       0x556b0b84e4 - <unknown>
18:42.56   16:       0x556b0a84a8 - <unknown>
18:42.56   17:       0x556b0e1550 - <unknown>
18:42.56   18:       0x556b0b922c - <unknown>
18:42.56   19:       0x556b6b1ebc - <unknown>
18:42.56   20:       0x556b6b8ad0 - <unknown>
18:42.56   21:       0x556b6b65f0 - <unknown>
18:42.56   22:       0x556b0e3894 - <unknown>
18:42.56   23:       0x7fa62e14f0 - __libc_start_main
18:42.56                                at ../csu/libc-start.c:308
18:42.56   24:       0x556b09c47c - <unknown>
19:32.02 [style 0.0.1] cargo:rerun-if-changed=/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/ff/dist/include/nsIRunnable.h
19:32.03 gmake[4]: *** [/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/config/makefiles/rust.mk:240: force-cargo-library-build] Error 101
19:32.03 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/ff/toolkit/library/rust'
19:32.03 gmake[3]: *** [/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/config/recurse.mk:74: toolkit/library/rust/target] Error 2
19:32.03 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/ff'
19:32.03 gmake[2]: *** [/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/config/recurse.mk:34: compile] Error 2
19:32.04 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/ff'
19:32.04 gmake[1]: *** [/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/config/rules.mk:413: default] Error 2
19:32.04 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/ff'
19:32.04 gmake: *** [client.mk:125: build] Error 2
19:32.06 11 compiler warnings present.
```
Comment 15 Paul Osmialowski 2019-08-23 12:40:52 UTC
The issue above has gone after reboot. Now the old thing is back (when trying FEATURES="-pid-sandbox"):

18:38.92 [style 0.0.1] cargo:rerun-if-changed=/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/ff/dist/include/js/CallArgs.h
19:38.81 thread 'main' panicked at 'failed printing to stdout: Resource temporarily unavailable (os error 11)', [style 0.0.1] cargo:rerun-if-changed=/var/tmp/portage/www-client/firefox-68.0.2/work/firefox-68.0.2/ff/dist/include/mozilla/ReverseIterator.h