From patchwork Fri Oct 15 19:38:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1541903 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.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=20210112 header.b=A4qS0uGQ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HWGpJ6jPPz9sR4 for ; Sat, 16 Oct 2021 06:40:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A17254025C; Fri, 15 Oct 2021 19:40:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cvLaB9lhj6t6; Fri, 15 Oct 2021 19:40:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id B6D4940158; Fri, 15 Oct 2021 19:40:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 4BA661BF41F for ; Fri, 15 Oct 2021 19:40:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 4665E40158 for ; Fri, 15 Oct 2021 19:40:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bCqmIVEj0sUv for ; Fri, 15 Oct 2021 19:40:31 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by smtp2.osuosl.org (Postfix) with ESMTPS id 3D972400DE for ; Fri, 15 Oct 2021 19:40:31 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id r18so28255188wrg.6 for ; Fri, 15 Oct 2021 12:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j0M95v/WQT2kTAW9frY/PYc0SVe0DTpRZEv9XSNNFcQ=; b=A4qS0uGQM8e5a390FzYHk8j6RT77UPsIW6ellO7jyvg3DeKrfRhYw44NPYMPSWt0tC b1raQ+z0A7KQYJ4RlqGn5190172xaYUeK5/bpBydqXezgDH104gkH3lkZkJH5NXwFdwk EACiiOu4bql3fjU9GGnp/R7tczaSCa5qn5JjKIHmWv1sx7TrpIkgC0g2TNZr1cdng+2i AAjhKpXFRsfXrnQ4rZYkQnlZ1wWCfjNoek9RKLkRcnRakUOQUGJ9HjJAFNsk6uXh2jIX g6IcVwiL93OMtWyd1aB79SbsW4cMDKZWbb0h5p09nj2uJEahkBNaCe0AakP85wEgLudR KBeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j0M95v/WQT2kTAW9frY/PYc0SVe0DTpRZEv9XSNNFcQ=; b=c07D7G14W1svGtPFoEU+Wnn5zGfDHEjBODKCLXI9UtthXuTdH6zERHMZp9apNu5VYV xndddGAGr+X0V2Y4u6ry4u49OWSTOEEj6TRYotviDlWhdTrWtptXjhfhTlWnH7lph93E YHVu3kRcjQWYfW6NQkDCIBnPiorI+81n6oWg6VUvo7ZAn3VC+6LQ0jefahJqAWlU8S8f JfDSY85qiHw6x7J/P7uqGO46cFItFhBbIW+0rygWQShqeJqer2KtNR/n/SUmy5dzC8iy jQJZVDpfSzMqTLfg6gYdXCzd3y04FIUsZJf1zIHiRQFIdvEePuYzEIaMuDpOTKE1nKL8 AxUQ== X-Gm-Message-State: AOAM530HGql4TL3tpnhTG5P+nSNETav2zJyIBJ2UTPNqQ4+tal2teQAj jaoCV0F06tcXnXQ/nqDzAbpC/4SkbmQ= X-Google-Smtp-Source: ABdhPJx0xhTxt0bdvrlSyKI6DL5nQyTOufygKjNvkYAsk7ZAXNVyKMfk235x+FEt7Y6HYfPYosp9Tg== X-Received: by 2002:a5d:598a:: with SMTP id n10mr16721506wri.81.1634326829085; Fri, 15 Oct 2021 12:40:29 -0700 (PDT) Received: from kali.home (lfbn-ren-1-1732-95.w86-253.abo.wanadoo.fr. [86.253.44.95]) by smtp.gmail.com with ESMTPSA id x21sm11223829wmc.14.2021.10.15.12.40.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 12:40:28 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 15 Oct 2021 21:38:58 +0200 Message-Id: <20211015193901.1543587-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/4] package/python-ujson: fix or1k build X-BeenThere: buildroot@buildroot.org 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: Mauro Condarelli , Fabrice Fontaine , Thomas Petazzoni , Asaf Kahlon Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Fix the follownig build failure on or1k since bump to version 4.1.0 in commit a47f332a20bf3f79ef4903c8ddd2b7917217e354 and https://github.com/ultrajson/ultrajson/commit/eb7d894f225bb89d269188ba6ec559b914a71b8a: In file included from ./deps/double-conversion/double-conversion/bignum-dtoa.h:31, from ./deps/double-conversion/double-conversion/bignum-dtoa.cc:30: ./deps/double-conversion/double-conversion/utils.h:92:2: error: #error Target architecture was not detected as supported by Double-Conversion. 92 | #error Target architecture was not detected as supported by Double-Conversion. | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/a82f794f130b0c8d5d626c507bae2e22d15f801b Signed-off-by: Fabrice Fontaine --- ...for-aarch64_be-or1k-and-microblazebe.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/python-ujson/0001-Add-support-for-aarch64_be-or1k-and-microblazebe.patch diff --git a/package/python-ujson/0001-Add-support-for-aarch64_be-or1k-and-microblazebe.patch b/package/python-ujson/0001-Add-support-for-aarch64_be-or1k-and-microblazebe.patch new file mode 100644 index 0000000000..b43eb54dcd --- /dev/null +++ b/package/python-ujson/0001-Add-support-for-aarch64_be-or1k-and-microblazebe.patch @@ -0,0 +1,30 @@ +From 768a445f0c28311bf88685bf0bb990505c12fd4c Mon Sep 17 00:00:00 2001 +From: Florian Loitsch +Date: Sat, 8 Sep 2018 18:18:15 +0200 +Subject: [PATCH] Add support for aarch64_be, or1k and microblazebe. + +Fixes #73. + +[Retrieved from: +https://github.com/google/double-conversion/commit/768a445f0c28311bf88685bf0bb990505c12fd4c] +Signed-off-by: Fabrice Fontaine +--- + double-conversion/utils.h | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/deps/double-conversion/ouble-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h +index 98a2a11..492bc97 100644 +--- a/deps/double-conversion/double-conversion/utils.h ++++ b/deps/double-conversion/double-conversion/utils.h +@@ -76,8 +76,9 @@ inline void abort_noreturn() { abort(); } + defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ + defined(__SH4__) || defined(__alpha__) || \ + defined(_MIPS_ARCH_MIPS32R2) || \ +- defined(__AARCH64EL__) || defined(__aarch64__) || \ +- defined(__riscv) ++ defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ ++ defined(__riscv) || \ ++ defined(__or1k__) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 + #elif defined(__mc68000__) || \ + defined(__pnacl__) || defined(__native_client__) From patchwork Fri Oct 15 19:38:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1541905 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.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=20210112 header.b=KbgpHl0S; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HWGpm0wt0z9sR4 for ; Sat, 16 Oct 2021 06:41:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id CE85A406D9; Fri, 15 Oct 2021 19:41:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WlY1ULYYWgSA; Fri, 15 Oct 2021 19:41:00 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 22B2F40623; Fri, 15 Oct 2021 19:40:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B43D81C1135 for ; Fri, 15 Oct 2021 19:40:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A3FC0605E5 for ; Fri, 15 Oct 2021 19:40:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MYTCViII-B4X for ; Fri, 15 Oct 2021 19:40:33 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by smtp3.osuosl.org (Postfix) with ESMTPS id D424560726 for ; Fri, 15 Oct 2021 19:40:32 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id o24-20020a05600c511800b0030d9da600aeso3128968wms.4 for ; Fri, 15 Oct 2021 12:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dHD1HMEIvzlIgUdUlse4v7QMwzRwKB0rRMxGYt5EZs0=; b=KbgpHl0SOZzrwx5r5YEH43o2giToo+NRuI3jPGQ0i8hsSA0k2JG5IvwvTTllMAdifj /xAszJgLpCJ12Em6UUZzNYMXfA0dNBmcYiLBitkK/mhvIv3WY/maNy6tMfDYsk3H/0NZ TZC1gYBNFQViG8KPlBEa1Rfwd66IngCsgFoZUK/IrPvb6abiYyn7TqNLeBK/8y1fSRsT rs6aXvIrKql8E8Kee1/YaCc7r70lXIM9gdO9xPfk6kN1qlU7OTB5HPuSQvr72OWtEorx 6F22I/esJvP6pg4wo3Ec7lfgdTtFQSmt5h5uEY4Rfyx+j2Pp5d4L19SEndID9f399H8z EKXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dHD1HMEIvzlIgUdUlse4v7QMwzRwKB0rRMxGYt5EZs0=; b=nIjuA68XgCbGvnz5rPuN82r/HbSVIabopdJc0/zYHLd+ZyiHt1KwsZonElasbPdb5P 1ifRZQCaUOSXV90LkeEkq1BvAM21nvusu2OPCFlEWYjyAv4Sy7wJbMatTBgE/zpcL+N9 q7vCHjK4AxHK4GsbZt4wGnP98cijRs4vQ6+eV6SXYBnBgFYCHsg1k72hsYftfQrVhpOn 1DNbsNvgqPWbA1wLs7BL6rThUwilmmPDwnm+34/Tb9XzVhgoSbigRRk9Z2EnZOweSvbZ yVZtmFVwvJM+tgm1S3ZSTMC7uOeB/836ocDlOWLY0PGZXA1mT5vz8q87ZWJvRAPcqazW tFuA== X-Gm-Message-State: AOAM5331XwvuMXCk4pHNH5Oh7tHkJob8tEZZZCDY4SQtNjxsB4VKfz63 GSXtnoRMnm8Nf69LAb0bdssZEXYdTUU= X-Google-Smtp-Source: ABdhPJzMLwbRhwofCwVsGHgk1Agi29lpSVBx/fGeystCp6/+Wxs2eJ5WLj3J9565MZ6R20zgbEatwQ== X-Received: by 2002:a1c:4d15:: with SMTP id o21mr28742643wmh.167.1634326830872; Fri, 15 Oct 2021 12:40:30 -0700 (PDT) Received: from kali.home (lfbn-ren-1-1732-95.w86-253.abo.wanadoo.fr. [86.253.44.95]) by smtp.gmail.com with ESMTPSA id x21sm11223829wmc.14.2021.10.15.12.40.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 12:40:30 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 15 Oct 2021 21:38:59 +0200 Message-Id: <20211015193901.1543587-2-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211015193901.1543587-1-fontaine.fabrice@gmail.com> References: <20211015193901.1543587-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/4] package/python-ujson: fix arc build X-BeenThere: buildroot@buildroot.org 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: Mauro Condarelli , Fabrice Fontaine , Thomas Petazzoni , Asaf Kahlon Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Fix the follownig build failure on arc since bump to version 4.1.0 in commit a47f332a20bf3f79ef4903c8ddd2b7917217e354 and https://github.com/ultrajson/ultrajson/commit/eb7d894f225bb89d269188ba6ec559b914a71b8a: In file included from ./deps/double-conversion/double-conversion/bignum-dtoa.h:31, from ./deps/double-conversion/double-conversion/bignum-dtoa.cc:30: ./deps/double-conversion/double-conversion/utils.h:92:2: error: #error Target architecture was not detected as supported by Double-Conversion. 92 | #error Target architecture was not detected as supported by Double-Conversion. | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/93f231c4a860f4467029a2c2e4fc0b67096b14f6 Signed-off-by: Fabrice Fontaine --- ...0002-Add-support-of-ARC-architecture.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/python-ujson/0002-Add-support-of-ARC-architecture.patch diff --git a/package/python-ujson/0002-Add-support-of-ARC-architecture.patch b/package/python-ujson/0002-Add-support-of-ARC-architecture.patch new file mode 100644 index 0000000000..d38b24f5fc --- /dev/null +++ b/package/python-ujson/0002-Add-support-of-ARC-architecture.patch @@ -0,0 +1,36 @@ +From eafa625a34fd5d8bec18eddfccbca55ce77b4849 Mon Sep 17 00:00:00 2001 +From: Alexey Brodkin +Date: Thu, 1 Nov 2018 17:36:17 +0200 +Subject: [PATCH] Add support of ARC architecture (#82) + +More info about ARC architecture is here: [1] & [2]. +We need ARC supported here for many things like: + - ICU (see [3]) + - Qt5 etc + +[1] https://www.synopsys.com/designware-ip/processor-solutions/arc-processors.html +[2] https://en.wikipedia.org/wiki/ARC_(processor) +[3] https://unicode-org.atlassian.net/browse/ICU-20155 + +Fixes #81 + +[Retrieved from: +https://github.com/google/double-conversion/commit/eafa625a34fd5d8bec18eddfccbca55ce77b4849] +Signed-off-by: Fabrice Fontaine +--- + double-conversion/utils.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/deps/double-conversion/double-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h +index 41c5b02..2e1be0d 100644 +--- a/deps/double-conversion/double-conversion/utils.h ++++ b/deps/double-conversion/double-conversion/utils.h +@@ -94,7 +94,7 @@ int main(int argc, char** argv) { + defined(_MIPS_ARCH_MIPS32R2) || \ + defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ + defined(__riscv) || \ +- defined(__or1k__) ++ defined(__or1k__) || defined(__arc__) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 + #elif defined(__mc68000__) || \ + defined(__pnacl__) || defined(__native_client__) From patchwork Fri Oct 15 19:39:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1541904 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.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=20210112 header.b=LM6goTnv; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HWGpW5qpmz9sR4 for ; Sat, 16 Oct 2021 06:40:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 7C70360C1F; Fri, 15 Oct 2021 19:40:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tJNzo5pwn3vM; Fri, 15 Oct 2021 19:40:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id E53DD60726; Fri, 15 Oct 2021 19:40:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 91A571BF41F for ; Fri, 15 Oct 2021 19:40:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 802DD40623 for ; Fri, 15 Oct 2021 19:40:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VB9x2BRvKOeB for ; Fri, 15 Oct 2021 19:40:34 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by smtp4.osuosl.org (Postfix) with ESMTPS id 84D3240581 for ; Fri, 15 Oct 2021 19:40:34 +0000 (UTC) Received: by mail-wm1-x32c.google.com with SMTP id g2so3334206wme.4 for ; Fri, 15 Oct 2021 12:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=btxEh4OKETHLzr9xHKUOYvFSFevKah0cMlPvTjHjrpM=; b=LM6goTnvXWmlKXszEDM5EqEzDeA9MgMtf7CXfCbHpMCeyyx8ziVKlOprxY9xvVHK5W 7QP0IGcOGfDAe74dTuMdMxvTZ5hAU9uhQloHNufaEY8LZLdA6E+LwXRq43wUAWjqCnMW caKwKqv2sfMUbkA91sK6Yd+q+Zb9rg8hN7ZztCuc89Cb2THJfb9PZXvamzDWt0jdxBcL 9SJRImHFTdi2GYlU1bNf+Hfa0TS27SLhbM4wkDwCSbKPjjiSXbO+EYSUxIffWhHJuxk4 tCIrQKAb4FFkrWS+dZ8AKYAXTFgQbh618fbSuxZY1wIVbrIriFAbT+6oB8mGYAA/Iyuo MRdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=btxEh4OKETHLzr9xHKUOYvFSFevKah0cMlPvTjHjrpM=; b=NEpKMQV9nWlbBOcjVHEZu60zeXyc/Dmc9MDUeZXGU97T2W+aoyYIfjQrloSPPDeHI1 60MD2mZjQX/sU6nzMoNROc+YcTo8zzZnpmV40bNp1XQtZcbsLmfUSyfw3efiA+H+G6kv vvbe7cVhuNUZ4/bqL6nepFfs1ZuSGCF8WSvDpThtA/h8UG29VNMIEbqaCaSEHE0UVYDh R+cbGF0ds9yjt3RVxvza6rBDu7TPCVLnOkMmc2Ue1nOAx7VWGZz0XQ1WIVs70HyMSVMf u4JR4ZLZTLD5uZtedyEsTGyr5mqIoSSD9OjKd1dvM2RFy5jM8jX35I2MV18k6iv+8808 xK3w== X-Gm-Message-State: AOAM533bDeiWQgWIu4TzRPSK9AkEtUKf0wC+jcjONTVCtAUj29+maJ3u 1//u6T7HBJumOKWUqED2PLZREs9xWTM= X-Google-Smtp-Source: ABdhPJwsDvR151Ogc55flqku0E5xnBRLBymdsraYf+Q2Sh3Dhjio+m5p6wxRl2SMPU+sk3lWcHOQAA== X-Received: by 2002:a1c:2b81:: with SMTP id r123mr5219466wmr.136.1634326832436; Fri, 15 Oct 2021 12:40:32 -0700 (PDT) Received: from kali.home (lfbn-ren-1-1732-95.w86-253.abo.wanadoo.fr. [86.253.44.95]) by smtp.gmail.com with ESMTPSA id x21sm11223829wmc.14.2021.10.15.12.40.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 12:40:32 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 15 Oct 2021 21:39:00 +0200 Message-Id: <20211015193901.1543587-3-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211015193901.1543587-1-fontaine.fabrice@gmail.com> References: <20211015193901.1543587-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/4] package/python-ujson: fix microblaze build X-BeenThere: buildroot@buildroot.org 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: Mauro Condarelli , Fabrice Fontaine , Thomas Petazzoni , Asaf Kahlon Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Fix the follownig build failure on microblaze since bump to version 4.1.0 in commit a47f332a20bf3f79ef4903c8ddd2b7917217e354 and https://github.com/ultrajson/ultrajson/commit/eb7d894f225bb89d269188ba6ec559b914a71b8a: In file included from ./deps/double-conversion/double-conversion/bignum-dtoa.h:31, from ./deps/double-conversion/double-conversion/bignum-dtoa.cc:30: ./deps/double-conversion/double-conversion/utils.h:92:2: error: #error Target architecture was not detected as supported by Double-Conversion. 92 | #error Target architecture was not detected as supported by Double-Conversion. | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/3cf5f266e0101a6c43f97801157fb6b2edce1ed0 Signed-off-by: Fabrice Fontaine --- .../0003-Add-support-for-microblaze.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/python-ujson/0003-Add-support-for-microblaze.patch diff --git a/package/python-ujson/0003-Add-support-for-microblaze.patch b/package/python-ujson/0003-Add-support-for-microblaze.patch new file mode 100644 index 0000000000..14fd52eb98 --- /dev/null +++ b/package/python-ujson/0003-Add-support-for-microblaze.patch @@ -0,0 +1,27 @@ +From 5cc233e98b74c5c370de888198a2b35200d55468 Mon Sep 17 00:00:00 2001 +From: Florian Loitsch +Date: Sat, 12 Oct 2019 14:35:52 +0200 +Subject: [PATCH] Add support for microblaze. + +Really fixes #73. +[Retrieved (and backported) from: +https://github.com/google/double-conversion/commit/5cc233e98b74c5c370de888198a2b35200d55468] +Signed-off-by: Fabrice Fontaine +--- + Changelog | 4 ++++ + double-conversion/utils.h | 1 + + 2 files changed, 5 insertions(+) + +diff --git a/deps/idouble-conversion/double-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h +index 1a71df0..221467f 100644 +--- a/deps/doyble-conversion/double-conversion/utils.h ++++ b/deps/double-conversion/double-conversion/utils.h +@@ -102,6 +102,7 @@ int main(int argc, char** argv) { + defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ + defined(__riscv) || \ +- defined(__or1k__) || defined(__arc__) ++ defined(__or1k__) || defined(__arc__) || \ ++ defined(__microblaze__) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 + #elif defined(__mc68000__) + #undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS From patchwork Fri Oct 15 19:39:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1541906 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.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=20210112 header.b=fhtrv6qO; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HWGq22Js6z9sR4 for ; Sat, 16 Oct 2021 06:41:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 424EA83B01; Fri, 15 Oct 2021 19:41:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VeHALwXEa0V5; Fri, 15 Oct 2021 19:41:11 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 8D2AD839D8; Fri, 15 Oct 2021 19:41:10 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 1F0691BF41F for ; Fri, 15 Oct 2021 19:40:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0EEE460726 for ; Fri, 15 Oct 2021 19:40:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T227E1dg4HH5 for ; Fri, 15 Oct 2021 19:40:36 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by smtp3.osuosl.org (Postfix) with ESMTPS id E99DA605E5 for ; Fri, 15 Oct 2021 19:40:35 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id v17so28155271wrv.9 for ; Fri, 15 Oct 2021 12:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KN10GBF0RFFujynjGbiSAQhZGPJXA8GkczWBmc8SqA0=; b=fhtrv6qOHSBXhDph/HYGN8OREzgw44FZA52Vr4QvQVXG+qv4LYv7rAybefB2tqirdN zX23PuBSgMO/AgiyohlJJtxHK+194DsWLzOt+FfiC4Xp5hrlobVxCMLTBRJ4kdss9YSU R8MrmrMKq84SZjU1+6pW/jgWLCfP6a4A/ytScE8DZbRZD6gGFejEkLnyeiEeMbsT9pFZ 2pcjpzjCwVnNZkrYU9ciBkm4mnHrsajiUtnmh7G1LHauatW76zNUqRKISWgZW/ougsz4 iywLkkGWWhEabWfvMSFFl/LEl93iv8sCkQsdqq4MHK44qBhz0CbQO5t2g8E8Fek4m/TS t1gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KN10GBF0RFFujynjGbiSAQhZGPJXA8GkczWBmc8SqA0=; b=VZLpbAGoyMtEqiVTRstnPdweV2DtcEB+Fw98cTNIwYBsVBrhaTwX2nUj6Ky030LFIK bIVZcM+Ab6IGU5ddW8ae3tywkTp2/7ChGK7larF0GNj7GG4dVEHnbucsHlkNMNkZKYjQ OP/oD8s4hKCSKniHMQvqlh3DTVagxU08GIt7ZTTBRoTjqJzCf+2XomavqUV/8agWoqQU Md05Y+oJXXUJA7kHJQClyz2//54zvgZiEFmw+5FjMptkiAwcC5pXBwUS33KYHWzxRnAN 6uQJMsw9ok4pIXJEcQhRq01dN69WTBjv+x0lNhz4c5c5QJdgoVBG6smeEJ6JI1Xn0G/u Jdqw== X-Gm-Message-State: AOAM533C8j7OId+HLCB7MLdfTsjGsYs1cYi2CEHAbeTvo434dgle3sWQ V7UVuOg6LC+1AM1QUppKJitOXOc24+U= X-Google-Smtp-Source: ABdhPJxgf9Wu/5xyp+RWIy2nl0xQv5HudM8WJx/buvyjljN2cJJpngH808sjdurmJPftbVc43YZDNQ== X-Received: by 2002:adf:f190:: with SMTP id h16mr4453589wro.250.1634326833906; Fri, 15 Oct 2021 12:40:33 -0700 (PDT) Received: from kali.home (lfbn-ren-1-1732-95.w86-253.abo.wanadoo.fr. [86.253.44.95]) by smtp.gmail.com with ESMTPSA id x21sm11223829wmc.14.2021.10.15.12.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 12:40:33 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 15 Oct 2021 21:39:01 +0200 Message-Id: <20211015193901.1543587-4-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211015193901.1543587-1-fontaine.fabrice@gmail.com> References: <20211015193901.1543587-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 4/4] package/python-ujson: fix xtensa build X-BeenThere: buildroot@buildroot.org 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: Mauro Condarelli , Fabrice Fontaine , Thomas Petazzoni , Asaf Kahlon Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Fix the follownig build failure on xtensa since bump to version 4.1.0 in commit a47f332a20bf3f79ef4903c8ddd2b7917217e354 and https://github.com/ultrajson/ultrajson/commit/eb7d894f225bb89d269188ba6ec559b914a71b8a: In file included from ./deps/double-conversion/double-conversion/bignum-dtoa.h:31, from ./deps/double-conversion/double-conversion/bignum-dtoa.cc:30: ./deps/double-conversion/double-conversion/utils.h:92:2: error: #error Target architecture was not detected as supported by Double-Conversion. 92 | #error Target architecture was not detected as supported by Double-Conversion. | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/c75157538d7784809d935aefcb166e89c137c9b7 Signed-off-by: Fabrice Fontaine --- ...4-Pseiderer-add-nios2-and-xtensa-001.patch | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 package/python-ujson/0004-Pseiderer-add-nios2-and-xtensa-001.patch diff --git a/package/python-ujson/0004-Pseiderer-add-nios2-and-xtensa-001.patch b/package/python-ujson/0004-Pseiderer-add-nios2-and-xtensa-001.patch new file mode 100644 index 0000000000..8648f93c1a --- /dev/null +++ b/package/python-ujson/0004-Pseiderer-add-nios2-and-xtensa-001.patch @@ -0,0 +1,95 @@ +From a54561be5588ac9b16d3c20760b9b554168bb8aa Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Thu, 31 Oct 2019 21:26:27 +0100 +Subject: [PATCH] Pseiderer/add nios2 and xtensa 001 (#119) + +* double-conversion: enable for nios2 + +Nios2 supports double conversion, tested using qemu: + +./main || echo "correct" +correct +uname -a +Linux buildroot 4.19.16 #4 Sat Aug 3 14:46:48 CEST 2019 nios2 GNU/Linux + +Solves build error + +In file included from double-conversion.h:42:0, + from number_decimalquantity.cpp:19: +double-conversion-utils.h:119:2: error: #error Target architecture was not detected as supported by Double-Conversion. + #error Target architecture was not detected as supported by Double-Conversion. + +detected by buildroot autobuilders: +http://autobuild.buildroot.net/results/91e/91eaec34708d91f8a05af189243be0b7cabce31b/ + +Patch sent upstream: https://github.com/unicode-org/icu/pull/725 +Bug report: https://unicode-org.atlassian.net/browse/ICU-20751 + +[Bernd: Fixed path] +Signed-off-by: Bernd Kuhls +[Added Changelog entry] +Signed-off-by: Peter Seiderer + +* double-conversion: enable for xtensa + +Signed-off-by: Peter Seiderer + +[Retrieved (dand backported) from: +https://github.com/google/double-conversion/commit/a54561be5588ac9b16d3c20760b9b554168bb8aa] +Signed-off-by: Fabrice Fontaine +--- +Note: + +Double-conversion tested with: + + $ cat div.c +double Div_double(double x, double y) { return x / y; } + + $ cat main.c +double Div_double(double x, double y); + +int main(int argc, char** argv) { + double result = Div_double(89255.0, 1e22); + if (result == 89255e-22) { + printf("correct result %e\n", result); + return 1; + } else { + printf("wrong result %e\n", result); + return 0; + } +} + +Tested for xtensa (using qemu_xtensa_lx60_defconfig plus BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE): + + $ ./host/bin/xtensa-buildroot-linux-uclibc-gcc -c div.c + $ ./host/bin/xtensa-buildroot-linux-uclibc-gcc -c main.c + $ ./host/bin/xtensa-buildroot-linux-uclibc-gcc -o main main.o div.o + + $ ./host/bin/qemu-xtensa -L staging main +correct result 8.925500e-18 +--- + Changelog | 4 ++++ + double-conversion/utils.h | 3 ++- + 2 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/deps/double-conversion/double-conversion/utils.h b/deps/double-conversion/double-conversion/utils.h +index 221467f..98ec28b 100644 +--- a/deps/double-conversion/double-conversion/utils.h ++++ b/deps/double-conversion/double-conversion/utils.h +@@ -94,6 +94,7 @@ int main(int argc, char** argv) { + defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \ + defined(__hppa__) || defined(__ia64__) || \ + defined(__mips__) || \ ++ defined(__nios2__) || \ + defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \ + defined(_POWER) || defined(_ARCH_PPC) || defined(_ARCH_PPC64) || \ + defined(__sparc__) || defined(__sparc) || defined(__s390__) || \ +@@ -102,7 +103,7 @@ int main(int argc, char** argv) { + defined(__AARCH64EL__) || defined(__aarch64__) || defined(__AARCH64EB__) || \ + defined(__riscv) || defined(__e2k__) || \ + defined(__or1k__) || defined(__arc__) || \ +- defined(__microblaze__) ++ defined(__microblaze__) || defined(__XTENSA__) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 + #elif defined(__mc68000__) + #undef DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS