aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/faq_build.md14
-rw-r--r--docs/getting_started_build_tools.md2
-rwxr-xr-xutil/macos_install.sh2
3 files changed, 16 insertions, 2 deletions
diff --git a/docs/faq_build.md b/docs/faq_build.md
index 2d1b91b60..7d17df074 100644
--- a/docs/faq_build.md
+++ b/docs/faq_build.md
@@ -104,3 +104,17 @@ brew install dfu-programmer
104brew install gcc-arm-none-eabi 104brew install gcc-arm-none-eabi
105brew install avrdude 105brew install avrdude
106``` 106```
107
108### avr-gcc 8.1 and LUFA
109
110If you updated your avr-gcc to above 7 you may see errors involving LUFA. For example:
111
112`lib/lufa/LUFA/Drivers/USB/Class/Device/AudioClassDevice.h:380:5: error: 'const' attribute on function returning 'void'`
113
114For now, you need to rollback avr-gcc to 7 in brew.
115
116```
117brew uninstall --force avr-gcc
118brew install avr-gcc@7
119brew link avr-gcc@7
120```
diff --git a/docs/getting_started_build_tools.md b/docs/getting_started_build_tools.md
index 45b51b2cc..c1e02d4e0 100644
--- a/docs/getting_started_build_tools.md
+++ b/docs/getting_started_build_tools.md
@@ -56,7 +56,7 @@ If you're using [homebrew,](http://brew.sh/) you can use the following commands:
56 brew tap osx-cross/avr 56 brew tap osx-cross/avr
57 brew tap PX4/homebrew-px4 57 brew tap PX4/homebrew-px4
58 brew update 58 brew update
59 brew install avr-gcc 59 brew install avr-gcc@7
60 brew install dfu-programmer 60 brew install dfu-programmer
61 brew install gcc-arm-none-eabi 61 brew install gcc-arm-none-eabi
62 brew install avrdude 62 brew install avrdude
diff --git a/util/macos_install.sh b/util/macos_install.sh
index f53f26694..7bfb105ec 100755
--- a/util/macos_install.sh
+++ b/util/macos_install.sh
@@ -22,4 +22,4 @@ fi
22brew tap osx-cross/avr 22brew tap osx-cross/avr
23brew tap PX4/homebrew-px4 23brew tap PX4/homebrew-px4
24brew update 24brew update
25brew install avr-gcc gcc-arm-none-eabi dfu-programmer avrdude 25brew install avr-gcc@7 gcc-arm-none-eabi dfu-programmer avrdude