Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Team 5726 - Multiple errors in Eclipse path (http://www.chiefdelphi.com/forums/showthread.php?t=141358)

GavinL 01-10-2016 03:55 PM

Team 5726 - Multiple errors in Eclipse path
 
Hello, my name is Gavin Levis from team 5726. We are a rookie team and I am the first programmer to try out C++ for our robot (I'm also a Freshman).
After installing Java JDK, FRC C++ Toolchains, and Eclipse, I have rebuilt the project to find that I have 4 errors in Getting Started. The four errors are listed below.

"Program "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl" not found in PATH" Resource: Getting Started

"Program "g++" not found in PATH" Resource not listed

"Program "gcc" not found in PATH" Resource not listed

"Program "gcc" not found in PATH" Resource: Getting Started

If you know what these errors are please tell me how I can fix it.

cbyrne 01-10-2016 10:10 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
Same errors here.

The bottom three are because while the FRC toolchain for C++ installs correctly, the name of the programs are not what eclispse is looking for.
(Working on it right now.)

Not sure what causes the first yet.

One of our students also provided the following:
https://github.com/Techbrick/Referen...ATH%22%20Error
(Side note, I am not convinced installing Mingw is the right fix for this.)

nick818 01-10-2016 10:12 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
I had the last three errors last year after I accidentally forgot to install the C++ toolchains. So try uninstalling/reinstalling those.

As for the last one, are you using a Mac? I just got that error this year because we added a Mac computer to use for development (and still haven't figured it out actually).

RufflesRidge 01-10-2016 10:14 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
Quote:

Originally Posted by cbyrne (Post 1520667)
The bottom three are because while the FRC toolchain for C++ installs correctly, the name of the programs are not what eclispse is looking for.
(Working on it right now.)

I'm guessing you have the wrong toolchains or the wrong plugins then as they matched in Beta.

cbyrne 01-10-2016 10:24 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
Quote:

Originally Posted by RufflesRidge (Post 1520673)
I'm guessing you have the wrong toolchains or the wrong plugins then as they matched in Beta.

If they worked in beta, then perhaps something changed on final.

I have been installing everything according to the "screenstepslive" site. Fresh install of Eclipse Mars, C++ online install of WPILib Eclipse plugin, FRC 2016 toolchain 4.9.3 (and uninstalled, installed again), no go.

Which version of the toolchain is in the Beta if I may ask?

Thanks

(If it makes a difference, this is a windows 10, 64 bit, 64 bit eclipse, 64 bit JDK 8u66)

cbyrne 01-10-2016 10:56 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
Just found this link:
http://forums.usfirst.org/showthread...-when-building

Code does seem to build and deploy as indicated, even with the four errors.

GavinL 01-10-2016 11:20 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
Quote:

Originally Posted by cbyrne (Post 1520718)
Just found this link:
http://forums.usfirst.org/showthread...-when-building

Code does seem to build and deploy as indicated, even with the four errors.

So I can just leave them there?

cbyrne 01-11-2016 07:40 AM

Re: Team 5726 - Multiple errors in Eclipse path
 
Quote:

Originally Posted by GavinL (Post 1520741)
So I can just leave them there?

I grew up being taught errors are not good, so I am not comfortable leaving them there. But yes, in theory they can stay.

If you want to remove them, try this:
Install MinGW (http://www.mingw.org/) - FRC doesn't use this, but other open source projects do, so it won't hurt.
At minimum, you want to install the "base" and "gcc-g++" packages.

After install, open Eclipse, and follow the instructions for appending the path in the link I provided above.

(Note, I was still getting the Visual Studio path error, but in Project Properties -> C/C++ General -> Preprocessor [...] -> Providers tab, checking "CDT Cross GCC Built In Compiler Settings", hitting apply, unchecking, hitting apply, and checking it again, hitting apply seemed to remove that. Also throw in a Project -> C/C++ Index -> Rebuild for good measure.)

Where does that leave you?

axiomofdarkness 01-11-2016 10:55 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
I am also having all four of these errors. I was able to solve the bottom three by installing MinGW and adding C:\MinGW\bin to PATH. I have not been able to solve the first error yet, however.

byteit101 01-12-2016 02:22 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
Official toolchain builder here, and yes, the lower 3 errors are harmless for FRC*. The first error is for simulation, and if you aren't using simulation, is safe to ignore. I could have sworn that error was fixed in November though....

*Those errors are because we only install "arm-frc-..." prefixed tools, and using the plugins eclipse only uses them. However, the generic eclipse C/C++ tools that aren't used for FRC expect non-prefixed. Those 3 errors will only matter if you do local C/C++ dev for your system, not FRC dev.

See http://www.chiefdelphi.com/forums/sh...d.php?t=132042 for more details:

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.

GavinL 01-12-2016 03:11 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
Quote:

Originally Posted by byteit101 (Post 1522076)
Official toolchain builder here, and yes, the lower 3 errors are harmless for FRC*. The first error is for simulation, and if you aren't using simulation, is safe to ignore. I could have sworn that error was fixed in November though....

*Those errors are because we only install "arm-frc-..." prefixed tools, and using the plugins eclipse only uses them. However, the generic eclipse C/C++ tools that aren't used for FRC expect non-prefixed. Those 3 errors will only matter if you do local C/C++ dev for your system, not FRC dev.

See http://www.chiefdelphi.com/forums/sh...d.php?t=132042 for more details:

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.

Okay, thankyou. I am going to go ahead and say this is solved.

byteit101 01-13-2016 11:52 AM

Re: Team 5726 - Multiple errors in Eclipse path
 
If you don't care about building native C++ code and want the path error to go away, here is the full settings path:
Window > Preferences > C/C++ > Build > Settings > Discovery

then select [CDT GCC Built-in Compiler Settings] and in the text box at the bottom, prepend "arm-frc-linux-gnueabi-" to the existing text. Should end up as something like

arm-frc-linux-gnueabi-${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"

If you use this eclipse install for more that just FRC compiling, don't do this, instead install mingw.

rsaccone 01-13-2016 12:21 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
1 Attachment(s)
Hi,

I was seeing the same kinds of errors and I tried the suggestion of preprending

arm-frc-linux-gnueabi- on the built in compiler settings. If I did a clean and build then errors went away but now I am experiencing another issue. When I look at any source, say CommandBase.h from the a wizard generated project almost all the symbols can't be resolved. It seems like include paths were not setup correctly by the project wizard. Is this a symptom of a bad tool install or can I fix this without reinstalling. Please see attached picture for more info.

Thanks,
Rob

King Nerd III 01-13-2016 03:24 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
We get these errors, too. Only when the project is first opened or eclipse starts up. Here are the steps we use to fix them:
1. Highlight the errors
2. Press the "Delete" key
3. Recompile code.
4. Rejoice because errors are now gone.
Theoretically, yes, you can leave them there. I don't like leaving them there, though, because sometimes I see the error indicator and forget to check for any new, real errors.
So, in summary, they're nothing to worry about.

rsaccone 01-13-2016 03:43 PM

Re: Team 5726 - Multiple errors in Eclipse path
 
I applied the changes that byteit101 suggested. However here's what I see now in the console when I do a Clean of my project:

Code:

15:37:56 **** Clean-only build of configuration Debug for project GoGo ****
rm -rf src/Robot.o src/Subsystems/ExampleSubsystem.o src/CommandBase.o FRCUserProgram src/Subsystems/ExampleSubsystem.d src/Robot.d src/Commands/ExampleCommand.d src/Commands/ExampleCommand.o src/CommandBase.d src/OI.o src/OI.d
Cannot run program "rm": Launching failed

Error: Program "rm" not found in PATH
PATH=[\usr\local\bin;C:/Program Files/Java/jre1.8.0_66/bin/server;C:/Program Files/Java/jre1.8.0_66/bin;C:/Program Files/Java/jre1.8.0_66/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\Program Files (x86)\Common Files\Lenovo;C:\Users\RoboGym\AppData\Local\Programs\Git\cmd;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\eclipse]


15:37:56 Build Finished (took 63ms)

15:37:56 **** Clean-only build of configuration Debug for project GoGo ****

15:37:56 Build Finished (took 0ms)

I don't like that rm couldn't be found and leaves me wondering if the clean actually did anyting. For the record this is a Windows 10 installation.

If I do a build following this I don't see any errors in the errors tab but in the console I see the following:

Code:

15:42:12 **** Incremental Build of configuration Debug for project GoGo ****
Info: Internal Builder is used for build
arm-frc-linux-gnueabi-g++ -std=c++1y "-IC:\\Users\\RoboGym/wpilib/cpp/current/include" "-IC:\\Users\\RoboGym\\workspace\\GoGo\\src" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\CommandBase.o" "..\\src\\CommandBase.cpp"
Cannot run program "arm-frc-linux-gnueabi-g++": Launching failed

Error: Program "arm-frc-linux-gnueabi-g++" not found in PATH
PATH=[\usr\local\bin;C:/Program Files/Java/jre1.8.0_66/bin/server;C:/Program Files/Java/jre1.8.0_66/bin;C:/Program Files/Java/jre1.8.0_66/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;C:\Program Files (x86)\Windows Live\Shared;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\Program Files (x86)\Common Files\Lenovo;C:\Users\RoboGym\AppData\Local\Programs\Git\cmd;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\eclipse]


15:42:12 Build Finished (took 57ms)

Note that arm-frc-linux-gnueabi-g++ is being reported as not found.

And on top of this if I start to browse my source files I get the same errors that I posted a jpg of earlier.

This last part seems like include paths are not setup correctly as I can't jump to the definitions of any of the std runtime classes nor even class definitions that are in my own project.

Any ideas are appreciated.

Regards,
Rob


All times are GMT -5. The time now is 09:13 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi