From patchwork Wed Feb 27 20:50:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 159294 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4883275jad; Wed, 27 Feb 2019 12:51:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IYYx69ytbN68UxnRdqKlaVRrTbw34LFe6o9gCYyk/r88XSH9tsnzJaB/h3zCY/Zewla5MP4 X-Received: by 2002:a17:902:834b:: with SMTP id z11mr4179034pln.257.1551300683099; Wed, 27 Feb 2019 12:51:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551300683; cv=none; d=google.com; s=arc-20160816; b=k8HNQnUdfL026ruUVy5uOehaBZH1IjQEvesNHL3ynx45gbHB9yAnxInuiKsW8+HXo/ mCfIC9oZiUXyNTuETn9Ko2ybztzqmzUelyGjazJd/bVyYT8IVHx4KKtlY5VaJqdhUkSr CNlyXVNWY4iurQetH+tX2UjS24ADoPwvCl1VqgmUyLrUilst3wiqRYVSZ6/g8zWxjIxn Ro4ZAYY042mR4KC8VtZKnhikk3q3i6NfoKJnZ6//AA51g49le7cbWgKaUOc8OJn5H2NG vOwctrKK4r4SADRX68WGmZkK0mNQTaL/t2UtFOZBhBwZT+9f/3B6Z9ZhpaROIK3H5eOu hfSg== 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=XpC/jKFYXFxk0/JDHXJPJYrDGJPHq2hB5KFpvH38UOI=; b=AoTViWVYnK0R/pOVc2B5dQ93h06EDt2k90vFu/G6usFQThWMEwJeVhLWyod8kvBO7U Q8lRyGRbKpham3PeOTrbXe/c9auTpbMxJalE6KbUDyHUA7MTppeeY471rBdLTvvDHQ74 1LFF1+HhhMpVgqXviUPWZ2gbcUiwILPfB+CLStAZpQf2pdO1G0qqANzQ5MbpRXUDigFk tTiclDmFL3wEOJcFXR/FuZPRgi7AH8jAatduYy4sBJWOzowrRROzo4hWjRUdrdkGWFfb VknumgzdibW07q241K5aA3RgQZ/KmhNvbT+O6784b/fO5P/b7DiS4ztcGWnWKSjrJI34 heIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="ff/BLfIN"; 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; 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 g10si15979090pgk.395.2019.02.27.12.51.22; Wed, 27 Feb 2019 12:51:23 -0800 (PST) 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="ff/BLfIN"; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id D00A37CC82; Wed, 27 Feb 2019 20:51:20 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mail.openembedded.org (Postfix) with ESMTP id C5D4D7CC65 for ; Wed, 27 Feb 2019 20:50:52 +0000 (UTC) Received: by mail-pf1-f170.google.com with SMTP id n74so8569245pfi.9 for ; Wed, 27 Feb 2019 12:50:54 -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=GNmRaIK0EjY32gNOmGfs8t7hykX+x1YPGOxn29vdqjA=; b=ff/BLfINiuV1rPEgN1K6ov8NEEgR5VYaXQkrBMC5HrXmxDzGr7if26j7aZgEdb/uJj DMXkmMbGhel+rACL9Ny4pTKDIZLM+3zfxieMzK8ll6nrev7K4QzdAU8DTk1qlDjdOwdN nXItMfj5QyEi6QMJveD8XmyRLegb78gND9UATTZnOdkqcy+7dZo6TM59jwrgu0z9vuXq bN+MPodl999c0FfpQi6QKYAgTWf+qTCIB3nXgulE9M5IEUNRKcekimsLEH/uq8yz/M5/ jAf91H7XkQEA6QZw/SSU46LDsfi4+KpXTimqGnbQCo2yD9lkhBXmylTJffcfWJK7BULB 4vGg== 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=GNmRaIK0EjY32gNOmGfs8t7hykX+x1YPGOxn29vdqjA=; b=CboJsAggLs6D6DwuzjriZxERRJ/HjIE7Q+/8wjh2vUOcjt/XhLtmudEUoreefans5N 1eV2rlSLAr97+F8aTcBqGeWqSG2/Abh+Xy7J3n391bQocvbuhslXzrt7Ek5RuTGFHc8h pUV2XuGqcve7L34/V/hIEKPabD9rJJYPupV87Js6OspxecN6E7rEwX3Mw7LTUopXFQnB CAw5ViCxNINVdngOl1R/ANbPwVL3nnKfCsnJoBMxHDn5gp+j446NF4SOMOoK9NBQGsWe kSvCgeIGm//j4l1nuq3Sj/gwQf9yYB41l3MD2TH+DjtuGb3LuxFUgKQV+bXm9eGK5aaC xivw== X-Gm-Message-State: AHQUAuacjDfc6KRCYO0Xb0+d6tQnDWdBDatRDkh+WbczWa9CY2OWZ5dq MDu56vFsc7AQHyHIa05/ydVbdB76 X-Received: by 2002:a65:6154:: with SMTP id o20mr4792533pgv.205.1551300653313; Wed, 27 Feb 2019 12:50:53 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::5fa3]) by smtp.gmail.com with ESMTPSA id l12sm27913766pgn.83.2019.02.27.12.50.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Feb 2019 12:50:52 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 27 Feb 2019 12:50:42 -0800 Message-Id: <20190227205042.44813-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190227205042.44813-1-raj.khem@gmail.com> References: <20190227205042.44813-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/2] glibc: Disable Werror when building with debug options 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Since compiler does not optimize away a lot of stuff we end up with Werrors e.g. ./sysdeps/ieee754/flt-32/s_log1pf.c: In function '__log1pf': ../sysdeps/ieee754/flt-32/s_log1pf.c:114:22: error: 'c' may be used uninitialized in this function [-Werror=maybe-uninitialized] 114 | + (k * ln2_lo + c))) - f); | ~~~~~~~~~~~~^~~~ which otherwise wont happen, so lets build with warnings-as-errors disabled in debug mode given we disable werror, now we don't have to restrict user to compile without -O0 Signed-off-by: Khem Raj --- meta/recipes-core/glibc/glibc.inc | 9 --------- meta/recipes-core/glibc/glibc_2.29.bb | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) -- 2.21.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index 67af396133..a382a22b73 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc @@ -2,15 +2,6 @@ require glibc-common.inc require glibc-ld.inc require glibc-testing.inc -python () { - opt_effective = "-O" - for opt in d.getVar('SELECTED_OPTIMIZATION').split(): - if opt in ("-O0", "-O", "-O1", "-O2", "-O3", "-Os"): - opt_effective = opt - if opt_effective == "-O0": - bb.fatal("%s can't be built with %s, try -O1 instead" % (d.getVar('PN'), opt_effective)) -} - DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc-initial linux-libc-headers" PROVIDES = "virtual/libc" diff --git a/meta/recipes-core/glibc/glibc_2.29.bb b/meta/recipes-core/glibc/glibc_2.29.bb index bd8aa6d503..9b6fab066b 100644 --- a/meta/recipes-core/glibc/glibc_2.29.bb +++ b/meta/recipes-core/glibc/glibc_2.29.bb @@ -90,6 +90,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ --disable-crypt \ --with-default-link \ --enable-nscd \ + ${@bb.utils.contains_any('SELECTED_OPTIMIZATION', '-O0 -Og', '--disable-werror', '', d)} \ ${GLIBCPIE} \ ${GLIBC_EXTRA_OECONF}"