How to compile using Makefile?

Hello all. I am fairly new to Teensy and fairly new to Make as I usually use CMake. I am trying to use a Makefile to compile code into a .HEX file but I keep getting a bunch of errors. I sorted most of them out, but I would like to get some help from people who know what they are doing. I am using the Makefile provided in 'core/teensy4/' Modified to suit my needs. At first I got a bunch of errors about it not being able to find Arduino.h, so I edited the Makefile $(CC) & $(CXX) Parameters to include the Teensy4 directory which had it's own Arduino.h. Then I got an error about it not being able to find 'avr/pgmspace.h' so I added the include path to that into the file as well. The previous errors are probably due to the fact that I copied the Makefile out of the teensy4 directory and into my project directory. I moved it back just in case it was the problem and it got a lot farther, but now it is giving me '/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: cannot find -larm_cortexM7lfsp_math' And I am stumped as I cannot find anything online. I will post my Makefile and source file below. (Sorry about not posting in code format, Formatting buttons are not showing up) Any help would be very appreciated!
Hardware: Teensy4.1
 

Attachments

  • Makefile.txt
    5.7 KB · Views: 26
  • TestProg.cpp
    88 bytes · Views: 20
It would be important that you also provide a copy of the compiler output (including errors and warnings)
 
Here is the compiler output:
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_serial.o usb_serial.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_calloc.o sm_calloc.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o extmem.o extmem.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_serial2.o usb_serial2.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o keylayouts.o keylayouts.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_midi.o usb_midi.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o pwm.o pwm.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_realloc_i.o sm_realloc_i.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_mouse.o usb_mouse.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o digital.o digital.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o tempmon.o tempmon.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_touch.o usb_touch.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_rawhid.o usb_rawhid.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_realloc_move.o sm_realloc_move.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o nonstd.o nonstd.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o fuse.o fuse.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_zalloc.o sm_zalloc.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_realloc.o sm_realloc.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_hash.o sm_hash.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o rtc.o rtc.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_mtp.o usb_mtp.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_keyboard.o usb_keyboard.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_desc.o usb_desc.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_serial3.o usb_serial3.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_malloc_stats.o sm_malloc_stats.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb.o usb.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o bootdata.o bootdata.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_alloc_valid.o sm_alloc_valid.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_pool.o sm_pool.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_szalloc.o sm_szalloc.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o eeprom.o eeprom.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o analog.o analog.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o delay.o delay.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_joystick.o usb_joystick.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_malloc.o sm_malloc.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o interrupt.o interrupt.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o usb_seremu.o usb_seremu.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_free.o sm_free.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o startup.o startup.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o clockspeed.o clockspeed.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o sm_util.o sm_util.c
/usr/bin/arm-none-eabi-gcc -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE -D__IMXRT1062__ -DARDU
INO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/hardware/teensy/avr/cor
es/teensy4 -c -o debugprintf.o debugprintf.c
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o IPAddress.o IPAddress.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o AudioStream.o AudioStream.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o HardwareSerial2.o HardwareSerial2.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEvent7.o serialEvent7.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o CrashReport.o CrashReport.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o Print.o Print.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o usb_audio.o usb_audio.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o usb_inst.o usb_inst.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o HardwareSerial7.o HardwareSerial7.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEvent1.o serialEvent1.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o Stream.o Stream.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o TestProg.o TestProg.cpp
TestProg.cpp: In function 'int function()':
TestProg.cpp:5:1: warning: no return statement in function returning non-void [-Wreturn-type]
5 | }
| ^
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o HardwareSerial5.o HardwareSerial5.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o Time.o Time.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEvent2.o serialEvent2.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o new.o new.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEventUSB2.o serialEventUSB2.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o yield.o yield.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o main.o main.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o HardwareSerial.o HardwareSerial.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o HardwareSerial4.o HardwareSerial4.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEvent3.o serialEvent3.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o HardwareSerial6.o HardwareSerial6.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o Tone.o Tone.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o HardwareSerial8.o HardwareSerial8.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o WString.o WString.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEvent4.o serialEvent4.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o usb_flightsim.o usb_flightsim.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEvent8.o serialEvent8.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o WMath.o WMath.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o DMAChannel.o DMAChannel.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o HardwareSerial1.o HardwareSerial1.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o EventResponder.o EventResponder.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEvent5.o serialEvent5.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEvent6.o serialEvent6.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o HardwareSerial3.o HardwareSerial3.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEventUSB1.o serialEventUSB1.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o IntervalTimer.o IntervalTimer.cpp
/usr/bin/arm-none-eabi-g++ -std=gnu++14 -felide-constructors -fno-exceptions -fpermissive -fno-rtti -Wno-error=narrowing -I /home/thetimbrick/arduino-1.8.19/libraries -I /home/thetimbrick/ardu
ino-1.8.19/hardware/teensy/avr/cores/teensy4/avr/ -Wall -g -O2 -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -MMD -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -DUSING_MAKEFILE
-D__IMXRT1062__ -DARDUINO=10813 -DTEENSYDUINO=154 -DARDUINO_TEENSY40 -I. -I /home/thetimbrick/arduino-1.8.19/libraries -ffunction-sections -fdata-sections -I /home/thetimbrick/arduino-1.8.19/h
ardware/teensy/avr/cores/teensy4 -c -o serialEvent.o serialEvent.cpp
/usr/bin/arm-none-eabi-gcc -Os -Wl,--gc-sections,--relax -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb -Timxrt1062.ld -o TestProg.elf usb_serial.o sm_calloc.o extmem.o usb_serial2.o
keylayouts.o usb_midi.o pwm.o sm_realloc_i.o usb_mouse.o digital.o tempmon.o usb_touch.o usb_rawhid.o sm_realloc_move.o nonstd.o fuse.o sm_zalloc.o sm_realloc.o sm_hash.o rtc.o usb_mtp.o usb_
keyboard.o usb_desc.o usb_serial3.o sm_malloc_stats.o usb.o bootdata.o sm_alloc_valid.o sm_pool.o sm_szalloc.o eeprom.o analog.o delay.o usb_joystick.o sm_malloc.o interrupt.o usb_seremu.o sm_
free.o startup.o clockspeed.o sm_util.o debugprintf.o IPAddress.o AudioStream.o HardwareSerial2.o serialEvent7.o CrashReport.o Print.o usb_audio.o usb_inst.o HardwareSerial7.o serialEvent1.o S
tream.o TestProg.o HardwareSerial5.o Time.o serialEvent2.o new.o serialEventUSB2.o yield.o main.o HardwareSerial.o HardwareSerial4.o serialEvent3.o HardwareSerial6.o Tone.o HardwareSerial8.o W
String.o serialEvent4.o usb_flightsim.o serialEvent8.o WMath.o DMAChannel.o HardwareSerial1.o EventResponder.o serialEvent5.o serialEvent6.o HardwareSerial3.o serialEventUSB1.o IntervalTimer.o
serialEvent.o -larm_cortexM7lfsp_math -lm -lstdc++
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: cannot find -larm_cortexM7lfsp_math
collect2: error: ld returned 1 exit status
make: *** [Makefile:157: TestProg.elf] Error 1


 
Everything has been tested with gcc 5.4.1, which Teensyduino installs. In theory, newer versions like 9.2.1 should work. But you might run into subtle differences that manifest as difficult to understand bugs.
 
Hey, if you'd rather use CMake, I have a version of Teensy cores that works with CMake here:
https://github.com/bolderflight/core

The CMakeLists file pulls from this repo to configure the processor and flash the Teensy from the command line:
https://github.com/bolderflight/mcu-support.git

Typically you wouldn't interact with that repo directly, but it does have the CMake files that you might be interested in.

Finally, this repo helps setup the appropriate build environment (either Linux or WSL on Windows) by installing CMake and the required compilers:
https://github.com/bolderflight/build-tools

Supports Teensy 3.x, 4.x, and LC. It's not a one-to-one port of the Teensy cores, my interest are focused on drones and robotics, so I only ported the core files that supported the functionality I was interested in. But should be a good jumping off point if you want to implement a CMake-based build system for your projects.
 
Back
Top