Log in

View Full Version : Errors with install of Eclipse


DarthCoder
04-01-2015, 10:11
I followed the manual on screensteps about how to install Eclipse and the FRC 2015 Toolchains. I've got them installed, and when I compile a sample program it always generates the FRCUserProgram.out file just fine. However, I keep getting two errors: Program "g++" not found in PATH and Program "gcc" not found in PATH. Does anyone know how to get rid of these errors?

nandeeka
04-01-2015, 10:43
Try looking at this (http://stackoverflow.com/questions/11703432/eclipse-c-program-g-not-found-in-path) stackoverflow thread.

Sparkyshires
04-01-2015, 10:49
you need to add the g++ compiler to the PATH

RufflesRidge
04-01-2015, 11:01
Try uninstalling the toolchains, reboot, make sure that the toolchain installer is on your root drive, install the toolchains, then open Eclipse.

DarthCoder
04-01-2015, 11:53
All right. It works now. Thanks for the help!

DavisC
04-01-2015, 15:02
Just for so others know cause I just spent enough time trying things, what worked for me was:
download minGW (http://sourceforge.net/projects/mingw/?source=typ_redirect) and put it on the c drive (you only have to install the c++ gcc option when it asks you).
Add the bin folder in minGW to the environmental variable named path.
Open Eclipse and the error messages were gone!

djdesjardins
04-01-2015, 17:39
Tried both suggestions posted here, still getting same error. Anyone fix this in another way?

DarthCoder
04-01-2015, 18:13
I used the mingw installer and added to the path also. I've heard from some places that going to Window->Preferences->C/C++->Build->Settings and then using Restore Defaults on the Discovery tab can help. Also, if you've changed your PATH you need to restart Eclipse for it to see.

mhaeberli
04-01-2015, 19:14
Thanks for the guidance on this thread. Having the same problems on Windows 8 after following the instructions, I think. I'm a little mystified about how having the _windows_ mingw toolchain installed (which would logically compile to x86 code) would help with the ARM toolchain needed for the roboRIO. Tried uninstalling the FRC toolchain AND the Eclipse FRC extensions, then re-installing both. No joy.

byteit101
04-01-2015, 19:56
Note: This should not cause any errors if you are only doing FRC dev.
You can safely ignore them. If you are doing more than FRC dev, install G++ on your path via MinGW as already suggested.

Having said that, you can make them go away by prefixing the value listed in the error with "arm-frc-linux-gnueabi-". I'm afraid I don't remember where it is off the top of my head but can provide the exact value if you copy-paste the entire error.

The cause is eclipse CDT (C/C++ Developer tools) expects `g++` to be on the PATH for global header parsing. However the FRC projects use their own version of g++ with a different name (arm-frc-linux-gnueabi-g++) and the global tools don't realize it. It is only a problem if you are doing native development.

lbarello
05-01-2015, 00:02
I followed the manual on screensteps about how to install Eclipse and the FRC 2015 Toolchains. I've got them installed, and when I compile a sample program it always generates the FRCUserProgram.out file just fine. However, I keep getting two errors: Program "g++" not found in PATH and Program "gcc" not found in PATH. Does anyone know how to get rid of these errors?

Somewhere in settings you need to tell Eclipse that the tool path is "c:\frc\bin" (or put it on the path). Once I added that I was able to build a sample robot.

However, the libstdc++.so.6 library is missing. so the link step fails. Actually it is in the WPI toolset, but the linker never sees it. Any ideas? Must be another path somewhere I need to update.

RufflesRidge
05-01-2015, 07:50
However, the libstdc++.so.6 library is missing. so the link step fails. Actually it is in the WPI toolset, but the linker never sees it. Any ideas? Must be another path somewhere I need to update.

That warning is expected and can be safely ignored per this page: http://wpilib.screenstepslive.com/s/4485/m/13810/l/145320-building-and-downloading-a-robot-project-to-the-roborio

mhaeberli
05-01-2015, 15:21
Thanks - did try installing MinGW (did so) and adding c:\MinGW\bin\ to the path variable. Still didn't fix that error. Good to know the libstdc++ error can be ignored, but would be nicer to not have the distraction for myself or team programmers. Continued guidance welcome.

DarthCoder
05-01-2015, 16:30
Just in case anyone is having problems with the install, I actually wrote an automated installer for my own team. It needs the x86 JDK to be installed, cause it's the 32 bit version of Eclipse for now, but it should get you the up and running at least.
http://botsmiths.org/index.php/botnet/team-resources/41-botsmiths-eclipse-auto-installer

WhipeeDip
06-01-2015, 20:18
Any word on this? I've installed Eclipse and the FRC Toolchain but I'm still getting the g++ and gcc not found in PATH error. It's added to my PATH. I've tried setting defaults, and everything listed in that stackoverflow thread. Still getting the same error.

alopex_rex
06-01-2015, 20:47
We have the same problem. After trying in vain to make it go away we just decided to ignore it. Everything appears to work just fine anyways. We're actually not certain if the code is actually building when we say "build project", or just running the error checkers and then failing with the "gcc not in path" errors before it actually compiles. Either way, it builds when we deploy, so it doesn't really matter.

DarthCoder
07-01-2015, 09:34
If it's not showing up then check to make sure the compiler was even installed correctly. I tested out another install and found the same thing that other people here have said. The GCC not found error can be ignored if you're only developing for RoboRIO and don't plan to use your Eclipse install for desktop development also.

WhipeeDip
07-01-2015, 18:46
Alright, I got a couple programs running on a testbed. It seems the g++/gcc errors can be ignored.

MHSrobotics2853
08-01-2015, 01:11
We had this problem too. ::ouch::

Go to Window>Preferences>C/C++>Build>Settings

Under Settings, go to the Discovery tab. There will be an entry called "CDT GCC Built-in Compiler Settings". Click it. The box below (Language Settings Provider Options) will have a text box with text like "${COMMAND} ${FLAGS}..."

Append "arm-frc-linux-gnueabi-" to the beginning. Press "Ok".
Screenshot below:
http://i.imgur.com/lxUo3tG.png