#68241 closed defect (fixed)

clang-17 @17.0.1: error: unknown type name '__darwin_mbstate_t'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: cjones051073 (Chris Jones)
Port: llvm-17

Description

https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/240514/steps/install-port/logs/stdio

In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-17/clang-17/work/llvm-project-17.0.1.src/libcxxabi/src/cxa_handlers.cpp:12:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-17/clang-17/work/build/include/c++/v1/stdexcept:48:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-17/clang-17/work/build/include/c++/v1/iosfwd:106:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-17/clang-17/work/build/include/c++/v1/__std_mbstate_t.h:14:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-17/clang-17/work/build/include/c++/v1/__mbstate_t.h:45:
/usr/include/sys/_types/_mbstate_t.h:31:9: error: unknown type name '__darwin_mbstate_t'
   31 | typedef __darwin_mbstate_t mbstate_t;
      |         ^
1 error generated.
make[5]: *** [libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_handlers.cpp.o] Error 1
make[5]: Leaving directory `/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-17/clang-17/work/build/runtimes/runtimes-bins'
make[4]: *** [libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....

A proposed patch is provided at https://github.com/llvm/llvm-project/issues/64226.

Change History (3)

comment:1 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: cjones051073 added
Version: 2.8.1

comment:2 Changed 14 months ago by cjones051073 (Chris Jones)

Last edited 14 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 14 months ago by cjones051073 (Chris Jones)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.