Go to Post As a team sponsor, we are more concerned with the behavior, attitude and commitment to FIRST ideals than specific performance in the competition. Some of our teams perform well, some struggle, some are in the middle. We support them all in every way we can. - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 21-01-2011, 01:42
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Wind River build environment

I finally figured out what caused all the errors. Apparently, Wind River by default enabled multiple platforms (PPC32diab, PPC32gnu, PPC603diab and PPC603gnu). If I unchecked everything except for PPC603gnu. All the wierd errors are gone. BTW, is there a document showing me what to pick on the million configurations Project Properties offered me? I used to assume if no document tells me anything, it must be okay to take the default. But apparently not for this case.
After fixing some typos in the code. I was able to compile the project almost error free. However, I still got a few errors that got me scratching my head. For example, it complained about the line: START_ROBOT_CLASS(MyRobot); with the following errors.
Code:
Logomotion_partialImage/Debug/Objects/main.o(.text+0x0): In function `FRC_userClassFactory()':
C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:347: multiple definition of `FRC_userClassFactory()'
Logomotion_partialImage/Debug/Objects/Logomotion/main.o(.text+0x0):C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:347: first defined here
Logomotion_partialImage/Debug/Objects/main.o(.text+0x134): In function `FRC_UserProgram_StartupLibraryInit':
C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:471: multiple definition of `FRC_UserProgram_StartupLibraryInit'
Logomotion_partialImage/Debug/Objects/Logomotion/main.o(.text+0x134):C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:471: first defined here
Logomotion_partialImage/Debug/Objects/main.o(.text+0x224): In function `global constructors keyed to FRC_userClassFactory()':
C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:472: multiple definition of `global constructors keyed to FRC_userClassFactory()'
Logomotion_partialImage/Debug/Objects/Logomotion/main.o(.text+0x224):C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:472: first defined here
Logomotion_partialImage/Debug/Objects/main.o(.text+0x26c): In function `global destructors keyed to FRC_userClassFactory()':
C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:473: multiple definition of `global destructors keyed to FRC_userClassFactory()'
Logomotion_partialImage/Debug/Objects/Logomotion/main.o(.text+0x26c):C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp:473: first defined here
collect2: ld returned 256 exit status
if [ ! -d "`dirname "Logomotion/Debug/Logomotion.out"`" ]; then mkdir -p "`dirname "Logomotion/Debug/Logomotion.out"`"; fi;echo "building Logomotion/Debug/Logomotion.out";rm -f "Logomotion/Debug/Logomotion.out";nmppc Logomotion_partialImage/Debug/Logomotion_partialImage.o  | tclsh C:/WindRiver/vxworks-6.3/host/resource/hutils/tcl/munch.tcl -c ppc > Logomotion/Debug/ctdt.c; ccppc -g -mcpu=603 -mstrict-align -mno-implicit-fp -mlongcall -fdollars-in-identifiers -Wall  -IC:/WindRiver/vxworks-6.3/target/h -IC:/WindRiver/vxworks-6.3/target/h/wrn/coreip -IC:/WindRiver/vxworks-6.3/target/h/WPIlib   -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL     -o Logomotion/Debug/ctdt.o -c Logomotion/Debug/ctdt.c;%l  inkerprefix% ccppc -r -nostdlib -Wl,-X -T C:/WindRiver/vxworks-6.3/target/h/tool/gnu/ldscripts/link.OUT -o "Logomotion/Debug/Logomotion.out" Logomotion/Debug/ctdt.o Logomotion_partialImage/Debug/Logomotion_partialImage.o       && if [ "0" = "1" ]; then plink "Logomotion/Debug/Logomotion.out";fi
building Logomotion/Debug/Logomotion.out
nmppc: 'Logomotion_partialImage/Debug/Logomotion_partialImage.o': No such file
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\make209613.sh: %l: command not found
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [Logomotion/Debug/Logomotion.out] Error 127
Build Failed in Project 'Logomotion' (Process Exit Value was 2):   2011-01-20 22:28:32   (Elapsed Time: 00:04)
If I commented out the line, I got the following error that it couldn't generate the out file (probably because I commented out the START_ROBOT_CLASS line:
Code:
Build Started in Project 'Logomotion':   2011-01-20 22:41:39
Generation of makefiles started.
Generation of makefiles finished (Elapsed Time: 00:00).
Platform: Wind River VxWorks 6.3
Command: make --no-print-directory BUILD_SPEC=PPC603gnu DEBUG_MODE=1 TRACE=1
Working Directory: C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/PPC603gnu
if [ ! -d "`dirname "Logomotion_partialImage/Debug/Objects/Logomotion/main.o"`" ]; then mkdir -p "`dirname "Logomotion_partialImage/Debug/Objects/Logomotion/main.o"`"; fi;echo "building Logomotion_partialImage/Debug/Objects/Logomotion/main.o"; ccppc -g -mcpu=603 -mstrict-align -mno-implicit-fp -mlongcall -ansi -Wall  -MD -MP  -IC:/WindRiver/vxworks-6.3/target/h -IC:/WindRiver/vxworks-6.3/target/h/wrn/coreip -IC:/WindRiver/vxworks-6.3/target/h/WPIlib   -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL    -o "Logomotion_partialImage/Debug/Objects/Logomotion/main.o" -c "C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp"
building Logomotion_partialImage/Debug/Objects/Logomotion/main.o
if [ ! -d "`dirname "Logomotion_partialImage/Debug/Objects/main.o"`" ]; then mkdir -p "`dirname "Logomotion_partialImage/Debug/Objects/main.o"`"; fi;echo "building Logomotion_partialImage/Debug/Objects/main.o"; ccppc -g -mcpu=603 -mstrict-align -mno-implicit-fp -mlongcall -ansi -Wall  -MD -MP  -IC:/WindRiver/vxworks-6.3/target/h -IC:/WindRiver/vxworks-6.3/target/h/wrn/coreip -IC:/WindRiver/vxworks-6.3/target/h/WPIlib   -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL    -o "Logomotion_partialImage/Debug/Objects/main.o" -c "C:/Documents and Settings/Administrator/Frc/2011/code/Logomotion/main.cpp"
building Logomotion_partialImage/Debug/Objects/main.o
if [ ! -d "`dirname "Logomotion_partialImage/Debug/Logomotion_partialImage.o"`" ]; then mkdir -p "`dirname "Logomotion_partialImage/Debug/Logomotion_partialImage.o"`"; fi;echo "building Logomotion_partialImage/Debug/Logomotion_partialImage.o"; ccppc -r -nostdlib -Wl,-X  -o "Logomotion_partialImage/Debug/Logomotion_partialImage.o" Logomotion_partialImage/Debug/Objects/Logomotion/DashboardDataFormat.o Logomotion_partialImage/Debug/Objects/Logomotion/main.o Logomotion_partialImage/Debug/Objects/main.o      && if [ "0" = "1" ]; then plink "Logomotion_partialImage/Debug/Logomotion_partialImage.o";fi
building Logomotion_partialImage/Debug/Logomotion_partialImage.o
if [ ! -d "`dirname "Logomotion/Debug/Logomotion.out"`" ]; then mkdir -p "`dirname "Logomotion/Debug/Logomotion.out"`"; fi;echo "building Logomotion/Debug/Logomotion.out";rm -f "Logomotion/Debug/Logomotion.out";nmppc Logomotion_partialImage/Debug/Logomotion_partialImage.o  | tclsh C:/WindRiver/vxworks-6.3/host/resource/hutils/tcl/munch.tcl -c ppc > Logomotion/Debug/ctdt.c; ccppc -g -mcpu=603 -mstrict-align -mno-implicit-fp -mlongcall -fdollars-in-identifiers -Wall  -IC:/WindRiver/vxworks-6.3/target/h -IC:/WindRiver/vxworks-6.3/target/h/wrn/coreip -IC:/WindRiver/vxworks-6.3/target/h/WPIlib   -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL     -o Logomotion/Debug/ctdt.o -c Logomotion/Debug/ctdt.c;%l  inkerprefix% ccppc -r -nostdlib -Wl,-X -T C:/WindRiver/vxworks-6.3/target/h/tool/gnu/ldscripts/link.OUT -o "Logomotion/Debug/Logomotion.out" Logomotion/Debug/ctdt.o Logomotion_partialImage/Debug/Logomotion_partialImage.o       && if [ "0" = "1" ]; then plink "Logomotion/Debug/Logomotion.out";fi
building Logomotion/Debug/Logomotion.out
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\make32928.sh: %l: command not found
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [Logomotion/Debug/Logomotion.out] Error 127
Build Failed in Project 'Logomotion' (Process Exit Value was 2):   2011-01-20 22:41:43   (Elapsed Time: 00:03)
Anybody understands what's going on?
__________________
Reply With Quote
 


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 12:19.

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