-
Notifications
You must be signed in to change notification settings - Fork 301
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
Fails to compile on Fedora 39 with Swift 5.8.1 (From repos) or official 5.9 binaries #278
Comments
I have the exact same issue on Arch Linux, maybe its a glibc related issue
|
Looking at the same function called in the line 1392:
func strftime(
func strftime(_ __s: UnsafeMutablePointer, _ __maxsize: Int, _ __format: UnsafePointer, _ __tp: UnsafePointer) -> Int` Looks like it is safe to just force unwrap It worked on my computer™ |
But that would break code on Fedora 38 for example. Not sure what the best approach would be, as dropping somewhat recent OS versions like Fedora 38 is probably a bit too fast. |
Of course, I meant it's safe if you're on the OS experiencing this issue. I also wonder if the hack has been already tested on older versions. |
Also seeing this behavior on Ubuntu 23.10, Swift 5.9.1 |
Same problem Kubuntu 23.10, Swift 5.8.1/5.9.1 |
Looks like this was fixed in f447991, but a new release would be handy. |
Still a problem. OS: Ubuntu 24.04 |
Expected behavior
It compiles on Arch Linux and Fedora 39 (Works on Fedora 38)
Actual behavior
Does not compile on Arch Linux/Fedora 39 (The following part of the issue assumes Fedora 39)
Steps to reproduce
If possible, minimal yet complete reproducer code (or URL to code)
SwiftLog version/commit hash
cb28750 and 1.5.3
Swift & OS version (output of
swift --version && uname -a
)and
I was able to fix this with the help of helje5 by doing this hack: JCWasmx86@332ed31
The text was updated successfully, but these errors were encountered: