Hi all,
sounds like a simple question, but: How do I build GCC for Arch Linux ARM (on an ODROID-X, i.e. armv7h) from source? I need a build of gcc-libs with debug symbols enabled to track down an exception handling problem.
The first thing I tried was to clone https://github.com/archlinuxarm/PKGBUILDs/ and "cd core/gcc; makepkg -si". The md5sum for the GCC snapshot archive seems to be off, but before I investigated that further, I noticed that the package was for GCC 4.8.1 anyway, whereas I'm using 4.7.2 from the official binary repo.
So, I checked out the older revision corresponding to GCC 4.7.2. After adding "armv7h" to the "arch" line and adapting the ${_basedir}-related logic (${srcdir} isn't set yet at the top level), I got the package to start building. However, it failed with two errors, regarding LONG_MIN not being defined and the size of 'struct st' not being known (I'll post the build log ASAP).
For reference, here is the final PKGBUILD I was using (edited a bit to align it to the upstream Arch core/gcc one, but still no luck): https://gist.github.com/klickverbot/6856955
Surely there must be an easy way of actually building GCC on ARM?
Thanks in advance!
David
