ATTiny10IDE icon indicating copy to clipboard operation
ATTiny10IDE copied to clipboard

Mac OS Catalina

Open akvhumbu opened this issue 4 years ago • 2 comments

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

akvhumbu avatar Oct 25 '19 23:10 akvhumbu

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 avatar Oct 26 '19 02:10 wholder

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.

wholder avatar Nov 14 '19 01:11 wholder