From patchwork Mon Jul 30 05:10:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 143118 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3642748ljj; Sun, 29 Jul 2018 22:11:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfaTMYGCmge/FVCzgWsr8DRbE834pXoQSZ22MJhL2dOhdPq7uLpVuPvPOxFBl48vrOtE7Oo X-Received: by 2002:a62:411a:: with SMTP id o26-v6mr6447928pfa.111.1532927462022; Sun, 29 Jul 2018 22:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532927462; cv=none; d=google.com; s=arc-20160816; b=blERr7ykR5NcvdENThTSGmd8qb7QR7nx+wxp9J18xWdQCagMZkvQLGOKdHNvGzIJb2 GykTJ5fVYyGC2GXgqE6FIkyzNgq7eV+JVSVDgIQSWpqDVK5HgPnACLIP/bYhRSiEGHQk HYqOGfFTcR0gk+Yz39A544x7cbDmNM9ZQBzFgtynfVTh8anikMo5YEQZPYtD3BeHdAJY g0kdSAvhis1WpqQufINk08FULYpezEjpzWbbf7F9nDQVqBq98Ep5UkbrIszZ3l2trmAS ct5brO7he7rwVT5gZ5fwcU82KcGyV6aRawHM9Qiun1macrWUcFMT3Q8xDSHQNXViYiYa 5dwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=7RrFrMxVKw/pIfewtvQddO45CM4yZHFaMKzdr3CHHv0=; b=vPV1Q9VgLduh3auzp3Ig/zDc8nqiFU0PqnVfGKzVoYs/fsWQ+9cI6UdqQnDZpT12ao WXULp0upx9HUsZJASU4gVaxNxxx97l2YwxIHl4APgNRcl/lRQuAM3nbXIb/1oLEM6/O/ WcsRuSZaa48cJnuPW2ynboGLx8d1Nm6ZShUt3v+i8D+EkbsiKSr8F571HdHQjZZXrG6+ dmASMq/7v2zpIu4h9fyO3wpi3maw7dyRlgbdkcMHlHA6Qd4JUjkmwlPsrqK42M5vUv9q 2MEcgZsiXNr3FS1JF1+arak6tND3JK00qUdV+fIPaT+mDGj7nO1gJaOfS1cqMsmN99jt 95SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=vgWb2gzk; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id b205-v6si10673530pfb.358.2018.07.29.22.11.01; Sun, 29 Jul 2018 22:11:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=vgWb2gzk; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 1B0F378D81; Mon, 30 Jul 2018 05:10:59 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by mail.openembedded.org (Postfix) with ESMTP id 0E59978D6E for ; Mon, 30 Jul 2018 05:10:54 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id x5-v6so6569190pgp.7 for ; Sun, 29 Jul 2018 22:10:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=F6f0T68fz6kwJN5cIMEJSp5V15yCSkdj0dZl6SrGQwo=; b=vgWb2gzkkPNFOtDgoPIBiQz3BTSUFcceEvLW6sYpT1sRN1DVUv3BQ575A8AnM9OKs6 y/lZ4G6QR3XWkcgeCn5EZHY0iT7x96tSzRlTz2V1ACN3WpDHFxaX7jou0Z1VR5EwlTjh FXi9zVMBhC3nNYpLiWItwAZAarcbd5cO6aFku0pr3n+/a+Wj0AmiEetsLf3jNCQEUTMx JXGHmTajGqCzcK6GbGr1xa6lxxWMe04tloWv0u2QKQFHtDeqCGzPbu67A7SO/pBjWes+ +UzSO5dP10YylcLX4RLBFc67nuk7V8wXvI/fI6fkAn4QuQKn7Jdu8RCrGXvQhplq5aHB jcEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=F6f0T68fz6kwJN5cIMEJSp5V15yCSkdj0dZl6SrGQwo=; b=eNC0pCh42jTQ1o+H/mttGMZCrKqLE3+HsbZm9dOuyoW2x92ROemK6SkHizEirK53jx wx8zGjTFyr4RCo6B6Yhav4t0DAPCNxY16q+jNaBUnVHuQk2cFHFgPAOchg9qHR/qMx5y ddZvOD/PLKSQEKC+CiXCeHIZS9ZXlB8CFtXa0XEcc4M3EILVp6Dsy/GmsDTAKArzzaju sLqVJPAiHu+qtTaeljfpmPCkv+wg9iloZz8YokgG51z3M9BqY1Q1LNuKTgWk8ugGWf0Z 86161pUlUyiyZHyfXj6lKuobJovEK6yw5Xxfi1f0kkWKb5o+1B8uRCG00VaePVmhtr/4 BeQA== X-Gm-Message-State: AOUpUlHKfD+APQB2pBmIFx5ruZTqYH3h1cRNNgO5xd2Qy1jmyBZPxA8t hBpbW3SME1xzZvQBgK9zUbiofu0K X-Received: by 2002:a63:1a20:: with SMTP id a32-v6mr14997953pga.446.1532927455674; Sun, 29 Jul 2018 22:10:55 -0700 (PDT) Received: from aurora.jms.id.au ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id b67-v6sm16153689pfd.74.2018.07.29.22.10.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 29 Jul 2018 22:10:54 -0700 (PDT) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Mon, 30 Jul 2018 14:40:50 +0930 From: Joel Stanley To: openembedded-core@lists.openembedded.org Date: Mon, 30 Jul 2018 14:40:28 +0930 Message-Id: <20180730051029.5530-2-joel@jms.id.au> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180730051029.5530-1-joel@jms.id.au> References: <20180730051029.5530-1-joel@jms.id.au> Subject: [OE-core] [PATCH v2 1/2] gcc-7.3: Fix build on ppc64le hosts X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org When building on ppc64le hosts that have GCC 8 (such as Ubuntu 18.10) the GCC build bootstrap fails. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86162 This is a fix that was applied to the upstream GCC 7 branch. Change-Id: I7796d2a999ec420805dd1c6cf0a1ecba1de5a897 Signed-off-by: Joel Stanley --- meta/recipes-devtools/gcc/gcc-7.3.inc | 1 + ...c64le-build-Partial-backport-r256656.patch | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-7.3/0001-Fix-ppc64le-build-Partial-backport-r256656.patch -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/gcc/gcc-7.3.inc b/meta/recipes-devtools/gcc/gcc-7.3.inc index b816f7d12f81..81320dc52a59 100644 --- a/meta/recipes-devtools/gcc/gcc-7.3.inc +++ b/meta/recipes-devtools/gcc/gcc-7.3.inc @@ -79,6 +79,7 @@ SRC_URI = "\ BACKPORTS = "\ file://0001-Fix-internal-compiler-error-in-testcase.patch \ file://0001-PR-rtl-optimization-83030.patch \ + file://0001-Fix-ppc64le-build-Partial-backport-r256656.patch \ " SRC_URI[md5sum] = "be2da21680f27624f3a87055c4ba5af2" diff --git a/meta/recipes-devtools/gcc/gcc-7.3/0001-Fix-ppc64le-build-Partial-backport-r256656.patch b/meta/recipes-devtools/gcc/gcc-7.3/0001-Fix-ppc64le-build-Partial-backport-r256656.patch new file mode 100644 index 000000000000..122260f2bf1d --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-7.3/0001-Fix-ppc64le-build-Partial-backport-r256656.patch @@ -0,0 +1,36 @@ +From aa65a43516da1d48011ef621ed5988289711d99b Mon Sep 17 00:00:00 2001 +From: marxin +Date: Fri, 29 Jun 2018 09:31:30 +0000 +Subject: [PATCH] Partial backport r256656 + +2018-06-29 Martin Liska + + Backport from mainline + 2018-01-10 Kelvin Nilsen + + * lex.c (search_line_fast): Remove illegal coercion of an + unaligned pointer value to vector pointer type and replace with + use of __builtin_vec_vsx_ld () built-in function, which operates + on unaligned pointer values. + +Upstream-Status: Backport +--- + libcpp/lex.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletion(-) + +diff --git a/libcpp/lex.c b/libcpp/lex.c +index 097c78002cbb..e0fb9e822c44 100644 +--- a/libcpp/lex.c ++++ b/libcpp/lex.c +@@ -568,7 +568,7 @@ search_line_fast (const uchar *s, const uchar *end ATTRIBUTE_UNUSED) + { + vc m_nl, m_cr, m_bs, m_qm; + +- data = *((const vc *)s); ++ data = __builtin_vec_vsx_ld (0, s); + s += 16; + + m_nl = (vc) __builtin_vec_cmpeq(data, repl_nl); +-- +2.17.1 +