Skip to content

protoc failing with CHECK failed: !options_.opensource_runtime error #9184

@stanguturi

Description

@stanguturi

Doing a very simple operation:

$ protoc --cpp_out=. -I/usr/share/gocode/src/github.com/containerd/containerd/api/services/containers/v1 -I/usr/share/gocode/src/github.com/gogo/protobuf/protobuf/ -I/usr/share/gocode/src/github.com/gogo/protobuf/ /usr/share/gocode/src/github.com/containerd/containerd/api/services/containers/v1/containers.proto

[libprotobuf FATAL ./google/protobuf/compiler/cpp/cpp_file.h:175] CHECK failed: !options_.opensource_runtime:
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: !options_.opensource_runtime:
Aborted (core dumped)

protoc is failing with CHECK failed error. I have no clue about the error.

What version of protobuf and what language are you using?
Version: master/v3.6.0/v3.5.0 etc.: v3.14.0

Language: C++/Java/Python/C#/Ruby/PHP/Objective-C/Javascript
C++

What operating system (Linux, Windows, ...) and version?
Linux

What runtime / compiler are you using (e.g., python version or gcc version)
g++

What did you expect to see
Expect no errors.

What did you see instead?
Finding errors.

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

Metadata

Metadata

Assignees

Labels

c++inactiveDenotes the issue/PR has not seen activity in the last 90 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions