From patchwork Mon May 6 17:51:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 163440 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:81:0:0:0:0 with SMTP id l1csp269835ilm; Mon, 6 May 2019 10:51:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRWl3a1G3Mr7JjPtKDFCcli0bbZssZZ1eTALCcy5RHdl8RiNWT3zZ1jxRVVFuWN6geerKs X-Received: by 2002:a62:ea0a:: with SMTP id t10mr18647985pfh.236.1557165109564; Mon, 06 May 2019 10:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557165109; cv=none; d=google.com; s=arc-20160816; b=SmMkZ8yigwW6oRZCW3HyojW7ZzRHZcXbh4AeuilX88K4biCKAlE5cE7kRjc2Dmf5gC F7tC1UsrFv1sH/t3UTCOwGgfpbT3J4y0PzAdOgjY83kGw7Vbm/wHG8wwEmYCtKXLQ7sW FgFvTLXtjJ7/yFM9mwzLOecfEgpdztUW9qXCSnrzmqwV+KTlJqh+5NNFuSSWfhmyJoVR p0DaAiu8XMPN6yeFdaFauFB9DEBUnjDUr+49F+I/gH/dIgs77w8du+AYqIvIRx+9UOPQ UVNY4U6vKH7nKuV6MIWLiCVQwAvXPeSOLc5LjyP32ZsvhIKzek0uiqYNhSmeh3v+4EZC jkPA== 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:message-id:date:to:from:dkim-signature:delivered-to; bh=Znfb/6oGOcLaTMMkOjO89gEO/xnjcHXthDKZBinIoi8=; b=wtOltfi9gvlCGJNtsFqc4/U4RKwhrCwPU8tRVoMCqcnkyLjX/XuE/9OrQa3sS2FxHT irjDau3pFTC+kybQLi2rycKLw0WXwnJWcaxjZ+MNlEBlDv/skgwU1y1NkVGsj1ejT6SO 7ov4TpMH0slvOhRUEhZtCnpZL1DUmXnxTJDVYU9JSAEdTBHv0x1R1VrgHrYF5CbPkwag 4+Wse4w8G0ThmeZRZYJywG6HPAByPcI1KSX/uOWQWRKLdBlNLu7DNR0IYo6IGrnw6ylb 05n0iUIdXwCQ06CBRmuMlrmt9UI2ldiSSgd/KCMxi8mxJHjbjpV5TBJVJ0lervRWIW3X JSGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="kJg8aHJ/"; 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 71si16539334plc.160.2019.05.06.10.51.48; Mon, 06 May 2019 10:51:49 -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="kJg8aHJ/"; 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 DF1487D0FB; Mon, 6 May 2019 17:51:44 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mail.openembedded.org (Postfix) with ESMTP id 657EE7D0FB for ; Mon, 6 May 2019 17:51:43 +0000 (UTC) Received: by mail-pf1-f176.google.com with SMTP id z26so7157230pfg.6 for ; Mon, 06 May 2019 10:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9yVjfFDv+uCbhxafIHG5t3LrTWEnU1DXIqhreRyr17w=; b=kJg8aHJ/Hpa6oBZrFNd9kvRFDo5Cenl64LzYd5G5cl0/T6pd23ISrIkm5nxR/+AjuN 3Cw8xZAA0mgJj2jyx8NEE/UqLVy1vcQVlrcgea9d9bgwE6GTp457L5X7EaEdYA1EDM9R mn/73tBGhZG27idPCKDS/b7d9GpPurBmCxazX5eURYAzDWrG5o3EUcHzev3vS7p9MGPg OBVpM6urf7U2VY12fuDEo4wWx2jFnb+rTHGbl2YFi0n7v9me8lbGCJnGbCb7gBSKy4DG R34WRYI/dBZxlG4KngBfLSZp9LkPFGH04qoVrPY9PfVxTS/WC1H9rg/JogDelMA5Q1DW kRLw== 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:mime-version :content-transfer-encoding; bh=9yVjfFDv+uCbhxafIHG5t3LrTWEnU1DXIqhreRyr17w=; b=g9YHZ5J2aQTdDV/3eUGzy/uz8Wxt1UXzhqXfkdons5OK4XPJFOA9vG1U6+jc7dTHJR 9cie/+LS3J2OxaJkvt6KjjH1U4y+iFnikj8HCROZVcp0Q7qn0acjWom1fVLgG65hf4vR eQbG/4qO/DdKzqe7e2tlg5ruao6oa+fQ/SqoAils/gd3VRZh0r3YMdgZS7kjzwPuxU4a g2Co7q88Jq8y138BecD0QXRmEoAZgim/rwJaxIGrioHz0wFzFfMWOQSNE1toKwTEPuYC vc/ZlBe4kpj5QmNwwIOvgdDLIOR4mlGiQ6qa9noanJ7woB7xLZ9DUFJuYKgnZyAOtbqc lSpQ== X-Gm-Message-State: APjAAAXGjm/VpF9HkBuRyn6Quz9Wj9PMimgWyJrlwB7qF3Ut/L+F9iPz Dddeg1RAQSYlHvHSfrCyHtSE/VOJYzs= X-Received: by 2002:a62:582:: with SMTP id 124mr20237909pff.209.1557165103599; Mon, 06 May 2019 10:51:43 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::592a]) by smtp.gmail.com with ESMTPSA id n7sm14764022pff.45.2019.05.06.10.51.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 10:51:43 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 6 May 2019 10:51:35 -0700 Message-Id: <20190506175136.7594-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH 1/2] systemd: Fix build with gcc9 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 gcc9 throws additional warnings about format string overflow Signed-off-by: Khem Raj --- ...-format-overflow-warnings-with-gcc-9.patch | 41 +++++++++++++++++++ meta/recipes-core/systemd/systemd_242.bb | 1 + 2 files changed, 42 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd/0006-Fix-format-overflow-warnings-with-gcc-9.patch diff --git a/meta/recipes-core/systemd/systemd/0006-Fix-format-overflow-warnings-with-gcc-9.patch b/meta/recipes-core/systemd/systemd/0006-Fix-format-overflow-warnings-with-gcc-9.patch new file mode 100644 index 0000000000..510ac22150 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0006-Fix-format-overflow-warnings-with-gcc-9.patch @@ -0,0 +1,41 @@ +From c8050da8b7b0e59e4d1d0e15a92b9ecad299dbbb Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 6 May 2019 10:41:15 -0700 +Subject: [PATCH] Fix format-overflow warnings with gcc-9 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +gcc-9 has become a bit stricter and can check all kind of formatted +input/output functions which causes additional warnings when compiling +networkd + +/src/basic/log.h:104:9: error: ā€˜%sā€™ directive argument is null [-Werror=format-overflow=] + log_internal_realm(LOG_REALM_PLUS_LEVEL(LOG_REALM, (level)), __VA_ARGS__) + +see https://github.com/systemd/systemd/issues/12454 + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + src/network/networkd-link.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c +index 533193ac93..976cbbeaaa 100644 +--- a/src/network/networkd-link.c ++++ b/src/network/networkd-link.c +@@ -339,7 +339,8 @@ static int link_enable_ipv6(Link *link) { + r = sysctl_write_ip_property_boolean(AF_INET6, link->ifname, "disable_ipv6", disabled); + if (r < 0) + log_link_warning_errno(link, r, "Cannot %s IPv6 for interface %s: %m", +- enable_disable(!disabled), link->ifname); ++ enable_disable(!disabled), ++ (link->ifname) ? link->ifname : ""); + else + log_link_info(link, "IPv6 successfully %sd", enable_disable(!disabled)); + +-- +2.21.0 + diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes-core/systemd/systemd_242.bb index a6b39d57e8..93c4472bab 100644 --- a/meta/recipes-core/systemd/systemd_242.bb +++ b/meta/recipes-core/systemd/systemd_242.bb @@ -22,6 +22,7 @@ SRC_URI += "file://touchscreen.rules \ file://0003-implment-systemd-sysv-install-for-OE.patch \ file://0004-rules-whitelist-hd-devices.patch \ file://0005-rules-watch-metadata-changes-in-ide-devices.patch \ + file://0006-Fix-format-overflow-warnings-with-gcc-9.patch \ file://99-default.preset \ " From patchwork Mon May 6 17:51:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 163441 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:81:0:0:0:0 with SMTP id l1csp270183ilm; Mon, 6 May 2019 10:52:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8aE361Zs4WMUgqDkcZhiDhB5/iDh3s/wTpuIAviL/GjiXVy7Lh4F0Hgj8+ynkmtq3oigC X-Received: by 2002:a63:c104:: with SMTP id w4mr33274804pgf.409.1557165130146; Mon, 06 May 2019 10:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557165130; cv=none; d=google.com; s=arc-20160816; b=pZ22Gh5atQChifpLL3x+L60d9FQ/YPtIYIIo8FMTpH6itIjkN0IobV1RzEnrbLmxjq XeoTTqg7iGVNedPIaKNu+U5zWA439keC4WfysM2UuRbWEcRIVsMEcjaie8wPPGctr4SF zPuhyC6uYJ16ODY7coQ6nBz9UP27WtBo9iKXcWX+QX/RjagVcsVHqRpTpoz/5v+D5+ea eMfEpKbYIVFVa+ua3WsANykboLpiyWN8L5caCKe4G6x0zj9RJMhyYd//x4rFjEBCrJ2A E9eGIX3VXwtrHSpKDFHfjaHRXX8f6bCbPYf9SxmdsmA6420Z1/tszSfhokNZ8vZwILyx lcMA== 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=XeycsJuzP1wU0RXI6x1keIZdJJS0qetCQO/BV/3peTI=; b=BqY3aNVlYlhozTMGixUL5FWdkWT0cQS+1fN0LV/KA97WskQ9sQE7L/OcOA05bkD7+4 M9JGGHiaGXCpw6OukNQeYl1LhiC+h/KLbhZkYccW3UFrXC0/A7+bHhYzkC06CuvEqCVZ iNXyi5RAFrAjexVf3Vmc9V9zCdQeau25btgpxxe3KKy4Foxa3mG8YmxdVdFVK4Xpp27L zKetMazcyqkef2ejep51bzAWOtcnRHbTtaE+ra4XVa5cAIUSYPJXqcSim+ZxOiVS5SqA uMI6fA87tsimEmnBaRt/XoYDBY0yUiUBeKHsNwxkA9B+GSys9f1l+ccgD42uTNf2+4q/ GSag== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=gdh9F5XP; 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 r16si15141506pgv.503.2019.05.06.10.52.09; Mon, 06 May 2019 10:52:10 -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=gdh9F5XP; 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 79F2A7D533; Mon, 6 May 2019 17:52:07 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by mail.openembedded.org (Postfix) with ESMTP id 77A9A7D391 for ; Mon, 6 May 2019 17:51:43 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id g3so7157118pfi.4 for ; Mon, 06 May 2019 10:51:44 -0700 (PDT) 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=LEkfMaWY9uGXqW33P3GGSxP9mi6XMnIoV6MSqL99V6Y=; b=gdh9F5XPZmkeSaMf0OtJPdL9a38Intze7aAgdX/SfwkF4D7cQGR5H6HkzWspzNJcVV 0Z5AYoXoGwi4q/2dZsqjXtiZ1m/rKH2ZaN7N8QMJHcQEPX7gpTGM5vyCaKM3qSft37iv BZtpG21+l04lSpf4LQPnI7CWg42BgfRkv+jTs4k7Kfql98k7JUeJP3YNXwEMO9kvQ2wM ElQtLGmZje933TJQ1wGZDpp1n/YLJP6YeTAUI4VOGZPEess/dddfB6jVExqFvnMR5T0O WI76DeSOaBbCnnXvTZ1aQnGjLWsyotIJILbdU/Klfs9KImkNR+CmZ7ncol9wA43VW6mm sfNw== 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=LEkfMaWY9uGXqW33P3GGSxP9mi6XMnIoV6MSqL99V6Y=; b=GyOz9rB0GwRtvjmppO4ySXotC+N8Y4EbqAFQWYlP7mgxDr3CaKcJYOq1ElKSqttr4o U5VocycSRPmfHjNCHUWLs9jqhBARyA6o25Ep3H/FPjmawZ1cG5jxzqqVE48eiPmSGBJp Ei4cxdY1YjA1qOUw6Be4lMZZ2TMIq5fV507FaWaB31K5z0OgYup9zF5pMKUTPfkziAIb 24LEAXGtj4m3/m8BRkocQQaAly8gtnMgG4DUwCu0JhK8ABvgXdl7+b6eFZ1s4yUTwAyY qPfeVOaqxC4ylYvCDfaHBcknO4C5RJN5laKFoIVeiVhjGpcX9qXyXwLOamm8SvXY7kFU tP3A== X-Gm-Message-State: APjAAAUYEtb2Lt6+urxiqF2/5IpYTj0/BslLjYTSfQ5RiVuFarrEK+WS /o8EHLEcOXQNhMOUbFwSZ2Fxd0t9BNg= X-Received: by 2002:a62:b602:: with SMTP id j2mr35092528pff.68.1557165104253; Mon, 06 May 2019 10:51:44 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::592a]) by smtp.gmail.com with ESMTPSA id n7sm14764022pff.45.2019.05.06.10.51.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 10:51:43 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 6 May 2019 10:51:36 -0700 Message-Id: <20190506175136.7594-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506175136.7594-1-raj.khem@gmail.com> References: <20190506175136.7594-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/2] gcc-target: Do not set --with-sysroot and gxx-include-dir paths 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 These options are not needed on target infact since the defaults would be good enough for compiler to find the relevant headers and libraries from compiler runtime with gcc9 it starts to strip the sysroot from gxx-include-dir which means it tries to look for gxx headers in localdir ignoring nonexistent directory "usr/include/c++/9.0.1" ignoring nonexistent directory "usr/include/c++/9.0.1/arm-yoe-linux-gnueabi" ignoring nonexistent directory "usr/include/c++/9.0.1/backward" instead of sysroot Removing these options make it behave normal Signed-off-by: Khem Raj --- meta/recipes-devtools/gcc/gcc-target.inc | 2 -- 1 file changed, 2 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-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index 6270059644..bdc6ff658f 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc @@ -2,9 +2,7 @@ GCCMULTILIB = "--enable-multilib" require gcc-configure-common.inc EXTRA_OECONF_PATHS = "\ - --with-sysroot=/ \ --with-build-sysroot=${STAGING_DIR_TARGET} \ - --with-gxx-include-dir=${includedir}/c++/${BINV} \ " EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu"