Issues compiling on Mac


#1

Hi Guys,

I went through installing the necessary tool chain on my MacBook without any issues.
When i run Make i get the error messages below.
When i copy and paste the individual compile steps in the Firmware directory in a console, the system has no problem finding arm-none-eabi-gcc.
I am a novice when it comes to setting up toolchains on Mac. How can i solve this issue.

Thanks,
Eddy

Eddys-MacBook-Pro-2:Firmware eddy$ make

    1. arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=24 -DUSB_PROTOCOL_NONE -DUART_PROTOCOL_NATIVE -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.o
      /bin/sh: arm-none-eabi-gcc: command not found
      *** tup errors ***
      *** Command ID=274 failed with return value 127
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.o’ from cmd 274 but didn’t
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_cortex.c.su’ from cmd 274 but didn’t
    1. arm-none-eabi-gcc -std=c99 -c Board/v3/Src/stm32f4xx_hal_timebase_TIM.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=24 -DUSB_PROTOCOL_NONE -DUART_PROTOCOL_NATIVE -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build/Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.o
      /bin/sh: arm-none-eabi-gcc: command not found
      *** tup errors ***
      *** Command ID=296 failed with return value 127
      tup error: Expected to write to file ‘build/Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.o’ from cmd 296 but didn’t
      tup error: Expected to write to file ‘build/Board_v3_Src_stm32f4xx_hal_timebase_TIM.c.su’ from cmd 296 but didn’t
    1. arm-none-eabi-gcc -std=c99 -c Board/v3/Src/tim.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=24 -DUSB_PROTOCOL_NONE -DUART_PROTOCOL_NATIVE -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build/Board_v3_Src_tim.c.o
      /bin/sh: arm-none-eabi-gcc: command not found
      *** tup errors ***
      *** Command ID=308 failed with return value 127
      tup error: Expected to write to file ‘build/Board_v3_Src_tim.c.o’ from cmd 308 but didn’t
      tup error: Expected to write to file ‘build/Board_v3_Src_tim.c.su’ from cmd 308 but didn’t
    1. arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=24 -DUSB_PROTOCOL_NONE -DUART_PROTOCOL_NATIVE -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_ll_usb.c.o
      /bin/sh: arm-none-eabi-gcc: command not found
      *** tup errors ***
      *** Command ID=305 failed with return value 127
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_ll_usb.c.o’ from cmd 305 but didn’t
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_ll_usb.c.su’ from cmd 305 but didn’t
    1. arm-none-eabi-gcc -std=c99 -c Board/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=24 -DUSB_PROTOCOL_NONE -DUART_PROTOCOL_NATIVE -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build/Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.o
      /bin/sh: arm-none-eabi-gcc: command not found
      *** tup errors ***
      *** Command ID=289 failed with return value 127
      tup error: Expected to write to file ‘build/Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.o’ from cmd 289 but didn’t
      tup error: Expected to write to file ‘build/Board_v3_Middlewares_ST_STM32_USB_Device_Library_Core_Src_usbd_ioreq.c.su’ from cmd 289 but didn’t
    1. arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=24 -DUSB_PROTOCOL_NONE -DUART_PROTOCOL_NATIVE -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_pwr_ex.c.o
      /bin/sh: arm-none-eabi-gcc: command not found
      *** tup errors ***
      *** Command ID=302 failed with return value 127
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_pwr_ex.c.o’ from cmd 302 but didn’t
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_pwr_ex.c.su’ from cmd 302 but didn’t
    1. arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_can.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=24 -DUSB_PROTOCOL_NONE -DUART_PROTOCOL_NATIVE -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.o
      /bin/sh: arm-none-eabi-gcc: command not found
      *** tup errors ***
      *** Command ID=299 failed with return value 127
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.o’ from cmd 299 but didn’t
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_can.c.su’ from cmd 299 but didn’t
    1. arm-none-eabi-gcc -std=c99 -c Board/v3/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c -DHW_VERSION_MAJOR=3 -DHW_VERSION_MINOR=4 -DHW_VERSION_VOLTAGE=24 -DUSB_PROTOCOL_NONE -DUART_PROTOCOL_NATIVE -D__weak=“attribute((weak))” -D__packed=“attribute((packed))” -DUSE_HAL_DRIVER -DSTM32F405xx -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -Og -ffast-math -fstack-usage -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/include -IBoard/v3/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IBoard/v3/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc -IBoard/v3/Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -IBoard/v3/Drivers/CMSIS/Device/ST/STM32F4xx/Include -IBoard/v3/Drivers/CMSIS/Include -IBoard/v3/Inc -IMotorControl -IDrivers/DRV8301 -o build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_tim_ex.c.o
      /bin/sh: arm-none-eabi-gcc: command not found
      *** tup errors ***
      *** Command ID=311 failed with return value 127
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_tim_ex.c.o’ from cmd 311 but didn’t
      tup error: Expected to write to file ‘build/Board_v3_Drivers_STM32F4xx_HAL_Driver_Src_stm32f4xx_hal_tim_ex.c.su’ from cmd 311 but didn’t
      [ ETA~=<1s Remaining=59 Active=0 ] 11%
      *** tup: 8 jobs failed.
      make: *** [all] Error 1

#2

try running tup manually from the command line, then rerun make


#3

Yes. That did the job. Thanks so much.