Created attachment 30999 [details] Output of failing make Problem: Compiling Mesa (with gcc option -j8) fails sometimes at: gmake[5]: *** No rule to make target `compiler/libr300compiler.a', needed by `r300_dri.so'. Stop. gmake[5]: *** Waiting for unfinished jobs.... while a few lines later it actually is built: mklib: Making Linux static library: libr300compiler.a ar: creating libr300compiler.a Solution: Try again until it works.
Just wanted to add: This is using the mesa-9999 ebuild from gentoo's x11 overlay.
Created attachment 31017 [details] Complete build.log This is the complete build.log (former one was truncated)
Created attachment 31019 [details] Output of emerge --info =media-libs/mesa-9999
I get the exact same compile FAiL, also (ab)using Gentoo/mesa-9999, when I compile with FEATURES="distcc" and MAKEOPTS="-j10" A working solution is to compile the MESA with FEATURES="-distcc" and MAKEOPTS="-j1". This increases compile time from about 1 minute to about 3 minutes. I assume it is possible to make sure the compiler/libr300compiler.a is done before moving on to doing things which require it. (ab)Use -j1 when compiling the MESA until *they* fix it.
Created attachment 31050 [details] [review] Build in subdirs before linking driver Can you try the attached patch? It should ensure that the subdirs are done building before the driver is linked.
Created attachment 31054 [details] build.log with patch by Dan Nicholson Nope, the patch didn't help, see attached build.log. (I named the patch mesa-build-subdirs-first.patch, which is applied at the beginning - I also checked the code for the change)
Created attachment 31066 [details] [review] Really serialize the linking after the subdirs Sorry, I can't reproduce this, so it's hard to know if the fix is right. Can you try this patch? It should definitely synchronize things.
(In reply to comment #7) > Created an attachment (id=31066) [details] > Really serialize the linking after the subdirs > > Sorry, I can't reproduce this, so it's hard to know if the fix is right. Can > you try this patch? It should definitely synchronize things. > This patch seems to have helped, thanks a lot :) I recompiled at least 7 times and never ran into the problem again, so I'm quite certain (it failed >50% before). (I left this as NEW to wait for inclusion in master).
Committed to master: cf65d81cf1eb031384f7e8bfe849ce59c458f27e
Commited to Master -> Status: Fixed
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.