From 596375e66651de8352578f133a526b37fbd9a311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kolbj=C3=B8rn=20Barmen?= Date: Wed, 2 Jun 2021 09:54:34 +0200 Subject: [PATCH] Update install_arm-none-eabi-gcc.sh Build the toolchain with --enable-newlib-io-long-long to avoid build failing with: main.c:64:2: error: #error "newlib lacks support of long long type in IO functions. Please use a toolchain that was compiled with option --enable-newlib-io-long-long." --- tools/install_arm-none-eabi-gcc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install_arm-none-eabi-gcc.sh b/tools/install_arm-none-eabi-gcc.sh index 386047c..2229f1d 100755 --- a/tools/install_arm-none-eabi-gcc.sh +++ b/tools/install_arm-none-eabi-gcc.sh @@ -90,7 +90,7 @@ cd ${GCC_VERSION} ln -s ../${NEWLIB_VERSION}/newlib . mkdir arm-none-eabi cd arm-none-eabi -../configure --target=arm-none-eabi --prefix=/opt/arm-none-eabi --enable-languages=c --with-newlib +../configure --target=arm-none-eabi --prefix=/opt/arm-none-eabi --enable-languages=c --with-newlib --enable-newlib-io-long-long make sudo make install cd ../../