Comments (8)
Issue is due to differences in avr-gcc compiler version. Some have known regressions when it comes to generated code size and not really a QMK bug.
qmk compile --keyboard evyd13/gh80_1800 --keymap default --target production
Ψ Compiling keymap with make -r -R -f builddefs/build_keyboard.mk -s production KEYBOARD=evyd13/gh80_1800 KEYMAP=default KEYBOARD_FILESAFE=evyd13_gh80_1800 TARGET=evyd13_gh80_1800_default INTERMEDIATE_OUTPUT=.build/obj_evyd13_gh80_1800_default VERBOSE=false COLOR=true SILENT=false QMK_BIN="qmk" QMK_USERSPACE=/home/zvecr/qmk_userspace
Generating: .build/obj_evyd13_gh80_1800_default/src/info_deps.d [OK]
avr-gcc (GCC) 13.2.0
...
AVR Memory Usage
----------------
Device: atmega32u4
Program: 3964 bytes (12.1% Full)
(.text + .data + .bootloader)
Data: 155 bytes (6.1% Full)
(.data + .bss + .noinit)
BootloaderDFU.hex copied to evyd13_gh80_1800_default_bootloader.hex
File sizes:
text data bss dec hex filename
0 16024 0 16024 3e98 evyd13_gh80_1800_default.hex
0 4020 0 4020 fb4 evyd13_gh80_1800_default_bootloader.hex
0 20044 0 20044 4e4c evyd13_gh80_1800_default_production.hex
8.x has been mentioned as good, 13 as used above builds fine.
from qmk_firmware.
Should I update avr-gcc using pacman?: pacman -S avr-gcc
Or is there some other/preferred way of doing it using the QMK CLI?
from qmk_firmware.
Actually, I don't see avr-gcc listed by pacman as an installed package.
How do I set the version of avr-gcc used by QMK?
from qmk_firmware.
https://packages.msys2.org/package/mingw-w64-x86_64-avr-gcc 12.2.0
is the latest available for MSYS.
from qmk_firmware.
So how did you get QMK to compile with avr-gcc version 13.2.0 above?
from qmk_firmware.
Put simply, I don't use QMK MSYS; different Linux distributions bundle different compiler versions, and in my case, I've compiled my own copy of gcc 13.2.0 to run under Linux.
Ultimately this is outside the scope of QMK's support -- we make a best-effort attempt at getting things to work on as many operating system combinations as possible, but with the number of people we have and the numerous variations in the wild, we can't support everything. We don't have control over which version of GCC is packaged by the MSYS team, and at the moment I'd hazard a guess and say that almost nobody can build production targets under QMK MSYS.
If it's critical that you build production targets, your best bet is to figure out an alternative compilation environment such as Linux. If you can run Docker locally you can try to use the prebuilt QMK CLI container which contains an older version of GCC (in the 8.x series) which under normal circumstances should work fine. Neither of these solutions are going to be as simple to get working as QMK MSYS.
EDIT: Arch Linux has 13.2.0, for example: https://archlinux.org/packages/?sort=&q=avr&maintainer=&flagged=
from qmk_firmware.
I see. That's unfortunate.
I'll try to see if I can get it working in a Linux-based environment. Thank you for your help!
from qmk_firmware.
Related Issues (20)
- [Feature Request] MIDI 2.0 endpoint
- make failes for some values of processor in info.json HOT 4
- [Bug] Right Hand Side Split Keyboard Suspend Issue. HOT 1
- how to flash pro micro via arduino uno as isp? HOT 4
- [Help Wanted] rp2040 pio using
- Thanks for creating this great project! Consider adding Github Sponsors. HOT 1
- Trying to use my keyboard with SignalRGB HOT 5
- [Bug] qmk_firmware/./util/uf2conv.py:217: SyntaxWarning: invalid escape sequence '\s' HOT 1
- [Bug] Encoder on slave continues to trigger forever once activated HOT 11
- [Bug] via keymap compile error on macos (Apple M2 Pro) HOT 5
- [Bug] USB mode Keyboard failure HOT 1
- [Feature Request] Define the matrix scan interval to adjust key press delay HOT 2
- [Bug] Unicorne - Column mismatch on RGB matrix animations HOT 1
- [Bug] Anne Pro2 'g' key press issue HOT 9
- STM32F103 matrix pins problem HOT 2
- [Feature Request] USB feature report handling HOT 11
- [Bug] SFT_T(KC_RPRN) emits 0's when pressed HOT 1
- [Bug] Sofle `via` keymap Missing RGB Underglow Animations for Sofle RGB 2.1
- keyboard_protocol stuck at 0 after OS reboot/start on certain setups HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmk_firmware.