Skip to content

Arduino IDE no longer compiles on macOS 10.15 Catalina #8974

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

Closed
colinta opened this issue Jun 13, 2019 · 17 comments
Closed

Arduino IDE no longer compiles on macOS 10.15 Catalina #8974

colinta opened this issue Jun 13, 2019 · 17 comments
Labels
32bit Deprecation Starting with macOS 10.15, 32-bit applications will not be supported OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE Type: Bug

Comments

@colinta
Copy link

colinta commented Jun 13, 2019

Very sad! macOS no longer supports 32bit binaries. I deleted my copy of Arduino IDE and reinstalled the latest version, and the error message is `.../avr/bin/avr-g++: bad CPU type in executable``

@per1234 per1234 added 32bit Deprecation Starting with macOS 10.15, 32-bit applications will not be supported Type: Bug labels Jun 13, 2019
@facchinm
Copy link
Member

@colinta , we are working on it, there will be a beta release with only 64 bits tools soon but not too soon (10.15 is still in dev preview)

@per1234 per1234 added the OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE label Jun 14, 2019
@donev77
Copy link

donev77 commented Jun 14, 2019

1.9 beta works on Catalina, tested on nodemcu ESP-12E

@colinta
Copy link
Author

colinta commented Jun 14, 2019 via email

@per1234
Copy link
Collaborator

per1234 commented Jun 14, 2019

This isn't really about the Arduino IDE. It's about the toolchain. The ESP8266 core for Arduino uses a different toolchain, which apparently is 64 bit. That's great, but not relevant here because the ESP8266 core for Arduino is a 3rd party project.

If you use the beta build of the Arduino IDE to compile for one of the AVR boards like Arduino/Genuino Uno then you'll get the same "bad CPU type in executable" error.

@ttimpe
Copy link

ttimpe commented Jun 15, 2019

Why is this even still 32-Bit? 64-Bit has been standard for a decade.

@gvarisco
Copy link
Contributor

@colinta hi! could you please give build 865 a try? You can download it from #8976

@colinta
Copy link
Author

colinta commented Jun 16, 2019

In the latest macOS it won't let me open the app from an undientified developer, even if I override it in Security settings! Could be a bug, there are quite a few bugs in this beta version of macOS 10.15.

@gvarisco
Copy link
Contributor

gvarisco commented Jun 16, 2019

@colinta could you please confirm that Gatekeeper is activated on your system? What is the output of spctl --status?

Indeed, we do not codesign that bundle at the moment for test builds, but in case it becomes mandatory we may have to change this behaviour and update our build scripts.

@colinta
Copy link
Author

colinta commented Jun 17, 2019

spctl --status
assessments enabled
...
sudo spctl --master-disable

And now I can run the IDE, so thanks for that heads up. And my project compiled! I had new errors that I didn't have in the prev IDE (around assigning &PORTB as a uint8_t* instead of volatile uint8_t*), but all good after that! I haven't tried to actually flash my project yet; it's my keyboard and I want to test a quick blink project first.

@colinta
Copy link
Author

colinta commented Jun 17, 2019

In the interest of cleaning up, I'll close this issue, if I have more problems I'll let you know! Thanks for all the help, and everyone's work on the Arduino IDE in general.

@colinta colinta closed this as completed Jun 17, 2019
@gvarisco
Copy link
Contributor

Thanks for the feedback. Still, we want it to be fully working with GateKeeper turned ON, thus we'll make sure everything works as expected and without hacks before GA ships. /cc @facchinm

@joztoz
Copy link

joztoz commented Jul 14, 2019

I still cant compile, still same bad cpu. tried all whats here mentioned and without success, please can you help me what I forgot install or disable/enable?
Thank you

@per1234
Copy link
Collaborator

per1234 commented Jul 14, 2019

@joztoz please post the full error message here, including the path.

@joztoz
Copy link

joztoz commented Jul 15, 2019

finally find a solution, I had to put avr files to /Users/jozefziak/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5

but had to do it manually. Now its working fine, I take avr files from arduino 865 package :)

@jakorten
Copy link

jakorten commented Oct 17, 2019

@joztoz: works really well indeed. In your console you can see one's one entire folder. I had to remove (archive) the older version though.

Still issues with avrdude though.

@CallmeSk
Copy link

Same here 'bad cpu type error' while programming NodeMCUESP82466 with macOS Catalina.

@ghost
Copy link

ghost commented Feb 2, 2020

https://youtu.be/xv1e6ZOBVfA <-- quick solve for DigiSpark ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
32bit Deprecation Starting with macOS 10.15, 32-bit applications will not be supported OS: OSX Specific to the Mac OS X (macOS) version of the Arduino IDE Type: Bug
Projects
None yet
Development

No branches or pull requests

9 participants