Skip to content

Commit 55f15e3

Browse files
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. ```
1 parent 69460b9 commit 55f15e3

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

ports/atmel-samd/README.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,20 @@ Setup
124124
-----
125125

126126
An ARM compiler is required for the build, along with the associated binary
127-
utilities. On Ubuntu, these can be installed as follows:
127+
utilities. They can be installed as follows:
128128

129-
.. code-block:: shell
129+
- Ubuntu
130+
131+
.. code-block:: shell
132+
133+
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
134+
sudo apt-get install gcc-arm-embedded
135+
136+
- Arch Linux
130137

131-
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
132-
sudo apt-get install gcc-arm-embedded
138+
.. code-block:: shell
133139
134-
On Arch Linux the compiler is available for via the package
135-
``arm-none-eabi-gcc``.
140+
sudo pacman -S arm-none-eabi-gcc arm-none-eabi-newlib
136141
137142
For other systems, the `GNU Arm Embedded Toolchain <https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads>`_
138143
may be available in binary form.

0 commit comments

Comments
 (0)