Bad CPU type in executable 2021

Hello everybody!
I’ve one problem with my IDE (1.8.13): any sketches that I compile give me the error that I paste at bottom. Also empty sketches.
I tried with “arduino-PR-8976-BUILD-869-macosx” version, but now it’s obsolete.
I tried also IDE 2.0, but I had the same result.
I’ve read about problems with 32 bit compatibility that were detecteds with macOS OS, and my question is… any news?

Thank you

Arduino:1.8.13 (Mac OS X), Scheda:"Fishino32, none, 120 MHz"

/private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/hardware -hardware /Users/***/Library/Arduino15/packages -tools /private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/***/Library/Arduino15/packages -built-in-libraries /private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/libraries -libraries /Users/***/Documents/Arduino/libraries -fqbn=fishino:pic32:FISHINO32:CodeCompression=none,CpuFrequency=120 -ide-version=10813 -build-path /var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/arduino_build_280098 -warnings=none -build-cache /var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/arduino_cache_333663 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.pic32-drivers-windows.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-drivers-windows/2.0.0 -prefs=runtime.tools.pic32-drivers-windows-2.0.0.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-drivers-windows/2.0.0 -prefs=runtime.tools.pic32-prog.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-prog/2.1.24-pic32gcc -prefs=runtime.tools.pic32-prog-2.1.24-pic32gcc.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-prog/2.1.24-pic32gcc -prefs=runtime.tools.pic32-tools.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-tools/1.43-pic32gcc -prefs=runtime.tools.pic32-tools-1.43-pic32gcc.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-tools/1.43-pic32gcc -prefs=runtime.tools.FishDude.path=/Users/***/Library/Arduino15/packages/fishino/tools/FishDude/1.2.2 -prefs=runtime.tools.FishDude-1.2.2.path=/Users/***/Library/Arduino15/packages/fishino/tools/FishDude/1.2.2 -verbose /var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/untitled1266325999.tmp/sketch_apr17a/sketch_apr17a.ino
/private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/hardware -hardware /Users/***/Library/Arduino15/packages -tools /private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/tools-builder -tools /private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/***/Library/Arduino15/packages -built-in-libraries /private/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/AppTranslocation/B29077A5-C40F-4EFD-90F8-3CD16813F3A2/d/Arduino.app/Contents/Java/libraries -libraries /Users/***/Documents/Arduino/libraries -fqbn=fishino:pic32:FISHINO32:CodeCompression=none,CpuFrequency=120 -ide-version=10813 -build-path /var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/arduino_build_280098 -warnings=none -build-cache /var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/arduino_cache_333663 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.pic32-drivers-windows.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-drivers-windows/2.0.0 -prefs=runtime.tools.pic32-drivers-windows-2.0.0.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-drivers-windows/2.0.0 -prefs=runtime.tools.pic32-prog.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-prog/2.1.24-pic32gcc -prefs=runtime.tools.pic32-prog-2.1.24-pic32gcc.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-prog/2.1.24-pic32gcc -prefs=runtime.tools.pic32-tools.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-tools/1.43-pic32gcc -prefs=runtime.tools.pic32-tools-1.43-pic32gcc.path=/Users/***/Library/Arduino15/packages/fishino/tools/pic32-tools/1.43-pic32gcc -prefs=runtime.tools.FishDude.path=/Users/***/Library/Arduino15/packages/fishino/tools/FishDude/1.2.2 -prefs=runtime.tools.FishDude-1.2.2.path=/Users/***/Library/Arduino15/packages/fishino/tools/FishDude/1.2.2 -verbose /var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/untitled1266325999.tmp/sketch_apr17a/sketch_apr17a.ino
Using board 'FISHINO32' from platform in folder: /Users/***/Library/Arduino15/packages/fishino/hardware/pic32/7.8.2
Using core 'pic32' from platform in folder: /Users/***/Library/Arduino15/packages/fishino/hardware/pic32/7.8.2
Detecting libraries used...
/Users/***/Library/Arduino15/packages/fishino/tools/pic32-tools/1.43-pic32gcc/bin/pic32-g++ -c -g -Os -fomit-frame-pointer -fno-exceptions -w -mno-smart-io -ffunction-sections -fdata-sections -mdebugger -Wcast-align -fno-short-double -ftoplevel-reorder -w -x c++ -E -CC -mprocessor=32MX470F512H -DF_CPU=120000000L -DARDUINO=10813 -D_BOARD_FISHINO32_ -DFISHINO32 -DFISHINO_WIFI -DARDUINO_ARCH_PIC32 -DMPIDEVER=16777998 -DMPIDE=150 -DIDE=Arduino -D_USE_USB_FOR_SERIAL_ -I/var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/arduino_build_280098/sketch -I/Users/***/Library/Arduino15/packages/fishino/hardware/pic32/7.8.2/cores/pic32 -I/Users/***/Library/Arduino15/packages/fishino/hardware/pic32/7.8.2/variants/FISHINO32 /var/folders/fg/bld92kk17mvfn4ynfkktt3gc0000gn/T/arduino_build_280098/sketch/sketch_apr17a.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
fork/exec /Users/***/Library/Arduino15/packages/fishino/tools/pic32-tools/1.43-pic32gcc/bin/pic32-g++: bad CPU type in executable
Errore durante la compilazione per la scheda Fishino32.

Please try this:

  1. Select File > New from the Arduino IDE’s menus.
  2. Select Tools > Board > Arduino AVR Boards > Arduino Uno from the Arduino IDE’s menus.
  3. Select Sketch > Verify/Compile from the Arduino IDE’s menus.

Do you still get this “bad CPU type in executable” error?

For sure this works, I did, but I’m using different board from Arduino Uno.

Yes, I understand that this is not the fix. However, it gives you clear proof about where the problem is. The problem is not in the Arduino IDE itself. It’s that the macOS toolchain of the third party Fishino32 board has not been compiled for 64 bit architecture. As you probably learned already during your research, Apple dropped support for 32 bit applications in the macOS Catalina release:

Many of the macOS toolchains used by Arduino boards platforms were updated to 64 bit in response to that, and the boards platforms authors updated the toolchain versions specified as dependencies for their project to use those updated toolchains (this is why you can compile for the Uno), but some toolchains or boards platforms that are not actively maintained were left behind by this change.

My advice is to find the home of this “Fishino32” project (I guess it’s here: https://www.fishino.it/) and check to see if there is a new version or maybe a community fork of the project that has added support. It’s very likely that you’re not the only one who has been affected by this.