From patchwork Sat Sep 2 19:02:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 111502 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp2581051qge; Sat, 2 Sep 2017 12:02:22 -0700 (PDT) X-Received: by 10.84.209.161 with SMTP id y30mr7325866plh.246.1504378942514; Sat, 02 Sep 2017 12:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504378942; cv=none; d=google.com; s=arc-20160816; b=wyM2wrhdTQz2or6oyyaSfoUbumAaZaly7kIw2rs5VWq6O6aDI1+ytDlweRK4NmGb5+ y2aMlVMLomdaFjH+yd5OeG9Vc1nfFltbwE8ZcI2iOcIhIjuIRQ+wWipLlOB4uId/0Rp2 Wzw1CyooPe4ZWgFb1I+rY2TwlEck8/WAr4uqdzTdgdXMM8inBiNl3sebGxRknFH9OeNU BEDKvqB+LWfWyNYPabkVlTfLkh+7ECbsgSg/Vz87CnpPsZvbMKPIVwLEOonJBS6x6wTC CIhNCh+/Sap4xMGzA4yy8X/B3ay7VOUQttC0rwAWvOVT8w1TSsWchq9Jpu+iv00sgNW3 HmSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=1LEpKAnv1ZKnYUFMxVpXd4kV+alLuO8jwveTUBJ8Swc=; b=XzlKa7kQhb1AjQcjD2ZRFLEBxNJH4/Go520LG7frDT4n1/0mv02k37nlx6N/JeeWHV 6EODdD2xp8Qwbu3lforOwiYV7AP6H1Kx0769kAHjtyzbgntK88/B0yWpPT09e/N4t4T5 /95YTs0zxBGPdY++YS79FXPiWxYv5xrAD83q+LaCvj1CKFdHt5nFq4G//Y3qhTOplk/5 zOHglItY+8EwOyll2vFHHSgWK95Qp6ZeiOAYsGXifI0O4lrVDWKFYGLZUzhFki6/PQCg 2NpWDyVR0ESDtUBhQlN54Oa4MbEepPKpMvg/8Op8wdCfVZx7XDpJi1rONNVBMp5zkidF XtxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=XXGvVR+R; 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=NONE 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 m123si2191087pfb.601.2017.09.02.12.02.21; Sat, 02 Sep 2017 12:02:22 -0700 (PDT) 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=XXGvVR+R; 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=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 7AC5072F2A; Sat, 2 Sep 2017 19:02:15 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by mail.openembedded.org (Postfix) with ESMTP id A395572F2A for ; Sat, 2 Sep 2017 19:02:13 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id r25so2020933pfk.0 for ; Sat, 02 Sep 2017 12:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=CRjyM3R4fztFFXOvKBO2gjzChlJ6qvGj9yATdTS7aMM=; b=XXGvVR+RXADptSthdq9x5EOhK0gvdh+vMa7RoCTC2CVpV7liPVhuHCLcZZzWdszhjT r9kiFoE9v4gbSP7ZRLNdiVH/8zE0/M4DPGCDtqwfx5CTVQumC71+7SfB3Y/IOConLxEN qMwjp2pn9VD8k+WAfWFg3vGL2H2YKAssCS7PEHFuCY3nDPMaizcN2rEWdo5ln4Zqoz5F WRjSmArxoQdeMgOhdHohbLIlM/3cxIcug002YZTdILGqtllMdzcb784SQ2bhRAYQ4nEI k1lzBY6SrPEzLcE/I7RU0x4azTccgeDDH6vyzOidOA8Ja4zv/LIse3EBlTuZmNgCF4Bf Sa4g== 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; bh=CRjyM3R4fztFFXOvKBO2gjzChlJ6qvGj9yATdTS7aMM=; b=iJnx2U2SeWxObgidyVF8YjsCWZgGW65QgHc9nvjKA7yaxcADYn08uigUblOtx0cX95 qe0u1PgH86Xz3gmq1/a/N6oKQlYV9PEnXDQjP68zNn67m7RU2SllwjWGZkgk8bFkQGbf e82FEmqNR8X+CpS62uVVj1YHnHKsawhN9PjCGg6hH05rel5rjWLesvLOeFFzfUwl4Diw ntG5757FKiKMldIeMLwA8jvKZw1a7QFfTyH4WpwN69lfqe3AGROzC/dQqScbFpZAzbxM de9idlby7vt7dON7NHrxab+xpVYsKXPaPxF3dDKd5PFDF/AAwNYGa642O5T4LEVZ8py5 HeyA== X-Gm-Message-State: AHPjjUiOMXDDMGv6A5f3Wq/GReZOfJC/Pkd+VabG+eydiDtqOpqj82d+ F91VD7WNVjxwVHKh X-Google-Smtp-Source: ADKCNb4dv4fG37DBn1uNu0kbS54paMphw0Vn5SeTgS+IUfGzPPZsOeG5+ZXYZ3J7JrDX79JYUfSqpQ== X-Received: by 10.99.176.12 with SMTP id h12mr6952557pgf.100.1504378934735; Sat, 02 Sep 2017 12:02:14 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::2e06]) by smtp.gmail.com with ESMTPSA id n18sm4989232pgd.13.2017.09.02.12.02.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Sep 2017 12:02:13 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 2 Sep 2017 12:02:04 -0700 Message-Id: <20170902190205.18257-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [oe] [meta-oe][PATCH 1/2] gperftools: Fix build with musl 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...heap-checkers-and-debug-allocator-on-musl.patch | 25 ++++++++++++++++++++++ .../gperftools/disable_libunwind_aarch64.patch | 23 ++++++++++++++++++++ .../recipes-support/gperftools/gperftools_2.6.1.bb | 4 ++-- 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-support/gperftools/gperftools/0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch create mode 100644 meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch -- 2.14.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch new file mode 100644 index 000000000..99127e11a --- /dev/null +++ b/meta-oe/recipes-support/gperftools/gperftools/0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch @@ -0,0 +1,25 @@ +From b5961f17e9d7f2bc44da611b3e4b27c8a641fc72 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 2 Sep 2017 08:07:17 -0700 +Subject: [PATCH] disbale heap checkers and debug allocator on musl + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + configure.ac | 2 ++ + 1 file changed, 2 insertions(+) + +Index: git/configure.ac +=================================================================== +--- git.orig/configure.ac ++++ git/configure.ac +@@ -51,6 +51,8 @@ case "$host" in + *-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;; + *-freebsd*) default_enable_heap_checker=no;; + *-darwin*) default_enable_heap_checker=no;; ++ *-musl*) default_enable_heap_checker=no; default_enable_heap_profiler=no; ++ default_enable_debugalloc=no; default_enable_libunwind=no; + esac + + # Currently only backtrace works on s390. diff --git a/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch b/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch new file mode 100644 index 000000000..f2647404b --- /dev/null +++ b/meta-oe/recipes-support/gperftools/gperftools/disable_libunwind_aarch64.patch @@ -0,0 +1,23 @@ +Disable libunwind on aarch64 + +Fixes hangs when using libtcmalloc.so + +Upstream-Status: Pending +Signed-off-by: Khem Raj + +Index: git/configure.ac +=================================================================== +--- git.orig/configure.ac ++++ git/configure.ac +@@ -69,6 +69,11 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [re + [default_enable_libunwind=yes + default_tcmalloc_pagesize=8]) + ++# Disable libunwind linking on aarch64 by default. ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM(, [return __aarch64__])], ++ [default_enable_libunwind=no], ++ [default_enable_libunwind=yes]) ++ + AC_ARG_ENABLE([cpu-profiler], + [AS_HELP_STRING([--disable-cpu-profiler], + [do not build the cpu profiler])], diff --git a/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb b/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb index ece9dd9e8..23284670b 100644 --- a/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb +++ b/meta-oe/recipes-support/gperftools/gperftools_2.6.1.bb @@ -10,6 +10,8 @@ SRC_URI = "git://github.com/gperftools/gperftools \ file://0001-Use-ucontext_t-instead-of-struct-ucontext.patch \ file://0001-fix-build-with-musl-libc.patch \ file://0001-include-fcntl.h-for-loff_t-definition.patch \ + file://0001-disbale-heap-checkers-and-debug-allocator-on-musl.patch \ + file://disable_libunwind_aarch64.patch \ " inherit autotools @@ -20,8 +22,6 @@ S = "${WORKDIR}/git" # do_page_fault(): sending SIGSEGV to ls for invalid read access from 00000008 # Segmentation fault (core dumped) COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|arm|aarch64).*-linux*" -# On aarch64, add this option to avoid system hanging when using libtcmalloc.so. -EXTRA_OECONF_aarch64 += "--disable-libunwind" # Disable thumb1 # {standard input}: Assembler messages: # {standard input}:434: Error: lo register required -- `ldr pc,[sp]' From patchwork Sat Sep 2 19:02:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 111503 Delivered-To: patch@linaro.org Received: by 10.140.95.112 with SMTP id h103csp2581450qge; Sat, 2 Sep 2017 12:02:43 -0700 (PDT) X-Received: by 10.99.141.65 with SMTP id z62mr5955757pgd.419.1504378963230; Sat, 02 Sep 2017 12:02:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504378963; cv=none; d=google.com; s=arc-20160816; b=Xmv8c07+ELic8zCdgTHnlaqm3CpfJbcUpvxpzr7hnszOqGTgmBxxoLij7KP5O2j0tp lW9d+fsGYZOBK8gDU11rJP+1Od13Qyw2oT8OysZcbmudu2yYQ2ouTUQiQj8gPskp1Um/ dNMhknC1j0qXPij+ZxSDlNg97WtCT3BErwnlGI5IEYnUYorNaCNh+1Wz8dzDaeSGDtSR ERgDAnlKEVFtRGvipCQnDEljJ8LbyIMFvt/L++jVslJiXDO55bf1BXU9zP/6SlSb/ZFa PGtgkVHmy7QnwJt5HOMbwAKK/dALjgjk/Ez9BMYsyHEmzMH0OoreDcSeEt7D4V0x3lM0 AgrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Al+U9m09CutL3FkX07WWafoSFoW0yAlrV23fGyBBS3k=; b=oznH4uApZeDuKlu3AotxEZQEFaeqtK/GhY+0LSnxoz62BbtW1jV24JSlZEwqKYBwYE m/k/pD3QE5YcyVVj/g3hbkTZbe18lAaKRhYm9ra9QlN1LZyRF/FiUH/jNkI6VDkLXb8T ohWoWHk7Ws6pf4f65jxnwRhUfrvFuURl7bcECDKKmp7VhT832Bjjci9jJK1WxSvdpQZj ejUzt65+IdYsuBroF6NnbZDNya7odDoSRF/x0glhx/bWh9qNMETdJp/vxOrZuqL8Kok3 lmN7/vkoZ+72YImdx4iNHXNZuXYp6XFUSvsbQmTOuRGjD/Au9TtsRJwAEfwdgZuqiEkG rOaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=jKaF1W4p; 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=NONE 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 a187si2224049pge.543.2017.09.02.12.02.42; Sat, 02 Sep 2017 12:02:43 -0700 (PDT) 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=jKaF1W4p; 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=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 79AE7783E7; Sat, 2 Sep 2017 19:02:39 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by mail.openembedded.org (Postfix) with ESMTP id A689E783CA for ; Sat, 2 Sep 2017 19:02:14 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id m15so2093551pgc.0 for ; Sat, 02 Sep 2017 12:02:16 -0700 (PDT) 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; bh=6r75aYpND2LkoLVc/G3KlQbuyvH5O5zNVPGeVww51P8=; b=jKaF1W4pr+wSa/MywTGr7dhuR/hAPT+IR/Y5nn68nvS4ytq1luiVKPSC1Ae1DPZUBG beSAjoaVjvOdOBxV6VknSWS78eGKvckf3c4J7EA1lhZWODYskoP28KwmM1KbOCKGUxS5 qQGPkVTbKM8W+bMtrQOPdyWp9Cd+AHzqguyMZ2NIhpJ+mREAkeRRjxto8fmxQ30WCCs9 4FAxZJooJmFU0/8UugK5q2HuglKJ9tabwpl/uml9SkUBbaVd/Z76xdLieTZSYv/+cFKn MYYe+xLOTL1jRh31mSvFTmqhwiQfbRkR76lgc5sXVwAqSfv1mysLYYwMRUZ+2+2yNTBe D4OQ== 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; bh=6r75aYpND2LkoLVc/G3KlQbuyvH5O5zNVPGeVww51P8=; b=VNceEO2dS/FfUhLujOK5ceItWsIdRApMpIv0ZMnG65k76ylRlTM/DmZaqc6iBkF9sN tdx+PQOJjVrGnjT6gNLISLP9XrWAKUJ2SpIR3B1VW4zw7RqjgSgYJQbppDP7TfzhVDBg sL5pIw/P2e5n+GqylcG/2CBd33Pa3cvv6GR5TXNDbktY7e0LgUQgn2jIcovD+QH24PD9 4bJW5UYfhj/G0q/Kcd+w0kDYKvYhYkPNYwDOXZsY+k0a0JQV+aAQn0ZY485/6ksaaa8t 9FBrK2OL/YVT7LfzAnRLci2aT91FvqvIdCb4bimOep3YTMA5jZDV8gBodSaneCUjHYZt yA9w== X-Gm-Message-State: AHPjjUhtX8/IbuA2UlpcsaWCkicoZyQuabrIYpJke2fLCjcrwUEiZxa8 IvvaF5C2iCVUoMWy X-Google-Smtp-Source: ADKCNb5/g4EuYowozgI0478hPW7uoA/a27MmsMCxZi3bXUeFHohegw9S8t8SE31n+y47RmPc4Bbn7g== X-Received: by 10.99.9.2 with SMTP id 2mr6911616pgj.411.1504378935829; Sat, 02 Sep 2017 12:02:15 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::2e06]) by smtp.gmail.com with ESMTPSA id n18sm4989232pgd.13.2017.09.02.12.02.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Sep 2017 12:02:14 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 2 Sep 2017 12:02:05 -0700 Message-Id: <20170902190205.18257-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170902190205.18257-1-raj.khem@gmail.com> References: <20170902190205.18257-1-raj.khem@gmail.com> Subject: [oe] [meta-oe][PATCH 2/2] mongodb: Disable for armv7 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: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org 32bit arm is not supported Add patches to compile with musl Signed-off-by: Khem Raj --- ...__-to-control-use-of-gnu_get_libc_version.patch | 50 ++++++++++++++++ .../0001-Use-long-long-instead-of-int64_t.patch | 67 ++++++++++++++++++++++ meta-oe/recipes-support/mongodb/mongodb_git.bb | 8 +++ 3 files changed, 125 insertions(+) create mode 100644 meta-oe/recipes-support/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch create mode 100644 meta-oe/recipes-support/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch -- 2.14.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch b/meta-oe/recipes-support/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch new file mode 100644 index 000000000..f8c419d8a --- /dev/null +++ b/meta-oe/recipes-support/mongodb/mongodb/0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch @@ -0,0 +1,50 @@ +From 3eed8388b49d5d3cbc2db74fee1b017eb4b40d0a Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 2 Sep 2017 10:06:24 -0700 +Subject: [PATCH] Use __GLIBC__ to control use of gnu_get_libc_version + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + src/mongo/util/processinfo_linux.cpp | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/mongo/util/processinfo_linux.cpp b/src/mongo/util/processinfo_linux.cpp +index 910015215e..bf8c1ffd15 100644 +--- a/src/mongo/util/processinfo_linux.cpp ++++ b/src/mongo/util/processinfo_linux.cpp +@@ -40,7 +40,7 @@ + #include + #include + #include +-#ifdef __UCLIBC__ ++#ifndef __GLIBC__ + #include + #else + #include +@@ -451,11 +451,13 @@ double ProcessInfo::getSystemMemoryPressurePercentage() { + } + + void ProcessInfo::getExtraInfo(BSONObjBuilder& info) { ++#if defined(__GLIBC__) + LinuxProc p(_pid); + if (p._maj_flt <= std::numeric_limits::max()) + info.appendNumber("page_faults", static_cast(p._maj_flt)); + else + info.appendNumber("page_faults", static_cast(p._maj_flt)); ++#endif + } + + /** +@@ -491,7 +493,7 @@ void ProcessInfo::SystemInfo::collectSystemInfo() { + stringstream ss; + ss << "uClibc-" << __UCLIBC_MAJOR__ << "." << __UCLIBC_MINOR__ << "." << __UCLIBC_SUBLEVEL__; + bExtra.append("libcVersion", ss.str()); +-#else ++#elif defined(__GLIBC__) + bExtra.append("libcVersion", gnu_get_libc_version()); + #endif + if (!verSig.empty()) +-- +2.14.1 + diff --git a/meta-oe/recipes-support/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch b/meta-oe/recipes-support/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch new file mode 100644 index 000000000..c43beb4c1 --- /dev/null +++ b/meta-oe/recipes-support/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch @@ -0,0 +1,67 @@ +From a4951489d649c2b609cbb80f6cfb49fdcad8bd43 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 2 Sep 2017 10:03:37 -0700 +Subject: [PATCH] Use long long instead of int64_t + +Fixes +error: call to member function 'appendNumber' is ambiguous +since this function expects long long as parameter and not int64_t + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + src/mongo/util/procparser.cpp | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/src/mongo/util/procparser.cpp b/src/mongo/util/procparser.cpp +index 36f2ae0254..2c164bcbf3 100644 +--- a/src/mongo/util/procparser.cpp ++++ b/src/mongo/util/procparser.cpp +@@ -260,7 +260,7 @@ Status parseProcStat(const std::vector& keys, + + StringData stringValue((*partIt).begin(), (*partIt).end() - (*partIt).begin()); + +- uint64_t value; ++ long long value; + + if (!parseNumberFromString(stringValue, &value).isOK()) { + value = 0; +@@ -272,7 +272,7 @@ Status parseProcStat(const std::vector& keys, + } else { + StringData stringValue((*partIt).begin(), (*partIt).end() - (*partIt).begin()); + +- uint64_t value; ++ long long value; + + if (!parseNumberFromString(stringValue, &value).isOK()) { + value = 0; +@@ -365,7 +365,7 @@ Status parseProcMemInfo(const std::vector& keys, + + StringData stringValue((*partIt).begin(), (*partIt).end()); + +- uint64_t value; ++ long long value; + + if (!parseNumberFromString(stringValue, &value).isOK()) { + value = 0; +@@ -426,7 +426,7 @@ Status parseProcDiskStats(const std::vector& disks, + StringData data, + BSONObjBuilder* builder) { + bool foundKeys = false; +- std::vector stats; ++ std::vector stats; + stats.reserve(kDiskFieldCount); + + using string_split_iterator = boost::split_iterator; +@@ -501,7 +501,7 @@ Status parseProcDiskStats(const std::vector& disks, + + StringData stringValue((*partIt).begin(), (*partIt).end()); + +- uint64_t value; ++ long long value; + + if (!parseNumberFromString(stringValue, &value).isOK()) { + value = 0; +-- +2.14.1 + diff --git a/meta-oe/recipes-support/mongodb/mongodb_git.bb b/meta-oe/recipes-support/mongodb/mongodb_git.bb index b38641cff..1f7af2228 100644 --- a/meta-oe/recipes-support/mongodb/mongodb_git.bb +++ b/meta-oe/recipes-support/mongodb/mongodb_git.bb @@ -13,6 +13,8 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v3.4 \ file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ file://0001-mongo-Add-using-std-string.patch \ file://0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch \ + file://0001-Use-long-long-instead-of-int64_t.patch \ + file://0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch \ " S = "${WORKDIR}/git" @@ -28,6 +30,8 @@ PACKAGECONFIG_remove_armv6 = "tcmalloc" #std::current_exception is undefined for arm < v6 COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*" COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*" +COMPATIBLE_MACHINE_armv7a = "(!.*armv7a).*" +COMPATIBLE_MACHINE_armv7ve = "(!.*armv7ve).*" COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*" COMPATIBLE_MACHINE_powerpc = "(!.*ppc).*" @@ -48,6 +52,10 @@ EXTRA_OESCONS = "--prefix=${D}${prefix} \ ${PACKAGECONFIG_CONFARGS} \ mongod mongos" +do_configure_prepend() { + # tests use hex floats, not supported in plain C++ + sed -e 's|-std=c++11|-std=gnu++11|g' -i ${S}/SConstruct +} scons_do_compile() { ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} ${EXTRA_OESCONS} || \ die "scons build execution failed."