wiki:toolchain

To compile osmocomBB or SIMtrace for the target we need a GNU Toolchain for ARM. There are various pre-compiled toolchains available but not all of them will produce working firmware. We will try to support all these configurations but it might take a while to identify the source of a problem.

If you have persistent errors when compiling, try using a different package.

note: as of 2013-10-20, if you use a toolchain with gcc >=4.8, the firmware can be compiled, but will hang as soon as you want to sync to an ARFCN. This issue has been fixed in master.

Build one from source

If you want to build your own toolchain, known to be working with OsmocomBB, see here: GnuArmToolchain.

This is the best option to get a fairly recent GCC, and this is the option used by several Osmocom-BB developers.

Ubuntu packages

gnuarm packages from following ppa are known to work on ubuntu 10.10 to build osmocom-bb. They are known not to work for SIMtrace

sudo add-apt-repository ppa:bdrung/bsprak
sudo apt-get update
sudo apt-get install arm-elf-toolchain

(FIXME: Should be rechecked, the information might be outdated)

Mac OS X

Apparently the arm-elf-gcc 4.3.2 from ports for mac os x can compile the sourcecode as well after symlinking /opt/local/bin/arm-elf-ranlib to /opt/local/bin/arm-elf-linux-ranlib and /opt/local/bin/arm-elf-strip to /opt/local/bin/arm-elf-linux-strip. If you omit the links, there will be unresolvable references to symbols in the libraries.

Last modified 4 months ago Last modified on Dec 30, 2013, 3:40:02 AM
{"cc_re__cc_re__cc_by_sa_3_0": ["id=\"tracpowered\" href=\"http://trac.edgewall.org/\"><img src=\"/trac/chrome/common/trac_logo_mini.png\" height=\"30\" width=\"107\" alt=\"Trac Powered\" /></a>\n      <p class=\"left\">Powered by <a href=\"/trac/about\"><strong>Trac 1.0.1</strong></a><br />\n        By <a href=\"http://www.edgewall.org/\">Edgewall Software</a>.</p>\n      <p class=\"right\">Visit the Trac open source project at<br /><a href=\"http://trac.edgewall.org/\">http://trac.edgewall.org/</a></p>\n    </div>\n    <div id=\"sitefooter\">\n\t<center>\n\t<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by-sa/3.0/88x31.png\" /></a>\n\t</center>\n    </div>\n  </body>\n</html>"]}