From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEA28C54EBD for ; Mon, 9 Jan 2023 15:11:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 607DA8E0006; Mon, 9 Jan 2023 10:11:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 590988E0001; Mon, 9 Jan 2023 10:11:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 431D18E0006; Mon, 9 Jan 2023 10:11:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 2D2698E0001 for ; Mon, 9 Jan 2023 10:11:22 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id E3298AAD94 for ; Mon, 9 Jan 2023 15:11:21 +0000 (UTC) X-FDA: 80335599162.30.6368BF9 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by imf19.hostedemail.com (Postfix) with ESMTP id 28E721A0016 for ; Mon, 9 Jan 2023 15:11:19 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UiyJWV8I; spf=pass (imf19.hostedemail.com: domain of xiehuan09@gmail.com designates 209.85.210.176 as permitted sender) smtp.mailfrom=xiehuan09@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673277080; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=mbMyQ+Lk6XMV45ZxQEld3vGI2Hm83HoIjGeiP+5YohY=; b=IAXRS4LTVcsSxABze2zT9EO5MbJOW0ttVCbmfPgd/kcW1MItTcidaK/kQEMjvM67Uy2gEd g9rY8zzJgkYSIOy+GzQn6GHqyRSBIQHPujEUU1dhemfP4sUJ9JNobc+yo0Lc+TKgY5ZiCK 8fpVcSsLoDTbeEKvxj8rx+qkuAYFSjU= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UiyJWV8I; spf=pass (imf19.hostedemail.com: domain of xiehuan09@gmail.com designates 209.85.210.176 as permitted sender) smtp.mailfrom=xiehuan09@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673277080; a=rsa-sha256; cv=none; b=jpRnC5F8ZyfxlcOIt1NC/9bgCahmUvA3Sn8AYh6ZpCE/1kgAOBwgEuLn58oQZSe4iq6Ymd DSHK6nCSCL66pXhLyPd+og4fIoboYSQCYQBHpNiMH5UyUS6LxZVPAhwo4BkNr/FXVWlRTL fTg5+j2cvRiuXsOKlp91OEd00cOVWoA= Received: by mail-pf1-f176.google.com with SMTP id h7so2135915pfq.4 for ; 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=urVH2ojYIyasfhwOJ1RIIxh6uQrpidt+Qu9xyUh3ngBedapzblmoRMmg/VmL+IDYMQ VwHrAtNVKm2TIFw0ji0aOfS/PoaHpPR7cbJB3aCXhW8CBVfL2thK+vVG76zio9RzoZxq ddZg5hTqGtEAcu9i0zoF+PTJK9oD54YwWzZRebsVqB0vpzotPypVMwbuD2R9ZrWMFrA6 MK9TL5GDJW99dRRe28h24i8af6R/mD33nbNR0e8YlGNDm9LnnOPPHM2GfBsOsaN3Xd9X pX9iviyYoMFYcsbct6PRG7Ab6IGVT71+L6+4Vn5HLBPlP7eJ+zsDOPFpPNFiXiQyNXlT 2i9Q== X-Gm-Message-State: AFqh2krl8voIy5g9LghtNATe6Lw9sFa5qCd26BbENs8mWnmeeNz53YI2 u0iUMKT3x3QS8JjqyGmW1FvLrPzoNhFKus5R5KM= X-Google-Smtp-Source: AMrXdXtaMXZw+A+awBZWMsLxBBg2VbK1BTjUoNNl6u+Vm395uYoqWXtbYO/zcm6KlM3AUdY2y8deWO0NXh0INgA2vaA= 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-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 28E721A0016 X-Stat-Signature: 4ybpajntp3msykj11wajadsp58mf63hk X-HE-Tag: 1673277079-247608 X-HE-Meta: U2FsdG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B+iQCR4iNYy4UoK9S6pVJnulY0cPnFyTEN3HLgrLB2SE0AcTUrjmCDNwE X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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