Skip to content

PlatformIO Build error on macOS Intel, Bad CPU type in executable #100

@donly

Description

@donly

It works very well on Apple Silicon.

And I found the issue maybe caused by the toolchain-riscv.

otool -hv ~/.platformio/packages/toolchain-riscv/bin/riscv-wch-elf-g++
/Users/donly/.platformio/packages/toolchain-riscv/bin/riscv-wch-elf-g++:
Mach header
      magic  cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64    ARM64        ALL  0x00     EXECUTE    20       2000   NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES
 BINDS_TO_WEAK PIE

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions