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

stage2 compiler-rt build fails on X86_64 MacOS GitHub runners #99767

Open
tstellar opened this issue Jul 20, 2024 · 0 comments
Open

stage2 compiler-rt build fails on X86_64 MacOS GitHub runners #99767

tstellar opened this issue Jul 20, 2024 · 0 comments

Comments

@tstellar
Copy link
Collaborator

I'm trying to do release builds on the x86_64 MacOS GitHub runners, and the stage2 compiler-rt build is failing with errors like:

fatal error: /Applications/Xcode_15.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: /var/folders/80/7d6cd1d13n9by5z92zm5q2mr0000gn/T/lsan_common-429870/lsan_common-x86_64.out and /var/folders/80/7d6cd1d13n9by5z92zm5q2mr0000gn/T/lsan_common-f0ff7a/lsan_common-x86_64h.out have the same architectures (x86_64) and can't be in the same fat output file

The full log can be found here.

I am able to work around this by passing the following CMake options:

-DBOOTSTRAP_COMPILER_RT_ENABLE_IOS=OFF 
-DBOOTSTRAP_DARWIN_osx_ARCHS=x86_64  
-DBOOTSTRAP_DARWIN_osx_BUILTIN_ARCHS=x86_64

How to Reproduce

cmake -G Ninja -S llvm -B build \
    -DLLVM_RELEASE_ENABLE_PGO=OFF 
    -DLLVM_RELEASE_ENABLE_PROJECTS="clang;lld;lldb;clang-tools-extra;bolt;polly;mlir" \
    -C clang/cmake/caches/Release.cmake

ninja -C build stage2-package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants