Arduino 1.6.0 compiler does not output error messages

Status
Not open for further replies.

el_supremo

Well-known member
I upgraded to 1.6.0 and Teensyduino 1.2.1 RC6 yesterday and almost immediately ran into a problem where the compiler only prints "Error compiling" with no error or warning messages at all. I got fed up trying to figure it out yesterday and reinstalled 1.0.6 and TD 1.20 rc6 which work just fine.
I've just tried reinstalling 1.6.0/1.21 and have the same problem.

With 1.0.6/1.20 I get this output when I compile some code which has one variable declaration commented to force an error:
S:\arduino-1.0.6\hardware\tools\arm-none-eabi\bin\arm-none-eabi-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mcpu=cortex-m4 -DF_CPU=96000000 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -mthumb -nostdlib -D__MK20DX256__ -DTEENSYDUINO=120 -fno-rtti -felide-constructors -std=gnu++0x -DUSB_SERIAL -DLAYOUT_US_ENGLISH -IS:\arduino-1.0.6\hardware\teensy\cores\teensy3 -IS:\arduino-1.0.6\libraries\Audio -IS:\arduino-1.0.6\libraries\Wire -IS:\arduino-1.0.6\libraries\SPI -IS:\arduino-1.0.6\libraries\SD -IC:\Users\Peter\Documents\Teensy\libraries\wff_fht -IC:\Users\Peter\Documents\Teensy\libraries\Adafruit_GFX -IS:\arduino-1.0.6\libraries\Adafruit_ST7735 C:\Users\Peter\AppData\Local\Temp\build4746263102512170715.tmp\ad_fht_t3_TFT_1d.cpp -o C:\Users\Peter\AppData\Local\Temp\build4746263102512170715.tmp\ad_fht_t3_TFT_1d.cpp.o
S:\arduino-1.0.6\hardware\tools\arm-none-eabi\bin\arm-none-eabi-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mcpu=cortex-m4 -DF_CPU=96000000 -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -mthumb -nostdlib -D__MK20DX256__ -DTEENSYDUINO=120 -fno-rtti -felide-constructors -std=gnu++0x -DUSB_SERIAL -DLAYOUT_US_ENGLISH -IS:\arduino-1.0.6\hardware\teensy\cores\teensy3 -IS:\arduino-1.0.6\libraries\Audio -IS:\arduino-1.0.6\libraries\Wire -IS:\arduino-1.0.6\libraries\SPI -IS:\arduino-1.0.6\libraries\SD -IC:\Users\Peter\Documents\Teensy\libraries\wff_fht -IC:\Users\Peter\Documents\Teensy\libraries\Adafruit_GFX -IS:\arduino-1.0.6\libraries\Adafruit_ST7735 C:\Users\Peter\AppData\Local\Temp\build4746263102512170715.tmp\cw_decode.cpp -o C:\Users\Peter\AppData\Local\Temp\build4746263102512170715.tmp\cw_decode.cpp.o
cw_decode.cpp: In function 'void word_space(cw_decodex*)':
cw_decode.cpp:74: error: 'cw_decoder_state' was not declared in this scope
cw_decode.cpp: In function 'void cw_decoder()':
cw_decode.cpp:82: error: 'cw_decoder_state' was not declared in this scope

This is what I get when 1.6.0/1.21 is installed:
Using library Audio in folder: S:\arduino-1.6.0\hardware\teensy\avr\libraries\Audio (legacy)
Using library Wire in folder: S:\arduino-1.6.0\hardware\teensy\avr\libraries\Wire (legacy)
Using library SPI in folder: S:\arduino-1.6.0\hardware\teensy\avr\libraries\SPI (legacy)
Using library SD in folder: S:\arduino-1.6.0\hardware\teensy\avr\libraries\SD (legacy)
Using library wff_fht in folder: C:\Users\Peter\Documents\Teensy\libraries\wff_fht (legacy)
Using library Adafruit_GFX in folder: C:\Users\Peter\Documents\Teensy\libraries\Adafruit_GFX (legacy)
Using library Adafruit_ST7735 in folder: S:\arduino-1.6.0\hardware\teensy\avr\libraries\Adafruit_ST7735 (legacy)

S:\arduino-1.6.0/hardware/tools/arm/bin/arm-none-eabi-g++ -c -g -Os -Wall -ffunction-sections -fdata-sections -MMD -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -D__MK20DX256__ -DTEENSYDUINO=121 -DARDUINO=10600 -DF_CPU=96000000 -DARDUINO_ARCH_AVR -DUSB_SERIAL -DLAYOUT_US_ENGLISH -IS:\arduino-1.6.0\hardware\teensy\avr\cores\teensy3 -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\Audio -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\Wire -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\SPI -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\SD -IC:\Users\Peter\Documents\Teensy\libraries\wff_fht -IC:\Users\Peter\Documents\Teensy\libraries\Adafruit_GFX -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\Adafruit_ST7735 C:\Users\Peter\AppData\Local\Temp\build8700067988532345937.tmp\ad_fht_t3_TFT_1d.cpp -o C:\Users\Peter\AppData\Local\Temp\build8700067988532345937.tmp\ad_fht_t3_TFT_1d.cpp.o
S:\arduino-1.6.0/hardware/tools/arm/bin/arm-none-eabi-g++ -c -g -Os -Wall -ffunction-sections -fdata-sections -MMD -nostdlib -fno-exceptions -felide-constructors -std=gnu++0x -fno-rtti -mthumb -mcpu=cortex-m4 -D__MK20DX256__ -DTEENSYDUINO=121 -DARDUINO=10600 -DF_CPU=96000000 -DARDUINO_ARCH_AVR -DUSB_SERIAL -DLAYOUT_US_ENGLISH -IS:\arduino-1.6.0\hardware\teensy\avr\cores\teensy3 -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\Audio -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\Wire -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\SPI -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\SD -IC:\Users\Peter\Documents\Teensy\libraries\wff_fht -IC:\Users\Peter\Documents\Teensy\libraries\Adafruit_GFX -IS:\arduino-1.6.0\hardware\teensy\avr\libraries\Adafruit_ST7735 C:\Users\Peter\AppData\Local\Temp\build8700067988532345937.tmp\cw_decode.cpp -o C:\Users\Peter\AppData\Local\Temp\build8700067988532345937.tmp\cw_decode.cpp.o
C:\Users\Peter\AppData\Local\Temp\build8700067988532345937.tmp\cw_decode.cpp: In function 'void word_space(cw_decodex*)':
Error compiling.

There have been a couple of mentions of this problem on the Arduino forum in relation to Arduino 1.5.7 but the solutions offered there either haven't helped me or aren't applicable.

Anyone seen this problem or have any idea how to fix it? It is absolutely hopeless trying to develop code with a compiler that doesn't print error messages!

I have attached a zip file of a very stripped down version of the project I was using to produce the output above. I have deliberately commented the declaration of the variable cw_decoder_state so that it generates a compilation error.
With 1.0.6 these error messages are produced:
cw_decode.cpp: In function 'void word_space(cw_decodex*)':
cw_decode.cpp:74: error: 'cw_decoder_state' was not declared in this scope
cw_decode.cpp: In function 'void cw_decoder()':
cw_decode.cpp:82: error: 'cw_decoder_state' was not declared in this scope

but with 1.6.0 I get:
C:\Users\Peter\AppData\Local\Temp\build8700067988532345937.tmp\cw_decode.cpp: In function 'void cw_decoder()':
Error compiling.

Pete
View attachment ad_test_junk_1.zip
 
Ah that's good, and bad, news! At least someone else is seeing it.

And I forgot to give some environmental details. I'm using Win Pro x64

Pete
 
A little follow up, it seems that you get that very terse error when there is an error in a library. If you have an error in a sketch it outputs fine I think.

Code:
#include <Entropy.h>


void setup() {
  // put your setup code here, to run once:
  myvar = 9;
}


void loop() {
  // put your main code here, to run repeatedly:


}

when error is in the sketch
Code:
Arduino: 1.6.0 (Mac OS X), TD: 1.21-beta6, Board: "Teensy LC, Raw HID, 48 MHz, US English"


sketch_feb24c.ino: In function 'void setup()':
sketch_feb24c:5: error: 'myvar' was not declared in this scope
'myvar' was not declared in this scope


  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

error in library: Entropy.cpp
Code:
Arduino: 1.6.0 (Mac OS X), TD: 1.21-beta6, Board: "Teensy LC, Raw HID, 48 MHz, US English"


/Applications/Teensy_1.6.0.app/Contents/Resources/Java/hardware/teensy/avr/libraries/Entropy/Entropy.cpp: In member function 'float EntropyClass::rnorm(float, float)':
Error compiling.


  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

fyi... I obviously edited Entropy.cpp to have an error and commented out the problem in the sketch example so the problem is just in the library.
 
Yes, there's a bug messing up errors reported on libraries and the core library, and apparently also .cpp files in the sketch folder.

I'm going to fix this for 1.21-beta7.... probably later this week or by the weekend.
 
The issue only seems to happen when building with teensy boards.
The errors will be "normal" when building for say UNO.
--- bill
 
Status
Not open for further replies.
Back
Top