Skip to content

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

Merged
etcwilde merged 1 commit into
swiftlang:release/6.2from
etcwilde:ewilde/6.2-gate-gnu-api
Jul 2, 2025
Merged

[6.2] FreeBSD: Gate GNU-only API#1194
etcwilde merged 1 commit into
swiftlang:release/6.2from
etcwilde:ewilde/6.2-gate-gnu-api

Conversation

@etcwilde

@etcwilde etcwilde commented Jul 2, 2025

Copy link
Copy Markdown
Member

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

etcwilde commented Jul 2, 2025

Copy link
Copy Markdown
Member Author

@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

grynspan commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

@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