Go to Post A winning robot is not a winning robot unless you have winning drivers too. You need the time to develop both. - Jim Zondag [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: 6 votes, 5.00 average. Display Modes
  #121   Spotlight this post!  
Unread 01-03-2013, 14:27
William Kunkel William Kunkel is offline
Programming Lead
AKA: Kunkel
FRC #0422 (Mech Tech Dragons)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Richmond, VA
Posts: 94
William Kunkel is an unknown quantity at this point
Re: Alternate GCC Toolchain

Does anyone know if there's support for C++11's new math functions, namely copysign()? It wasn't working for me, but that could just be on my end.
  #122   Spotlight this post!  
Unread 01-03-2013, 19:47
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Alternate GCC Toolchain

Quote:
Originally Posted by MaraschinoPanda View Post
Does anyone know if there's support for C++11's new math functions, namely copysign()? It wasn't working for me, but that could just be on my end.
There should be. Again, there used to be a bug with c++11 support, which should be fixed when I release the new packages and builds (hopefully very soon). If you can paste the errors you are getting and the output of make VERBOSE=1 I can see if you are affected by this bug and the resolution.
__________________
FRC 612 '12
USNA '16
  #123   Spotlight this post!  
Unread 01-03-2013, 22:06
codes02 codes02 is offline
Randolph aka Roxbury aka R_______
AKA: Cody Schafer
no team (Formerly: Team 11, MORT)
 
Join Date: Oct 2007
Rookie Year: 2008
Location: MA, USA
Posts: 57
codes02 is on a distinguished road
Re: Alternate GCC Toolchain

@wlmeng11 I've just built it successfully in a Ubuntu 12.04 64.

The "--64" indicates 64 bit, and I'm pretty sure it should be running /user/powerpc-wrs-vxworks/bin/powerpc-wrs-vxworks-as not /user/powerpc-wrs-vxworks/bin/as .

Are you sure you passed --target to both binutils & gcc's configure?
  #124   Spotlight this post!  
Unread 01-03-2013, 23:43
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Alternate GCC Toolchain

Quote:
Originally Posted by codes02 View Post
@wlmeng11 I've just built it successfully in a Ubuntu 12.04 64.

The "--64" indicates 64 bit, and I'm pretty sure it should be running /user/powerpc-wrs-vxworks/bin/powerpc-wrs-vxworks-as not /user/powerpc-wrs-vxworks/bin/as .

Are you sure you passed --target to both binutils & gcc's configure?
/usr/bin/powerpc-wrs-vxworks-as should be a hard link to /usr/powerpc-wrs-vxworks/bin/as

Binutils is fine - as isn't supposed to take a --64 argument AFAIK. Can you post your config.log?
__________________
FRC 612 '12
USNA '16

Last edited by rbmj : 01-03-2013 at 23:49.
  #125   Spotlight this post!  
Unread 02-03-2013, 00:07
wlmeng11's Avatar
wlmeng11 wlmeng11 is offline
Registered User
FRC #0008 (Paly Vikings)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Palo Alto
Posts: 24
wlmeng11 will become famous soon enough
Re: Alternate GCC Toolchain

Quote:
Originally Posted by codes02 View Post
@wlmeng11 I've just built it successfully in a Ubuntu 12.04 64.

The "--64" indicates 64 bit, and I'm pretty sure it should be running /user/powerpc-wrs-vxworks/bin/powerpc-wrs-vxworks-as not /user/powerpc-wrs-vxworks/bin/as .

Are you sure you passed --target to both binutils & gcc's configure?
I'm using the commands from the first post for configure.
Which version of GCC are you using and where did you get it? (official repos, PPA, or source)
  #126   Spotlight this post!  
Unread 02-03-2013, 01:13
William Kunkel William Kunkel is offline
Programming Lead
AKA: Kunkel
FRC #0422 (Mech Tech Dragons)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Richmond, VA
Posts: 94
William Kunkel is an unknown quantity at this point
Re: Alternate GCC Toolchain

The complete output of make VERBOSE=1 is as follows:
Quote:
/usr/bin/cmake -H/home/maraschinopanda/src/422-robot-2013 -B/home/maraschinopanda/src/422-robot-2013 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/maraschinopanda/src/422-robot-2013/CMakeFiles /home/maraschinopanda/src/422-robot-2013/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/maraschinopanda/src/422-robot-2013'
make -f CMakeFiles/bin/422-robot-2013.dir/build.make CMakeFiles/bin/422-robot-2013.dir/depend
make[2]: Entering directory `/home/maraschinopanda/src/422-robot-2013'
cd /home/maraschinopanda/src/422-robot-2013 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/maraschinopanda/src/422-robot-2013 /home/maraschinopanda/src/422-robot-2013 /home/maraschinopanda/src/422-robot-2013 /home/maraschinopanda/src/422-robot-2013 /home/maraschinopanda/src/422-robot-2013/CMakeFiles/bin/422-robot-2013.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/home/maraschinopanda/src/422-robot-2013'
make -f CMakeFiles/bin/422-robot-2013.dir/build.make CMakeFiles/bin/422-robot-2013.dir/build
make[2]: Entering directory `/home/maraschinopanda/src/422-robot-2013'
/usr/bin/cmake -E cmake_progress_report /home/maraschinopanda/src/422-robot-2013/CMakeFiles 20
[ 5%] Building CXX object CMakeFiles/bin/422-robot-2013.dir/Commands/CheesyDrive.cpp.obj
/usr/local/bin/powerpc-wrs-vxworks-g++ -c /home/maraschinopanda/src/422-robot-2013/Commands/CheesyDrive.cpp -o CMakeFiles/bin/422-robot-2013.dir/Commands/CheesyDrive.cpp.obj -isystem /usr/local/powerpc-wrs-vxworks/include/WPILib -mcpu=603 -mstrict-align -mlongcall -nostdlib -Wall -DCPU=PPC603 -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL
/home/maraschinopanda/src/422-robot-2013/Commands/CheesyDrive.cpp: In member function 'float CheesyDrive::truncateOutOfBounds(float)':
/home/maraschinopanda/src/422-robot-2013/Commands/CheesyDrive.cpp:113:35: error: 'copysign' was not declared in this scope
newValue = copysign( 1.0, value );
^
make[2]: *** [CMakeFiles/bin/422-robot-2013.dir/Commands/CheesyDrive.cpp.obj] Error 1
make[2]: Leaving directory `/home/maraschinopanda/src/422-robot-2013'
make[1]: *** [CMakeFiles/bin/422-robot-2013.dir/all] Error 2
make[1]: Leaving directory `/home/maraschinopanda/src/422-robot-2013'
make: *** [all] Error 2
I've not been using the binaries, by the way, so fixing them won't fix my problem. (Woo Gentoo!) But it's possible we made the same mistake. My version of GCC is 4.8.0
  #127   Spotlight this post!  
Unread 02-03-2013, 01:50
codes02 codes02 is offline
Randolph aka Roxbury aka R_______
AKA: Cody Schafer
no team (Formerly: Team 11, MORT)
 
Join Date: Oct 2007
Rookie Year: 2008
Location: MA, USA
Posts: 57
codes02 is on a distinguished road
Re: Alternate GCC Toolchain

I've been building either the gcc-master tarballs from github (ie: latest snapshot), or using the date marked snapshots from the gcc mirrors.

ie: all source, all upstream.
  #128   Spotlight this post!  
Unread 02-03-2013, 12:22
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Alternate GCC Toolchain

Quote:
Originally Posted by MaraschinoPanda View Post
The complete output of make VERBOSE=1 is as follows:


I've not been using the binaries, by the way, so fixing them won't fix my problem. (Woo Gentoo!) But it's possible we made the same mistake. My version of GCC is 4.8.0
If you go to a clean build directory and run:
Code:
$ frcmake $SRCDIR -DCMAKE_CXX_FLAGS='-std=c++11 -fpermissive'
Then it should work. The use of -fpermissive is evil, but I seem to remember it being necessary, I think with WPILib doing something that is officially deprecated in C++11...
__________________
FRC 612 '12
USNA '16

Last edited by rbmj : 02-03-2013 at 12:29.
  #129   Spotlight this post!  
Unread 02-03-2013, 15:13
wlmeng11's Avatar
wlmeng11 wlmeng11 is offline
Registered User
FRC #0008 (Paly Vikings)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Palo Alto
Posts: 24
wlmeng11 will become famous soon enough
Quote:
Originally Posted by codes02 View Post
I've been building either the gcc-master tarballs from github (ie: latest snapshot), or using the date marked snapshots from the gcc mirrors.

ie: all source, all upstream.
Are you also building all the other libraries from source? (gmp, mpfr, and mpc)
  #130   Spotlight this post!  
Unread 02-03-2013, 15:16
codes02 codes02 is offline
Randolph aka Roxbury aka R_______
AKA: Cody Schafer
no team (Formerly: Team 11, MORT)
 
Join Date: Oct 2007
Rookie Year: 2008
Location: MA, USA
Posts: 57
codes02 is on a distinguished road
Re: Alternate GCC Toolchain

@wlmeng11

yes. See the build script I use, more info in this post back on page 7:
http://www.chiefdelphi.com/forums/sh...1&postcount=86
  #131   Spotlight this post!  
Unread 04-03-2013, 07:52
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Alternate GCC Toolchain

UPDATE:

I've figured out how to get the repository to work, and I'm in the free tier for amazon s3. Thus, here's the link to a new FirstForge wiki page on how to set it up:

http://firstforge.wpi.edu/sf/wiki/do.../BinaryInstall

Currently, I only have packages for debian wheezy. I don't know if they will be binary-compatible with Ubuntu. The only binary library dependencies are libc and zlib, which are both pretty good with compatibility, bu you never know...

There's also instructions on how to build the packages here:

http://firstforge.wpi.edu/sf/wiki/do.../ManualInstall

I'll be putting more instructions on how to compile manually from source (for other distributions) on that last page. Hopefully I should finish updating soon!
__________________
FRC 612 '12
USNA '16
  #132   Spotlight this post!  
Unread 04-03-2013, 15:09
wlmeng11's Avatar
wlmeng11 wlmeng11 is offline
Registered User
FRC #0008 (Paly Vikings)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Palo Alto
Posts: 24
wlmeng11 will become famous soon enough
Quote:
Originally Posted by rbmj View Post
UPDATE:

I've figured out how to get the repository to work, and I'm in the free tier for amazon s3. Thus, here's the link to a new FirstForge wiki page on how to set it up:

http://firstforge.wpi.edu/sf/wiki/do.../BinaryInstall

Currently, I only have packages for debian wheezy. I don't know if they will be binary-compatible with Ubuntu. The only binary library dependencies are libc and zlib, which are both pretty good with compatibility, bu you never know...

There's also instructions on how to build the packages here:

http://firstforge.wpi.edu/sf/wiki/do.../ManualInstall

I'll be putting more instructions on how to compile manually from source (for other distributions) on that last page. Hopefully I should finish updating soon!
Thank you!
The PPA worked for me on Ubuntu 12.04.
  #133   Spotlight this post!  
Unread 05-03-2013, 19:02
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Alternate GCC Toolchain

The new required C++ update to WPILib has been incorporated into the git repo of WPILib and the builds have been uploaded. Let me know if you have any issues. For anyone using the repo, a standard aptitude update && aptitude upgrade should do the trick.

As always, let me know of any issues that arise.
__________________
FRC 612 '12
USNA '16
  #134   Spotlight this post!  
Unread 08-03-2013, 18:08
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: Alternate GCC Toolchain

I made a PKGBUILD for the 64-bit version of this toolchain. It is available on the AUR. If you have an AUR package installer (like yaourt), you can install it by simply doing:

Code:
yaourt -S vxworks-gcc-toolchain-bin
P.S: This is using binutils and GCC 4.8 snapshots from the 20th of January. I'm working on the i686 binary release and a source release

Alex Brinister

Last edited by AlexBrinister : 08-03-2013 at 18:11.
  #135   Spotlight this post!  
Unread 09-03-2013, 09:56
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: Alternate GCC Toolchain

Quote:
Originally Posted by AlexBrinister View Post
I made a PKGBUILD for the 64-bit version of this toolchain. It is available on the AUR. If you have an AUR package installer (like yaourt), you can install it by simply doing:

Code:
yaourt -S vxworks-gcc-toolchain-bin
P.S: This is using binutils and GCC 4.8 snapshots from the 20th of January. I'm working on the i686 binary release and a source release

Alex Brinister
Thanks! I'll update the wiki, which is finally getting semi-complete:

http://firstforge.wpi.edu/sf/go/proj..._toochain/wiki
__________________
FRC 612 '12
USNA '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 13:20.

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