0

Cannot compile-Lost in understanding reason...
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Cannot compile-Lost in understanding reason...

by Fibbermcg on Sat Feb 23, 2019 3:02 pm

Error Mssg=exit status 1
Error compiling for board Adafruit Feather HUZZAH ESP8266.



Working this project to learn IO -Adafruit IO Basics: Temperature & Humidity
by Todd Treece

Bill

Fibbermcg
 
Posts: 1
Joined: Mon Jan 08, 2018 7:27 pm

Re: Cannot compile-Lost in understanding reason...

by franklin97355 on Sat Feb 23, 2019 4:13 pm

Set your preferences to verbose and post the entire log for us. Please use code tags when posting code or logs to the forums. It preserves formatting and makes it easier for everyone to read the code. Click the code button above the reply box and past your code between the tags created.

franklin97355
 
Posts: 20127
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Cannot compile-Lost in understanding reason...

by stevenjones on Mon Feb 25, 2019 8:48 pm

I am having a similar problem compiling the code for the HUZZAH ESP8266. It looks like it is having trouble in the HttpClient.

Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.8 (Mac OS X), Board: "Adafruit Feather HUZZAH ESP8266, 80 MHz, Flash, Disabled, 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

/Users/stevenjones/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.cpp: In constructor 'AdafruitIO_ESP8266::AdafruitIO_ESP8266(const char*, const char*, const char*, const char*)':
/Users/stevenjones/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.cpp:22:53: error: cannot allocate an object of abstract type 'HttpClient'
   _http = new HttpClient(*_client, _host, _http_port);
                                                     ^
In file included from /Users/stevenjones/Documents/Arduino/libraries/ArduinoHttpClient/src/ArduinoHttpClient.h:8:0,
                 from /Users/stevenjones/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:23,
                 from /Users/stevenjones/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.h:18,
                 from /Users/stevenjones/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.cpp:14:
/Users/stevenjones/Documents/Arduino/libraries/ArduinoHttpClient/src/HttpClient.h:41:7: note:   because the following virtual functions are pure within 'HttpClient':
 class HttpClient : public Client
       ^
In file included from /Users/stevenjones/Documents/Arduino/libraries/ArduinoHttpClient/src/HttpClient.h:10:0,
                 from /Users/stevenjones/Documents/Arduino/libraries/ArduinoHttpClient/src/ArduinoHttpClient.h:8,
                 from /Users/stevenjones/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:23,
                 from /Users/stevenjones/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.h:18,
                 from /Users/stevenjones/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP8266.cpp:14:
/Users/stevenjones/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/Client.h:29:21: note:    virtual int Client::connect(const IPAddress&, uint16_t)
         virtual int connect(CONST IPAddress& ip, uint16_t port) =0;
                     ^
/Users/stevenjones/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/Client.h:37:22: note:    virtual bool Client::flush(unsigned int)
         virtual bool flush(unsigned int maxWaitMs = 0) = 0;
                      ^
/Users/stevenjones/Library/Arduino15/packages/esp8266/hardware/esp8266/2.5.0/cores/esp8266/Client.h:38:22: note:    virtual bool Client::stop(unsigned int)
         virtual bool stop(unsigned int maxWaitMs = 0) = 0;
                      ^
exit status 1
Error compiling for board Adafruit Feather HUZZAH ESP8266.
Could not find boards.txt in /Users/stevenjones/Library/Arduino15/packages/adafruit/hardware/nrf52/0.6.0. Is it pre-1.5?
Could not find boards.txt in /Users/stevenjones/Documents/Arduino/hardware/blend/variants. Is it pre-1.5?
Could not find boards.txt in /Users/stevenjones/Documents/Arduino/hardware/blend/bootloaders. Is it pre-1.5?
WARNING: Error loading hardware folder /Users/stevenjones/Documents/Arduino/hardware/blend
  No valid hardware definitions found in folder blend.

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


Any help would be greatly appreciated.

Thanks,

Steven

stevenjones
 
Posts: 9
Joined: Fri Oct 09, 2015 9:14 pm

Re: Cannot compile-Lost in understanding reason...

by stevenjones on Sun Mar 03, 2019 7:58 pm

I was able to get my Huzzah working by downgrading the esp8266 from ver 2.5.0-Beta3 to ver 2.4.2. My compile error didn't match the one on the FAQ page but downgrading worked.

Firmware Beta 2.5.0 for the ESP8266 breaks compatibility with AdruinoHttpClient (Which is used by Adafruit IO). The Adafruit IO Arduino library is currently unsupported by this beta firmware. To get it working, we’ll downgrade the firmware on the ESP8266 to a stable version


Steven

stevenjones
 
Posts: 9
Joined: Fri Oct 09, 2015 9:14 pm

Re: Cannot compile-Lost in understanding reason...

by franklin97355 on Sun Mar 03, 2019 8:25 pm

Thanks for letting us know your solution. I have never trusted Beta software and don't use it outside a test environment until I've made sure there are no "gotchas"

franklin97355
 
Posts: 20127
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.