From patchwork Sun Jan 10 13:30:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1424253 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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=CgW0gkp/; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DDHmK6yCWz9sWC for ; Mon, 11 Jan 2021 00:31:13 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BA146868A5; Sun, 10 Jan 2021 13:31:11 +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 gfFUGU0gsPWl; Sun, 10 Jan 2021 13:31:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 914D08688D; Sun, 10 Jan 2021 13:31:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id AB2231BF574 for ; Sun, 10 Jan 2021 13:31:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A7DA92036E for ; Sun, 10 Jan 2021 13:31:09 +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 dg2osF8m8IIs for ; Sun, 10 Jan 2021 13:31:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by silver.osuosl.org (Postfix) with ESMTPS id 193F320380 for ; Sun, 10 Jan 2021 13:31:08 +0000 (UTC) Received: by mail-wr1-f49.google.com with SMTP id d13so13568081wrc.13 for ; Sun, 10 Jan 2021 05:31:08 -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=QGdCzK/BRPeuTKXy8mXAX1nJ/7OtsUIHyvTxtmA/5kE=; b=CgW0gkp/xrNh6DKAwOx2mCnRE3xdXECj+tP6E1Z/cZpX2bat6FZDJxCHOsln0g+7Po 9TbXChDSBbCapXyYgOFTSMoot6XnC04HZTiEyPFC0QNy8LR+AYtFuCrOgdAsfHbi/4V1 Nv5E1ifF+Hcsph0ax5+QyhCGM56osEIFN/gLOtMx1CAdr1Wz8tkJ+eAdXiLdr0ytqRrD Jg7i9kn2IFubC+5L/YJTndtZR3IY1sspX5PQ5MimG9szUbnrDfF11vf6cZ5d3dR/IAtm nyLcgTKN1EwR/BTKCjxPNDfrH6fzU19AC3s2SHv5FqRzW+2yb68rd2HfVt12QvGHtV7w QFfA== 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=QGdCzK/BRPeuTKXy8mXAX1nJ/7OtsUIHyvTxtmA/5kE=; b=Ti2kObKps/IVW7qG4B1H02D0itVD7vkTmBqApao1AnF1RSK+POWx6riO++7Zj++vjw k3r+Snv+Gu4QTXy/DY3SixJQvMrBGGvc8r/yDonvnFXEwF3mumuhr5qEyq6/NrsrJji0 vVfF18LMladdT06dN8MBbN0UIyC8ESNc6f3q5PDxS/8tgOKmrL3hpLHZQa+WLo65yOiK AxrEwhyjQU9j4asOVpkrnRARPgOUn/62z7OJU0fPv1N0XnPn8LxIbjCUIdxfyYX4sjgd pKGgcmwKY9Imb5iAFONIs+MFs9UvU6+756oLvUo0m9VxKSWkXfPS5ud7evl7Pu8U6273 Bcfg== X-Gm-Message-State: AOAM531APKPcpFxXAluojZxcR9VHTjuRb1ClZV9m8L+iolRxRKDIWzry OYrHHlNPzw/lnEoP7TbWQhmQ4UwgltjLhg== X-Google-Smtp-Source: ABdhPJxx0/drRwW/1VBvQloOWkJGyEoHHACBXywdY643vmpYdZcRttvVD4ZwZKSCXyI9/voOdQkfdg== X-Received: by 2002:adf:c642:: with SMTP id u2mr12368990wrg.243.1610285466054; Sun, 10 Jan 2021 05:31:06 -0800 (PST) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id e15sm21095371wrx.86.2021.01.10.05.31.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Jan 2021 05:31:05 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 10 Jan 2021 14:30:26 +0100 Message-Id: <20210110133026.822203-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/open62541: fix build without threads 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: Yann CARDAILLAC , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.org/results/87ec3c987c991f790757276316d6caf81e635fa2 Signed-off-by: Fabrice Fontaine --- ...eLists.txt-fix-build-without-threads.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/open62541/0002-arch-posix-CMakeLists.txt-fix-build-without-threads.patch diff --git a/package/open62541/0002-arch-posix-CMakeLists.txt-fix-build-without-threads.patch b/package/open62541/0002-arch-posix-CMakeLists.txt-fix-build-without-threads.patch new file mode 100644 index 0000000000..94ee76ad92 --- /dev/null +++ b/package/open62541/0002-arch-posix-CMakeLists.txt-fix-build-without-threads.patch @@ -0,0 +1,37 @@ +From a312e82124fb8c9f139d5a40fa5a28123bb77a33 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Sun, 10 Jan 2021 14:25:56 +0100 +Subject: [PATCH] arch/posix/CMakeLists.txt: fix build without threads + +Fix the following build failure without threads: + +[100%] Linking C shared library bin/libopen62541.so +/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabihf/bin/ld: cannot find -lpthread +collect2: error: ld returned 1 exit status +CMakeFiles/open62541.dir/build.make:192: recipe for target 'bin/libopen62541.so.0.0.0' failed +make[3]: *** [bin/libopen62541.so.0.0.0] Error 1 + +Fixes: + - http://autobuild.buildroot.org/results/87ec3c987c991f790757276316d6caf81e635fa2 + +Signed-off-by: Fabrice Fontaine +--- + arch/posix/CMakeLists.txt | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/arch/posix/CMakeLists.txt b/arch/posix/CMakeLists.txt +index bb24757c..a53c9f2c 100644 +--- a/arch/posix/CMakeLists.txt ++++ b/arch/posix/CMakeLists.txt +@@ -20,8 +20,6 @@ if (${_index} GREATER -1 OR "${UA_ARCHITECTURE}" STREQUAL "posix") + ua_architecture_append_to_library(netdb ndblib socket) + else() + ua_architecture_append_to_library(m) +- #TODO - Error on first make run if pthread is included conditional? +- ua_architecture_append_to_library(pthread) + if(UA_ENABLE_MULTITHREADING OR UA_BUILD_UNIT_TESTS) + ua_architecture_append_to_library(pthread) + endif() +-- +2.29.2 +