Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6390867rwl; Mon, 9 Jan 2023 07:48:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXvlBdwsao4NanmFkWuIbgFczo1gK02WqAIIObGt2CQdP3HC+Ucn5IonxInoCZMYQUdByezN X-Received: by 2002:a05:6402:2b89:b0:46d:c288:e798 with SMTP id fj9-20020a0564022b8900b0046dc288e798mr23185316edb.21.1673279305929; Mon, 09 Jan 2023 07:48:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673279305; cv=none; d=google.com; s=arc-20160816; b=xbOe7YnAYJv3RvbJnNt3XenZ9RM+1ygsK40cQOhv5eFs929Rbjf7Nr4/n0dxMGKAHd Y3f9d/zNYNxIVE2RYVN0R+pSkU1axAyINPNU1zJBQ4+WAuOFYxiSWQxj0YW8N6WeO8UJ Uu54DOgpMG8m4uEHuRugxKQ5FSbk/Vp/9nLQYtUpwOqKvrGAYbxmWhdxIRpnOmEx14fp ZF8yMpRTnzBvBMLHPcdB0/7aP9+GTedFykNstvUfAuaA5i8qTPriWDpUlP+/UN+sRrmR MhiQiKz/RPkOsktCU8tj6tj/F+W2Gi0ijoKIWljWSO0CcvNev9Vp/vPtpTnOw+Ug8bPK WbEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter:secumail-id :dkim-signature; bh=Q+A7DbNTcYsuUwKyXNAu1RhXixcylMFfgmfeFEGuD6Y=; b=Lx3xiaBwCW4Dg9CPJRMoQxi9eGUrOUTeQgLHO3GgjR3z14mHDHGxrAZho1z7eLF41q NEJQLbl/rd/rr0G/0N/XxDvruBDoUM8DkmF3++I1arX4sqyMzB4ZexeQV6mKzWdcITTN aB/OgrJB9ARZLshpxSlwL+aGhowiVW+jmmsyctF+TQBmm7zj0QTu9L5VAZgEI0Jh8HHf OCCTs1nDagUZ+DGW8KhiUUc2jGEIzGciozPh5t8jhRuriewarfoNPf7G75zWuo4+kEih 3RtaD52N4E9IzhJVUTDblAnS6Y9p02rYC3d/IZWCGfdDFLJPtcfmy4zxKSGfqtQrlmB4 7NvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kalray.eu header.s=sec-sig-email header.b=kz8ddZYg; dkim=neutral (body hash did not verify) header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=Nw9h4dkz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a50eb0d000000b0047338d1bfcfsi9304611edp.166.2023.01.09.07.48.12; Mon, 09 Jan 2023 07:48:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kalray.eu header.s=sec-sig-email header.b=kz8ddZYg; dkim=neutral (body hash did not verify) header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=Nw9h4dkz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237318AbjAIPcG (ORCPT + 55 others); Mon, 9 Jan 2023 10:32:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236688AbjAIPbm (ORCPT ); Mon, 9 Jan 2023 10:31:42 -0500 Received: from fx304.security-mail.net (smtpout30.security-mail.net [85.31.212.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59A1565C2 for ; Mon, 9 Jan 2023 07:30:54 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by fx304.security-mail.net (Postfix) with ESMTP id 800539D0AC for ; Mon, 9 Jan 2023 16:30:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalray.eu; s=sec-sig-email; t=1673278252; bh=2Ol4WvfIDv/pCXWodkK/JAf2l0CqXaG0EOhqPlCz5xY=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=kz8ddZYg0nJtow93ucAH7WnT8Vqwhr3lvi4IHN8OoSZGNmOScb2xcOeU4ahhPcX9+ p9CNBdA/jH2f4K049TrCPM610wwO1NQ4J9xx87Kmzbu7GXz0K8YSAee6gE4pfS7J3i nAosaoMAGS6mHOvc8xjvjf4lK/Nd1xrz4y1l10bc= Received: from fx304 (localhost [127.0.0.1]) by fx304.security-mail.net (Postfix) with ESMTP id 520CF9D07F; Mon, 9 Jan 2023 16:30:52 +0100 (CET) Received: from zimbra2.kalray.eu (unknown [217.181.231.53]) by fx304.security-mail.net (Postfix) with ESMTPS id 9D11C9D072; Mon, 9 Jan 2023 16:30:51 +0100 (CET) Received: from zimbra2.kalray.eu (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTPS id 68AED27E0402; Mon, 9 Jan 2023 16:30:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 38EF527E03FF; Mon, 9 Jan 2023 16:30:51 +0100 (CET) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Ax--sd_V2azt; Mon, 9 Jan 2023 16:30:51 +0100 (CET) Received: from [192.168.37.161] (unknown [192.168.37.161]) by zimbra2.kalray.eu (Postfix) with ESMTPSA id 8E4D827E03FE; Mon, 9 Jan 2023 16:30:50 +0100 (CET) X-Virus-Scanned: E-securemail Secumail-id: DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu 38EF527E03FF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1673278251; bh=AQRkX8OfPpkm9ao22SwrZcjsHp5YTFXu85Lp04m+1A0=; h=Message-ID:Date:MIME-Version:To:From; b=Nw9h4dkzOwPn5vuhGKIyNNJs3P3x4pfdYEE7ckz9lL13tSkmK4nwamwpUjampl3D6 LDhJg2t6qBuoBWDfEIexbrFwLh9D9VyJiOWUlwmQC+1j7iIHZ+vEfgfvPWRc9vt9zD PN1+BJeuI0U91Om91ZCvoSBebX3S3D5TsBEjM/tE= Message-ID: Date: Mon, 9 Jan 2023 16:30:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [RFC PATCH 00/25] Upstream kvx Linux port Content-Language: en-us To: Jeff Xie Cc: Arnd Bergmann , Albert Ou , Alexander Shishkin , Andrew Morton , "Aneesh Kumar K.V" , Ard Biesheuvel , Arnaldo Carvalho de Melo , Boqun Feng , bpf@vger.kernel.org, Christian Brauner , devicetree@vger.kernel.org, Eric Biederman , Eric Paris , Ingo Molnar , Jan Kiszka , Jason Baron , Jiri Olsa , Jonathan Corbet , Josh Poimboeuf , Kees Cook , Kieran Bingham , Krzysztof Kozlowski , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-audit@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-perf-users@vger.kernel.org, linux-pm@vger.kernel.org, linux-riscv@lists.infradead.org, Marc Zyngier , Mark Rutland , Masami Hiramatsu , Namhyung Kim , Nick Piggin , Oleg Nesterov , Palmer Dabbelt , Paul Moore , Paul Walmsley , Peter Zijlstra , Rob Herring , Sebastian Reichel , Steven Rostedt , Thomas Gleixner , Waiman Long , Will Deacon , Alex Michon , Ashley Lesdalons , Benjamin Mugnier , Clement Leger , Guillaume Missonnier , Guillaume Thouvenin , Jean-Christophe Pince , Jonathan Borne , Jules Maselbas , Julian Vetter , Julien Hascoet , Julien Villette , Louis Morhet , Luc Michel , Marc =?utf-8?b?UG91bGhpw6hz?= , Marius Gligor , Samuel Jones , Thomas Costis , Vincent Chardon References: <20230103164359.24347-1-ysionneau@kalray.eu> <6570d22d-ee19-f8b1-6fb4-bf8865ec4142@kalray.eu> From: Yann Sionneau In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-ALTERMIMEV2_out: done X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jeff, On 1/9/23 16:11, Jeff Xie wrote: > On Mon, Jan 9, 2023 at 9:21 PM Yann Sionneau wrote: >> Hi Jeff, >> >> On 1/7/23 07:25, Jeff Xie wrote: >>> Hi, >>> >>> On Wed, Jan 4, 2023 at 1:01 AM Yann Sionneau wrote: >>>> [snip] >>>> >>>> A kvx toolchain can be built using: >>>> # install dependencies: texinfo bison flex libgmp-dev libmpc-dev libmpfr-dev >>>> $ git clone https://github.com/kalray/build-scripts >>>> $ cd build-scripts >>>> $ source last.refs >>>> $ ./build-kvx-xgcc.sh output >>> I would like to build the kvx-xgcc to compile and test the linux >>> kernel, but it reported a compile error. >>> I wonder what version of gcc you are using. >>> >>> My build environment: >>> VERSION="20.04.2 LTS (Focal Fossa)" >>> gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) >>> >>> >>> Compile error: >>> $ ./build-kvx-xgcc.sh output >>> >>> ../../binutils/libiberty/fibheap.c: In function ‘fibheap_replace_key_data’: >>> ../../binutils/libiberty/fibheap.c:38:24: error: ‘LONG_MIN’ undeclared >>> (first use in this function) >>> 38 | #define FIBHEAPKEY_MIN LONG_MIN >>> | ^~~~~~~~ >>> [snip] >> What SHA1 of https://github.com/kalray/build-scripts are you using? > I have executed the "source last.refs" I was referring to the SHA1 of the repo itself (build-scripts). `last.refs` is a symbolic link which can point to several releases, depending on "when" you did the clone. I am asking this because we recently published new toolchains. I want to make sure which one you are trying to build. >> We are building our toolchain on Ubuntu 18.04 / 20.04 and 22.04 without >> issues, I don't understand why it does not work for you, although indeed >> the error log you are having pops out on my search engine and seems to >> be some well known issue. > Yes, there are many answers on the web, but none of them solve this problem. > >> If the build-script does not work for you, you can still use the >> pre-built toolchains generated by the GitHub automated actions: >> https://github.com/kalray/build-scripts/releases/tag/v4.11.1 ("latest" >> means 22.04) > Thanks, this is the final solution ;-) Good to see it helped :) Regards, -- Yann