Open ADKaster opened 1 year ago
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
.