On Mon, Jan 9, 2023 at 9:21 PM Yann Sionneau <ysionneau@xxxxxxxxx> wrote:
Hi Jeff,I have executed the "source last.refs"
On 1/7/23 07:25, Jeff Xie wrote:
Hi,What SHA1 of https://github.com/kalray/build-scripts are you using?
On Wed, Jan 4, 2023 at 1:01 AM Yann Sionneau <ysionneau@xxxxxxxxx> wrote:
[snip]I would like to build the kvx-xgcc to compile and test the linux
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
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]
Good to see it helped :)We are building our toolchain on Ubuntu 18.04 / 20.04 and 22.04 withoutYes, there are many answers on the web, but none of them solve this problem.
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.
If the build-script does not work for you, you can still use theThanks, this is the final solution ;-)
pre-built toolchains generated by the GitHub automated actions:
https://github.com/kalray/build-scripts/releases/tag/v4.11.1 ("latest"
means 22.04)