avr-g++: bad CPU type in executable

Gielk:
Solution is download the latest build here Mass update bundled resources by facchinm · Pull Request #8976 · arduino/Arduino · GitHub

voor mac hier http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-8976-BUILD-869-macosx.zip

can you please tell me how to download it from github?? I went to the link but what am I supposed to do after that??

I'm running IDE 1.8.13 on MacOS 10.15.7 and this is still an issue for me for the Intel Galileo (rev2) board. For the basic template sketch I get:

fork/exec /Users/dad/Library/Arduino15/packages/Intel/tools/i586-poky-linux-uclibc/1.6.2+1.0/i586/pokysdk/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++: bad CPU type in executable
Error compiling for board Intel® Galileo Gen2.

If I select the Uno board instead, the compile is clean. Could it be the files for the Galileo board have not been updated to 64b?

Thx.

Yeah, I think that must be the problem. Unfortunately, Intel discontinued this board years ago and abandoned the development and maintenance of the Arduino boards platform. So I don't think you have any hope of an official fix for this. Of courser, you're welcome to try to get Intel to support their product. The repository is here:

I see this:

If you have found a bug, or you believe a new feature should be added, please use the Github issue tracker (click "Issues" above)

But then they have disabled the issue tracker, so there is no "Issues" to click!

More productive might be to see whether the open source community has a solution for you. Someone might have created an unofficial fork with the toolchain compiled for 64 bit macOS. You also might find the 64 bit toolchain and be able to replace the 32 bit version on your computer. Or perhaps you'll find instructions for how to compile it yourself. Apple now requires notarization of programs using an Apple developer ID certificate, which you can only get by paying Apple $99/year, but there's a good chance that it's possible for the user to circumvent this notarization requirement. I don't know anything about the Galileo, but it's likely these tools are not Arduino-specific, so if you're not finding much in your search, try omitting the "arduino" and "galileo" keywords from the search, as they may be preventing useful search results related to the toolchain as it is used not related to the Arduino Galieo board