Build failures with high parallel make(1) jobs with GCC

Glen Barber <[email protected]> Mon, 21 Apr 2014 22:54:35 -0400
Newsgroups gmane.os.freebsd.current,gmane.os.freebsd.devel.ppc,gmane.os.freebsd.devel.ia64
Message-ID <[email protected]>
I have been pounding my head against the desk for longer than I care to
admit with this failure.

I see this with powerpc, powerpc64, and now ia64.  I initially thought
it was specific to powerpc{,64}, but now realize ia64 is also affected.

This build was running with -j48 on a 48-core machine, when the
following caused build failure:

=======================================================================

/usr/obj/ia64.ia64/usr/src/tmp/usr/bin/ld: cannot find -lm
--- libstdc++.so.6 ---
*** [libstdc++.so.6] Error code 1

make[4]: stopped in /usr/src/gnu/lib/libstdc++
A failure has been detected in another branch of the parallel make

=======================================================================

It is unclear to me when exactly this started happening, but it seems at
least two weeks is a reasonable estimate.

I realize this is not an entirely large chunk of useful information
regarding the build failure, but I have determined it is entirely
reproducible.  I have determined that the failure case seems to
disappear with make(1) jobs <= 10, at least for powerpc.

The last successful build for powerpc on head/ was April 8.  But I am
having trouble tracking down what commits may (or may not) have
contributed to recent high-parallel build failures.

Glen
signature.asc (application/pgp-signature, 834 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBCAAGBQJTVdnrAAoJELls3eqvi17Q80oP/iJtofV5JiaxzTawJrY+RG5e
MB8XRcE6kjwLP28stuRfeAXFcK07lcSaJFivz6iZLMO2uQFxLeCPZcjCIAS8R2Qx
4N3QilHmVEZUPRNDtKaxbglzhg3SarseOoeu740dl2qdDGhwx2li7uSyYfUPxIg1
zeYIX8wLDS+DkH1nabAboVUxGGeVmtckGp6A2O8U3ta7qteffeGR8RK871TiSi3I
E4qbryIZu6OzXrhhNvstPzfRWjx/zB++PZOjs+VOHpInwiZrLNwiLSrLJM/sRhyl
j0V6gg2Hw0jFAZCiwj5BcSCquBv948i2GMA1g3jqlinh2XCYccl/Hs9XzLCjejhW
oAvWv0L6ZKYbZLU0Fxfc+a66DU0j/hOgoWMGmhXEZ/4yheqtV/pBeN+mCkrN2Kq+
RQpRedFHz2xp3p0IvjKx3VK0C/ZPRnw75CqyYktFVggEbUliEUgKaCizuFDj0AYb
XgI1cKQe3HUaEXOGj6PnLU83FvSBGJad4l7hOpsjfYanaSnhgZG1REtMOeMCsu2y
kESKuEPmel5QF0BGb8CiBSmC+pu0vB7QSkPCEKXsw8DQtI4CkYnDnmeM1bvwvMsO
kIa0Th0sxgSvp6bG8VGxTca7e/ViMm5wTzqL9R7NfSlWuwOX5RP3OWQx8BqYeKix
Ai5eQqDtFKpWbU40IqMT
=xojY
-----END PGP SIGNATURE-----