Skip to content

Unable to build on M1 Mac #8797

Description

@JasonInOttawa

I'm trying to build on an M1 Mac but am getting the following error. I was hoping someone could point me at a possible fix.

------------------------------
** Build for Mac OS X 10.11 **
------------------------------
ld: warning: ignoring file /Users/jason/koreader/base/thirdparty/openssl/build/arm64-apple-darwin21.3.0/openssl-prefix/src/openssl/libssl.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /Users/jason/koreader/base/thirdparty/openssl/build/arm64-apple-darwin21.3.0/openssl-prefix/src/openssl/libcrypto.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
[100%] Completed 'luasec'
[100%] Built target luasec
install_name_tool -change \
		`otool -L "build/arm64-apple-darwin21.3.0/common/ssl.so" | grep "libcrypto.1.1.dylib " | awk '{print $1}'` \
		libs/libcrypto.1.1.dylib \
		build/arm64-apple-darwin21.3.0/common/ssl.so
Usage: /Library/Developer/CommandLineTools/usr/bin/install_name_tool [-change old new] ... [-rpath old new] ... [-add_rpath new] ... [-delete_rpath old] ... [-id name] input
make[1]: *** [build/arm64-apple-darwin21.3.0/common/ssl] Error 1
make: *** [base/build/arm64-apple-darwin21.3.0/luajit] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    help-wantedWe'd like help with this issue

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions