]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Instruct macos users to use avr-gcc@7 (#3337)
authorEvan Travers <evantravers@gmail.com>
Sun, 8 Jul 2018 00:37:37 +0000 (20:37 -0400)
committerDrashna Jaelre <drashna@live.com>
Sun, 8 Jul 2018 00:37:37 +0000 (17:37 -0700)
If you run `brew install avr-gcc`, you get a version that has
compatibility issues with LUFA. I updated the getting started guide for
osx, the qmk_install setup script, and added a section to the FAQ for
folks like me who accidentally updated avr-gcc past 7.

docs/faq_build.md
docs/getting_started_build_tools.md
util/macos_install.sh

index 2d1b91b60d8280d4144acf3cc8390902c8ece38b..7d17df0745240cf80bfcfeb612055472d455bc45 100644 (file)
@@ -104,3 +104,17 @@ brew install dfu-programmer
 brew install gcc-arm-none-eabi
 brew install avrdude
 ```
+
+### avr-gcc 8.1 and LUFA
+
+If you updated your avr-gcc to above 7 you may see errors involving LUFA. For example:
+
+`lib/lufa/LUFA/Drivers/USB/Class/Device/AudioClassDevice.h:380:5: error: 'const' attribute on function returning 'void'`
+
+For now, you need to rollback avr-gcc to 7 in brew.
+
+```
+brew uninstall --force avr-gcc
+brew install avr-gcc@7
+brew link avr-gcc@7
+```
index 45b51b2ccbfcee8ff615eb46c10f74ef4c44ab2d..c1e02d4e07273af93ba4501cbe13d01820596647 100644 (file)
@@ -56,7 +56,7 @@ If you're using [homebrew,](http://brew.sh/) you can use the following commands:
     brew tap osx-cross/avr
     brew tap PX4/homebrew-px4
     brew update
-    brew install avr-gcc
+    brew install avr-gcc@7
     brew install dfu-programmer
     brew install gcc-arm-none-eabi
     brew install avrdude
index f53f26694dba92c3face700d609954c9e65edf2f..7bfb105ecb4b0771dbb481b498f0228711094c83 100755 (executable)
@@ -22,4 +22,4 @@ fi
 brew tap osx-cross/avr
 brew tap PX4/homebrew-px4
 brew update
-brew install avr-gcc gcc-arm-none-eabi dfu-programmer avrdude
+brew install avr-gcc@7 gcc-arm-none-eabi dfu-programmer avrdude