Can't Compile Any Sketch to Arduino UNO after IDE Upgrade

Just upgraded to IDE 1.8.5, from 1.6, and upgraded ESP8266 Arduino Core to version 2,4.

Now, I can not compile even the simplest sketch to Arduino UNO. I can compile to ESP8266 Node MCU board just fine.

I get the following warning:
Board arduino:avr:gert328 doesn't define a 'build.board' preference. Auto-set to: AVR_GERT328

And the following error:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\IPAddress.cpp:46:47: error: no 'bool IPAddress::fromString(const char*)' member function declared in class 'IPAddress'

bool IPAddress::fromString(const char *address)
^
exit status 1

Thanks in advance for any help I may receive.

Please explain exactly all the steps you followed to install this "Gert" thing.

pert:
Please explain exactly all the steps you followed to install this "Gert" thing.

Apparently this board The Gertboard for the Raspberry Pi | Gordons Projects

I doubt if he bothered reading the entire article how to to get the Gertboard to work with the IDE.

Yes, I had successfully installed Gert board support and ran it from my Raspberry Pi. But, I did that several years ago. I guess there is some remnant of the installation code on my PC that is interfering with either Arduino IDE 1.8.5 or ESP8266 core 2.4.

I had no problem running Arduino IDE 1.6.4 and ESP8266 core 1.6.4-673-g8cd3697. So the gert board stuff did not interfere with that.

Any advice on how to proceed now?

Thanks

You didn't answer my question.

MartyL:
Yes, I had successfully installed Gert board support and ran it from my Raspberry Pi. But, I did that several years ago. I guess there is some remnant of the installation code on my PC that is interfering with either Arduino IDE 1.8.5 or ESP8266 core 2.4.

This doesn't make sense to me. This

MartyL:
Board arduino:avr:gert328

indicates that the Gert hardware definition is in the Arduino AVR Boards hardware package. It's a very bad idea to modify the stock hardware packages to add extra boards but unfortunately there are quite a few that instruct you to do just that.

This:

MartyL:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\IPAddress.cpp

Tells me that the active version of Arduino AVR Boards is in the Arduino IDE installation folder, rather than being in another location that will persist between IDE installations. So how is it possible that the Gert hardware definition is in Arduino AVR Boards when you upgraded to Arduino IDE 1.8.5 after the time you installed Gert?

MartyL:
I guess there is some remnant of the installation code on my PC that is interfering with either Arduino IDE 1.8.5

It is indeed my suspicion that the modifications made to Arduino AVR Boards were the cause of the breakage. At a glance, it's not clear what modifications would be made by the installation instructions ieee488 posted a link to. However, those instructions are for Linux and you're using Windows so likely you followed an entirely different installation process for Gert, which you have not described.

NOW I AM DESPERATE!

Sorry for nor responding to all your posts, especially since it is my problem Sometimes life interferes with computer time. I must say I did not modify any stock Arduino code.

Recap: Was running Arduino 1.6.4 with ESP8266 support (NodeMCU 1.0) for years OK. Updated to 1.8.5 and received warning and error. When I uninstalled 1.8.5, and reinstalled 1.6.4, the error and warning vanished.

The warning: Board arduino:avr:gert328 doesn't define a 'build.board' preference. Auto-set to: AVR_GERT328.

In a subsequent post of mine I thought there may be some residual information on my PC from installing Arduino IDE on Raspberry Pi for support of the Gertboard, five years ago. That entire installation (successful) was done on the Raspberry Pi, nothing on the PC. I reviewed the instructions from dragon.net and confirmed nothing was done on the PC. A search on my PC for "Gert", "gert" or "arduino:avr:gert" revealed nothing. So maybe that was a red herring. Perhaps gert related to something else. Anyway, that was a warning not an error.

Really would like to address the error:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\IPAddress.cpp:46:47: error: no 'bool IPAddress::fromString(const char*)' member function declared in class 'IPAddress'

bool IPAddress::fromString(const char *address)
^
exit status 1

Today, I tried again to reinstall 1.8.5. In addition to uninstalling 1.6.4, I removed the Arduino15 directory in AppData/Roaming. Then, I reinstalled 1.8.5. Unfortunately, I received the same warning and error as before when compiling for Arduino Uno.

I uninstalled 1.8.5, and again removed Arduino15 and reinstalled 1.6.4 and the support for ESP8266.

Now, I receive the same error with 1.6.4, as I did with 1.8.5. when compiling for Arduino Uno. I do not get the warning - warning only with 1.8.5. I can compile just fine for ESP8266.

So now I have lost the ability to compile for the Arduino Uno under any circumstance. .

I would really appreciate help getting past that error message. Thanks

MartyL:
A search on my PC for "Gert", "gert" or "arduino:avr:gert" revealed nothing. So maybe that was a red herring. Perhaps gert related to something else. Anyway, that was a warning not an error.

I still think this is a valuable clue. Did you copy your sketchbook from the Raspberry Pi?

Do you have a {sketchbook folder}/hardware folder (you can find the location of the sketchbook folder in the Arduino IDE at File > Preferences > Sketchbook location)? If so, what are the contents of that folder?

I have not copied any Arduino sketches or anything other Arduino files from Raspberry Pi to PC.

On the PC, the sketchbook is under /Documents/Arduino. There shouldn't anything else that directory besides sketches I created (no Gertboard sketches), and libraries. The libraries are ones I have created, and ones I have downloaded.

You say "shouldn't", but did you actually check?