Skip to content

Compilation fails on macOS machine: "ctags: bad CPU type in executable" #433

Closed as not planned
@hgrecco

Description

@hgrecco

Describe the problem

Cannot Verify/Compile even simple examples (AnalogReadSerial.ino). ctags: bad CPU type in executable in macOS with

To reproduce

Just run the any example.

Using board 'uno' from platform in folder: /Users/grecco/Library/Arduino15/packages/arduino/hardware/avr/1.8.3
Using core 'arduino' from platform in folder: /Users/grecco/Library/Arduino15/packages/arduino/hardware/avr/1.8.3
Detecting libraries used...
/Users/grecco/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/grecco/Library/Arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/Users/grecco/Library/Arduino15/packages/arduino/hardware/avr/1.8.3/variants/standard /var/folders/xj/xsrq0ml15_q98sq78466mbwr000bjr/T/arduino-sketch-ECD2946323C50FF71A5DD32C03F77EE8/sketch/AnalogReadSerial.ino.cpp -o /dev/null
Generating function prototypes...
/Users/grecco/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/grecco/Library/Arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino -I/Users/grecco/Library/Arduino15/packages/arduino/hardware/avr/1.8.3/variants/standard /var/folders/xj/xsrq0ml15_q98sq78466mbwr000bjr/T/arduino-sketch-ECD2946323C50FF71A5DD32C03F77EE8/sketch/AnalogReadSerial.ino.cpp -o /var/folders/xj/xsrq0ml15_q98sq78466mbwr000bjr/T/arduino-sketch-ECD2946323C50FF71A5DD32C03F77EE8/preproc/ctags_target_for_gcc_minus_e.cpp
/Users/grecco/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/xj/xsrq0ml15_q98sq78466mbwr000bjr/T/arduino-sketch-ECD2946323C50FF71A5DD32C03F77EE8/preproc/ctags_target_for_gcc_minus_e.cpp
Compilation error: Error: 2 UNKNOWN: fork/exec /Users/grecco/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags: bad CPU type in executable

Expected behavior

It should compile.

Arduino IDE version

2.0.0-beta.7

Operating system

macOS

Operating system version

Big Sur (11.4)

Additional context

I also have Arduino 1.8.13 installed and there it works fine. It seems to be using a different toolchain located in:

/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

architecture: armSpecific to ARM host architectureconclusion: off topicOff topic for this repositoryos: macosSpecific to macOS operating systemtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions