From patchwork Tue Feb 11 17:55:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1236406 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; 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=M8vDp84K; 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 48H9Qd1jqJz9sRY for ; Wed, 12 Feb 2020 04:54:49 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 861B3204B8; Tue, 11 Feb 2020 17:54:46 +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 9K43j9o0wKuF; Tue, 11 Feb 2020 17:54:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 5805F2050D; Tue, 11 Feb 2020 17:54:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 528D41BF2C4 for ; Tue, 11 Feb 2020 17:54:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4F65B844CE for ; Tue, 11 Feb 2020 17:54:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yM0Pqup94Pr8 for ; Tue, 11 Feb 2020 17:54:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 90ACF844C1 for ; Tue, 11 Feb 2020 17:54:43 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id g3so12456188wrs.12 for ; Tue, 11 Feb 2020 09:54:43 -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=onaZ7UIoDmqyXkvWc/oHgxTs6Rx3Upnl2SV+sHaZ/O4=; b=M8vDp84KzNQ+6CoRHC0vx2h+6uPoeVMZERdqLuH0USmu4mstOWYJJKL4D0Zfk6Rw/P BBdTvCaC30l6uFIQR0+z5xNfXktTQWQR5n0K3IN6AucwoqZe28P3ZlRX9cuTeKxk2QLS 0bnep0b5HeVn6ZGub4ErbWNE2aX2en6dWkNq9eQ9mYjVa1BbBqdGsisIMlO6hUC/NwsN n6gZ5thbLGUzXVezkIVDS2DaBpY7NxxoaTif1m6gkePa3Dlz6jrQ9IEw+1fzRECxb6sQ 85cTsXjTU8Vh8MuGZuivWDt6nHWX3AQYuaFd6yNNqsY8Vi1nK4hb/0dB6/2i3K7YGMRq SSug== 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=onaZ7UIoDmqyXkvWc/oHgxTs6Rx3Upnl2SV+sHaZ/O4=; b=Bjct8b/xuc0Qhu5sBaDjX7gByrcfzFc05yqZMh4wxLzs44rS6rW3G02D5CBnoZ391y s2FQ0xu6GSvOr9E3BzIa4yXc8d1RyrBUhohNSNxyhYjgwfXu1CxNxkZSSkxfLnBXlRQl XG8wuZAUmPGRCaxSYsFmLhuGSjy85SDybEv7TF3Ryjr/2KYsVxk6c/UtzS3AmQR3CzFq BzTPCT9I9DC1FasA2Dy/Du61s51/Zq/bjwlAhckfR9ES+dkH/w7xemeNOMmbemJjNwCx n4wMEFvh6LOpWCeS7DqDGuASmibTta6q82CcayiyaZPz9Ex3SOEW2MgWu3rvkk0uJhTU TqkQ== X-Gm-Message-State: APjAAAVFj31NDi1h8NK6xBjIsH7b4TVKrNhXLojk1pENtwuMRbzvnsYa EztOtiIW84xDT3x315Ovw9j4Lgsu718= X-Google-Smtp-Source: APXvYqwbN0aJ/Ca091K2acaN0USLdD8XO1s9jZhtUGo5TQiADSGzI+tjChHgSrDlsXrQ0ofYzdQn3Q== X-Received: by 2002:adf:b254:: with SMTP id y20mr9507257wra.362.1581443681844; Tue, 11 Feb 2020 09:54:41 -0800 (PST) Received: from kali.home (lfbn-ren-1-602-70.w81-53.abo.wanadoo.fr. [81.53.179.70]) by smtp.gmail.com with ESMTPSA id f207sm5021341wme.9.2020.02.11.09.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 09:54:41 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Tue, 11 Feb 2020 18:55:11 +0100 Message-Id: <20200211175511.12719-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/opencv3: fix build with atomic 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: Samuel Martin , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Use HAVE_CXX_ATOMICS_WITHOUT_LIB variable to tell opencv3 to check for atomic library and add it in $(REQUIRED_LIBRARIES) if needed (atomic workaround was removed when bumping to version 3.4.9 in commit id=f6fb2cae0691d25b034b12a16261ee26096db7d1 but it seems tha opencv3 still needs help to detect atomic library) Fixes: - http://autobuild.buildroot.org/results/9162b29725f8d9b891eb74fcb8078f211140a841 Signed-off-by: Fabrice Fontaine --- package/opencv3/opencv3.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/opencv3/opencv3.mk b/package/opencv3/opencv3.mk index fab6716340..ffe5ca44ae 100644 --- a/package/opencv3/opencv3.mk +++ b/package/opencv3/opencv3.mk @@ -347,6 +347,10 @@ OPENCV3_CONF_OPTS += \ -DBUILD_opencv_python3=OFF endif +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +OPENCV3_CONF_OPTS += -DHAVE_CXX_ATOMICS_WITHOUT_LIB=OFF +endif + # Installation hooks: define OPENCV3_CLEAN_INSTALL_DOC $(RM) -fr $(TARGET_DIR)/usr/share/OpenCV/doc