You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the swift:latest docker container, building a simple C++ interop project (as referenced in my forum post) fails because the definition of struct statx is not available. Looking at the glibc sources in bootlin elixir, it seems that <sys/stat.h> only includes <bits/statx.h> if __USE_GNU is defined,. That definition comes from the public define _GNU_SOURCE in <features.h>.
Without providing -D_GNU_SOURCE, I cannot build a simple project on ubuntu 22.04 (for other reasons), nor in the current latest tag of the swift docker container due to this mismatch in assumptions about what will provide the definition of struct statx.
The text was updated successfully, but these errors were encountered:
I think I figured this one out actually. For inside the container anyway :)
installing cmake from the kit ware repos installs gcc-11 as a dependency at the moment. That breaks things. Removing it and making sure to install libstdc++-10-dev lets the project get to the (probably obvious) swift errors in my example project
ref: https://forums.swift.org/t/swift-5-9-release-on-ubuntu-22-04-fails-to-build-std-module/67659/2
On the
swift:latest
docker container, building a simple C++ interop project (as referenced in my forum post) fails because the definition ofstruct statx
is not available. Looking at the glibc sources in bootlin elixir, it seems that<sys/stat.h>
only includes<bits/statx.h>
if__USE_GNU
is defined,. That definition comes from the public define_GNU_SOURCE
in<features.h>
.Without providing -D_GNU_SOURCE, I cannot build a simple project on ubuntu 22.04 (for other reasons), nor in the current latest tag of the swift docker container due to this mismatch in assumptions about what will provide the definition of
struct statx
.The text was updated successfully, but these errors were encountered: