diff options
| -rw-r--r-- | docs/faq_build.md | 14 | ||||
| -rw-r--r-- | docs/getting_started_build_tools.md | 2 | ||||
| -rwxr-xr-x | util/macos_install.sh | 2 |
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 | |||
| 104 | brew install gcc-arm-none-eabi | 104 | brew install gcc-arm-none-eabi |
| 105 | brew install avrdude | 105 | brew install avrdude |
| 106 | ``` | 106 | ``` |
| 107 | |||
| 108 | ### avr-gcc 8.1 and LUFA | ||
| 109 | |||
| 110 | If 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 | |||
| 114 | For now, you need to rollback avr-gcc to 7 in brew. | ||
| 115 | |||
| 116 | ``` | ||
| 117 | brew uninstall --force avr-gcc | ||
| 118 | brew install avr-gcc@7 | ||
| 119 | brew 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 | |||
| 22 | brew tap osx-cross/avr | 22 | brew tap osx-cross/avr |
| 23 | brew tap PX4/homebrew-px4 | 23 | brew tap PX4/homebrew-px4 |
| 24 | brew update | 24 | brew update |
| 25 | brew install avr-gcc gcc-arm-none-eabi dfu-programmer avrdude | 25 | brew install avr-gcc@7 gcc-arm-none-eabi dfu-programmer avrdude |
