You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the protobuf crate is built successfully with the default toolchain in the devcontainer on x86_64 Linux, trying to build it for the i686 architecture results in C++ compiler failures.
Steps to reproduce
Enter the devcontainer shell in e.g. Visual Studio Code.
Run rustup target install i686-unknown-linux-gnu1.
Run sudo apt-get install gcc-multilib g++-multilib1.
Run cargo test --target i686-unknown-linux-gnu -p tests.
Error output
Lots of C++ compiler errors, including:
/workspaces/prost/third_party/protobuf/src/google/protobuf/test_messages_proto2.pb.cc:10781:24: error: ‘::PROTOBUF_NAMESPACE_ID’ has not been declared
10781 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
| ^~~~~~~~~~~~~~~~~~~~~
/workspaces/prost/third_party/protobuf/src/google/protobuf/test_messages_proto2.pb.cc:10781:70: error: expected ‘,’ or ‘...’ before ‘*’ token
10781 | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
| ^
Other observations
Building with the x86_64 target has google::protobuf generated instead of PROTOBUF_NAMESPACE_ID in the *.pb.cc files.
Footnotes
It would be nice to have these installed in the x86_64 devcontainer out of the box. ↩↩2
The text was updated successfully, but these errors were encountered:
While the
protobuf
crate is built successfully with the default toolchain in the devcontainer on x86_64 Linux, trying to build it for the i686 architecture results in C++ compiler failures.Steps to reproduce
rustup target install i686-unknown-linux-gnu
1.sudo apt-get install gcc-multilib g++-multilib
1.cargo test --target i686-unknown-linux-gnu -p tests
.Error output
Lots of C++ compiler errors, including:
Other observations
Building with the x86_64 target has
google::protobuf
generated instead ofPROTOBUF_NAMESPACE_ID
in the*.pb.cc
files.Footnotes
It would be nice to have these installed in the x86_64 devcontainer out of the box. ↩ ↩2
The text was updated successfully, but these errors were encountered: