[PATCH v2] libstdc++: Add module initialization functions to the library [PR124268]
Gerald Pfeifer
gerald@pfeifer.com
Wed Mar 18 08:36:34 GMT 2026
On Tue, 17 Mar 2026, Jonathan Wakely wrote:
>> It looks like this broke bootstrap on FreeBSD 13/amd64:
>>
>> libtool: link: ( cd ".libs" && rm -f "libc++23convenience.la" && ln -s "../libc++23convenience.la" "libc++23convenience.la" )
>> std.cc:3799:14: error: exporting 'int feclearexcept(int)' that does not have external linkage
>> 3799 | using std::feclearexcept;
> I'm pretty sure this is not conforming to the C standard:
> https://cigix.me/c23#7.1.2.p8
That's how I read this as well.
> This is going to be a problem for anybody trying to use the 'std' module
> on FreeBSD, it seems like I'm just the first person to ever try it :-)
I know found a discussion in LLVM Github
https://github.com/llvm/llvm-project/pull/86320
and a FreeBSD bug report
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277958
which support you position.
With a bit of luck me poking the later is going to lead to a change,
though even then it'll take years for the old, broken installations to
disappear.
Gerald
More information about the Libstdc++
mailing list