Go to Post Word of advice:Don't eat a whole box of nutrigrain bars that are loaded with fiber in one sitting...Yeah.. Bad thing. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 06-03-2015, 19:49
Herbie_3633 Herbie_3633 is offline
Registered User
FRC #3633
 
Join Date: Jan 2013
Location: Albert lea
Posts: 26
Herbie_3633 is infamous around these partsHerbie_3633 is infamous around these parts
Error when building. powerpc-wrs-vxworks-g++ error

Code:
'Invoking: Thunder cRIO Tools C++ Compiler'
powerpc-wrs-vxworks-g++ -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL -IC:\Users\My Dell\Desktop\Eclipse Projects\2015 practice robot\include -I"C:\Program Files (x86)\FRC_Toolchain\mingw\powerpc-wrs-vxworks\wind_base\/../include/WPILib" -O0 -g3 -Wall -c -fmessage-length=0 -mcpu=603 -mstrict-align -mlongcall -MMD -MP -MF"src/robot.d" -MT"src/robot.d" -o "src/robot.o" "../src/robot.cpp"
powerpc-wrs-vxworks-g++: error: Dell\Desktop\Eclipse: No such file or directory
powerpc-wrs-vxworks-g++: error: Projects\2015: No such file or directory
powerpc-wrs-vxworks-g++: error: practice: No such file or directory
powerpc-wrs-vxworks-g++: error: robot\include: No such file or directory
mingw32-make: *** [src/robot.o] Error 1
This is the error message I get when building. Dell\Desktop\Eclipse I think is referring to the place where I originally installed eclipse but I have moved it to program files. Thunder CRio tools is the name of the plugin I am trying to build the project with. I am able to build a project as a WPILIB deploy. I have also tried re-installing the toolchains.

Last edited by Herbie_3633 : 06-03-2015 at 19:55. Reason: Added more info
  #2   Spotlight this post!  
Unread 06-03-2015, 22:14
calcmogul's Avatar
calcmogul calcmogul is offline
WPILib Developer
AKA: Tyler Veness
FRC #3512 (Spartatroniks)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Santa Maria, CA
Posts: 52
calcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nice
Re: Error when building. powerpc-wrs-vxworks-g++ error

You need quotes around the argument to -I like the one provided by the FRC plugins. For example, -IC:\Users\My Dell\Desktop\Eclipse Projects\2015 practice robot\include should be -I"C:\Users\My Dell\Desktop\Eclipse Projects\2015 practice robot\include".
  #3   Spotlight this post!  
Unread 06-03-2015, 22:17
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,650
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Error when building. powerpc-wrs-vxworks-g++ error

It's a common problem with linux shells - unquoted or escaped spaces separate different arguments. Just add some quotes to the first -I argument:
Quote:
Originally Posted by Herbie_3633 View Post
Code:
powerpc-wrs-vxworks-g++ -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL -I"C:\Users\My Dell\Desktop\Eclipse Projects\2015 practice robot\include" -I"C:\Program Files (x86)\FRC_Toolchain\mingw\powerpc-wrs-vxworks\wind_base\/../include/WPILib" -O0 -g3 -Wall -c -fmessage-length=0 -mcpu=603 -mstrict-align -mlongcall -MMD -MP -MF"src/robot.d" -MT"src/robot.d" -o "src/robot.o" "../src/robot.cpp"
You'll probably have to make this change in your include arguments in Eclipse.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
  #4   Spotlight this post!  
Unread 22-04-2015, 10:21
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Error when building. powerpc-wrs-vxworks-g++ error

I am having the same problem. so I added the quotes, but as soon as I build, it immediately gets overwritten. I am editing subdir.mk, am I editing it in the wrong place? I don't quite understand how eclipses compiler works.

Thanks

EDIT: I think I fixed the problem, I set the settings to not re-recreate the makefile, and it compiles without errors now.

Last edited by teslalab2 : 22-04-2015 at 14:16.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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