Skip to content

Commit

Permalink
fix: Fix failed build on gcc-8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Jan 27, 2024
1 parent 01cba29 commit e7a63fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .ci/cross-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ if [ $(printenv CXX | grep clang) ]; then
exit
fi

set -x
set -e

make clean
export PATH=gcc-arm-${GCC_REL}-x86_64-aarch64-none-linux-gnu/bin:$PATH
make CROSS_COMPILE=aarch64-none-linux-gnu- check || exit 1 # ARMv8-A
wget -O gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf.tar.xz "https://developer.arm.com/-/media/Files/downloads/gnu-a/8.3-2019.03/binrel/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz?revision=e09a1c45-0ed3-4a8e-b06b-db3978fd8d56&rev=e09a1c450ed34a8eb06bdb3978fd8d56&hash=9C4F2E8255CB4D87EABF5769A2E65733"

tar Jxvf gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf.tar.xz

make clean
export PATH=gcc-arm-${GCC_REL}-x86_64-arm-none-linux-gnueabihf/bin:$PATH
make CROSS_COMPILE=arm-none-linux-gnueabihf- check || exit 1 # ARMv7-A
export PATH=gcc-arm-8.3-2019.02-x86_64-arm-linux-gnueabihf/bin:$PATH
make CROSS_COMPILE=arm-linux-gnueabihf- check || exit 1 # ARMv8-A

# make clean
# export PATH=gcc-arm-${GCC_REL}-x86_64-arm-none-linux-gnueabihf/bin:$PATH
# make CROSS_COMPILE=arm-none-linux-gnueabihf- check || exit 1 # ARMv7-A
2 changes: 1 addition & 1 deletion .ci/cross-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
check_platform

sudo apt-get update -q -y
sudo apt-get install -q -y qemu-user
sudo apt-get install -q -y qemu-user wget

# Clang/LLVM is natively a cross-compiler, meaning that one set of programs
# can compile to all targets by setting the -target option.
Expand Down

0 comments on commit e7a63fe

Please sign in to comment.