Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:linux:arch_avr_gcc [2013/02/18 20:28] – [avr-gcc 4.7] alex | en:linux:arch_avr_gcc [2019/04/18 08:07] (current) – removed alex | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Arch Linux and Xmega support in avr-gcc ====== | ||
| - | avr-gcc historically has needed help with patches from time to time due to the oddball arrangement in how Atmel supports avr-gcc. | ||
| - | |||
| - | ===== avr-gcc 4.7 ===== | ||
| - | |||
| - | It seems that avr-gcc 4.7 has incorporated all of the required patches for full AVR support. | ||
| - | |||
| - | ===== avr-gcc 4.6 ===== | ||
| - | |||
| - | avr-gcc 4.6 is the same as 4.5 in that it does not support the xmega series out-of-the-box, | ||
| - | |||
| - | ===== avr-gcc 4.5 ===== | ||
| - | |||
| - | Unfortunately, | ||
| - | |||
| - | The solution is to build the three packages from older sources, apply Atmel' | ||
| - | |||
| - | The packages are currently available in the AUR here: | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | |||
| - | The packages can either be installed with an AUR helper like yaourt, or you can download and build them manually. | ||
| - | |||
| - | * {{: | ||
| - | * {{: | ||
| - | * {{: | ||
| - | |||
| - | Now, ensure the broken Arch packages are not installed: | ||
| - | |||
| - | < | ||
| - | # pacman -R avr-libc | ||
| - | # pacman -R gcc-avr | ||
| - | # pacman -R avr-gcc | ||
| - | # pacman -R binutils-avr | ||
| - | # pacman -R avr-binutils | ||
| - | </ | ||
| - | |||
| - | Finally, build and install the packages: | ||
| - | < | ||
| - | $ mkdir avr-binutils-atmel | ||
| - | $ cd avr-binutils-atmel | ||
| - | $ makepkg -sip ../ | ||
| - | $ cd .. | ||
| - | $ mkdir avr-gcc-atmel | ||
| - | $ cd avr-gcc-atmel | ||
| - | $ makepkg -sip ../ | ||
| - | $ cd .. | ||
| - | $ mkdir avr-libc-atmel | ||
| - | $ cd avr-libc-atmel | ||
| - | $ makepkg -sip ../ | ||
| - | </ | ||
| - | |||
| - | Finally, start coding for Xmega! | ||
| - | |||
| - | Note: Previously the instructions here required adding an IgnorePkg line to pacman.conf. | ||
| - | |||
| - | ===== Old PKGBUILDs ===== | ||
| - | |||
| - | * GCC 4.3.4 | ||
| - | * {{: | ||
| - | * {{: | ||
| - | * {{: | ||
| - | * GCC 4.5.3 | ||
| - | * {{: | ||
| - | * {{: | ||
| - | * {{: | ||
| - | |||
| - | ~~DISCUSSION~~ | ||