Skip to content

Error: unknown architecture arm64e.x1-macos #397

Description

@TechOverflow

Describe the bug

Hi, I get this error when trying to make usbboot on macOS 27:

ld: tapi error: malformed file
/Library/Developer/CommandLineTools/SDKs/MacOSX27.0.sdk/usr/lib/libSystem.B.tbd:4:20: error: unknown architecture
                   arm64e.x1-macos, arm64e.x1-maccatalyst ]
                   ^~~~~~~~~~~~~~~
 in '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [rpiboot] Error 1

When I follow the instructions to build and install libusb-1.0 yourself, upon ./configure:

checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/***/libusb-1.0.27':
configure: error: C compiler cannot create executables
See `config.log' for more details

config.log

Apple clang version 21.0.0 (clang-2100.1.1.101)
Target: arm64-apple-darwin27.0.0
Thread model: posix   
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:3531: $? = 0
configure:3520: gcc -v >&5  
Apple clang version 21.0.0 (clang-2100.1.1.101)
Target: arm64-apple-darwin27.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:3531: $? = 0
configure:3520: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3531: $? = 1
configure:3520: gcc -qversion >&5
clang: error: unknown argument '-qversion'; did you mean '--version'?
clang: error: no input files
configure:3531: $? = 1
configure:3520: gcc -version >&5
clang: error: unknown argument '-version'; did you mean '--version'?
clang: error: no input files
configure:3531: $? = 1
configure:3551: checking whether the C compiler works
configure:3573: gcc    conftest.c  >&5
ld: tapi error: malformed file
/Library/Developer/CommandLineTools/SDKs/MacOSX27.0.sdk/usr/lib/libSystem.B.tbd:4:20: error: unknown architecture
                   arm64e.x1-macos, arm64e.x1-maccatalyst ]
                   ^~~~~~~~~~~~~~~
 in '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3577: $? = 1
configure:3617: result: no  

Should I report this to https://github.com/libusb/libusb/issues instead?

Steps to reproduce the behaviour

Follow macOS installation instructions on macOS 27.

Device(s)

Raspberry Pi CM4

Compute Module IO board.

RPi official CM4 I/O board.

RPIBOOT logs

No response

Kernel logs

No response

Device UART logs

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions