Skip to content

Conversation

nico
Copy link
Contributor

@nico nico commented Sep 9, 2025

Building on Fuchsia is broken after #156547.
This disables the NOEXCEPT on Fuchsia to unbreak things. Hopefully we can come up with a more forward-compatible fix later.

Building on Fuchsia is broken after llvm#156547.
This disables the NOEXCEPT on Fuchsia to unbreak things.
Hopefully we can come up with a more forward-compatible fix later.
@nico nico requested a review from a team as a code owner September 9, 2025 16:50
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Sep 9, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 9, 2025

@llvm/pr-subscribers-libcxx

Author: Nico Weber (nico)

Changes

Building on Fuchsia is broken after #156547.
This disables the NOEXCEPT on Fuchsia to unbreak things. Hopefully we can come up with a more forward-compatible fix later.


Full diff: https://github.com/llvm/llvm-project/pull/157710.diff

1 Files Affected:

  • (modified) libcxx/include/__random/binomial_distribution.h (+1-1)
diff --git a/libcxx/include/__random/binomial_distribution.h b/libcxx/include/__random/binomial_distribution.h
index bada8cfdd74a3..816135216d970 100644
--- a/libcxx/include/__random/binomial_distribution.h
+++ b/libcxx/include/__random/binomial_distribution.h
@@ -104,7 +104,7 @@ class binomial_distribution {
 #  else
 #    define _LIBCPP_LGAMMA_R_NOEXCEPT
 #  endif
-#elif defined(__LLVM_LIBC__)
+#elif defined(__LLVM_LIBC__) && !defined(__Fuchsia__)
 #  define _LIBCPP_LGAMMA_R_NOEXCEPT _NOEXCEPT
 #else
 #  define _LIBCPP_LGAMMA_R_NOEXCEPT

Copy link
Contributor

@frobtech frobtech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will instead land a change to Fuchsia libc's declaration imminently.

Copy link
Member

@ldionne ldionne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I'm fine with landing this patch, or dropping it if you change Fuchsia.

@frobtech
Copy link
Contributor

frobtech commented Sep 9, 2025

FWIW, I'm fine with landing this patch, or dropping it if you change Fuchsia.

The Fuchsia libc header change is already in progress and should percolate to Fuchsia SDK builds available for public consumption later today. Landing this change now would make libc++ incompatible with the new state of Fuchsia libc, so please do not land this.

@nico
Copy link
Contributor Author

nico commented Sep 9, 2025

Where can I follow that change and the SDK push?

@nico
Copy link
Contributor Author

nico commented Sep 12, 2025

We successfully updated our Fuchsia SDK and things work for us as-is. Closing, thanks everyone.

(ref crbug.com/443929394)

@nico nico closed this Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants