From patchwork Wed Jun 13 06:35:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 138421 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp339368lji; Wed, 13 Jun 2018 00:01:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKfTQmquUihcmW+NwZsnUXrybZz2HOM1eR7vvT1Nv5SDpjPNl6erwMDJ8Cwr7TrjrWkgMtq X-Received: by 2002:a17:902:1347:: with SMTP id r7-v6mr3935635ple.62.1528873286072; Wed, 13 Jun 2018 00:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528873286; cv=none; d=google.com; s=arc-20160816; b=wZ7mHEBQ5sQd1Yn+bIQLDPhLBPQAtmBYhvtHHBxO/EuPFGVhm1zReucah63A3YX1/b /ucdurmXi1ADo2akVUt+Q/HU6ModH1qRVKIzx/HAz8XXUzAmrIwrrzaW51Bdj6xcpiiA T+PfM4qmOzTDdZGYliA8JZln1bRjiU2qnhVn775PItRDhiK7U1E+/s5OsiIt1D9EsmNJ 0snFyY1w0XxoUhit1JfyG2yAsC4dH8Wa/cLLUxe01MhaXnwsMV7RdG97uC6xFAY5fORA 0F4muL5GrZRe9r66lrRItUcBy+IsW7xUWtZI4Mv04a8uuPNhcdeURq+N6TdZG1qb4WPr Qiqw== 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=zFB/RJsRIflyunR7XDBrJ1VqJi+CGaP33MgRQo1OIzA=; b=CJ3MghiR0FZu0amhr+P6MOAuUZWZ2fzNv1rCVvjsnhsQ8h3JtXEyyQQdyZzhdJ4bqD erjp+RTGk/hTcf7FZfR12i0PoFVuVn6oaEZDYMzn5MQYkwrClANlpR/NnicD8GGxCyQf SpteTQSwhs2v3mHOpWFVL+HRivq+jwUwI17X1icRrepo8jG93qunw2RYS6AHxkvo+jk6 ZxAxvde6yH5QI+0M2eUDCLr2TEaJ7DbLSaBeP+KvtRKvehyVtY1i32acbSCZTpwyY7Tc SnOvXOmXsgUh1y69W3PzFauaTxzLWYw/r9JMx3GNIPu5hY6NMEyfe//E8aBE9g8QO/X/ wWhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=niHgpSRp; 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 f10-v6si1751638pgs.655.2018.06.13.00.01.25; Wed, 13 Jun 2018 00:01:26 -0700 (PDT) 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=niHgpSRp; 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 layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3A8597909D; Wed, 13 Jun 2018 07:01:08 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl0-f46.google.com (mail-pl0-f46.google.com [209.85.160.46]) by mail.openembedded.org (Postfix) with ESMTP id 37A11790A2 for ; Wed, 13 Jun 2018 06:35:14 +0000 (UTC) Received: by mail-pl0-f46.google.com with SMTP id 31-v6so931583plc.4 for ; Tue, 12 Jun 2018 23:35:15 -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; bh=BhScGGFT47MY1hx/oOmwXXxuGHzYTFueY2BHp1oQWkg=; b=niHgpSRpOXqbNnZ7QI+RY2ohyqdLnTKV8oPnTND0c90V70gxiWCPo9RlpKcH00IF4f Chy5HNc6VeBY/ugQmGpHnsY19nJrIW+gs8ijGnmzsySIRN8oVKhcPL/re574dRASv9PC w4ypUu8T0jBOO1pAd5Ex9/mOtOj0vee6OTDJOX0oCppamucbBOuXDiS019Y44pm42zT0 dcJqhn7mPjJE+obhEnePlIDQmxgvNJGlxv7sEQBW+sQ4e7dniQFfkiySfCByhgKFcnCI tMvV8hOIDp+Vy3JG9Zj59pSUZduPB92m3anPCyPpXe8lNXx3+yAehwmmH0CgJ2sCgzOs f3FA== 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; bh=BhScGGFT47MY1hx/oOmwXXxuGHzYTFueY2BHp1oQWkg=; b=MjcAqflhQqdltGH3RbxXGIjkD8lBljY+gEzOu6nC6w4Iob/Np8y1VVqg8OGQiFBZCO ocMhnSpvj3wFJEvcGXP5l6dR9KvvT77u2h4l+R+I+tALF1dq0IGEMvootrXp/+Wd7nVY AQjzY0EBDaDNN659R0EXeUSLsxGSwc8NwVAvjVE1P/hZRql144CrJo+pNNhcqArwrsbl CjLHHxtCQg78rjIfAB7o+JOUxsVL3v9S3y0LuWHFCQAAn48F2Os/u8dDmblEzjZEQpgg So0Sncrk9U7I66XtoJaS5yxImtLP6TXJaH4uGKSmP/DZIZw1XP4JsRevhKff4oGZXlDn pK1A== X-Gm-Message-State: APt69E2B3EJPgMV8h2hdesGJEIpWEffrLTfAykcLICVRIrBT/P5upEJO 1atxx9BoyfjRoOd18xSl3MdCsg== X-Received: by 2002:a17:902:563:: with SMTP id 90-v6mr3739328plf.327.1528871715131; Tue, 12 Jun 2018 23:35:15 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::c68]) by smtp.gmail.com with ESMTPSA id b83-v6sm3525707pfe.159.2018.06.12.23.35.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jun 2018 23:35:14 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 12 Jun 2018 23:35:11 -0700 Message-Id: <20180613063512.1755-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180613063512.1755-1-raj.khem@gmail.com> References: <20180613063512.1755-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH V2 4/5] cpprest: Fix build with gcc-8 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../0001-disable-more-Werror-warnings.patch | 48 +++++++++++++++++++ .../recipes-support/cpprest/cpprest_2.10.2.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta-oe/recipes-support/cpprest/cpprest-2.10.2/0001-disable-more-Werror-warnings.patch -- 2.17.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/cpprest/cpprest-2.10.2/0001-disable-more-Werror-warnings.patch b/meta-oe/recipes-support/cpprest/cpprest-2.10.2/0001-disable-more-Werror-warnings.patch new file mode 100644 index 0000000000..febfd5bc96 --- /dev/null +++ b/meta-oe/recipes-support/cpprest/cpprest-2.10.2/0001-disable-more-Werror-warnings.patch @@ -0,0 +1,48 @@ +From ee92f84a96a507b0a7a3c54929ce190ee28b4ecd Mon Sep 17 00:00:00 2001 +From: Alexander Moriarty +Date: Wed, 6 Jun 2018 10:38:43 -0700 +Subject: [PATCH] disable more -Werror warnings + +gcc-8: -Wno-format-truncation + +clang-6: -Wdelete-non-virtual-dtor +clang-6: -Wunused-lambda-capture + +removed duplicated: -Wno-reorder + +This fixes #778 + +Upstream-Status: Pending [https://github.com/Microsoft/cpprestsdk/pull/779] +Signed-off-by: Khem Raj +--- + Release/CMakeLists.txt | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Release/CMakeLists.txt b/Release/CMakeLists.txt +index 1267aff1..fb291ccd 100644 +--- a/Release/CMakeLists.txt ++++ b/Release/CMakeLists.txt +@@ -166,12 +166,12 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR IOS) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-attributes -Wno-pointer-arith") + elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") + set(WARNINGS -Wall -Wextra -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls) +- set(LINUX_SUPPRESSIONS -Wno-overloaded-virtual -Wno-sign-conversion -Wno-deprecated -Wno-unknown-pragmas -Wno-reorder -Wno-char-subscripts -Wno-switch -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated -Wno-unused-value -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-unused-function -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-reorder -Wno-unused-local-typedefs) ++ set(LINUX_SUPPRESSIONS -Wno-overloaded-virtual -Wno-sign-conversion -Wno-deprecated -Wno-unknown-pragmas -Wno-reorder -Wno-char-subscripts -Wno-switch -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated -Wno-unused-value -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-unused-function -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-unused-local-typedefs -Wno-delete-non-virtual-dtor -Wno-unused-lambda-capture) + set(WARNINGS ${WARNINGS} ${LINUX_SUPPRESSIONS}) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-return-type-c-linkage -Wno-unneeded-internal-declaration") + else() + set(WARNINGS -Wall -Wextra -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls) +- set(OSX_SUPPRESSIONS -Wno-overloaded-virtual -Wno-sign-conversion -Wno-deprecated -Wno-unknown-pragmas -Wno-reorder -Wno-char-subscripts -Wno-switch -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated -Wno-unused-value -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-unused-function -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-reorder -Wno-unused-local-typedefs) ++ set(OSX_SUPPRESSIONS -Wno-overloaded-virtual -Wno-sign-conversion -Wno-deprecated -Wno-unknown-pragmas -Wno-reorder -Wno-char-subscripts -Wno-switch -Wno-unused-parameter -Wno-unused-variable -Wno-deprecated -Wno-unused-value -Wno-unknown-warning-option -Wno-return-type-c-linkage -Wno-unused-function -Wno-sign-compare -Wno-shorten-64-to-32 -Wno-unused-local-typedefs -Wno-delete-non-virtual-dtor -Wno-unused-lambda-capture) + set(WARNINGS ${WARNINGS} ${OSX_SUPPRESSIONS}) + + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -Wno-return-type-c-linkage -Wno-unneeded-internal-declaration") +@@ -184,7 +184,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR IOS) + elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU") + message("-- Setting gcc options") + +- set(WARNINGS -Wall -Wextra -Wunused-parameter -Wcast-align -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls -Wunreachable-code) ++ set(WARNINGS -Wall -Wextra -Wunused-parameter -Wcast-align -Wcast-qual -Wconversion -Wformat=2 -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wpacked -Wredundant-decls -Wunreachable-code -Wno-format-truncation) + set(LD_FLAGS "${LD_FLAGS} -Wl,-z,defs") + + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-strict-aliasing") diff --git a/meta-oe/recipes-support/cpprest/cpprest_2.10.2.bb b/meta-oe/recipes-support/cpprest/cpprest_2.10.2.bb index 1dbe093bee..fea5d4b2eb 100644 --- a/meta-oe/recipes-support/cpprest/cpprest_2.10.2.bb +++ b/meta-oe/recipes-support/cpprest/cpprest_2.10.2.bb @@ -9,6 +9,7 @@ SRC_URI = "git://github.com/Microsoft/cpprestsdk.git;protocol=https;branch=maste file://fix-cmake-install.patch \ file://0001-Fix-a-build-problem-on-Clang.patch;patchdir=.. \ file://0002-Define-virtual-destructor.patch;patchdir=.. \ + file://0001-disable-more-Werror-warnings.patch;patchdir=.. \ " # tag 2.10.2