From patchwork Tue Nov 19 01:16:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179619 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp3654196ilf; Mon, 18 Nov 2019 17:17:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxnf+GfT4qRpClBaxPQvNqiHF1NDMoUHUkE512RLAAvUtYE6wIIZ85OZmvTZo0hz3Bh8ECd X-Received: by 2002:a17:902:36a:: with SMTP id 97mr32680257pld.83.1574126252385; Mon, 18 Nov 2019 17:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574126252; cv=none; d=google.com; s=arc-20160816; b=ILKqhbLRnQMiAqIte3qvCwUFKGmXwOlXTjtH299aUF7xk+Ev795cFkRWKD1weFS577 I2xz2Fge9zyT376tGjVe0hGknWL0+P2bdbMFyuk38dNIcJeyKnzXpajZi/aWeGUYFupv hyQAlf0UKbTqBonKnJALfP79yRIxy9C51jDy+R/Ug1qo46SMt53apCL+MEOS1HvaJZxM TBdZ/1WTPtZy5LyH/fadEeR7Jg8mVqIHJ34ep+WMoNg8y33gMFX348mN03svVPdjGFyp tMBszkFzVJMf3DXD/xIFQVz32Z34t6iAXO0mv8ib0h0wzmea6TFWQQuw9dlSZu+v2DJ8 uDLQ== 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=l/OacBpr6xTzCa6aeRKBnJu/x4AqTmc0C6bZjYDOkRE=; b=0QgOsSzVbG6Q9p+4uUuCq5/XzVOz0C1NySeUTeqmtYFw6yku8WmHwE9puXoa/GbA3C h2gEZVLDJ9po5m3Dpnxxid3Irm1+QiUqbmj7UTrl0Fc5jTJgwHlto2ADB2VXkU1NGYUV qx2G/gPm8hp54MWqC8orSzAZMlxDP9OqbMxWOdD570toWvfCqnsSfFpt2kihIQ4uW6dc B+FddjfZUSBbQC2GSOqK2P7Vb0Z1TmaVcsMRNyTHCQm1F3lqEz8MiHGegza2wwumohvK 5B0V0YDb+/o8hKcc3MVLP+yNyYmDinOE62yEpUucrBET1Cdhk4DXY3GBvUu08iWLvyX1 SKjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=uqyRJYFB; 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 r30si20430534pga.149.2019.11.18.17.17.31; Mon, 18 Nov 2019 17:17:32 -0800 (PST) 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=uqyRJYFB; 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 ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 12BF57F8A2; Tue, 19 Nov 2019 01:17:29 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mail.openembedded.org (Postfix) with ESMTP id 5EC6E6C132 for ; Tue, 19 Nov 2019 01:16:43 +0000 (UTC) Received: by mail-pj1-f53.google.com with SMTP id m71so2035911pjb.12 for ; Mon, 18 Nov 2019 17:16:44 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=bEW2vNig96tl5DFJwR++zmgDq8OCXJbwBeWbTxT7AXU=; b=uqyRJYFBc33eye+5VL+kZroQCN3ZsiqqjHTKeb2QHYm+b9lVekVHUdYoVi7xnDgp7C 8AS6xiFNAp0Zdd+Wm4mnnk2LZS4Y/zTeYnxQBYddsWf3HftrmzHr1Jbx/mRHj+jwu1rO MulCqhCamEn23nLS69T31B9lD0AreeRc+7mLw5UNdn49kIeHzrtDARA6G2djMKEFbEDO j7MAcbztxHRa45Aw9BREKqWiTAi57GXMUzIHWUIuLFor3R4fQvfMbiDgG0Xvsc5VVdyZ 499Pzi2slVSJrauwFQcFmT8kg6rgOA+3Orif5dqb8uQmoFmYRDVknYTMxV1qetuuDwrd /Irg== 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=bEW2vNig96tl5DFJwR++zmgDq8OCXJbwBeWbTxT7AXU=; b=Uv5DjWcuq1hn6d6XdhbnQ7FxuX53+DzrOjlWyXx8KQGOu/ZdhInG1ERTXwnEaR/DLg g6+jQaI3bKTL6wuGFjFuHFU53/tEj3k9LURTi2twW4BGx1hNTiaaaGmmRltQdNzWcj+W 0CyOKH8bHprxpfHRZ+Ysq5txJqd0CvD/apU7vTZdSc/U/d63voO/rEOyNaCUWqStKpXX PMKu8Qu+fdAc/RXLRSxuFHInWfsJN9+zak4gVgJyW4GhYQ0zjcaTk86uxiPzdiPhaF0Q U6HRsvyN9TzuDJeO320S/fa9gDq+1aK716LgAXO63H7pFo95IavM+MSa/1Jjn3DTT4pj ZrVQ== X-Gm-Message-State: APjAAAW2PeIVp/DCr4Xb/sDdf6Tcv5Fertrqb2nVrgFOB0WUM0v3QfHJ j7LS8FuGzeZ0jKkxeG6kaqHJRi0kehg= X-Received: by 2002:a17:902:b693:: with SMTP id c19mr32113666pls.89.1574126203903; Mon, 18 Nov 2019 17:16:43 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::30e8]) by smtp.gmail.com with ESMTPSA id y8sm22021106pfl.8.2019.11.18.17.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2019 17:16:43 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 18 Nov 2019 17:16:29 -0800 Message-Id: <20191119011629.3835732-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119011629.3835732-1-raj.khem@gmail.com> References: <20191119011629.3835732-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 2/2] upm: Link with libatomic on clang/x86 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: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org This is needed for atomic which clang does not use intrinsic function for on 32bit x86 Signed-off-by: Khem Raj --- .../upm/0001-nmea_gps-Link-with-latomic.patch | 27 +++++++++++++++++++ meta-oe/recipes-extended/upm/upm_git.bb | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 meta-oe/recipes-extended/upm/upm/0001-nmea_gps-Link-with-latomic.patch -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-extended/upm/upm/0001-nmea_gps-Link-with-latomic.patch b/meta-oe/recipes-extended/upm/upm/0001-nmea_gps-Link-with-latomic.patch new file mode 100644 index 0000000000..c16b8dbc5a --- /dev/null +++ b/meta-oe/recipes-extended/upm/upm/0001-nmea_gps-Link-with-latomic.patch @@ -0,0 +1,27 @@ +From 996d37fc0b7177ee57788399b9140032d5de2765 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 18 Nov 2019 15:50:02 -0800 +Subject: [PATCH] nmea_gps: Link with latomic + +clang/x86 ends up with missing symbols for atomics due to atomic +with libstdc++, it works ok with libc++ + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/nmea_gps/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/nmea_gps/CMakeLists.txt b/src/nmea_gps/CMakeLists.txt +index b3fb6591..5280bfed 100644 +--- a/src/nmea_gps/CMakeLists.txt ++++ b/src/nmea_gps/CMakeLists.txt +@@ -6,4 +6,4 @@ upm_mixed_module_init (NAME nmea_gps + CPP_SRC nmea_gps.cxx + FTI_SRC nmea_gps_fti.c + CPP_WRAPS_C +- REQUIRES mraa utilities-c ${CMAKE_THREAD_LIBS_INIT}) ++ REQUIRES mraa utilities-c atomic ${CMAKE_THREAD_LIBS_INIT}) +-- +2.24.0 + diff --git a/meta-oe/recipes-extended/upm/upm_git.bb b/meta-oe/recipes-extended/upm/upm_git.bb index fb22e83359..dbe97370d5 100644 --- a/meta-oe/recipes-extended/upm/upm_git.bb +++ b/meta-oe/recipes-extended/upm/upm_git.bb @@ -15,6 +15,8 @@ SRC_URI = "git://github.com/intel-iot-devkit/${BPN}.git;protocol=http \ file://0001-Use-stdint-types.patch \ " +SRC_URI_append_toolchain-clang_x86 = " file://0001-nmea_gps-Link-with-latomic.patch " + S = "${WORKDIR}/git" # Depends on mraa which only supports x86 and ARM for now