public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [libstdc++, patch] Fix build on APFS file system
@ 2017-10-18 15:08 FX
  2017-10-18 20:59 ` Petr Ovtchenkov
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: FX @ 2017-10-18 15:08 UTC (permalink / raw)
  To: gcc patches, libstdc++

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

Parallel builds of libstdc++ on APFS filesystem (with 1 ns granularity) on macOS 10.13 often fail (failure rate for “make -j2” to “make -j8” is about 60% from my own builds and results reported by others): https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81797
This is reproducible with several versions of GNU make.

Changing libstdc++’s makefile to mark install-headers with .NOTPARALLEL fixes the issue. We've carried that patch in Homebrew (https://brew.sh) for a few months now, and have had no report of build issues since then.

Bootstrapped and regtested on x86_64-apple-darwin17 (as well as other platforms). OK to commit?

FX



[-- Attachment #2: parallel.ChangeLog --]
[-- Type: application/octet-stream, Size: 138 bytes --]

2017-10-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

	PR libstdc++/81797
	* include/Makefile.in: Unparallelize install-headers.


[-- Attachment #3: parallel.diff --]
[-- Type: application/octet-stream, Size: 668 bytes --]

Index: libstdc++-v3/include/Makefile.in
===================================================================
--- libstdc++-v3/include/Makefile.in	(revision 253855)
+++ libstdc++-v3/include/Makefile.in	(working copy)
@@ -1763,6 +1763,8 @@ ${pch3_output}: ${pch3_source} ${pch2_ou
 @GLIBCXX_HOSTED_TRUE@install-data-local: install-headers
 @GLIBCXX_HOSTED_FALSE@install-data-local: install-freestanding-headers
 
+.NOTPARALLEL: install-headers
+
 # This is a subset of the full install-headers rule.  We only need <ciso646>,
 # <cstddef>, <cfloat>, <limits>, <climits>, <cstdint>, <cstdlib>, <new>,
 # <typeinfo>, <exception>, <initializer_list>, <cstdalign>, <cstdarg>,

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2017-10-24 15:47 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-18 15:08 [libstdc++, patch] Fix build on APFS file system FX
2017-10-18 20:59 ` Petr Ovtchenkov
2017-10-18 21:05   ` FX
2017-10-18 21:17 ` Jonathan Wakely
2017-10-18 22:22   ` FX
2017-10-19  8:43     ` Richard Biener
2017-10-19  8:49       ` FX
2017-10-19 10:28       ` Petr Ovtchenkov
2017-10-19  0:28   ` Jonathan Wakely
2017-10-18 23:20 ` Hans-Peter Nilsson
2017-10-19  1:11   ` Jonathan Wakely
2017-10-23 17:44 ` Mike Stump
2017-10-23 17:55   ` FX
2017-10-23 18:02     ` Jonathan Wakely
2017-10-24  9:08       ` FX
2017-10-24 13:50         ` Jonathan Wakely
2017-10-24 14:19           ` FX
     [not found]           ` <1B1E8CBD-E34E-415A-A5D7-FB3AACA72749@gmail.com>
2017-10-24 15:06             ` Jonathan Wakely
2017-10-24 15:22               ` FX
2017-10-24 15:47                 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).