Skip to content

Error building x86_64-apple-darwin-cross image with MacOS SDK 14 #63

Open
@wetneb

Description

When running

docker build -f ./cross-toolchains/docker/Dockerfile.x86_64-apple-darwin-cross \
  --build-arg MACOS_SDK_DIR=./macos-sdk \
  --build-arg MACOS_SDK_FILE="MacOSX14.sdk.tar.xz" \
  -t x86_64-apple-darwin-cross:local .

I get

...
create_symlink x86_64-apple-darwin23-wrapper arm64-apple-darwin23-xcodebuild
create_symlink x86_64-apple-darwin23-wrapper arm64e-apple-darwin23-xcodebuild


testing x86_64-apple-darwin23-clang++ -stdlib=libc++ -std=c++11 ... failed (ignored)

Skipping complex c++20 test. Requires clang >= 13.0.
testing x86_64h-apple-darwin23-clang ... works
testing x86_64h-apple-darwin23-clang++ ... In file included from /tmp/tmp.w8TDncNsxP/osxcross/oclang/test.cpp:1:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/iostream:43:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/ios:221:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__locale:18:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/mutex:191:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/allocation_guard.h:14:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/new:96:
/opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/cstdlib:144:9: error: no member named 'at_quick_exit' in the global namespace
using ::at_quick_exit _LIBCPP_USING_IF_EXISTS;
      ~~^
/opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/cstdlib:145:9: error: no member named 'quick_exit' in the global namespace
using ::quick_exit _LIBCPP_USING_IF_EXISTS;
      ~~^
2 errors generated.
failed (ignored)

testing arm64-apple-darwin23-clang ... works
testing arm64-apple-darwin23-clang++ ... In file included from /tmp/tmp.w8TDncNsxP/osxcross/oclang/test.cpp:1:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/iostream:43:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/ios:221:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__locale:18:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/mutex:191:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/allocation_guard.h:14:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/new:96:
/opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/cstdlib:144:9: error: no member named 'at_quick_exit' in the global namespace
using ::at_quick_exit _LIBCPP_USING_IF_EXISTS;
      ~~^
/opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/cstdlib:145:9: error: no member named 'quick_exit' in the global namespace
using ::quick_exit _LIBCPP_USING_IF_EXISTS;
      ~~^
2 errors generated.
failed (ignored)

testing arm64e-apple-darwin23-clang ... clang: error: invalid arch name '-arch arm64e'
failed (ignored)
testing arm64e-apple-darwin23-clang++ ... clang: error: invalid arch name '-arch arm64e'
failed (ignored)

testing x86_64-apple-darwin23-clang ... works
testing x86_64-apple-darwin23-clang++ ... In file included from /tmp/tmp.w8TDncNsxP/osxcross/oclang/test.cpp:1:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/iostream:43:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/ios:221:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__locale:18:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/mutex:191:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/allocation_guard.h:14:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
In file included from /opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/new:96:
/opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/cstdlib:144:9: error: no member named 'at_quick_exit' in the global namespace
using ::at_quick_exit _LIBCPP_USING_IF_EXISTS;
      ~~^
/opt/osxcross/bin/../SDK/MacOSX14.sdk/usr/include/c++/v1/cstdlib:145:9: error: no member named 'quick_exit' in the global namespace
using ::quick_exit _LIBCPP_USING_IF_EXISTS;
      ~~^
2 errors generated.

exiting with abnormal exit code (1)
run 'OCDEBUG=1 ./build.sh' to enable debug messages

The command '/bin/sh -c /darwin.sh' returned a non-zero code: 1

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