Compilation failure on Devboard 5 using latest TD 0.60.5

wwatson

Well-known member
Has anybody tried compiling for the Devboard 5 using the latest Arduino 2.3.6 and TD 0.60.5? Here is the error messages for the blink sketch:

Code:
FQBN: teensy-dev:avr:teensyDevBrd5
Using board 'teensyDevBrd5' from platform in folder: /home/wwatson/Arduino/hardware/teensy-dev/avr
Using core 'teensy4' from platform in folder: /home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5

Detecting libraries used...
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO_TEENSY_MICROMOD -DARDUINO=10607 -DARDUINO_TEENSY_DEVBRD5 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4 -I/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5 /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO_TEENSY_MICROMOD -DARDUINO=10607 -DARDUINO_TEENSY_DEVBRD5 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4 -I/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5 /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/sketch/Blink.ino.cpp -o /tmp/40042317/sketch_merged.cpp
/home/wwatson/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/40042317/sketch_merged.cpp

Compiling sketch...
/home/wwatson/.arduino15/packages/teensy/tools/teensy-tools/0.60.5/precompile_helper /home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4 /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353 /home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO_TEENSY_MICROMOD -DARDUINO=10607 -DARDUINO_TEENSY_DEVBRD5 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4 -I/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5 /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/pch/Arduino.h -o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/pch/Arduino.h.gch
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO_TEENSY_MICROMOD -DARDUINO=10607 -DARDUINO_TEENSY_DEVBRD5 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/pch -I/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4 -I/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5 /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/sketch/Blink.ino.cpp -o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/sketch/Blink.ino.cpp.o
Compiling libraries...
Compiling core...
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-gcc -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO_TEENSY_MICROMOD -DARDUINO=10607 -DARDUINO_TEENSY_DEVBRD5 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4 -I/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5 /home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5/clockspeed.c -o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/clockspeed.c.o
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO_TEENSY_MICROMOD -DARDUINO=10607 -DARDUINO_TEENSY_DEVBRD5 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/pch -I/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4 -I/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5 /home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5/variant_cpp.cpp -o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/variant_cpp.cpp.o
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-gcc -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO_TEENSY_MICROMOD -DARDUINO=10607 -DARDUINO_TEENSY_DEVBRD5 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4 -I/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5 /home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5/variant.c -o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/variant.c.o
Using precompiled core: /home/wwatson/.cache/arduino/cores/ecb0f4017e5f59629d7792e047f6c5a4/core.a
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld: Linking everything together...
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-gcc -O2 -Wl,--gc-sections,--relax -T/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5/imxrt1062_mm_sdram.ld -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/Blink.ino.elf /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/sketch/Blink.ino.cpp.o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/clockspeed.c.o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/variant.c.o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/variant_cpp.cpp.o /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/../../cores/ecb0f4017e5f59629d7792e047f6c5a4/core.a -L/home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353 -larm_cortexM7lfsp_math -lm -lstdc++
/home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/../../cores/ecb0f4017e5f59629d7792e047f6c5a4/core.a(digital.c.o):/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4/digital.c:24: multiple definition of `digital_pin_to_info_PGM'; /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/variant.c.o:/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5/variant.c:40: first defined here
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld: /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/../../cores/ecb0f4017e5f59629d7792e047f6c5a4/core.a(HardwareSerial.cpp.o):/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4/HardwareSerial.cpp:760: multiple definition of `count_pin_to_xbar_info'; /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/variant_cpp.cpp.o:/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5/variant_cpp.cpp:69: first defined here
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld: /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/../../cores/ecb0f4017e5f59629d7792e047f6c5a4/core.a(HardwareSerial.cpp.o):/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4/HardwareSerial.cpp:720: multiple definition of `pin_to_xbar_info'; /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/variant_cpp.cpp.o:/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5/variant_cpp.cpp:38: first defined here
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld: /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/../../cores/ecb0f4017e5f59629d7792e047f6c5a4/core.a(analog.c.o):/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4/analog.c:11: multiple definition of `pin_to_channel'; /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/variant.c.o:/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5/variant.c:335: first defined here
/home/wwatson/.arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld: /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/../../cores/ecb0f4017e5f59629d7792e047f6c5a4/core.a(pwm.c.o):/home/wwatson/.arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4/pwm.c:19: multiple definition of `pwm_pin_info'; /home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353/core/variant.c.o:/home/wwatson/Arduino/hardware/teensy-dev/avr/variants/DevBrd5/variant.c:126: first defined here
collect2: error: ld returned 1 exit status
exit status 1

Compilation error: exit status 1

This is with the working "core_pins.h" file. Arduino 1.8.19 also fails with the same errors. The previous versions of 0.60.5 still work with the Devboard 5.
Just wondering if I missed some information:unsure:

I have two other computers that have the original working TD 0.60.5 to backup. will probably backup IDE 2.36, Arduino 1.8.19 and .arduino15 folders as well...
 
remove "/home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353" (clean up previous compilation). maybe this helps
 
remove "/home/wwatson/.cache/arduino/sketches/EFD8060CD376880344661705856FA353" (clean up previous compilation). maybe this helps
Thanks for the tip. Unfortunately it still fails. I think things have been added to the core that might be conflicting with things existing in the variants library and "core_pins.h' file. Will have to check it out...
 
If you are using my stuff, remember I had mods to cores.. Maybe that is missing? I have not touched it in months
 
Thanks for the tip. Unfortunately it still fails. I think things have been added to the core that might be conflicting with things existing in the variants library and "core_pins.h' file. Will have to check it out...
was just going to say that if you are using @KurtE 's vaiant core you may have to update it with the latest changes
 
Thank guys. That is exactly what I had to do. I have it working now. Some of the information in both "variant.c" and "variant_cpp.cpp" has been included in these core files:
Code:
HardwareSerial.cpp
pwm.c
analog.c
digital.c
Unfortunately I had to move the DB5 portions of the information in "variant.c" and "variant_cpp.cpp" to the appropriate files above which meens having to create a separate cores repo for the DB5 and modified "hardware" folder with it's changes. But that should not be that bad :D
I am going to play with it a little more and see if it can be optimized better...
EDIT: I am open to suggestions from the optimizer guys;)
 
After creating another branch of the latest cores I tried uploading files to another branch of cores but it kept failing with an unknown error which does not tell me much. GitHub can be a little annoying at times :confused: So instead I have created two zip file each with a simple readme files in each zip file that has the instructions for replacing the changed files in "Arduino/hardware" and ".arduino15/packages/teensy/hardware/avr/0.60.5/cores/teensy4". This is for Linux. Hopefully it works the same for windows. The two zip files are attached.
There does not seem to be any conflicts with compiling for MicroMod or t4.x devices...
 

Attachments

  • updated_files_for_dB5_in_cores_teensy4.zip
    25.9 KB · Views: 26
  • teensy-dev.zip
    36.4 KB · Views: 32
Back
Top