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

Adam <[email protected]>
Newsgroups gmane.os.netbsd.current,gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
>> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.