Libc++ trouble

I have had no luck with building world for some days now. In fact, it is becoming impossible to update ports and build ports with poudriere too.

Online search has not yielded so much useful result. I have changed ver. between stable and releng, and vice versa, in this adventure without a clean build though. And I am mixing ports and pkgs with my long make.conf and short src.conf. And yes, I have tried building without those confs too.

This is the latest error message:
Code:
In file included from /usr/include/c++/v1/locale:204:
/usr/include/c++/v1/streambuf:132:22: error: incomplete type 'std::char_traits<wchar_t>' named in nested name specifier
    typedef typename traits_type::int_type int_type;
                     ^~~~~~~~~~~~~
/usr/include/c++/v1/streambuf:491:64: note: in instantiation of template class 'std::basic_streambuf<wchar_t>' requested here
_LIBCPP_EXTERN_TEMPLATE(class _LIBCPP_EXTERN_TEMPLATE_TYPE_VIS basic_streambuf<wchar_t>)
                                                               ^
/usr/include/c++/v1/iosfwd:117:19: note: forward declaration of 'std::char_traits<wchar_t>'
template<> struct char_traits<wchar_t>;

It might come as vsfd, ftl, or __string error. I read that setting WITH_LEGACY_CONSOLE=NO or so could work and so is reinstall libc++ after a clean build,etc but no luck.

Kernel build for all versions (14RC and 13.2) goes well but not world. Ports install beginning to fail. Clean installation is almost a no-no.
 
What's in your /etc/make.conf? stable/14 builds just fine here.
 
I had a similar problem, not sure whether it was the same. I had to nuke /usr/obj manually and it went through.
 
I've powered off the machine. But make.conf and src.conf were technically empty.

Yes, nuking /use/obj might do the trick. I have found it work many years ago.

Thanks folks; and I still look forward to more suggestions.
 
I had similar problems when upgrading from beta1 to beta2. I managed to solve the problem by

1. delete all c++ standard library in /usr/include/c++/v1/
2. git clone llvm repo and check out llvm 16 branch
3. rsync(1) standard library from llvm git repo to /usr/include/c++/v1
 
Back
Top