Skip to content

Compilation error on Mac M1 #160

@simongltr

Description

@simongltr

The commands:

./autogen.sh
./configure LDFLAGS="-v"
make

The error:

[... skipping compilation logs until the error ...]

Apple clang version 17.0.0 (clang-1700.0.13.3)
Target: arm64-apple-darwin24.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -dynamic -arch arm64 -platform_version macos 15.0.0 15.4 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -O2 -mllvm -enable-linkonceodr-outlining -o btcdeb -L/opt/local/lib -L/usr/local/lib -headerpad_max_install_names -dead_strip btcdeb-instance.o btcdeb-functions.o btcdeb-btcdeb.o -bind_at_load libbitcoin_deb.a libbitcoin.a secp256k1/.libs/libsecp256k1.a libkerl.a -lreadline -lc++ -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/17/lib/darwin/libclang_rt.osx.a
ld: warning: -bind_at_load is deprecated on macOS
ld: archive member 'libsecp256k1.la' not a mach-o file in 'libbitcoin.a'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [btcdeb] Error 1
make: *** [all-recursive] Error 1

Let me know if you need more info.

Thank you,
Simon

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