Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2845850rwb; Sun, 15 Jan 2023 23:40:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXuxeYCMRUiQt+8MhblMr4RPx9GbLAbQ735bVtNCKu7r8BsqWZGlsvtqg2LtJmB19lXbfnvQ X-Received: by 2002:a17:90a:858c:b0:223:f4e9:b22b with SMTP id m12-20020a17090a858c00b00223f4e9b22bmr91734416pjn.41.1673854828125; Sun, 15 Jan 2023 23:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673854828; cv=none; d=google.com; s=arc-20160816; b=nwv79pExtHgXAgZNAHxGs/fuV7+W1EMXcPKRcCyydyLbueiSV5BrqpLe6BgK9gZ8vG s5Ck6v0ff/GxPEAWZC1L8ldzvb+5j32PGqdG9ECQnKizQzBw2br5qty8nbmqHlTzEvr2 QXe+FIP4A0rO2L9hWT9iteiKgRTChwQ5O2HdtlkAjY2bkKForVRfYooua3QDk8wMrW5t q+G5P/kwNju/dMQB03qyPlRkuHVpMGktTPUy9Pdo3hPs1IK6rmnXw9zWowBxXXQjVrT+ tX/1XP9Q+BUyQwEmFfv/HVGB4ZZBH0oDVj0T2IpL/kw6fpQCeiA7ti+luGkc3An85/xS gp/w== 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=HOOg7H5N+Z63OpUC/u+N5UvkbhcnIUC0AQSISCJusN4=; b=vz4ZcejRy4D0AyFpvSsYe0pvW6D2S2wIJ7/3M3P9rG3e9WY4QScJWUWNcOcRwBjFi9 MMvkjpD9u/acZXPZyQGAwv/y3AOVkBb40WA44v+5IKcKdTzNqo35EWJg2uc6wLalKp63 ChrSJZ5DSf+wHdxINiSzzm67FZaPAzMhmXyNCmEwBi9xgyxaWdBjkel562GSZKhcuEra 03OuYxaI3J7E0CbWkXvbePFxXg9B6ZuaIokf8LAq4CTBzDSWviCeK/SkHyuH5ohhPbSQ 6Jit+/2v43XxHGxD4xI5N9PE3AmKSi5615jQ/biJNwbHMTAeZkJszMJ/QF2SFsW4YpY1 ii3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="bNV/0vag"; 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 pg14-20020a17090b1e0e00b00227203db63asi22597490pjb.33.2023.01.15.23.40.21; Sun, 15 Jan 2023 23:40:28 -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="bNV/0vag"; 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 S231903AbjAPHb3 (ORCPT + 51 others); Mon, 16 Jan 2023 02:31:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjAPHb0 (ORCPT ); Mon, 16 Jan 2023 02:31:26 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43B8B46B1; Sun, 15 Jan 2023 23:31:24 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id x2-20020a17090a46c200b002295ca9855aso2095115pjg.2; Sun, 15 Jan 2023 23:31:24 -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=HOOg7H5N+Z63OpUC/u+N5UvkbhcnIUC0AQSISCJusN4=; b=bNV/0vag1ZvLMpWwA4mawziLzieesOHeeP/uolhRj/Qp/fgoUEgKS7N3HGAUJ0hwEi NNrZZvSk5PRav8zwcMHaV79OCbj1kyAbRLaXuJBlAkL2qROgelytvjsBqXyclWatD66P Ugj2u4a35Qg8LB7A0QOSbJbcpeoiYZd4m2f45lFwkXfct6yFrIw9H9B2+WHzTF0gvm5o AshIWCnV/8OV2oXEADbsYpB4TvdLkd4l84BBzh3/uu9idPKpYXziuWROZgnCLNhU+sJN JRZO8KK8t6UrpaZbxL3OVAvsgPDH3MoIn0oJGJSBPHnnWKgt3Ul15ZHKTohvJxgO9iV7 E02Q== 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=HOOg7H5N+Z63OpUC/u+N5UvkbhcnIUC0AQSISCJusN4=; b=ngHwoVdMQSFl+TZTSIhZJpH1ygpEmiTsy9/PKXu+BHAKTGU8TlX0+GIdRzQnU5On/P zcUINi/9kObNZAL/AKZGuDIwxuY3uiy6ESaN49ylhRGCb2lT5nd1en2Zy03o9QQQjhTL vv3XoJNXPxzKnHJlTaRwmej3V939MS6IZ3sOmzkebvP+9WWMRqwxNbrCL+R0SjKBZk14 puoIkveFwnBdvbIeg8tYwAhvtwzwOpwyqIX5W4qBvWS54oM/WLo9XAi2ijYQVX/UQ+Ge wBoA4HjwTjxdIaX98A3lgPElNQGG5d5T8fmOzoUtjpA3YHdEJ+QZlpqZ2tvaFL+XIyTr MjbQ== X-Gm-Message-State: AFqh2koQ+8723qi1sLfeMOdWriT51Uj/MskCrUN5ss+WiCwTEyzMiJeV O611GIIC7iZ/0VLnecoOY0GJAM9DG6OaBwq0E6Y= X-Received: by 2002:a17:90b:1112:b0:223:dd6f:13b2 with SMTP id gi18-20020a17090b111200b00223dd6f13b2mr6617650pjb.56.1673854283697; Sun, 15 Jan 2023 23:31:23 -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, 16 Jan 2023 15:31:11 +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:53 PM Jeff Xie wrote: > > 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 wr= ote: > > >> 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 l= ibmpfr-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_re= place_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 It should be my own environmental problem. I reinstalled the system once and it has been able to compile normally ;-) In the past few days, I have reviewed almost all the codes, which is very meaningful for me to learn, thank you team. > > > >> We are building our toolchain on Ubuntu 18.04 / 20.04 and 22.04 with= out > > >> issues, I don't understand why it does not work for you, although in= deed > > >> 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 p= roblem. > > > > > >> 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 ("lates= t" > > >> means 22.04) > > > Thanks, this is the final solution ;-) > > Good to see it helped :) > > > > Regards, > > > > -- > > > > Yann > > > > > > > > > > > > > -- > Thanks, > JeffXie -- Thanks, JeffXie