Need help with arm toolchain and Blink example for Seed: arm-none-eabi-gcc: No such file or directory

Need help with arm toolchain and Blink example for Seed: arm-none-eabi-gcc: No such file or directory

Hi,
I’m following the Daisy Wiki and How To video. I’m trying to run the Blink example on daisy Seed, but I get an error about the arm toolchain. I’m using VS Code on Mac M1, OS 12.3.

I installed the daisy toolchain with install.command. It looks like everything installed except the arm toolchain, it shows this error:

Error: Cask ‘gcc-arm-embedded’ is unavailable: No Cask with this name exists.
find: /usr/local/Caskroom/gcc-arm-embedded: No such file or directory
find: /usr/local/Caskroom/gcc-arm-embedded: No such file or directory

I tried running install.command a few more times and it gives the same error.

So I went to Downloads | GNU Arm Embedded Toolchain Downloads – Arm Developer and downloaded gcc-arm-none-eabi-10-2020-q4-major-mac.pkg. That installed an ARM folder in my Applications folder.

In VS Code, when I run the blink example I get errors about the arm stuff:
make: arm-none-eabi-gcc: No such file or directory

Did I install the correct arm stuff? And if so how do I make VS Code find arm-none-eabi-gcc?

Here’s some terminal output:

  • Executing task: make

mkdir -p build/Drivers/STM32H7xx_HAL_Driver/Src
arm-none-eabi-gcc -mthumb -mfloat-abi=hard -mfpu=fpv5-d16 -mcpu=cortex-m7 -Isrc -Isrc/sys -Isrc/usbd -Isrc/usbh -IDrivers/CMSIS/Include -IDrivers/CMSIS/Device/ST/STM32H7xx/Include -IDrivers/STM32H7xx_HAL_Driver/Inc -IDrivers/STM32H7xx_HAL_Driver/Inc/Legacy -IMiddlewares/ST/STM32_USB_Device_Library/Core/Inc -IMiddlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IMiddlewares/ST/STM32_USB_Host_Library/Core/Inc -IMiddlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc -IMiddlewares/Third_Party/FatFs/src -Isrc -I. -DCORE_CM7 -DSTM32H750xx -DSTM32H750IB -DARM_MATH_CM7 -Dflash_layout -DHSE_VALUE=16000000 -DUSE_HAL_DRIVER -DUSE_FULL_LL_DRIVER -DDATA_IN_D2_SRAM -DNDEBUG=1 -DRELEASE=1 -ggdb -Wall -Wno-attributes -Wno-strict-aliasing -Wno-maybe-uninitialized -Wno-missing-attributes -Wno-stringop-overflow -O3 -fasm -fdata-sections -ffunction-sections -finline-functions -std=gnu11 -c Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c -o build/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o -MD -MP -MF build/stm32h7xx_hal.dep
make: arm-none-eabi-gcc: No such file or directory
make: *** [build/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o] Error 1

  • The terminal process “/bin/zsh ‘-c’, ‘make’” failed to launch (exit code: 2).
  • Terminal will be reused by tasks, press any key to close it.

Hi,
I tried following the Toolchain Install instructions here 1e. Getting Started With Oopsy (Gen~ Integration) · electro-smith/DaisyWiki Wiki · GitHub

Now, running the Blink example I get different errors. Where do I go from here?:

build daisysp:

  • Executing task: make

arm-none-eabi-g++ -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DSTM32H750xx -ISource -ISource/Control -ISource/Drums -ISource/Dynamics -ISource/Effects -ISource/Filters -ISource/Noise -ISource/PhysicalModeling -ISource/Synthesis -ISource/Utility -O3 -Wall -Werror -fdata-sections -ffunction-sections -MMD -MP -MF"build/adenv.d" -MT"build/adenv.d" -fno-exceptions -finline-functions -std=gnu++14 -static -Wa,-a,-ad,-alms=build/adenv.lst Source/Control/adenv.cpp -o build/adenv.o
arm-none-eabi-g++ -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DSTM32H750xx -ISource -ISource/Control -ISource/Drums -ISource/Dynamics -ISource/Effects -ISource/Filters -ISource/Noise -ISource/PhysicalModeling -ISource/Synthesis -ISource/Utility -O3 -Wall -Werror -fdata-sections -ffunction-sections -MMD -MP -MF"build/adsr.d" -MT"build/adsr.d" -fno-exceptions -finline-functions -std=gnu++14 -static -Wa,-a,-ad,-alms=build/adsr.lst Source/Control/adsr.cpp -o build/adsr.o
arm-none-eabi-g++ -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DSTM32H750xx -ISource -ISource/Control -ISource/Drums -ISource/Dynamics -ISource/Effects -ISource/Filters -ISource/Noise -ISource/PhysicalModeling -ISource/Synthesis -ISource/Utility -O3 -Wall -Werror -fdata-sections -ffunction-sections -MMD -MP -MF"build/line.d" -MT"build/line.d" -fno-exceptions -finline-functions -std=gnu++14 -static -Wa,-a,-ad,-alms=build/line.lst Source/Control/line.cpp -o build/line.o
arm-none-eabi-g++ -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DSTM32H750xx -ISource -ISource/Control -ISource/Drums -ISource/Dynamics -ISource/Effects -ISource/Filters -ISource/Noise -ISource/PhysicalModeling -ISource/Synthesis -ISource/Utility -O3 -Wall -Werror -fdata-sections -ffunction-sections -MMD -MP -MF"build/phasor.d" -MT"build/phasor.d" -fno-exceptions -finline-functions -std=gnu++14 -static -Wa,-a,-ad,-alms=build/phasor.lst Source/Control/phasor.cpp -o build/phasor.o
In file included from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/math.h:5,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/cmath:45,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/random:38,
from Source/Utility/dsp.h:8,
from Source/Control/phasor.cpp:3:
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:35:9: error: ‘_LOCK_RECURSIVE_T’ does not name a type
35 | typedef _LOCK_RECURSIVE_T _flock_t;
| ^~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:207:12: error: expected identifier before ‘’ token
207 | _fpos_t (
_seek) (struct _reent , void , _fpos_t, int);
| ^
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:207:46: error: ‘_fpos_t’ has not been declared
207 | _fpos_t (
_seek) (struct _reent , void , _fpos_t, int);
| ^~~~~~~
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:207:58: error: ‘_fpos_t’ declared as function returning a function
207 | _fpos_t (
_seek) (struct _reent , void , _fpos_t, int);
| ^
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:224:3: error: ‘_off_t’ does not name a type; did you mean ‘off_t’?
224 | _off_t _offset; /
current lseek offset /
| ^~~~~~
| off_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:231:3: error: ‘_flock_t’ does not name a type; did you mean ‘clock_t’?
231 | _flock_t _lock; /
for thread-safety locking /
| ^~~~~~~~
| clock_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:233:3: error: ‘_mbstate_t’ does not name a type; did you mean ‘__mbstate_t’?
233 | _mbstate_t _mbstate; /
for wide char stdio functions. /
| ^~~~~~~~~~
| __mbstate_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:654:11: error: ‘_mbstate_t’ does not name a type; did you mean ‘__mbstate_t’?
654 | _mbstate_t _mblen_state;
| ^~~~~~~~~~
| __mbstate_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:655:11: error: ‘_mbstate_t’ does not name a type; did you mean ‘__mbstate_t’?
655 | _mbstate_t _mbtowc_state;
| ^~~~~~~~~~
| __mbstate_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:656:11: error: ‘_mbstate_t’ does not name a type; did you mean ‘__mbstate_t’?
656 | _mbstate_t _wctomb_state;
| ^~~~~~~~~~
| __mbstate_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:660:11: error: ‘_mbstate_t’ does not name a type; did you mean ‘__mbstate_t’?
660 | _mbstate_t _mbrlen_state;
| ^~~~~~~~~~
| __mbstate_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:661:11: error: ‘_mbstate_t’ does not name a type; did you mean ‘__mbstate_t’?
661 | _mbstate_t _mbrtowc_state;
| ^~~~~~~~~~
| __mbstate_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:662:11: error: ‘_mbstate_t’ does not name a type; did you mean ‘__mbstate_t’?
662 | _mbstate_t _mbsrtowcs_state;
| ^~~~~~~~~~
| __mbstate_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:663:11: error: ‘_mbstate_t’ does not name a type; did you mean ‘__mbstate_t’?
663 | _mbstate_t _wcrtomb_state;
| ^~~~~~~~~~
| __mbstate_t
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:664:11: error: ‘_mbstate_t’ does not name a type; did you mean ‘__mbstate_t’?
664 | _mbstate_t _wcsrtombs_state;
| ^~~~~~~~~~
| __mbstate_t
In file included from /usr/local/include/stdio.h:64,
from /usr/local/include/wchar.h:90,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/cwchar:44,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/bits/postypes.h:40,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/bits/char_traits.h:40,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/string:40,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/random:40,
from Source/Utility/dsp.h:8,
from Source/Control/phasor.cpp:3:
/usr/local/include/_stdio.h:92:8: error: redefinition of ‘struct __sbuf’
92 | struct __sbuf {
| ^~~~~~
In file included from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/math.h:5,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/cmath:45,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/random:38,
from Source/Utility/dsp.h:8,
from Source/Control/phasor.cpp:3:
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:122:8: note: previous definition of ‘struct __sbuf’
122 | struct __sbuf {
| ^~~~~~
In file included from /usr/local/include/stdio.h:64,
from /usr/local/include/wchar.h:90,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/cwchar:44,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/bits/postypes.h:40,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/bits/char_traits.h:40,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/string:40,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/random:40,
from Source/Utility/dsp.h:8,
from Source/Control/phasor.cpp:3:
/usr/local/include/_stdio.h:126:16: error: redefinition of ‘struct __sFILE’
126 | typedef struct __sFILE {
| ^~~~~~~
In file included from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/math.h:5,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/cmath:45,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/random:38,
from Source/Utility/dsp.h:8,
from Source/Control/phasor.cpp:3:
/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/sys/reent.h:186:8: note: previous definition of ‘struct __sFILE’
186 | struct __sFILE {
| ^~~~~~~
In file included from /usr/local/include/wchar.h:90,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/cwchar:44,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/bits/postypes.h:40,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/bits/char_traits.h:40,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/string:40,
from /opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc/arm-none-eabi/include/c++/10.3.1/random:40,
from Source/Utility/dsp.h:8,
from Source/Control/phasor.cpp:3:
/usr/local/include/stdio.h: In function 'int __sputc(int, FILE
)':
/usr/local/include/stdio.h:254:12: error: request for member ‘_w’ in ’
_p’, which is of non-class type ‘FILE’ {aka ‘int’}
254 | if (–_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != ‘\n’))
| ^~
/usr/local/include/stdio.h:254:28: error: request for member ‘_w’ in ’
_p’, which is of non-class type ‘FILE’ {aka ‘int’}
254 | if (–_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != ‘\n’))
| ^~
/usr/local/include/stdio.h:254:38: error: request for member ‘_lbfsize’ in ’
_p’, which is of non-class type ‘FILE’ {aka ‘int’}
254 | if (–_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != ‘\n’))
| ^~~~~~~~
/usr/local/include/stdio.h:255:16: error: request for member ‘_p’ in ‘* _p’, which is of non-class type ‘FILE’ {aka ‘int’}
255 | return (*_p->_p++ = _c);
| ^~
make: *** [build/phasor.o] Error 1

  • The terminal process “/bin/zsh ‘-c’, ‘make’” terminated with exit code: 2.
  • Terminal will be reused by tasks, press any key to close it.