Attempting make planck/rev6:default fails with the output described below.
$ make planck/rev6:default
QMK Firmware 0.6.400
Making planck/rev6 with keymap default
arm-none-eabi-gcc (Arch Repository) 9.1.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling: tmk_core/common/chibios/bootloader.c In file included from ./lib/chibios/os/common/ext/CMSIS/ST/STM32F3xx/stm32f303xc.h:168,
from ./lib/chibios/os/common/ext/CMSIS/ST/STM32F3xx/stm32f3xx.h:153,
from ./lib/chibios/os/common/startup/ARMCMx/devices/STM32F3xx/cmparams.h:72,
from ./lib/chibios/os/common/ports/ARMCMx/chcore.h:70,
from ./lib/chibios/os/rt/include/ch.h:81,
from tmk_core/common/chibios/bootloader.c:3:
./lib/chibios/os/common/ext/CMSIS/include/cmsis_gcc.h: In function 'enter_bootloader_mode_if_requested':
./lib/chibios/os/common/ext/CMSIS/include/core_cm4.h:93:28: error: listing the stack pointer register 'sp' in a clobber list is deprecated [-Werror=deprecated]
93 | #define __ASM __asm /*!< asm keyword for GNU Compiler */
| ^~~~~
./lib/chibios/os/common/ext/CMSIS/include/cmsis_gcc.h:190:3: note: in expansion of macro '__ASM'
190 | __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp");
| ^~~~~
./lib/chibios/os/common/ext/CMSIS/include/core_cm4.h:93:28: note: the value of the stack pointer after an 'asm' statement must be the same as it was before the statement
93 | #define __ASM __asm /*!< asm keyword for GNU Compiler */
| ^~~~~
./lib/chibios/os/common/ext/CMSIS/include/cmsis_gcc.h:190:3: note: in expansion of macro '__ASM'
190 | __ASM volatile ("MSR msp, %0\n" : : "r" (topOfMainStack) : "sp");
| ^~~~~
cc1: all warnings being treated as errors
[ERRORS]
|
|
|
make[1]: *** [tmk_core/rules.mk:372: .build/obj_planck_rev6_default/common/chibios/bootloader.o] Error 1
Make finished with errors
make: *** [Makefile:553: planck/rev6:default] Error 1
You'll need to downgrade your ARM GCC version - 9.1.0 apparently has some problems. I believe 8.3.1 is good.
You'll need to downgrade your ARM GCC version - 9.1.0 apparently has some problems. I believe 8.3.1 is good.
Thanks. Had the same issue with my DZ65, downgrading to 8.3.0-1 worked for me.
Awesome, glad to hear it.
Does this mean that there are no future plans to support 9.1.0, or by proxy, vanilla installs of Arch Linux?Curiosity more than anything; I don't mind using Docker to build & load.
I also ran into this and it seems like a temporary fix is to add the environment variable ALLOW_WARNINGS=yes
Most helpful comment
I also ran into this and it seems like a temporary fix is to add the environment variable
ALLOW_WARNINGS=yes