https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289746

Dimitry Andric <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from Dimitry Andric <[email protected]> ---
It's quite certain a fair bit of work would be involved (I don't have the
time). For example, if I build and install libc++ 19.1.7 I get a
share/libc++/v1/ directory containing those files:

drwxr-xr-x  2 dim dim  112 2025-09-24 13:33:08 std/
drwxr-xr-x  2 dim dim   23 2025-09-24 13:33:08 std.compat/
-rw-r--r--  1 dim dim 4855 2025-09-24 13:30:54 std.compat.cppm
-rw-r--r--  1 dim dim 9768 2025-09-24 13:30:54 std.cppm

But compiling std.cppm fails with a bunch of errors:

In file included from
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std.cppm:230:
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std/cfenv.inc:16:14:
error: using declaration referring to 'feclearexcept' with internal linkage
cannot be exported
   16 |   using std::feclearexcept _LIBCPP_USING_IF_EXISTS;
      |              ^
/usr/include/fenv.h:265:1: note: target of using declaration
  265 | feclearexcept(int __excepts)
      | ^
In file included from
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std.cppm:230:
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std/cfenv.inc:17:14:
error: using declaration referring to 'fegetexceptflag' with internal linkage
cannot be exported
   17 |   using std::fegetexceptflag _LIBCPP_USING_IF_EXISTS;
      |              ^
/usr/include/fenv.h:283:1: note: target of using declaration
  283 | fegetexceptflag(fexcept_t *__flagp, int __excepts)
      | ^
In file included from
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std.cppm:230:
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std/cfenv.inc:20:14:
error: using declaration referring to 'fetestexcept' with internal linkage
cannot be exported
   20 |   using std::fetestexcept _LIBCPP_USING_IF_EXISTS;
      |              ^
/usr/include/fenv.h:295:1: note: target of using declaration
  295 | fetestexcept(int __excepts)
      | ^
In file included from
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std.cppm:230:
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std/cfenv.inc:22:14:
error: using declaration referring to 'fegetround' with internal linkage cannot
be exported
   22 |   using std::fegetround _LIBCPP_USING_IF_EXISTS;
      |              ^
/usr/include/fenv.h:111:1: note: target of using declaration
  111 | fegetround(void)
      | ^
In file included from
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std.cppm:230:
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std/cfenv.inc:23:14:
error: using declaration referring to 'fesetround' with internal linkage cannot
be exported
   23 |   using std::fesetround _LIBCPP_USING_IF_EXISTS;
      |              ^
/usr/include/fenv.h:306:1: note: target of using declaration
  306 | fesetround(int __round)
      | ^
In file included from
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std.cppm:230:
/share/dim/llvm/llvmorg-19.1.7-freebsd16-amd64-ninja-clang-rel-1/share/libc++/v1/std/cfenv.inc:27:14:
error: using declaration referring to 'fesetenv' with internal linkage cannot
be exported
   27 |   using std::fesetenv _LIBCPP_USING_IF_EXISTS;
      |              ^
/usr/include/fenv.h:328:1: note: target of using declaration
  328 | fesetenv(const fenv_t *__envp)
      | ^
6 errors generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to