-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Cannot build Swift compiler due to error: 'swift/shims/Visibility.h' file not found #79024
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
Comments
You don't need that, I see that there is a Why add the symbolic link in your installed toolchain and clone swift-syntax separately? Neither will cause this failure, just asking what those changes are for. Ninja dumps out the full compilation command and error on build failure: it would help if you posted that here or on a github gist so we can examine it. |
Oh, great!
The symbolic link regarding ncurses is because openSUSE does not package I'm not sure why I cloned swift-syntax separately because
oops! it's Full compilation command
If you need more of the log I'll have to run the build again. |
It would help to know when, this seems like a bug.
Could be, I don't think subsequent runs will check out repos again unless some flag is added to force it.
It appears it is looking for that file at |
Installation steps for swift-6.0.3 on openSUSEInstall the dependencies using mkdir -p ~/Applications && cd ~/Applications
wget https://download.swift.org/swift-6.0.3-release/amazonlinux2/swift-6.0.3-RELEASE/swift-6.0.3-RELEASE-amazonlinux2.tar.gz
tar xzf swift-6.0.3-RELEASE-amazonlinux2.tar.gz
cat <<EOF >>~/.bashrc
export PATH="$HOME/Applications/swift-6.0.3-RELEASE-amazonlinux2/usr/bin:${PATH}"
EOF I am building with |
Yes, removing the Swiftly toolchain and using the AL2 toolchain directly from the tarball allowed Swift to be built. |
Uh oh!
There was an error while loading. Please reload this page.
Description
When building
swift-6.0.3-RELEASE
on openSUSE Tumbleweed, I get:Attempting to run
does not seem to add the specified compiler flags to the command line.
When running with
-j 1
, you can see that it occurs whileand results in
Reproduction
utils/build-script --release-debuginfo --extra-cmake-options="-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" -j 4
Expected behavior
The Swift compiler builds, and Visibility.h is on the include path.
Environment
The host Swift toolchain was installed from the Amazon Linux 2 binaries onto an openSUSE Tumbleweed system, using the following commands:
The Swift sources were retrieved using:
Additional information
In order to reproduce this on Tumbleweed, you will need to additionally install Swift's dependencies:
sudo zypper install binutils binutils-gold gcc git gzip glibc-static libbsd-devel libedit libedit-devel libicu-devel libstdc++-devel pkg-config python2 sqlite sudo zypper in \ cmake \ libcurl-devel \ curl \ gcc gcc-c++ \ git \ glibc-devel \ libstdc++-devel \ libbsd-devel \ libedit-devel \ libicu-devel \ libuuid-devel \ libxml2-devel \ ncurses-devel \ ninja \ python313-pexpect \ pkgconfig \ python313-pkgconfig \ python313-six \ python313-pip \ python313-devel \ python313-psutil \ rsync \ sqlite-devel \ swig \ python313-tzdata \ unzip \ uuid-devel \ wget \ which \ zip \ chrpath sudo ln -s /usr/lib64/libncurses.so /usr/lib64/libcurses.so
The text was updated successfully, but these errors were encountered: