Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6382212rwl; Mon, 9 Jan 2023 07:42:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXuIdYCiXpQw8XVzB3LwSgy2nQPju/qCNyrhhhD9LpvNBjjvNjmF80tIlkj50zmUpinU1zbu X-Received: by 2002:a17:902:be05:b0:192:a4e5:ac5f with SMTP id r5-20020a170902be0500b00192a4e5ac5fmr38506135pls.61.1673278932695; Mon, 09 Jan 2023 07:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673278932; cv=none; d=google.com; s=arc-20160816; b=ZNrr6HpgQ2cQx4wjcwSmzuzFsT7749j1BWczTRHpQwwQ02v/3we2b0+LA8jyIBFgal FwXVoa8bSi7iJ0XNwy4BpTEl8MA8EaM9pZFuFPf2/HSCncDp/bbJyTSqFkWjQDrtcKTk 5idlLJKW5o3gqCkVWjKzQk03wJ4vJyyKaLsJqYyIygTb7RuYTy1IRT/txTqgaapor78i j5qGbNEDaZpNir6RBt5cejR4vYOYG6/4l+tx71ivFwodPXEl4I7zyo1Rx8jalxC+w5cJ hLMrKGRw1mkQ5IH0GegtE5mZUDCLVk4NQUijhWH3TlK3kJJ86Ez2SDR8kkO2t5yYyUEi +y0Q== 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=mbMyQ+Lk6XMV45ZxQEld3vGI2Hm83HoIjGeiP+5YohY=; b=vpUw54AVhgOmk5w0YdHOlR5YsKihUXEl/+wABnR1CDopUGDwwP2bKsIjmGPdN4SEk+ 9Kx9o1T9jRcURsO5+4hK/t99S2cuUbTBFizgoERR9wLNBwlCcSeGlguQQTrmwMdElGGR wU/vCeOLFqPidBh2haUEthURkidmy53Vz1mFDysseTW0J5WygD57J3/Hzmbfo/jinmBD 9jmK68uyqDXMfe82UOHCxIqeZ//tejDjVlP1DEUC07VcAVngc/WQp3qGIjNzn3umLdMg bqGiQwFF45HeIWcdIFheC/HgxF0a1SZ9fIIDybuVdRqPtTdN6ui6Ab0IH1jwaGJ5SDIR kR5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UiyJWV8I; 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 139-20020a630791000000b004976cc1f412si9611799pgh.288.2023.01.09.07.42.05; Mon, 09 Jan 2023 07:42:12 -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=UiyJWV8I; 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 S237024AbjAIPMS (ORCPT + 53 others); Mon, 9 Jan 2023 10:12:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236945AbjAIPL2 (ORCPT ); Mon, 9 Jan 2023 10:11:28 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7581FF02A; Mon, 9 Jan 2023 07:11:19 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id c26so1905272pfp.10; Mon, 09 Jan 2023 07:11:19 -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=mbMyQ+Lk6XMV45ZxQEld3vGI2Hm83HoIjGeiP+5YohY=; b=UiyJWV8IESgIQ+htn089mbpQcf/DLM9JuIZW92t4SLyj7AJACTqzJqRhhioRc+Z08O ffJigl+z8xYM/epYBQLukDEyeOtTH1tM7SAJbR7WOX7BbZ/FrxXl23ilCtw/lhtOVpeF pQDilsaYeJlxPdgOuB2kpOB9N/22VjmvkMgJj3N35N3ajCe35g+vg/lIrj2unu/Evrpx fU2zQ9eqCPlN/nNvTZOa47ifIE3siIIOYkbW9vsA3YVH85KM6Oa4xBeI6OXmCZpoM9i2 b5kAMbdtBNPmjzzxKBYfzZUeGVBUUWf0ZNBmFg9UICKxIcyhk5OqehRsRS1GdlmX7Sb4 De4g== 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=mbMyQ+Lk6XMV45ZxQEld3vGI2Hm83HoIjGeiP+5YohY=; b=0Og63mnKnkLCjRttBZPdyN8VozjcRU0av3C0wx3bjU6vCL2kVOoAStZzPihJIktF9T 5nz9MKJFbzgHBVbl5ap3ff/fDyOf9six3gAeST+wS3Uo7w0GPnwQJRisZ/VfGTZ2/nIR PV2lKB1l2+vPKGhMG6L3DsQADW1EmQpq7X84fnFazjrdFkZN9UujT7ZT4V+MbqJwG4Qq 7RHGhnpWrQOfGwYjgc42PVXfK7SP8DH4pG5YUTr0ZPdvZrrOG2iUhs3M4iV71cyMB30x 6+OEnxnlMHHTHpox/VRribSl0Wk+OxFsnYAXJ1ppTKPqen92EVXPIeXFAAmgf7aZA+JE ZH3g== X-Gm-Message-State: AFqh2kpLebFNqVZUXPo/k2iJ3wOv+5LEkc0I2s6t7oI2cUOGtdRhHa8z uI4aBLVclZKIhDYuAkZLBvLf8mFmvJYKf4rgz3w= X-Received: by 2002:a63:f957:0:b0:477:98cc:3d01 with SMTP id q23-20020a63f957000000b0047798cc3d01mr3281088pgk.505.1673277078970; Mon, 09 Jan 2023 07:11:18 -0800 (PST) MIME-Version: 1.0 References: <20230103164359.24347-1-ysionneau@kalray.eu> <6570d22d-ee19-f8b1-6fb4-bf8865ec4142@kalray.eu> In-Reply-To: <6570d22d-ee19-f8b1-6fb4-bf8865ec4142@kalray.eu> From: Jeff Xie Date: Mon, 9 Jan 2023 23:11:07 +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 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 wrot= e: > >> [snip] > >> > >> A kvx toolchain can be built using: > >> # install dependencies: texinfo bison flex libgmp-dev libmpc-dev libmp= fr-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_replac= e_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" > 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 ;-) > > I hope it will work for you. > > Regards, > > -- > > Yann > > > > > --=20 Thanks, JeffXie