diff options
| author | Anthony DiGirolamo <anthony.digirolamo@gmail.com> | 2019-07-04 11:14:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-04 11:14:50 -0700 |
| commit | 55f15e3c056f3653415e0d8f3752a33e50abd3c4 (patch) | |
| tree | 3301ce85b44852f51ce27b98ca5680d225066eef | |
| parent | 69460b943b9c89693bb61bbb0c0ec74be26adb3b (diff) | |
Update Arch Linux ARM compiler installation instructions
- Add copy-pasteable Arch Linux `arm-none-eabi-gcc` install line similar to Ubuntu example
- Add `arm-none-eabi-newlib` as a required package for Arch
- Reformat Ubuntu and Arch install code-blocks to catch the eye for the impatient
Arch Linux changed their packaging for [arm-none-eabi-gcc](https://www.archlinux.org/packages/community/x86_64/arm-none-eabi-gcc/) by creating [arm-none-eabi-newlib](https://www.archlinux.org/packages/community/any/arm-none-eabi-newlib/) as an optional package. Without it users will get errors about missing header files like:
```
In file included from asf4/samd51/include/samd51j19a.h:49,
from asf4/samd51/include/sam.h:38,
from ./mpconfigport.h:31,
from ../../py/mpconfig.h:45,
from ../../py/emitnx64.c:3:
/usr/lib/gcc/arm-none-eabi/9.1.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
9 | # include_next <stdint.h>
| ^~~~~~~~~~
compilation terminated.
```
| -rw-r--r-- | ports/atmel-samd/README.rst | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/ports/atmel-samd/README.rst b/ports/atmel-samd/README.rst index 167373b26..9afa19b83 100644 --- a/ports/atmel-samd/README.rst +++ b/ports/atmel-samd/README.rst @@ -124,15 +124,20 @@ Setup ----- An ARM compiler is required for the build, along with the associated binary -utilities. On Ubuntu, these can be installed as follows: +utilities. They can be installed as follows: -.. code-block:: shell +- Ubuntu + + .. code-block:: shell + + sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa + sudo apt-get install gcc-arm-embedded + +- Arch Linux - sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa - sudo apt-get install gcc-arm-embedded + .. code-block:: shell -On Arch Linux the compiler is available for via the package -``arm-none-eabi-gcc``. + sudo pacman -S arm-none-eabi-gcc arm-none-eabi-newlib For other systems, the `GNU Arm Embedded Toolchain <https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads>`_ may be available in binary form. |
