Open toddejohnson opened 3 years ago
Adding -fcommon
to CFLAGS in applet/Makefile fixes build issues on arm-none-eabi-gcc 11.1.0 on Arch Linux for me.
I'll spin up an Arch Linux VM, to have a more modern toolchain. In the meantime, could one of you make a PR with the CFLAGS change?
Wow @halfmanhalftaco that got it down to a one line fix. Wish I knew C like that! I dumped a PR but @halfmanhalftaco should get the credit.
I had exactly the same problem on Ubuntu 22.04.
Adding
CFLAGS += -fcommon
After line 93 in applet/Makefile
solved it.
I also had to install python2, as it's not installed by default anymore.
I'm trying to update my MD380 I hadn't updated since 2017(03a05ffbcfd3e016db78f5b550cd21d50ccc840e). Been working great! Thank you for that. I pulled to current (1453fe37d06b5f428d7919fd0670e7e427de9457) and installed the arm stuff. Possibly on a new laptop running Arch Linux. I know it isn't listed with build prep instructions but I installed the needed files:
Looks like this is python2 so it needs packages from aur for python2-pyusb
This installed:
I think there is a change in gcc as I'm seeing a bunch of multiple definition errors:
I managed to fix some of these by adding
extern uint8_t md380_menu
... to many of the errors however this doesn't fix kc_ in keyb.h. This yields undefined reference to errors which are a bit outside of my skill in Google and C. Full output is attached buildlog.txt and with my extern changes buildlog2.txt.I can happily open a PR with the changes I have for extern but that doesn't fix it. Any ideas what I need to do to get the variable defined in this "newer?" version of gcc?
edit: update python2 packages.