We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Where to get, or how to build toolchain "aarch64 for aarch64 linux"?
I try to do as described in ABE release notes:
git clone https://git.linaro.org/toolchain/abe.git
run ../abe/abe.sh --manifest gcc-arm-aarch64-none-linux-gnu-abe-manifest.txt --build all
../abe/abe.sh --manifest gcc-arm-aarch64-none-linux-gnu-abe-manifest.txt --build all
and
../abe/abe.sh --target aarch64-linux-gnu --build all
on aarch64 with debian buster, but got some errors.\\
...
RUN: (hello_world)RUN: aarch64-none-linux-gnu-g++ -o /tmp/hi /tmp/hello.cppIn file included from /abe/d/builds/destdir/aarch64-unknown-linux-gnu/aarch64-none-linux-gnu/include/c++/9.2.1/aarch64-none-linux-gnu/bits/c++config.h:524, from /abe/d/builds/destdir/aarch64-unknown-linux-gnu/aarch64-none-linux-gnu/include/c++/9.2.1/iostream:38, from /tmp/hello.cpp:1:/abe/d/builds/destdir/aarch64-unknown-linux-gnu/aarch64-none-linux-gnu/include/c++/9.2.1/aarch64-none-linux-gnu/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory 39 | #include <features.h> | ^~~~~~~~~~~~compilation terminated.WARNING: Previous command failedWARNING: Previous command failedERROR (#71): build_step_HELLO_WORLD (Hello World test failed)ERROR (#118): perform_build_steps (Step HELLO_WORLD failed)ERROR (#309): build_failure (Build process failed after 46 minutes)
system:
root@27efb3f59b5d:/abe/d# lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 10 (buster)Release: 10Codename: busterroot@27efb3f59b5d:/abe/d# uname -aLinux 27efb3f59b5d 5.8.12-meson64 #trunk SMP PREEMPT Sun Sep 27 00:11:54 EEST 2020 aarch64 GNU/LinuxDockerfiles:Ubuntufrom ubuntu:18.04ENV USERID=1000ENV DEBIAN_FRONTEND=noninteractiverun apt-get update; \ apt-get install -y autoconf automake libtool autogen wget gcc mc lsb-release sudo pkg-config \ git flex bison dejagnu libncurses5-dev zlib1g-dev texinfo python libpython2.7-dev alien gawk g++ rsyncrun wget raw.githubusercontent.com/.../git-new-workdir; \ chmod +x git-new-workdir; cp git-new-workdir /usr/local/bin/#run cp /usr/share/doc/git/contrib/workdir/git-new-workdir /usr/local/bin; chmod +x /usr/local/bin/git-new-workdirworkdir /aberun useradd -u $USERID -m user; \ echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/useruser userCentOS:from centos:8ENV USERID=1000run yum install --enablerepo PowerTools -y autoconf automake libtool autogen wget gcc-c++ \ redhat-lsb-core git flex bison dejagnu which sudo mc \ ncurses-devel zlib-devel texinfo python2-devel#run wget raw.githubusercontent.com/.../git-new-workdir; \# chmod +x git-new-workdir; cp git-new-workdir /usr/local/bin/run cp /usr/share/doc/git/contrib/workdir/git-new-workdir /usr/local/bin; chmod +x /usr/local/bin/git-new-workdirrun useradd -u $USERID -m user; \ echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/useruser userworkdir /abe
Does it say which version is needed?Standard releases are available here:developer.arm.com/.../downloads
There print "..or later".
I see no aarch64-hosted aarch64-linux-target available.
Then I want to build it myself, but fail.
there another try — to build just gcc, ubuntu 20.04:
../abe/abe.sh --build gcc
output https://pastebin.com/tjy6Yazf