Skip to content

Commit f44fcfb

Browse files
aykevldeadprogram
authored andcommitted
getting-started: remove avr-gcc dependency
This dependency is no longer needed to build binaries for AVR. `avrdude` is still needed however.
1 parent e515326 commit f44fcfb

File tree

7 files changed

+4
-42
lines changed

7 files changed

+4
-42
lines changed

content/docs/reference/microcontrollers/arduino-mega1280.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ Note: the AVR backend of LLVM is still experimental so you may encounter bugs.
102102

103103
The Arduino Mega 1280 needs a few extra dependencies to work, for example, if you get an error like this:
104104

105-
```text
106-
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: cannot find -lm
107-
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: cannot find -lc
108-
collect2: error: ld returned 1 exit status
109-
```
110-
111-
Or like this:
112-
113105
```text
114106
/bin/sh: 1: avrdude: not found
115107
```

content/docs/reference/microcontrollers/arduino-mega2560.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ Note: the AVR backend of LLVM is still experimental so you may encounter bugs.
102102

103103
The Arduino Mega 2560 needs a few extra dependencies to work, for example, if you get an error like this:
104104

105-
```text
106-
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: cannot find -lm
107-
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: cannot find -lc
108-
collect2: error: ld returned 1 exit status
109-
```
110-
111-
Or like this:
112-
113105
```text
114106
/bin/sh: 1: avrdude: not found
115107
```

content/docs/reference/microcontrollers/arduino-nano.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ Note: the AVR backend of LLVM is still experimental so you may encounter bugs.
5252

5353
The Arduino Nano needs a few extra dependencies to work, for example, if you get an error like this:
5454

55-
```text
56-
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: cannot find -lm
57-
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: cannot find -lc
58-
collect2: error: ld returned 1 exit status
59-
```
60-
61-
Or like this:
62-
6355
```text
6456
/bin/sh: 1: avrdude: not found
6557
```

content/docs/reference/microcontrollers/arduino.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ Note: the AVR backend of LLVM is still experimental so you may encounter bugs.
5252

5353
The Arduino Uno needs a few extra dependencies to work, for example, if you get an error like this:
5454

55-
```text
56-
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: cannot find -lm
57-
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: cannot find -lc
58-
collect2: error: ld returned 1 exit status
59-
```
60-
61-
Or like this:
62-
6355
```text
6456
/bin/sh: 1: avrdude: not found
6557
```

content/getting-started/install/linux.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,13 @@ If you are only interested in compiling TinyGo code for ARM microcontrollers the
7070

7171
#### AVR (e.g. Arduino Uno)
7272

73-
To compile and flash TinyGo programs for AVR based processors such as the original Arduino Uno you must install some extra tools:
73+
To flash TinyGo programs for AVR based processors such as the original Arduino Uno you must install `avrdude`:
7474

7575
```shell
76-
sudo apt-get install gcc-avr
77-
sudo apt-get install avr-libc
7876
sudo apt-get install avrdude
7977
```
8078

81-
This should allow you to compile and flash TinyGo programs on an Arduino or other supported AVR-based board.
79+
This should allow you to flash TinyGo programs on an Arduino Uno or other supported AVR-based board.
8280

8381
#### You are now done with the TinyGo "Quick Install" for Ubuntu/Debian
8482

content/getting-started/install/macos.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ Some boards require a special flashing tool for that particular chip, like `open
4646

4747
#### AVR (e.g. Arduino Uno)
4848

49-
To compile and flash TinyGo programs for AVR based processors such as the original Arduino Uno you must install some extra tools:
49+
To flash TinyGo programs for AVR based processors such as the original Arduino Uno you must install `avrdude`:
5050

5151
```shell
52-
brew tap osx-cross/avr
53-
brew install avr-gcc
5452
brew install avrdude
5553
```

content/getting-started/install/windows.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,15 @@ Upgrading to the latest TinyGo version can be done via scoop with:
4444

4545
#### AVR (e.g. Arduino Uno)
4646

47-
If you want to develop code for older Arduino boards such as the Arduino Uno, you can install the dependencies required for AVR development (`avr-gcc` and `avrdude`) via Scoop:
47+
If you want to flash programs on older Arduino boards such as the Arduino Uno, you need to install the `avrdude` tool via Scoop:
4848

4949
```shell
50-
> scoop install avr-gcc
5150
> scoop install avrdude
5251
```
5352

5453
Upgrading to the latest versions can be as easy as:
5554

5655
```shell
57-
> scoop update avr-gcc
5856
> scoop update avrdude
5957
```
6058

0 commit comments

Comments
 (0)