Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Fresh install of 2019-09 not working(Arduino and Eclipse)
Fresh install of 2019-09 not working [message #1814918] Sun, 22 September 2019 23:22 Go to next message
M K is currently offline M KFriend
Messages: 6
Registered: September 2019
Junior Member
Had a version of Photon running with Arduino. I recently installed the latest 2019-09 version.
When I try to add Platforms using Arduino downloads manager, nothing happens.

The error log indicates an error showing "No valid system for avr-gcc".

One big difference I notice is that the .arduinocdt folder in this install has only two json files. The Photon version I had used to have many more files.

I have tried doing my own research but not making progress, and it's frustrating!

[Updated on: Mon, 23 September 2019 14:11]

Report message to a moderator

Re: Fresh install of 2019-09 not working [message #1814989 is a reply to message #1814918] Mon, 23 September 2019 18:26 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
The error message tells that the AVR C/C++ compiler cannot be run on the installation you have.

What is the operating system you're running Eclipse on?

For Windows, you need an interface layer, e.g. Cygwin or MinGW.
For details, read the CDT help file 'Before you begin'.


--

Tauno Voipio
Re: Fresh install of 2019-09 not working [message #1815056 is a reply to message #1814989] Wed, 25 September 2019 03:59 Go to previous messageGo to next message
M K is currently offline M KFriend
Messages: 6
Registered: September 2019
Junior Member
Thank you for your response.

I'm running macOS Mojave Version 10.14.6

Let me know please.

Re: Fresh install of 2019-09 not working [message #1815130 is a reply to message #1815056] Wed, 25 September 2019 18:48 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
Google for 'avr-gcc os x' and follow the links.

--

Tauno Voipio
Re: Fresh install of 2019-09 not working [message #1815381 is a reply to message #1814989] Wed, 02 October 2019 03:57 Go to previous messageGo to next message
M K is currently offline M KFriend
Messages: 6
Registered: September 2019
Junior Member
MacOS Mojave 10.14.6
Re: Fresh install of 2019-09 not working [message #1815382 is a reply to message #1815130] Wed, 02 October 2019 03:59 Go to previous messageGo to next message
M K is currently offline M KFriend
Messages: 6
Registered: September 2019
Junior Member
Thank you. Will check and provide my response.
Re: Fresh install of 2019-09 not working [message #1815690 is a reply to message #1814918] Tue, 08 October 2019 13:36 Go to previous messageGo to next message
Andy Le May is currently offline Andy Le MayFriend
Messages: 2
Registered: October 2019
Junior Member
Hi,

I had the same issue when trying to update from Arduino 1.6.23 to 1.8.1 and got a window showing "No valid system found for avr-gcc"

I found a solution and spent an hour documenting it here for you only to have the following show when I tried to post it.

"When you are a new user (fewer than 1 message), you cannot include links to external sites. However you may always include links to eclipse.org pages."

The irony is when I post this message I may be able to post the solution.

Andy
Re: Fresh install of 2019-09 not working [message #1815700 is a reply to message #1815690] Tue, 08 October 2019 14:41 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Probably a spambot defense.
You could post the links by removing the https://
They will then be treated as text and must be pasted into a browser to follow.

But since you now have at least one message perhaps you could post the links directly.


[Updated on: Tue, 08 October 2019 14:43]

Report message to a moderator

Re: Fresh install of 2019-09 not working [message #1815705 is a reply to message #1815700] Tue, 08 October 2019 15:00 Go to previous messageGo to next message
Andy Le May is currently offline Andy Le MayFriend
Messages: 2
Registered: October 2019
Junior Member
Hi,

I had the same issue when trying to update from Arduino 1.6.23 to 1.8.1 and got a window showing "No valid system found for avr-gcc"

So I deleted 1.6.23 in the "Downloads manager" and tried to add 1.8.1 . This time, no error message window, just nothing. However I saw this is in the error log. Same error

------------------------------------------------
eclipse.buildId=4.13.0.I20190916-1045
java.version=1.8.0_144
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.cpp.product -keyring /Users/andylemay/.eclipse_keyring
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.cpp.product -keyring /Users/andylemay/.eclipse_keyring

org.eclipse.cdt.arduino.core
Error
Tue Oct 08 13:11:14 SAST 2019
No valid system found for avr-gcc
------------------------------------------------

So I tried renaming / deleting .arduinocdt as per this article
bugs.eclipse.org/bugs/show_bug.cgi?id=480181

Had to remove the "H T T P S : ?/ /" in the link it due to newbie status.

to force a reinstall... No difference. Same error in error log "No valid system found for avr-gcc" message in log.

Then I tried clicking all the Arduino board types in "add".. no difference. Same error "No valid system found for avr-gcc" message in log.

So then I though I'll just add back version 1.6.23. but you can't choose the version to install. So there I am stuck. I've deleted 1.6.23 and now can't add it back.

So then I tried to edit the "package_index.json" file and remove the section referring to 1.8.1.
    {
          "name": "Arduino AVR Boards",
          "architecture": "avr",
          "version": "1.8.1",
          "category": "Arduino",

.....

},


But the "package_index.json" file get's reloaded when you enter the "Arduino Download manager - Add"

So then I disconnected the internet before I edited the "package_index.json" file . Then went into the "Add". This time the 1.6.23 version shows. Then reconnect to internet before hitting "Add" and it adds 1.6.23 and all the correct supporting installs.

Whilst this works, it could be due to the definition of the avr-gcc resources. Further down in the "package_index.json" file you find this section.

    {
          "name": "avr-gcc",
          "version": "5.4.0-atmel3.6.1-arduino2",
          "systems": [
            {


With this entry

            {
              "size": "31894498",
              "checksum": "SHA-256:abc50137543ba73e227b4d1b8510fff50a474bacd24f2c794f852904963849f8",
              "host": "i386-apple-darwin11",
              "archiveFileName": "avr-gcc-5.4.0-atmel3.6.1-arduino2-i386-apple-darwin11.tar.bz2",
              "url": "http://downloads.arduino.cc/tools/avr-gcc-5.4.0-atmel3.6.1-arduino2-i386-apple-darwin11.tar.bz2"
            },


the next section for "7.3.0-atmel3.6.1-arduino5" has this with no mention of i386.

            {
              "size": "38492678",
              "checksum": "SHA-256:f48706317f04452544ab90e75bd1bb193f8af2cb1002f53aa702f27202c1b38f",
              "host": "x86_64-apple-darwin14",
              "archiveFileName": "avr-gcc-7.3.0-atmel3.6.1-arduino5-x86_64-apple-darwin14.tar.bz2",
              "url": "http://downloads.arduino.cc/tools/avr-gcc-7.3.0-atmel3.6.1-arduino5-x86_64-apple-darwin14.tar.bz2"
            },


Perhaps this is confusing the install program? No idea but perhaps the developers could take a look?

Andy
Re: Fresh install of 2019-09 not working [message #1816886 is a reply to message #1815705] Sun, 10 November 2019 17:48 Go to previous messageGo to next message
Matthias Hoelling is currently offline Matthias HoellingFriend
Messages: 1
Registered: November 2019
Junior Member
Andy's response was very helpful for me to create a workaround for this, but I am not sure if it is a good one or even legit.
My "Arduino Home" in Prefernces->C/C++->Arduino is set to /Users/<username>/.arduinocdt
(not 100% sure if this is still correct, it used to be)

gcc-avr is under packages/arduino/tools/avr-gcc
There is a subfolder 5.4.0-atmel3.6.1-arduino2 from the 1.6.23 version


  • Download the new version from downloads.arduino.cc/tools/avr-gcc-7.3.0-atmel3.6.1-arduino5-x86_64-apple-darwin14.tar.bz2 (I am also a Junior member and need to omit the h t t p)
  • Create a subfolder 7.3.0-atmel3.6.1-arduino5 in the avr-gcc directory above
  • Extract the downloaded file and put the content into the newly created subfolder


When you try the upgrade, now, you will get an error: "No valid system for avrdude", not so surprising at this point.
So you do the same again:


  • Download downloads.arduino.cc/tools/avrdude-6.3.0-arduino17-x86_64-apple-darwin12.tar.bz2
  • Create a subdirectory packages/arduino/tools/6.3.0-arduino17 (was 6.3.0-arduino14 in the old version)
  • Extract the content of the download and put it there

After that, the I could update to 1.8.1 straight away and my code compiles now with avr-gcc 7.3.0 (you need to clean your projects before you compile them with the new version, of course)

Re: Fresh install of 2019-09 not working [message #1816957 is a reply to message #1815705] Tue, 12 November 2019 20:53 Go to previous messageGo to next message
Chris LaPlante is currently offline Chris LaPlanteFriend
Messages: 1
Registered: November 2019
Junior Member
Did anyone ever find a solution to this? I face the same problem from the original poster.

The same OS and App versions.

Thanks,

-Chris
Re: Fresh install of 2019-09 not working [message #1817643 is a reply to message #1816957] Wed, 27 November 2019 08:30 Go to previous messageGo to next message
Adrian D is currently offline Adrian DFriend
Messages: 3
Registered: November 2019
Junior Member
I also found that when adding the "Arduino AVR Boards" it does nothing. Adding some other boards works.
Re: Fresh install of 2019-09 not working [message #1817690 is a reply to message #1817643] Wed, 27 November 2019 22:17 Go to previous messageGo to next message
Adrian D is currently offline Adrian DFriend
Messages: 3
Registered: November 2019
Junior Member
More experiments today. I tried a fresh install of Eclipse Neon - on a different machine (a Macbook Pro that only had Arduino on it), then added this Arduino plugin (version 2 that comes up instead of 3). The same happens that adding the "Arduino AVR Boards" does not add the item to the list, same with "Arduino megaAVR Boards". Adding other boards - like the ESP8266 - does add them to the list but I cannot get the ESP to work. There may be some other reason for that though.
Re: Fresh install of 2019-09 not working [message #1817704 is a reply to message #1817690] Thu, 28 November 2019 05:34 Go to previous messageGo to next message
Adrian D is currently offline Adrian DFriend
Messages: 3
Registered: November 2019
Junior Member
I was able to get the environment working by following Matthias Hoelling's instructions above with the folders as below:

gcc-avr files are under:
packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5
avrdude files are under (note the avrdude folder):
packages/arduino/tools/avrdude/6.3.0-arduino17

Then, adding "Arduino AVR boards" under the Arduino Download Manager works and a basic sketch compiles.
Re: Fresh install of 2019-09 not working [message #1836372 is a reply to message #1817704] Wed, 30 December 2020 22:10 Go to previous message
Bill Stackhouse is currently offline Bill StackhouseFriend
Messages: 3
Registered: May 2015
Junior Member
where are these files located? I can't find them on my MacOS Mojave. I have Arduino 1.8.13 installed and Eclipse 2020-12 C++.

gcc-avr files are under:
packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5
avrdude files are under (note the avrdude folder):
packages/arduino/tools/avrdude/6.3.0-arduino17

[Updated on: Wed, 30 December 2020 22:11]

Report message to a moderator

Previous Topic:Eclipse Helios IDE Editor displaying Japanese characters as junk
Next Topic:ESP8266 -- Linked resources not included in derived makefile
Goto Forum:
  


Current Time: Wed Apr 24 16:10:15 GMT 2024

Powered by FUDForum. Page generated in 0.05409 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top