A recent C++ Interop pull for libswift in the Swift compiler appears to have broken bootstrapping for libc++ platforms like Android #60272
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Describe the bug
Since #58699, I get LLVM module import errors, apparently because of the recent inclusion of those LLVM modules, 5768aeb:
I tried adding an
#include <bits/pthread_types.h>
inllvm-project/llvm/include/llvm/Support/thread.h
or inSwiftGlibc.h
: neither made a difference, with the same note/data/data/com.termux/files/usr/include/bits/pthread_types.h:104:14: note: declaration here is not visible
. Why isn't it visible? Who knows.Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
For libswift to keep building as before.
Environment
Additional context
@3405691582 reported similar issues on OpenBSD, likely because it also uses libc++, llvm/llvm-project#56362. OTOH, this change appears to work on macOS with libc++? Reverting #58699 fixed this issue with the July 6 source snapshot, but after subsequent C++ interop pulls for libswift, only turning bootstrapping the compiler off with
--bootstrapping=off
works around the problem with the latest July 25 source snapshot.@egorzhdan, let me know if there's anything I should try.
The text was updated successfully, but these errors were encountered: