Skip to content

[6.2] FreeBSD: Gate GNU-only API #1194

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

Merged
merged 1 commit into from
Jul 2, 2025

Conversation

etcwilde
Copy link
Member

@etcwilde etcwilde commented Jul 2, 2025

The FreeBSD builds are currently using the GlibC modulemap to import the C runtimes. FreeBSD does not have gnu_get_libc_version resulting in build failures.

The use of this API was introduced in
#1147

(cherry picked from commit 79c22ad)

Fixes: #1193

The FreeBSD builds are currently using the GlibC modulemap to import the
C runtimes. FreeBSD does not have `gnu_get_libc_version` resulting in
build failures.

The use of this API was introduced in
swiftlang#1147

(cherry picked from commit 79c22ad)

- **Explanation**:
  The FreeBSD builds are currently using the GlibC modulemap to import the
  C runtimes. FreeBSD does not have `gnu_get_libc_version` resulting in
  build failures.
- **Scope**: Build failure on platforms using Glibc modulemap that don't
  have GNU extensions. (FreeBSD, OpenBSD)
- **Issues**: swiftlang#1193
- **Original PRs**: swiftlang#1183
- **Risk**: Low risk. Removes use of unavailable API.
- **Testing**: Built swift-testing on FreeBSD and Linux.
- **Reviewers**: @grynspan @3405691582

Fixes: swiftlang#1193
@etcwilde etcwilde self-assigned this Jul 2, 2025
@etcwilde etcwilde added the build 🧱 Affects the project's build configuration or process label Jul 2, 2025
@etcwilde etcwilde added freebsd 😈 FreeBSD support openbsd 🐡 OpenBSD support labels Jul 2, 2025
@etcwilde
Copy link
Member Author

etcwilde commented Jul 2, 2025

@swift-ci please test

@grynspan grynspan changed the title 🍒FreeBSD: Gate GNU-only API (#1183) [6.2] FreeBSD: Gate GNU-only API Jul 2, 2025
@grynspan grynspan added this to the Swift 6.2 milestone Jul 2, 2025
@grynspan grynspan added bug 🪲 Something isn't working exit-tests ☠️ Work related to exit tests attachments/activities 🖇️ Work related to attachments and/or activities labels Jul 2, 2025
@etcwilde etcwilde moved this to In Progress in Swift on FreeBSD Jul 2, 2025
@grynspan grynspan added workaround Workaround for an issue in another component (may need to revert later) integration ⚙️ Integrating work to release branches and removed build 🧱 Affects the project's build configuration or process labels Jul 2, 2025
@grynspan
Copy link
Contributor

grynspan commented Jul 2, 2025

@etcwilde Good to merge.

@etcwilde etcwilde merged commit 754c808 into swiftlang:release/6.2 Jul 2, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Swift on FreeBSD Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
attachments/activities 🖇️ Work related to attachments and/or activities bug 🪲 Something isn't working exit-tests ☠️ Work related to exit tests freebsd 😈 FreeBSD support integration ⚙️ Integrating work to release branches openbsd 🐡 OpenBSD support workaround Workaround for an issue in another component (may need to revert later)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[6.2] FreeBSD: Build failure -- error: cannot find '__GLIBC__' in scope
3 participants