-
-
Notifications
You must be signed in to change notification settings - Fork 39.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix up AVR production build target. #23190
Conversation
Hello, I'm still experiencing issues when I try to build a "production" firmware. I see errors when using
Let me know if this is unrelated and should be opened up as a separate issue. |
Seems unrelated, likely due to the compiler producing larger binaries. If you’re able to use |
Although my code is old (QMK has moved a lot of the options and other stuff to the Here is my code for reference: MaxJ345/qmk_firmware@master...MaxJ345:qmk_firmware:test |
* upstream/master: (245 commits) Attempt to fix changed files on CI workflow (qmk#23205) Bump peter-evans/create-pull-request from 5 to 6 (qmk#22995) Iron180 V2 H: correct key sizes (qmk#23214) `mntre_v3`: correct layout data (qmk#23216) Iron180 V2 S: correct ANSI Enter key sizes (qmk#23215) Workaround for uart makefile issues (qmk#23192) Normalise .editorconfig. (qmk#23186) Remove cd suggestion from new-keyboard (qmk#23194) CLI Speed improvements. (qmk#23189) Fix up AVR production build target. (qmk#23190) Fixing typos for OSAv2 and OSAv2_Topre (qmk#23161) geistmaschine/geist: enable mousekey, fix issues in default/via keymap (qmk#23187) Merge point for 2024q1 Breaking Change 2024q1 `develop` changelog. (qmk#23150) Update Atmel DFU driver assignments for dfu-programmer 1.x (qmk#23165) Merge upstream uf2conv.py changes (qmk#23163) Satisfaction75 post merge updates (qmk#23158) Ensmallification of `helix/rev3_5rows:via`. (qmk#23159) Cleanup Satisfaction75 Firmware and add new revisions (qmk#22082) cipulot/common: Fix for multiple AMUX usage (qmk#23155) ...
I'm leaving this here in case it helps anyone else having similar issues: At the time of writing, compiling bootloader or production firmware in a Windows environment is not possible due to dependency issues. MSYS2 (which is used by QMK MSYS in Windows) ships with avr-gcc version 12.2.0, which has errors when trying to run the build. A later version (e.g. 13.2.0) or older version (e.g. 8.3.0) would be necessary to build properly. See here for details. |
Downgrading avr-gcc solved this for me. At the time of writing this, avr-gcc 8.5.0 for MSYS2 is available at msys2 repo site (mingw-w64-x86_64-avr-gcc-8.5.0-1-any.pkg.tar.zst) Then you can downgrade with After this, production compiles. |
Description
Building AVR targets with embedded bootloader had make environment contamination.
This PR fixes the intended build target when building the bootloader, as well as ensuring it's correctly sequenced in a parallel build.
Types of Changes
Checklist