Summary: | Lto build of mozilla dies at lto-wrapper: error trying to exec 'make -j1': execvp: No such file or directory | ||
---|---|---|---|
Product: | gcc | Reporter: | Jan Hubicka <hubicka> |
Component: | lto | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | Ralf.Wildenhues |
Priority: | P3 | ||
Version: | 4.6.0 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2012-05-08 00:00:00 | |
Bug Depends on: | |||
Bug Blocks: | 45375 |
Description
Jan Hubicka
2011-04-22 09:05:05 UTC
Does it set MAKE? I suppose we need to split (and preserve?) arguments :/ Hmm, grep didn't seem to find any interesting positives on this. However I did not update my mozilla tree since last build that did not reproduce this and nothing seems to have changed on GCC side. I think evans got updated, so perhaps it is feature of new GNU Make to prevent fork bombs? Mozilla Makefiles do not use "+" clauses and I simply use hard wired -flto=24 setting. Honza Has this been fixed? No response and unclear bug. > No response and unclear bug.
It is still there. In lto-wrapper.c we do
new_argv[0] = getenv ("MAKE");
and when MAKE is set to something like "make -j" we try to execute it...
Honza
Ok, you didn't state that Mozilla indeed sets MAKE to 'make -j'. Yes, if that happens there is a problem. Caused by 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS before calling make; allow override through $MAKE. * doc/invoke.texi (Optimize Options): Document override. simply checking with access (..., X_OK) of course doesn't work (that doesn't search the path...). This no longer happens with recent Firefox builds, but I think it was rather fixed at Firefox buildsystem... (In reply to Jan Hubicka from comment #8) > This no longer happens with recent Firefox builds, but I think it was rather > fixed at Firefox buildsystem... That sounds like WORKSFORME then. |