View Single Post
  #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