pkgsrc-Users archive

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

Re: "devel/protobuf" build fails on netbsd-9/i386



"John D. Baker" <jdbaker%consolidated.net@localhost> writes:

> On Fri, 1 Jul 2022, Izumi Tsutsui wrote:
>
>> On my NetBSD/i386 9.2 + pkgsrc-2022Q2 environment (without GCC_REQD),
>> the following diff seems enough (at least to build).
>
> I can confirm that changing the "c++11" to "c++17" in
> "devel/protobuf/Makefile" allows it to build on netbsd-9/i386 with the
> base system compiler.
>
> The change is not necessary for netbsd-9/amd64 (nor 9.99.98/amd64).  Don't
> know about 9.99.98/i386 yet.

I sent a private reply before which should have been onlist, I think.

It's of course great to figure out what's going on.  

I don't think it's ok to commit a change in language spec unless that is
actually the case.   In src/README.md I don't even see it documented
that C++11 is needed, and I would be surprised if C++17 is necessary.

It may be that putting the compiler in --std=c++17 mode, which I think
that USE_LANGUAGES adds to CXXFLAGS, is enough to work around what might
be a compiler bug.  But that's wild speculation.

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index