Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wetneb opened this issue Nov 7, 2024 · 0 comments
Open

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

wetneb opened this issue Nov 7, 2024 · 0 comments

Comments

@wetneb
Copy link

wetneb commented Nov 7, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant