From patchwork Tue Jan 19 17:17:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas De Schampheleire X-Patchwork-Id: 1428752 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=WLozYqX8; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DKwMt5vTRz9sWF for ; Wed, 20 Jan 2021 04:18:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 05FD5214E6; Tue, 19 Jan 2021 17:17:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lFD5vz4n4uBi; Tue, 19 Jan 2021 17:17:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B1F2A20472; Tue, 19 Jan 2021 17:17:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B2E471BF47A for ; Tue, 19 Jan 2021 17:17:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AEF4886856 for ; Tue, 19 Jan 2021 17:17:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s5xtTXWcRlHq for ; Tue, 19 Jan 2021 17:17:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0081F86817 for ; Tue, 19 Jan 2021 17:17:52 +0000 (UTC) Received: by mail-io1-f50.google.com with SMTP id p72so16331764iod.12 for ; Tue, 19 Jan 2021 09:17:52 -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:mime-version :content-transfer-encoding; bh=EWCT+7tU7xhXq7MtBr2/vUkC0nL2f+8Cs4kgUdOHefM=; b=WLozYqX8Cf3zkpuuUW15chDjiArWtNhTVj09QTaf5/dQr5ZgGiEwhhotW9Wg8N0DNf S6XlzmkhD3bR3KuFSUHGP1EQV0YVyR6qI1wLsVKI+d17NIUYEI45c50yZ0XEQhZV1yIx majujDc6nIhEKxTiEXwaKr/bWEAR5JmdlY7w+rVxU2a2zJ8ffMNC11CJDPaPKMBOFcdG +ckbsR1QM8xYrzio4wmfiHDXR1CnGegRyxdhAIvfEwIIhlrZ1+dIuuHSJuce20S3mkf8 BSt4V6RLtJRrHTlKpw4OARSeu7Cfk+49UavWglr5CmlcW/Cj+I+UpNF2Hf69Rxztthg0 RBBw== 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=EWCT+7tU7xhXq7MtBr2/vUkC0nL2f+8Cs4kgUdOHefM=; b=eMAhFGCvzzLmxx8jA+oZbZfeX48HjFHcsniAfTKJ2CiHgtu9h+wDfyVlFetk2ifpOC +ZWNqu68Cb7+ZPDJbarPt7Hq+OlrnsOuCAizfS8XD7zl/dxlYwiQBYYif+yT9Gj4mpMG BRV7Bw5czR3C/GIFhrkeMeDznfbkYFto5qoSDvUzjA2UnYF7n6Yr6M6nmja6lHCksDWj f5yTJdaFf2zaqMFTurw4KSd/wgSejwWx3uurjADxvvktSIAJsqIGLbSvACljuJ36x2hp m2qXJuHLEYpUjlYZ1DY+5Iw3B7Kjma+qa5yYBjKo9UAZpZ3GNX2h/KKw54NR8ai6VvzE LqMw== X-Gm-Message-State: AOAM532h7vdYnkYnellsOAGbx7ldJHPXoMLHj0Z7kgbCfqV60bXbFcL1 igQki0wnHjQsneDO/IkhZLe2XQASdEG9Fg== X-Google-Smtp-Source: ABdhPJwakLvf5Ulai4kch1Fgqz0Sn6usOXmzZMAo6dmIwUPukw81rUEvFuv/ZRNGH04oeE44M7kfXA== X-Received: by 2002:a5d:934d:: with SMTP id i13mr3716586ioo.187.1611076672280; Tue, 19 Jan 2021 09:17:52 -0800 (PST) Received: from localhost (ptr-5gw9tx0z7f066xyxzn.18120a2.ip6.access.telenet.be. [2a02:1810:510:3800:124:6af2:167b:d993]) by smtp.gmail.com with ESMTPSA id 11sm11475087ilq.88.2021.01.19.09.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jan 2021 09:17:51 -0800 (PST) From: Thomas De Schampheleire To: buildroot@buildroot.org Date: Tue, 19 Jan 2021 18:17:41 +0100 Message-Id: <20210119171742.23245-1-patrickdepinguin@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/opentracing-cpp: fix build if clang-tidy is installed on the host X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jan Heylen , Samuel Martin , Thomas De Schampheleire Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Thomas De Schampheleire opentracing-cpp fails to build if clang-tidy is installed: ... -- clang-tidy found: /usr/lib/llvm/11/bin/clang-tidy -- Configuring done -- Generating done ... [ 25%] Building CXX object CMakeFiles/opentracing.dir/src/propagation.cpp.o .../buildroot/output/build/opentracing-cpp-1.5.1/include/opentracing/string_view.h:5:10: error: 'algorithm' file not found [clang-diagnostic-error] ^ .../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:3:11: warning: '__llvm_libc' needs to be the outermost namespace [llvmlibc-implementation-in-namespace] namespace opentracing { ^ .../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:11:3: warning: use '= default' to define a trivial default constructor [hicpp-use-equals-default,modernize-use-equals-default] PropagationErrorCategory() {} ^ ~~ = default; .../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:13:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type] const char* name() const noexcept override { ~~~~~~~~~~~ ^ auto -> const char* .../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:13:15: warning: method 'name' can be made static [readability-convert-member-functions-to-static] const char* name() const noexcept override { ^ ~~~~~~ static .../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:17:24: warning: use a trailing return type for this function [modernize-use-trailing-return-type] std::error_condition default_error_condition(int code) const ^ .../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:37:15: warning: use a trailing return type for this function [modernize-use-trailing-return-type] std::string message(int code) const override { ^ .../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp:58:28: warning: use a trailing return type for this function [modernize-use-trailing-return-type] const std::error_category& propagation_error_category() { ^ 226 warnings and 1 error generated. Error while processing .../buildroot/output/build/opentracing-cpp-1.5.1/src/propagation.cpp. Suppressed 218 warnings (218 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. Found compiler error(s). make[3]: *** [CMakeFiles/opentracing.dir/build.make:83: CMakeFiles/opentracing.dir/src/propagation.cpp.o] Error 1 make[3]: *** Waiting for unfinished jobs.... .../buildroot/output/build/opentracing-cpp-1.5.1/include/opentracing/string_view.h:5:10: error: 'algorithm' file not found [clang-diagnostic-error] ^ .../buildroot/output/build/opentracing-cpp-1.5.1/src/dynamic_load.cpp:4: Disable the 'ENABLE_LINTING' option to avoid this influence. Signed-off-by: Thomas De Schampheleire --- package/opentracing-cpp/opentracing-cpp.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/opentracing-cpp/opentracing-cpp.mk b/package/opentracing-cpp/opentracing-cpp.mk index d466a80237..0605cd5d96 100644 --- a/package/opentracing-cpp/opentracing-cpp.mk +++ b/package/opentracing-cpp/opentracing-cpp.mk @@ -22,4 +22,6 @@ else ifeq ($(BR2_SHARED_LIBS),y) OPENTRACING_CPP_CONF_OPTS += -DBUILD_STATIC_LIBS=OFF endif +OPENTRACING_CPP_CONF_OPTS += -DENABLE_LINTING=OFF + $(eval $(cmake-package))