[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
howtos:hardware:arm:gcc-13.x_aarch64_cross-compiler [2023/10/15 16:44 (UTC)] – [Notes] corrected RPi version exaga | howtos:hardware:arm:gcc-13.x_aarch64_cross-compiler [2023/10/19 10:17 (UTC)] – [AArch64 cross-compiler script code] modify script code to build --with-sysroot exaga | ||
---|---|---|---|
Line 55: | Line 55: | ||
# This script downloads RPi Linux kernel source and the required binaries, | # This script downloads RPi Linux kernel source and the required binaries, | ||
# and configures, builds, patches, and installs a gcc 13.2.x aarch64-linux | # and configures, builds, patches, and installs a gcc 13.2.x aarch64-linux | ||
- | # cross-compiler on Slackware ARM 15.0 running on a Raspberry Pi 3/4. | + | # cross-compiler on Slackware ARM running on a Raspberry Pi 3/4/5. |
# | # | ||
### Installation & Usage ### | ### Installation & Usage ### | ||
Line 61: | Line 61: | ||
# (e.g. / | # (e.g. / | ||
# | # | ||
- | # ~# chmod +x SARPi64.SlackBuild-gcc-13.2.0-aarch64-cc.sh | ||
# ~# ./ | # ~# ./ | ||
# | # | ||
Line 84: | Line 83: | ||
# | # | ||
# NB: The gcc package you compile should match your currently installed gcc | # NB: The gcc package you compile should match your currently installed gcc | ||
- | # version. Use this command to check your 15.0 gcc version: | + | # version. Use this command to check your current |
# | # | ||
# ~# gcc --version | # ~# gcc --version | ||
Line 94: | Line 93: | ||
# | # | ||
# binutils - https:// | # binutils - https:// | ||
- | # cloog -https:// | + | # cloog - ftp:// |
# gcc - https:// | # gcc - https:// | ||
# glibc - https:// | # glibc - https:// | ||
# gmp - https:// | # gmp - https:// | ||
- | # isl - https:// | + | # isl - ftp:// |
# mpfr - https:// | # mpfr - https:// | ||
# mpc - https:// | # mpc - https:// | ||
Line 154: | Line 153: | ||
############################################################################## | ############################################################################## | ||
- | |||
- | ############################################################################# | ||
- | ## | ||
- | ############################################################################# | ||
# Installation directory - edit INSTALL_PATH as required | # Installation directory - edit INSTALL_PATH as required | ||
INSTALL_PATH=/ | INSTALL_PATH=/ | ||
- | # Required build packages versions [* newer versions may exist] | + | # Required build packages-versions [* newer versions may exist] |
BINUTILS_VERSION=binutils-2.41 | BINUTILS_VERSION=binutils-2.41 | ||
CLOOG_VERSION=cloog-0.18.1 | CLOOG_VERSION=cloog-0.18.1 | ||
GCC_VERSION=gcc-13.2.0 | GCC_VERSION=gcc-13.2.0 | ||
GLIBC_VERSION=glibc-2.38 | GLIBC_VERSION=glibc-2.38 | ||
- | GMP_VERSION=gmp-6.3.0 | + | GMP_VERSION=gmp-6.2.1 |
ISL_VERSION=isl-0.24 | ISL_VERSION=isl-0.24 | ||
- | MPFR_VERSION=mpfr-4.2.1 | + | MPFR_VERSION=mpfr-4.1.0 |
- | MPC_VERSION=mpc-1.3.1 | + | MPC_VERSION=mpc-1.2.1 |
# RPi GitHub Linux source - working branch [e.g. rpi-5.15.y | rpi-5.19.y | rpi-6.1.y | # RPi GitHub Linux source - working branch [e.g. rpi-5.15.y | rpi-5.19.y | rpi-6.1.y | ||
Line 308: | Line 303: | ||
# Create symbolic links so gcc builds these dependencies automatically | # Create symbolic links so gcc builds these dependencies automatically | ||
+ | # This can be done automagically by using this command in gcc source dir: | ||
+ | # ./ | ||
+ | # | ||
echo " | echo " | ||
cd " | cd " | ||
- | ln -sf ../ | ||
ln -sf ../ | ln -sf ../ | ||
+ | ln -sf ../ | ||
ln -sf ../ | ln -sf ../ | ||
ln -sf ../ | ln -sf ../ | ||
Line 328: | Line 326: | ||
mkdir build-binutils | mkdir build-binutils | ||
cd build-binutils | cd build-binutils | ||
- | ../ | + | ../ |
make $PARALLEL_JOBS | make $PARALLEL_JOBS | ||
echo " | echo " | ||
Line 343: | Line 341: | ||
mkdir -p build-gcc | mkdir -p build-gcc | ||
cd build-gcc | cd build-gcc | ||
- | ../ | + | ../ |
make $PARALLEL_JOBS all-gcc | make $PARALLEL_JOBS all-gcc | ||
echo " | echo " | ||
Line 352: | Line 350: | ||
touch asan_linux-cpp.patch | touch asan_linux-cpp.patch | ||
cat << EOF > asan_linux-cpp.patch | cat << EOF > asan_linux-cpp.patch | ||
- | --- gcc-13.2.0/ | + | --- gcc-13.2.0/ |
- | +++ asan_linux-cpp.new 2023-10-15 14:36:04.000000000 +0100 | + | +++ asan_linux-cpp.new 2023-10-16 08:33:44.000000000 +0100 |
@@ -77,6 +77,10 @@ | @@ -77,6 +77,10 @@ | ||
| | ||
Line 401: | Line 399: | ||
echo " | echo " | ||
cd " | cd " | ||
- | make $PARALLEL_JOBS | + | make $PARALLEL_JOBS |
echo " | echo " | ||
make install | make install | ||
Line 408: | Line 406: | ||
echo " | echo " | ||
cd " | cd " | ||
- | make $PARALLEL_JOBS | + | make $PARALLEL_JOBS |
echo " | echo " | ||
make install | make install | ||
Line 433: | Line 431: | ||
# Done | # Done | ||
- | exit 0 | + | exit 0; |
# | # |