Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6426119rwl; Mon, 9 Jan 2023 08:11:37 -0800 (PST) X-Google-Smtp-Source: AMrXdXvVFiUOfLq/SMlUJpXghWC24gNPNELC/9hVw9Vo+4SAmTGxQBeDmedLDHUM2fc/FACmYS4Z X-Received: by 2002:a05:6a20:3953:b0:ab:fb31:a000 with SMTP id r19-20020a056a20395300b000abfb31a000mr97683404pzg.51.1673280697051; Mon, 09 Jan 2023 08:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673280697; cv=none; d=google.com; s=arc-20160816; b=Pge+geMObC+8nJxjHhv1KeHKdFLXoSy5KuVSbwA/IRCLexmBeu9yOgWdvyix/gJTdL nhnbaiyD6WaP42O8hGaND37oTBGq2eGlWxQVK7sirK74HJ84n5O0ebjT1MEtToVQpzkB X+vVWexGQr2QxuHpN4KJR+OPfWPqrpnXCIptk8ABnEia82nPhRLlCx7TBulYpd73NdVL m/BoAKHsg9iE2m3WlC+XC0Qkwco756koVOK/mfJJGIf1Yvt1XIX5/I4iYqjyvvDJNLhP 3jvunti8T/fU4Y+q1LzBL8K9EB+Vkntj5x0YlgnKtADpXfR0i/qcJcIDZhkrQPcRvgNS fW/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Kr5NMyR17w820E39Zxy+TJT5WIxXv3t9mTGHg5DI4M8=; b=Z6Nu+Mzwl1+Azq+lvxQunJymLiEy7XgOA5jQE8Gu0NYxXKmWPI+Ti7qoKm6mWvgq2w ZX99C+Yv7WGSQ0MoLujPIPaikNqlOyvBmc6TUf5EIPAA874bFvrLzMXO/6Ce8lyaaO2J v2qL0OHQ5EXGkKvaVMu389lVEQrIGve3TgVo1kutGwcEnc8UUIGUoK4xEgRsuLV4imQm TwN7Ai7J13hh+7DMfIM/pGszfYn5AsVcbdHwH2xLjRH+Kl7QDNw60imP2TjWNPyhQXv2 MaIPdOpV6xycrW4xCJ8FF3wp6NNQj3SwagEqZNWmFk1i16aJWfnxKVP7vqwgohBrbkn4 Z7HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p925wfq8; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a63b304000000b004af44c74b52si6913800pgf.568.2023.01.09.08.11.29; Mon, 09 Jan 2023 08:11:37 -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=@gmail.com header.s=20210112 header.b=p925wfq8; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229514AbjAIPx5 (ORCPT + 53 others); Mon, 9 Jan 2023 10:53:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230493AbjAIPxs (ORCPT ); Mon, 9 Jan 2023 10:53:48 -0500 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26B0910F4; Mon, 9 Jan 2023 07:53:48 -0800 (PST) Received: by mail-pg1-x530.google.com with SMTP id g68so5060926pgc.11; Mon, 09 Jan 2023 07:53:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Kr5NMyR17w820E39Zxy+TJT5WIxXv3t9mTGHg5DI4M8=; b=p925wfq85MYYr0Q3szQHiqh8M9TGBDNLmFWeMdVCKRfm+cOHibl08yqwJoSo2r7XJP wq9Jltk/+brtH8hNCZXvq0DxtwSQIazxtjZdEKfg/0vGYUECRtOKJhbchra23Qxq01EI LW2KfmroEgha10Hiqqq7sbs4sKftMAXbHM5UfrApMgHovRtAjqup/7ZDx5c66hJHq9Cr iYTmJQehTgnexoKO7TcMDfBVxLmHJagL/RtulJH5m9HvVCQxeaP/W6dGAdxxBRvcFDn6 /uu4CaMMaHvzdo/E1y8HoopqpLRDOCKFzxs2QxX+RtbfC5zpKXwCLbC6QNQfLNGjuHM5 8s7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kr5NMyR17w820E39Zxy+TJT5WIxXv3t9mTGHg5DI4M8=; b=vsVUyyhZaXC1xZa0W/BkpO28agq8dxXdBLZwJdYz8+hOKSGPkePAbr+IXJer1xGS/x vIa08qKS+TyQTvnM8R3uG7GqRUPS+6gIzWiLrfTPFdU1WcAyl9kU3Wh9FZIAZu+JzHzo dVDzK3utkV+zj8y4iS+c8obaR64okqEHZYm9NISdKQEpy6YKMkdAI+Cfpz/9CTWrBPPO cHHwE8mEkKTaODrCdOYUxzxx42uPAUFQlKe2+YOAszc9LCC20yEsMue6PEAGX3IoZ+MY nBf7hl7rmNfCFfEvDMqMo6ELbsXW4MZmF1edhQREXln6fDUnnTaF/FcFprn42l1vkL5i adrg== X-Gm-Message-State: AFqh2kr93MOknIB1o+1etlr9ym9CmzXNP1B0/FZCyO0i3FGNkIZXOEsT q7dmOOQoczYQQb/o/KO9Kk0o5oFyY6CcOaZRa+0= X-Received: by 2002:a63:1e42:0:b0:478:9503:f498 with SMTP id p2-20020a631e42000000b004789503f498mr3557980pgm.96.1673279627421; Mon, 09 Jan 2023 07:53:47 -0800 (PST) MIME-Version: 1.0 References: <20230103164359.24347-1-ysionneau@kalray.eu> <6570d22d-ee19-f8b1-6fb4-bf8865ec4142@kalray.eu> In-Reply-To: From: Jeff Xie Date: Mon, 9 Jan 2023 23:53:35 +0800 Message-ID: Subject: Re: [RFC PATCH 00/25] Upstream kvx Linux port To: Yann Sionneau 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 , =?UTF-8?Q?Marc_Poulhi=C3=A8s?= , Marius Gligor , Samuel Jones , Thomas Costis , Vincent Chardon Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Mon, Jan 9, 2023 at 11:30 PM Yann Sionneau wrote: > > Hi Jeff, > > On 1/9/23 16:11, Jeff Xie wrote: > > On Mon, Jan 9, 2023 at 9:21 PM Yann Sionneau wrot= e: > >> Hi Jeff, > >> > >> On 1/7/23 07:25, Jeff Xie wrote: > >>> Hi, > >>> > >>> On Wed, Jan 4, 2023 at 1:01 AM Yann Sionneau wr= ote: > >>>> [snip] > >>>> > >>>> A kvx toolchain can be built using: > >>>> # install dependencies: texinfo bison flex libgmp-dev libmpc-dev lib= mpfr-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=3D"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 =E2=80=98fibheap_repl= ace_key_data=E2=80=99: > >>> ../../binutils/libiberty/fibheap.c:38:24: error: =E2=80=98LONG_MIN=E2= =80=99 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. Unfortunately I deleted this repo a few minutes before you asked me ;-( But I remember that I cloned this repo two days ago. it should be: last.refs -> refs/4.11.0.refs > >> We are building our toolchain on Ubuntu 18.04 / 20.04 and 22.04 withou= t > >> issues, I don't understand why it does not work for you, although inde= ed > >> 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 pro= blem. > > > >> 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 > > > > > --=20 Thanks, JeffXie