(no title)
warsheep | 12 years ago
There might be even stronger reasons to not use cross-compilers such as weird bugs or compiler version compatibility issues.
warsheep | 12 years ago
There might be even stronger reasons to not use cross-compilers such as weird bugs or compiler version compatibility issues.
pjc50|12 years ago
Many Pi users' only linux system is the Pi.
joezydeco|12 years ago
[EDIT] Vendors do this too. I went to a workshop on the Freescale i.MX line and guess how everyone got the development system? A VMware image on a thumb drive. You don't have to be a hero when it comes to cross-compiling, just get the work done.
ihnorton|12 years ago
Building GCC shouldn't take more than a couple hours on a modern machine, and it's a one-time cost for a drastic speedup of every subsequent RPi build. So the aggregate time should still be considerably less than 12 hours.
captainmuon|12 years ago
Couldn't somebody build a full cross-compiler toolchain as "relocatable" binaries, depending on an older kernel, and then just offer that as a binary download to run on most recent distributions? It's not a typical way to distribute a linux application, but it should work in principle.
sarnowski|12 years ago
[0] http://www.linuxfromscratch.org/lfs/view/stable/
raverbashing|12 years ago
Your GCC build has to match the userspace C library (uclibc or other). If it doesn't you'll need to do all the path passing and usually link manually as well.
It has also to match the kernel somewhat (not so critical for userspace apps, but if you want to add a module or something it's critical)
So, basically what you "should do" is build the whole system together (cross-compiler + userspace + kernel), some tools do that, building first a "raw" cross-compiler, then the C library and kernel, then a full compiler with all the options applied.
code4life|12 years ago
http://www.airs.com/blog/archives/492
jevinskie|12 years ago
[0]: http://crosstool-ng.org/
[1]: https://bitbucket.org/GregorR/musl-cross
Crito|12 years ago
It tends to only be worth it if you are going to be using it more than a few times.
astrodust|12 years ago
raverbashing|12 years ago
Yes, I agree 100%, building a cross-compiler is a very complicated task.
But I think with the weight of the Raspberry Pi projects this should have been easier. This is a good project http://buildroot.uclibc.org but unfortunately it's very unstable.