From patchwork Tue Nov 19 01:16:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179618 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp3653459ilf; Mon, 18 Nov 2019 17:16:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzX8dDRBYz8/kL5DTZ6ke49nLxvSxj9YU+QG0a5kAM5rz4K0jHtEPIPaH/Yk3IydQMAkkH6 X-Received: by 2002:a62:e219:: with SMTP id a25mr2513800pfi.252.1574126213469; Mon, 18 Nov 2019 17:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574126213; cv=none; d=google.com; s=arc-20160816; b=nKluLZ5iXI6rHYyPrFeUnDHH4h3MEdNT8+e8gpsTvStJAMdAhl7+O8hPPcEWA3rbAk Ow2fo5JAmGYLtSm5imJcM1sE41ploVwNoWN7qpvkiKTyAXgi9RpigE+d2IP6SfjFIg+M /TRom1vaWnhcVfZNEFt5zumbVGDQnAbHeYE4YIfGZ8o1ojmlxdaaYfUjr9YLjTG6Y2La H8YxPT3nETaPNWKMxvuDIcrE2EatOil+kElV0Vx314v9vWauMr2wwkcgiZLLgcKK4MFu D8WZVQqvfsO4+jG744o578TI3ADlpePa0Viky3h3tPZD/4moozN5IUE4jIFZOk5Jcj22 0H2A== 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:message-id:date:to:from:dkim-signature:delivered-to; bh=jFtjMvekUoIUTVkd00MabdmS8Zcgv2AQhDiopDynNYY=; b=bVhgbR1QlOrk4uvKOjl1jgmV8KnFCMvaSR39rG7u0SgebuQo9C8qNX1X1VUBc9bgi3 mlyLv/W7Ab26/ByZbo+vkUViD0yJYr66dx2Yk8/oC0t2eNlV8U9EaosvnA4PxRolv6sp x+eX2yNM0hMwbPsv695YmEW8EvGqfk8HGb3rzB417qFGebP3sj48umnpW2L4knaS6pgf DSVUfMeo6RwkBwoiaatq6ADnLd4zQTBLULTQXTY3cEcdC4ou65BZAfhNEqUxzXVFtL1v lY8X8/HczVHtD7cBjmJ1hbKTDNZn1qPTrBWeGb2WYkY0j/8mWKbGhQyi5c9sAGmJInV+ nsOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=jN8MifEI; 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 w190si21794914pgd.454.2019.11.18.17.16.52; Mon, 18 Nov 2019 17:16:53 -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=jN8MifEI; 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 13F2D6C132; Tue, 19 Nov 2019 01:16:45 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by mail.openembedded.org (Postfix) with ESMTP id D95796C132 for ; Tue, 19 Nov 2019 01:16:42 +0000 (UTC) Received: by mail-pj1-f67.google.com with SMTP id bo14so2036196pjb.1 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:mime-version :content-transfer-encoding; bh=sNYkX76fj+CYjMoiAInB5NGZD2HHRoULZrp9v3l9CxE=; b=jN8MifEI9igiPOegQCNloRBbrCy/igcYm6hi0xYqYQ05NoyP9QjWuZ7P6+ly2hwLjs i8g5dVrzXa+RW9HkRjZjoMJpI05yXxZIDun9OHse47lpxhajNGmz32ADC0KunqLJLhNy 1Zx9IrjHXy+1GyQpJCz4dv4kVeildKVNfDhwzXig/RePmDsI1a1yNvhTY0Gy6ErZADI3 QZ2O/wqNrBaJIhdX5m+zSlWIDV+2Ocy+8t36HSGiD6grsSQ2qyPTytbYHeM0Dxly3R8Q tVWTAHlJ7au1GKhMowwCHOS95i0KfMii6keMAe6u9ttTBqKHY41SdB4sz6Ih08HMRI5u PfVQ== 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=sNYkX76fj+CYjMoiAInB5NGZD2HHRoULZrp9v3l9CxE=; b=QsVMSA/tl8oVTeOE5IcGfd+Hox6jqRYZ6/Fh0kcfxmLiOWeVj1tQm5kZRd3Sfo8dXO ge/ldd0ec/L9UpW4qlNhqUt/OEFLlP3FoVeyEytnmZb0EVeN0v/YDjdlSse4cZV2XFG5 LUsaQQjWGkMnqtz1ZVxWBVFBBlTQTDvoTdHV+5c9fUBEQeno+173w6FLnBVpwOmbSpvj DFdlCozuad+Fy58/H59qKt0JiW408ZfXb9kDeYODhp7fr7Eeaht8A49L1m0IUX8UPxjF s9TeBwErXfjLUjNYvRpGH0s1HRXHF/PXWmQfLKXNgXMzMlG9HNmF9U+esw5hDfFsv66a Dxmg== X-Gm-Message-State: APjAAAUDbwPaP/tWJ1FYQKH5Z0aJvMrhHAofumzk1TvuGubsg5d9J2k0 bukfbZzgw6mnLpwIJyUf1RKGmLH3DII= X-Received: by 2002:a17:902:d708:: with SMTP id w8mr427866ply.280.1574126202956; Mon, 18 Nov 2019 17:16:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2019 17:16:42 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 18 Nov 2019 17:16:28 -0800 Message-Id: <20191119011629.3835732-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 1/2] grpc: 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 clang does delegate the atomic calls to libatomic on x86 where as gcc tries to use intrinsics, its debatable who is right, but it does seem that clang is safe in case pointer is unaligned Signed-off-by: Khem Raj --- meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb | 4 ++++ 1 file changed, 4 insertions(+) -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb b/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb index ecc575bcfb..24072c0832 100644 --- a/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb +++ b/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb @@ -42,6 +42,10 @@ do_configure_prepend_mipsarch() { sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt } +do_configure_prepend_toolchain-clang_x86() { + sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt +} + BBCLASSEXTEND = "native nativesdk" SYSROOT_DIRS_BLACKLIST_append_class-target = "${libdir}/cmake/grpc" 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