Both sides previous revisionPrevious revisionNext revision | Previous revision |
build_mac [2011/08/12 16:11] – tatonka | build_mac [2012/01/03 03:29] (current) – Added info box for macports darthrake |
---|
| |
=== Solution 2 === | === Solution 2 === |
| |
| <note tip> |
| This "Solution" produces slightly bigger code (with gcc 4.6.2) compared to older gcc versions. Therefore you can not compile some l0dables. This results in errors like: |
| <code>arm-none-eabi-ld -nostartfiles -T loadable.ld -o mp0ng.elf mp0ng.o -lc -L/opt/local/arm-none-eabi/lib/ |
| arm-none-eabi-ld: mp0ng.elf section `.text' will not fit in region `sram' |
| arm-none-eabi-ld: region `sram' overflowed by 148 bytes</code> |
| </note> |
| |
* Install [[http://macports.org|MacPorts]] | * Install [[http://macports.org|MacPorts]] |
* Don't forget <code>sudo port sync</code> (port is relatively new) | * Don't forget <code>sudo port sync</code> |
* Install the port ''arm-none-eabi-gcc'': <code>sudo port install arm-none-eabi-gcc</code> There is a problem together with the newest Xcode (4D151a). The compiler has to be switched back to llvm-gcc42. See http://trac.macports.org/ticket/30731 | * Install the port ''arm-none-eabi-gcc'': <code>sudo port install arm-none-eabi-gcc</code> |
| |
=== Solution 3 === | === Solution 3 === |
| * Currently not working (at least on Lion). Less pain: MacPorts |
* Install [[http://mxcl.github.com/homebrew|Homebrew]] | * Install [[http://mxcl.github.com/homebrew|Homebrew]] |
* Import the formulae for ppl, cloog-ppl and arm-none-eabi-gcc from [[https://github.com/jpc/homebrew/tree/master/Library/Formula|here]] (overwrite the existing ppl formula, since cloog-ppl depends on the older one from this repository) | * Import (as in copy to /usr/local/Library/Formula) the formulae for cloog-ppl and arm-none-eabi-gcc from [[https://github.com/jpc/homebrew/tree/master/Library/Formula|here]] |
* Install the formula ''arm-none-eabi-gcc'': <code>brew install arm-none-eabi-gcc</code> | * Install the formula ''arm-none-eabi-gcc'': <code>brew install arm-none-eabi-gcc</code> |
| |