Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:linux:arch_avr_gcc [2012/06/14 01:19]
alex [Arch Linux and Xmega support in avr-gcc]
en:linux:arch_avr_gcc [2019/04/18 10:07]
alex removed
Line 9: Line 9:
 ===== avr-gcc 4.6 ===== ===== avr-gcc 4.6 =====
  
-Unfortunately,​ the latest version of GCC 4.does not support Atmel chips properly out-of-the-box. ​ The only fix is to use an older version of the compiler and patch the heck out of it.  The latest compiler does not support the newer Xmega series of chips at all.  As Arch Linux only cares about version numbers, the default [[http://​www.archlinux.org/​packages/​community/​i686/​avr-gcc/​|avr-gcc packages]] are broken as they do not contain the necessary patches. ​ A [[https://​bugs.archlinux.org/​task/​25798|bug report]] exists for the issue, but it has not been properly addressed as the required versions of gcc and binutils are rather dated.  ​+avr-gcc 4.6 is the same as 4.5 in that it does not support the xmega series out-of-the-box,​ however the Atmel patches do not work with avr-gcc 4.6.  Ho hum.  Use either 4.5 or 4.7 (recommended). 
 + 
 +===== avr-gcc 4.5 ===== 
 + 
 +Unfortunately,​ the latest version of GCC 4.does not support Atmel chips properly out-of-the-box. ​ The only fix is to use an older version of the compiler and patch the heck out of it.  The latest compiler does not support the newer Xmega series of chips at all.  As Arch Linux only cares about version numbers, the default [[http://​www.archlinux.org/​packages/​community/​i686/​avr-gcc/​|avr-gcc packages]] are broken as they do not contain the necessary patches. ​ A [[https://​bugs.archlinux.org/​task/​25798|bug report]] exists for the issue, but it has not been properly addressed as the required versions of gcc and binutils are rather dated.  ​
  
 The solution is to build the three packages from older sources, apply Atmel'​s [[http://​distribute.atmel.no/​tools/​opensource/​avr-gcc/​|patches]],​ and install them under a different name so pacman does not try to '​upgrade'​ them to the broken versions in community.  ​ The solution is to build the three packages from older sources, apply Atmel'​s [[http://​distribute.atmel.no/​tools/​opensource/​avr-gcc/​|patches]],​ and install them under a different name so pacman does not try to '​upgrade'​ them to the broken versions in community.  ​
Line 64: Line 68:
     * {{:​en:​linux:​gcc-avr-4.5.3-1.pkgbuild}}     * {{:​en:​linux:​gcc-avr-4.5.3-1.pkgbuild}}
     * {{:​en:​linux:​avr-libc-1.7.1-1.pkgbuild}}     * {{:​en:​linux:​avr-libc-1.7.1-1.pkgbuild}}
- 
-~~DISCUSSION~~