Toolchain » History » Version 8
tsaitgaist, 02/19/2016 10:49 PM
gcc 4.8 bug
1 | 1 | tsaitgaist | To compile osmocomBB or SIMtrace for the target we need a GNU Toolchain for ARM. |
---|---|---|---|
2 | There are various pre-compiled toolchains available but not all of them will produce working firmware. |
||
3 | We will try to support all these configurations but it might take a while to identify the source of a problem. |
||
4 | |||
5 | 5 | tsaitgaist | If you have persistent errors when compiling, try using a different package. |
6 | |||
7 | 8 | tsaitgaist | '''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. |
8 | 1 | tsaitgaist | |
9 | 6 | tsaitgaist | === Build one from source === |
10 | 1 | tsaitgaist | |
11 | 6 | tsaitgaist | If you want to build your own toolchain, known to be working with OsmocomBB, see here: [wiki:GnuArmToolchain]. |
12 | 1 | tsaitgaist | |
13 | 6 | tsaitgaist | This is the best option to get a fairly recent GCC, and this is the option used by several Osmocom-BB developers. |
14 | |||
15 | 2 | tsaitgaist | === Ubuntu packages === |
16 | 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 |
||
17 | 6 | tsaitgaist | |
18 | 2 | tsaitgaist | {{{ |
19 | 1 | tsaitgaist | sudo add-apt-repository ppa:bdrung/bsprak |
20 | 4 | tsaitgaist | sudo apt-get update |
21 | 1 | tsaitgaist | sudo apt-get install arm-elf-toolchain |
22 | }}} |
||
23 | 6 | tsaitgaist | |
24 | (FIXME: Should be rechecked, the information might be outdated) |
||
25 | |||
26 | 1 | tsaitgaist | |
27 | === Mac OS X === |
||
28 | |||
29 | 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. |
||
30 | If you omit the links, there will be unresolvable references to symbols in the libraries. |