Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GCC 12 needs -std=c++11



>> While cross-buidling NetBSD-current on macOS with clang, I end up with:
>> 
>> /dist/src/external/gpl3/gcc/dist/libcpp/lex.cc:1168:8: warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]
>>  enum class kind {
>>       ^
>> [etc.]
> 
> Where exactly in the build are you seeing that.  In my builds I've been
> seing that only in the build of host-libcpp from the "do-build" target
> in src/Makefile.
> 
>> My work-around is to use HOST_CXXFLAGS="-std=c++11". Maybe it should
>> be set somewhere else in the code, so other users won't encounter the
>> error?
> 
> Does the patch that I proposed on tech-toolchain help?

I don't follow the tech-toolchain, but I've found your patch and it solves the problem.

Thanks,
Adam


Home | Main Index | Thread Index | Old Index