From patchwork Sun Dec 23 21:35:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 154457 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp3270852ljp; Sun, 23 Dec 2018 13:37:55 -0800 (PST) X-Google-Smtp-Source: ALg8bN5HmXUgxN+B3SRG1DmyFhZVa4i/7Eiwq6SEyDA6PHWhhVmhE8LwkX6OF95DyeNEOduHi6VD X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10mr10851181plb.192.1545601075435; Sun, 23 Dec 2018 13:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545601075; cv=none; d=google.com; s=arc-20160816; b=iqYj7c/T1OCTiaGRzrUJ+rJDVEvr6b13TvLSx3Pg65c8RtZVcB5z6aqb/TEnOsdE41 yeYGTS2jg8/AOidRLW4M/TwXt8cBE2uYW+HctHn6KePUaYBDpkLSQjea392OKIzq9sBZ GfhkPOM0SR2o3YaDRk6Wd3n4duL8L+meA2YNB7LsVwiTJVvYuXuUfxumOPblCwCiSaHq n4dIa45JAXYRFdGIeXFWLKI9+KGjD52ph5JkAcyM0CRN8YNJos1AbwbLZFP8Q8/kNj00 dh67QxZANIzAa4anHgvFBqPtFWw6o93wvhjpQKw3nLtJbK+P+c4sULY1nyXJwFBv3B1a 3atg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=VjK63s40jzt+M6eDb1jLm3B6rgMzkyBLQRIexc4gq0I=; b=VBG2zecNqSxs5Zt26WCQ3O0FKb/U0ATs2F7Y2WuCZBg6YLJL+p//iBv8VtIDUZ/YY4 ozt+WRZVc6Q8XV8LhEzdfPPVjaSYjzlyIeammEAZgH3SelfIceBibBzt7Nmj1P2GDLNb PLAwmYvSJXpDOr8kIyJA76rsH6Kf0SPOFycxK/OQU9CIBU5ZPpA+cAFIJt68MXFX6BDv s2Nm8O+qDcGhDR8jv3+aDs4h1tQakYgg633d0m67VPZO3QrvcHbR+ujmovVXS0CjwoMk JE+MAnz3jCsCLn/cHHBMQsD8LtoglZ78ZK9ce1YACb/vPuhHZSSaokTQYPWKsrquSl6h rtnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Xgxr3ewd; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id m187si27763933pfm.51.2018.12.23.13.37.55; Sun, 23 Dec 2018 13:37:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-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=Xgxr3ewd; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 242D479D6B; Sun, 23 Dec 2018 21:36:43 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by mail.openembedded.org (Postfix) with ESMTP id D2CC36E47A for ; Sun, 23 Dec 2018 21:36:20 +0000 (UTC) Received: by mail-pf1-f180.google.com with SMTP id c73so5025566pfe.13 for ; Sun, 23 Dec 2018 13:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1h/r+zVquM/oFwXbRq3mJ7dY3TaLzkt1n0IKCSaeypo=; b=Xgxr3ewdOJh6xXpypALoFK3/R4GoyXEPs5PEE6vh/PF8vcLTuIYtoX5io/aAMT3FFn 7xOanZvjfxiHn1fR6bRRoLOclT817VkHyKMFYfakCbVqqcX34Z4PW4ErX5MlJVLUiXnJ zIXo+5NGU1leaXgKFjXfmKpkv2eYSZc5UXdA99gp7uR0jMqQY+16VqtXk8rtWQQ7CDoU cC3hnIkx6Jwwlzn/Ie7tnbux+Nomv9K4Huw02yMCTE8wEA4tdOBjfnzNzdsU5RvrjbTc vq3WtWbUNzsfgh43zJMeeUXxh70ZQtvO2NmDHf+cuV9HsFcupjsIUX70IPYrvQbo7iSq 4aNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1h/r+zVquM/oFwXbRq3mJ7dY3TaLzkt1n0IKCSaeypo=; b=RWvfxJ7sWWsJvWL1KeDYPmip2TuApyUKcu5zgAbtx8dYaR5rw+Zr6P8Y7huTlkZlUc G3HCDuLZwoqHAVSDYSo8eAPNz1nMYM4xevHvYsUS++DUtxR+G+JXcE2XkuVjXMNt3dlN IQYTA2uooqbeCmaFmdVuTCi3EhFFfrRiZdMXCbyUXvOQ5NV1FkYUdyguk6z4L55lg0IC XqBasLljSsvYnEuUHxDh9ye+q5dWw6M1+soh6tXgk8emqqf1xF+7cicSX2DXJvugabKu 2HS/IULn0UsH1WRQCPwD0ovvYf8y1J1Y+R5hhJFjM8KwUX/Jp49itHHcOiTurQdydcDi 8+ig== X-Gm-Message-State: AJcUukfSf8vI3VOC3Z0s6aQRpetqcwKrKsW6GtHfrYsC4hKQXmCgvjCS mUwwp9bZpfKX64FTT49JKgZ0MUzuFgA= X-Received: by 2002:a63:db02:: with SMTP id e2mr10334396pgg.419.1545600981485; Sun, 23 Dec 2018 13:36:21 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:877f:9499::19ec]) by smtp.gmail.com with ESMTPSA id m9sm33340800pgd.32.2018.12.23.13.36.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Dec 2018 13:36:20 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sun, 23 Dec 2018 13:35:52 -0800 Message-Id: <20181223213557.7834-13-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181223213557.7834-1-raj.khem@gmail.com> References: <20181223213557.7834-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 13/18] mozjs: Remove -Werror=format from CXXFLAGS X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org This is to make way for gcc9 since it spews some extra warnings which need to be eventually fixed Signed-off-by: Khem Raj --- .../mozjs/mozjs/format-overflow.patch | 21 +++++++++++++++++++ .../recipes-extended/mozjs/mozjs_52.9.1.bb | 1 + 2 files changed, 22 insertions(+) create mode 100644 meta-oe/recipes-extended/mozjs/mozjs/format-overflow.patch -- 2.20.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/mozjs/mozjs/format-overflow.patch b/meta-oe/recipes-extended/mozjs/mozjs/format-overflow.patch new file mode 100644 index 0000000000..29c6a7b69c --- /dev/null +++ b/meta-oe/recipes-extended/mozjs/mozjs/format-overflow.patch @@ -0,0 +1,21 @@ +Drop enable format string warnings to help gcc9 + +Fixes +| /mnt/a/yoe/build/tmp/work/core2-64-yoe-linux-musl/mozjs/52.9.1-r0/mozjs-52.9.1/js/src/jit/x64/BaseAssembler-x64.h:596:13: error: '%s' directive argument is null [-Werror=format-overflow=] +| 596 | spew("movq " MEM_obs ", %s", ADDR_obs(offset, base, index, scale), GPReg64Name(dst)); +| | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Upstream-Status: Inappropriate [Workaround for gcc9] +Signed-off-by: Khem Raj + +--- a/js/src/moz.build ++++ b/js/src/moz.build +@@ -785,7 +785,7 @@ if CONFIG['JS_HAS_CTYPES']: + DEFINES['FFI_BUILDING'] = True + + if CONFIG['GNU_CXX']: +- CXXFLAGS += ['-Wno-shadow', '-Werror=format'] ++ CXXFLAGS += ['-Wno-shadow'] + + # Suppress warnings in third-party code. + if CONFIG['CLANG_CXX']: diff --git a/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb b/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb index 440a25b74e..a28ecc57d6 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs_52.9.1.bb @@ -14,6 +14,7 @@ SRC_URI = "http://archive.ubuntu.com/ubuntu/pool/main/m/mozjs52/mozjs52_52.9.1.o file://disable-mozglue-in-stand-alone-builds.patch \ file://add-riscv-support.patch \ file://0001-mozjs-fix-coredump-caused-by-getenv.patch \ + file://format-overflow.patch \ " SRC_URI_append_libc-musl = " \ file://0006-support-musl.patch \