-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
MacOS Monterey: bad CPU type in executable #106
Comments
Asking more specifically why is HoodLoader stuck on such a old version of avr-gcc |
Maybe the board file needs an update? Does arduino use newer versions in the meantime? I just had a quick look, but I cannot see that this error comes from this repository. Does compiling for other devices work for you? |
This probably, arduino currently uses
Well the issue is that arduino doesn't offer a 64 bit version of 7 year old compiler. Yes compiling for other devices works. I know the issue, (since this is a common bs problem on macOS) but I know too little about arduino IDE board files to do anything about it. |
Another quick look the issue lies in this file: |
Thanks, that helped. @per1234 Could you please have a look? I think you have helped me packaging this, can we update it? |
I did it, have a look at the most recent release :D https://github.com/TheBlackfurGuy/dumpster-fire/releases |
Everything works wonderfully now. I'll make sure to buy you a coffee :) |
The version numbers of the However, I don't think the specific change made in https://github.com/TheBlackfurGuy/dumpster-fire/releases/download/dumpster-v3/package_NicoHood_HoodLoader2_index.json (modifying the existing HoodLoader2 2.0.5 release) is the right approach. The correct approach is to make a new release. The most concrete reason is that this will push the update out to all the existing users via the Arduino Boards Manager system, which would not happen if you only modify the existing release. In addition, it is really not good development practices to make changes to an existing release. If you don't have any changes on the platform files themselves you want to release, you could simply reuse the existing content of the 2.0.5 release, with the only change being the updated tool dependency versions. These are very significant bumps, so some validation would be a good idea. Offhand, I can't think of |
Yeah it was just a quick test to see if it even works or if gcc broke for 16u2 in the meantime. |
@per1234 Thanks for those tips! Could you help me package the zip file that must be uploaded in order to make the board manager compatible? I think we need to bump the versions via pr, tag a new release and then attach the zip files? I dont remember good how it is done. |
Here is the release procedure: Make releaseThe GitHub releases system is used because it allows attaching "assets" files to a Git tag, which is used for distribution of the release archive rather than having to check it into the repository.
Make release archiveThis is the file containing the platform release, which will be downloaded by the Arduino Boards Manager.
Make package index entryThis is the data file Arduino Boards Manager uses for platform installations and updates.
|
Specifying the link in @per1234 's comment as the "Additional boards manager URLs" resolved the error for me (noting however, that that's not why For me the error appeared when I tried to use Arduino IDE to Flash the bootloader using Arduino as ISP, on MacOS Sonoma 14.1.1 running on an M1, with the same symptoms described in this issue. |
@hraftery You are welcome :D |
Heyho, I tried to setup HoodLoader2 + HID-Project and the installation went alright but if I now try to compile an example sketch I get this error in the output log:
Compilation error: fork/exec /Users/blackfur/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++: bad CPU type in executable
The issue seems to be that avr-gcc in version 4.8.1 is not available as a x86_64 binary and thus cannot be executed on any Mac running MacOS 10.15 or higher.
Do you have any idea what I could try?
The text was updated successfully, but these errors were encountered: