More compiler debug output?

Status
Not open for further replies.

Epyon

Well-known member
Hello all

Is there any way to get more debug output out of the compiler/toolchain used by the Arduino/teensyduino IDE other than the verbose output option? I have a sketch that compiled just fine in 1.6.2, but in 1.6.4 with Teensyduino 1.23 the compiler just halts. No error messages, progress bar is stuck. I've spent the better part of a day modifying and testing code, but no luck in pinpointing the root cause of the problem. It would help to know which line or block of code is causing the compiler to get stuck.

The only output I get is this, and then it just hangs.
Code:
Using library Time in folder: C:\Apps\arduino-1.6.4\libraries\Time (legacy)
Using library Timezone in folder: C:\Apps\arduino-1.6.4\libraries\Timezone (legacy)
Using library SPI in folder: C:\Apps\arduino-1.6.4\hardware\arduino\avr\libraries\SPI 
Using library Ethernet in folder: C:\Apps\arduino-1.6.4\libraries\Ethernet 
Using library TextFinder in folder: C:\Apps\arduino-1.6.4\libraries\TextFinder (legacy)
Using library EEPROM in folder: C:\Apps\arduino-1.6.4\hardware\arduino\avr\libraries\EEPROM 
Using library EEPROMAnything in folder: C:\Apps\arduino-1.6.4\libraries\EEPROMAnything (legacy)
Using library MsTimer2 in folder: C:\Apps\arduino-1.6.4\libraries\MsTimer2 (legacy)

C:\Apps\arduino-1.6.4\hardware\tools\avr/bin/avr-g++ -c -g -Os -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10604 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Apps\arduino-1.6.4\hardware\arduino\avr\cores\arduino -IC:\Apps\arduino-1.6.4\hardware\arduino\avr\variants\mega -IC:\Apps\arduino-1.6.4\libraries\Time -IC:\Apps\arduino-1.6.4\libraries\Timezone -IC:\Apps\arduino-1.6.4\hardware\arduino\avr\libraries\SPI -IC:\Apps\arduino-1.6.4\libraries\Ethernet\src -IC:\Apps\arduino-1.6.4\libraries\TextFinder -IC:\Apps\arduino-1.6.4\hardware\arduino\avr\libraries\EEPROM -IC:\Apps\arduino-1.6.4\libraries\EEPROMAnything -IC:\Apps\arduino-1.6.4\libraries\MsTimer2 C:\Users\ADMINI~1\AppData\Local\Temp\build2757759770262815170.tmp\debugfinalV1_5.cpp -o C:\Users\ADMINI~1\AppData\Local\Temp\build2757759770262815170.tmp\debugfinalV1_5.cpp.o

Thx.
 
I've narrowed it down to both the Textfinder library in combination with the Ethernet library, and the Timezone library. E.g. if you download TextFinder and run the SimpleClientWithFinder example, the compilation problem occurs.

I'm not sure why it doesn't occur with 1.6.2. Afaik the way the IDE works with libraries hasn't changed between those two versions?

It's probably also not Teensy related tho, the same problem occurs when compiling for regular Arduino boards :( .
 
Ok, thx Paul!

PS: is there a reason Teensyduino 123 doesn't support Arduino 1.6.2? I'm using that version as a fallback now (with TD122).
 
PS: is there a reason Teensyduino 123 doesn't support Arduino 1.6.2?

I intentionally dropped support for 1.6.0 and 1.6.2, because those versions have a lot of bugs. Each was quickly replaced, to fix the problems. 1.6.2 was only on Arduino's website for 5 days.
 
Status
Not open for further replies.
Back
Top