![]() |
GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Has anybody been able to successfully build a GCC 4.9 toolchain for the roboRIO? I've been looking into it, but I don't have any hardware, so I was wondering if any of the beta teams had had any success as of yet.
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
I have already successfully used 4.8.3 with it. 4.9 shouldn't be that hard.
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
I have never cross-compiled before, so I am a newbie. When you use GCC and try to compile an application for another platform like the PPC in the cRIO, do you still have access to the full C++ STL library? Also, are there some libraries like pthread available?
I have the GNU GCC compiler to cross-compile for the RasPi, but I don't know if it will compile my application, which uses pthread and libx11. Thanks! |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
One of my eventual goals is to set up Clang as well. |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
We are currently updating our toolchain for GCC 4.9, which will (hopefully, almost positive) be the official C++ compiler for 2015. Its not yet done (I'm actually waiting for GCC to compile on launchpad as I type this), but we are hoping to let some beta teams test it soon (week or so?).
Quote:
Quote:
Shameless plug: Anyone interested in maintaining arm-linux-gnueabi packages for non .deb-based linux should contact me. If the given platform already has binutils 2.24 and gcc 4.9.1, you only need to package the header files and so libs. |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
EDIT: Also is there a preview version of wpilib i could be using? |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
Quote:
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
You should be able to use the Linaro GCC 4.9 toolchain on a Linux box. I'm using it now for my other ARM platforms on my Linux Mint 17 box.
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
I'm still planning on rolling my own toolchain, but for the information of others I just found someone building Debian/Ubuntu packages here.
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
While this might not be exactly what you are looking for, NI has a full openembedded build system set up as well as their fork of the linux kernel on their github here: https://github.com/ni
There are a couple of other cool things on their github as well if you look around. |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
Also if you are a beta tester and you haven't heard of this yet: we are rolling this out slowly due to the large breakage this could cause. Don't panic. |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Excuse me for this extremely newbie question:
Just a couple days ago, I made an ARM cross compiler for my RasPi. They both are ARM based, so right away, it seems as though the RPi executables will be compatible with the cRIO. However, aren't there differences in the machine code between the different subsets of ARM? Would they prevent my executables from running? Thanks! I'm quite new to cross-compiling. I want to have a cross compiler ready for the RoboRIO so I can push my software as soon as possible! |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
It would be insanely useless due to Rust's lack of c++ interop at the current moment, so WPILib wouldn't work, but it would still be a fun project. EDIT: Actually, with existing toolchains, this might not be all that hard. See ya on the flipside, I'm going in. EDIT 2: @Patrick:
EDIT 3: Homebrew formulae for OSX folks. https://github.com/mcoffin/homebrew-frc EDIT 4: Is there a way to make it so I don't have to pass the -B option at runtime to the compile to get it to use the correct binutils instead of my system binutils? EDIT 5: Rust compiler added to homebrew formulae. |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Anyone know if we can get the project files or options NI/WPI used to configure the busybox build? Might be nice to build a new version and add some features here and there.
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
|
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
linux headers and libc6 are from my download script in https://bitbucket.org/byteit101/tool...ilder/src/tip/ Also please update the homebrew formula with my latest updates on the mac folder in the above link. Not sure about the B, but my sources work without that. If you get the headers and libc and gdb all mirroring my mac folder, we might be able to make it official. (Note: I am not the Mouth of Sauron) Also not Mouth of Sauron: Beta teams should be expecting 4.9 to land sometime early next week if all goes well. Currently migrating our jenkins server to use 4.9. |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
Updating now (spend the whole day skydiving). Note that the rust build is currently broken as GYP doesn't correctly detect non-clang compilers on OSX when passed with just the CC environment variable. Looking at workarounds now. |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
1 Attachment(s)
Well, it took many acts of god, but I've gotten the Rust compiler seemingly operational. Now, I don't have any hardware yet (I'm looking for accommodations), but here's an executable that should print "Hello FRC!" for the brave. It would be nice to hear whether it works or not. I've included source, but until I come up with a nice way to build the rust toolchain (I was interrupting the build and calling some targets manually) then I won't bother writing up a guide on how to do so.
A zip file with the source of the executable (and the executable itself so you don't have to build the toolchain) is attached. |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
Code:
roboRIO:/tmp# ./frc_user_program |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
Great great great news. I'm going to start looking for hardware I can play around with. EDIT: I'm getting pretty darn excited by the possibilities with this. |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/patrick/code/frc-rust/lib bin/rustc --target=arm-unknown-linux-gnueabi -C linker=arm-frc-linux-gnueabi-g++ test.rs I did go to the WPI ACM's language lab and ran all the rust code on the RoboRIO. Haven't encountered any errors so far... |
Re: GCC 4.9 arm-nilrt-linux-gnueabi toolchain
Quote:
EDIT: Also for some reason the cross compiler envirionment varibales weren't getting passed correctly to GYP. https://github.com/rust-lang/rust/pull/17449 EDIT 2: You need not have multiple rustc installations for all your toolchains, just build one with all your targets, then pass --target at runtime when not building for your host. So you can install frc-rust as just rustc under /usr/local if you want. |
| All times are GMT -5. The time now is 03:52. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi