From patchwork Thu Feb 15 21:11:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 874125 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-473365-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="IodH16ir"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zj89b53ynz9t20 for ; Fri, 16 Feb 2018 08:12:16 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=d9UrSWcfeEzu01e7K6MfmseX54SSc21folbI/kHEuENwEd ad5fzwFM5+R6QQOCAHZTfOjPmR7NF6vWww/3WPM2rm31qIMnJu+b7F5yh2xIBBZw ixpa7sMLh4YwmpxgpDtOiacjuWxS8B43rP5m6La9R58tinhutwyWtl56Wnwwc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=M3XanZm7vgqj3XJeBnf5ti8j7Uo=; b=IodH16irXUCojuQ0Soc8 wPz/zOSHZmYl4TkSlew6MBv2BzIIiTZWgaMm7Z8VcTsIkxbviAguKS4nBUIzxZtd bNjJ052kvb9KdEhtvWLNSUqum5w/d8LH9RbMhJBvhkovtPPnnn/8MOr9zzRsccMd az0WFf6tRhhpssNGrlMq5RM= Received: (qmail 95848 invoked by alias); 15 Feb 2018 21:12:02 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 95827 invoked by uid 89); 15 Feb 2018 21:12:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:2002 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-it0-f53.google.com Received: from mail-it0-f53.google.com (HELO mail-it0-f53.google.com) (209.85.214.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 15 Feb 2018 21:12:00 +0000 Received: by mail-it0-f53.google.com with SMTP id e1so2310876ita.0; Thu, 15 Feb 2018 13:11:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=r9q9fzhrTXAtwKdRw30uJTwNzBBddVmX3ke1iIdC49s=; b=rQday54qSTAecfXMwI8X6we7OcAvatyHcu6/FlKYmcuEJkR1oFVXChaht1ShYgzN2H 4t5pmBjLTj2oJtAnYv982ekr01MdxhH8l3ZcGwXiMud9UCZeT9DnZ/kSwoVcLBafNu3h naHWmUGvmcfdcMw1ri0WtLggw4+AzRPMtRYqvNPYfDK6406iBYFzihm5RzA+RlpTlsKh P8LoRp0wQUhxe8EQPHYCTahFUr927Mq8VWl5/A6xggHE3s+OQK4UksrUj9qiQSqK4PA0 SGnLYSmRGMzPUQDZFw8yqyyn6ibBLGGWIU4ULkUPqbrm9FstSu3PGBnu17ChsszG/w8F U4Ag== X-Gm-Message-State: APf1xPCF9PXWervqc8G1T3f8dXxN4uiYWh8urBv1BMLDq/yz4VDAtcb0 eh5idQ3slm5LrEqM18XIBH4+VNvH3UnCjmR1VM1AhxEh X-Google-Smtp-Source: AH8x226XDRC1HVf+mxCIcJo1hj2Fh17L+RZKItBe3l5epIc5UxunFAcu/b3e9nKubCulZB90akHesyelpQaXQNtSYtg= X-Received: by 10.36.28.82 with SMTP id c79mr5291757itc.128.1518729118249; Thu, 15 Feb 2018 13:11:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.50.83 with HTTP; Thu, 15 Feb 2018 13:11:57 -0800 (PST) From: Jonathan Wakely Date: Thu, 15 Feb 2018 21:11:57 +0000 Message-ID: Subject: PR libstdc++/81797 Add .NOTPARALLEL to include/Makefile for darwin To: "libstdc++" , gcc-patches This adds the special .NOTPARALLEL target to include/Makefile when building on darwin, to work around an apparent bug in the APFS filesystem. PR libstdc++/81797 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define. * configure: Regenerate. * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when defined. * include/Makefile.in: Regenerate. Tested powerpc64le-linux, and FX reports it works on Darwin. I'll backport this to the active branches too. commit 35204421965912b09146585a143189d0d61d23ec Author: Jonathan Wakely Date: Fri Oct 27 01:09:52 2017 +0100 PR libstdc++/81797 Add .NOTPARALLEL to include/Makefile for darwin PR libstdc++/81797 * configure.ac (INCLUDE_DIR_NOTPARALLEL): Define. * configure: Regenerate. * include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when defined. * include/Makefile.in: Regenerate. diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac index e110f579917..0ef96270c9c 100644 --- a/libstdc++-v3/configure.ac +++ b/libstdc++-v3/configure.ac @@ -473,6 +473,12 @@ AM_CONDITIONAL(BUILD_PDF, test $ac_cv_prog_DBLATEX = "yes" && test $ac_cv_prog_PDFLATEX = "yes") +case "$build" in + *-*-darwin* ) glibcxx_include_dir_notparallel=yes ;; + * ) glibcxx_include_dir_notparallel=no ;; +esac +AM_CONDITIONAL(INCLUDE_DIR_NOTPARALLEL, + test $glibcxx_include_dir_notparallel = "yes") # Propagate the target-specific source directories through the build chain. ATOMICITY_SRCDIR=config/${atomicity_dir} diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am index 7cf0ef93eb4..70a662fa2f9 100644 --- a/libstdc++-v3/include/Makefile.am +++ b/libstdc++-v3/include/Makefile.am @@ -1479,3 +1479,8 @@ $(decimal_headers): ; @: $(ext_headers): ; @: $(experimental_headers): ; @: $(experimental_bits_headers): ; @: + +if INCLUDE_DIR_NOTPARALLEL +# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81797 +.NOTPARALLEL: +endif