Skip to content
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

Mac OS Catalina #7

Open
akvhumbu opened this issue Oct 25, 2019 · 2 comments
Open

Mac OS Catalina #7

akvhumbu opened this issue Oct 25, 2019 · 2 comments

Comments

@akvhumbu
Copy link

akvhumbu commented Oct 25, 2019

Hi Wayne,

I cannot build my code on my Mac that is running OS Catalina. I get the following error message:
Cannot run program "/var/folders/fm/p47rf71d2351863c_dtvkhg80000gn/T/avr-toolchain/bin/avr-g++": error=86, Bad CPU type in executable
Is it due to the bitness of the new OS vs the program? Do you have any work around for this?
On a different issue, I would like the ability to include external libraries into my programs while using the IDE.

Regards,
Tony

@wholder
Copy link
Owner

wholder commented Oct 26, 2019

Thanks for bringing this to my attention. I haven't yet updated to Catalina, so I was unaware of the issue until you pointed it out. I based ATTiny10IDE on the same AVR toolchain previously used by Arduino. But, it appears that the latest Mac Arduino version (1.8.10) has update to a 64 bit version of the toolchain to fix this same issue. I tried updating ATTiny10IDE to use the same, 64 bit toolchain, but i'm getting an error message I have not seen before, so I'll need to investigate further before I can offer a fix. Please stay tuned.

I do plan to add support to allow including external libraries but, so far, I haven't had time to sort out all the issues needed to implement this. It would seem like a simple thing to add, but there are some complexities related to how ATTiny10IDE tries to automatically build function prototypes that I have to rework before I can support including external libraries.

Wayne

@wholder
Copy link
Owner

wholder commented Nov 14, 2019

Well, I've been working to fix this problem by upgrading the toolchains from 5.4.0 to 7.3.0, which is the 64 bit toolchain now used in Arduino 1.8.10. This toolchain seems to work fine to compile and link code for the attinyx5 and attinyx4 series, but the link phase always fails for the attiny10. I've posted more about the issue, here:

https://www.avrfreaks.net/forum/error-cannot-find-crtattiny10o-no-such-file-or-directory

If anyone has any insights on how I can get past this issue, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants