Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building protobuf 27.0 with emcc yields errors #16424

Closed
adokhugi opened this issue Apr 5, 2024 · 4 comments
Closed

Building protobuf 27.0 with emcc yields errors #16424

adokhugi opened this issue Apr 5, 2024 · 4 comments
Labels
c++ inactive Denotes the issue/PR has not seen activity in the last 90 days. upb

Comments

@adokhugi
Copy link

adokhugi commented Apr 5, 2024

What version of protobuf and what language are you using?
Version: 27.0
Language: C++

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

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

What did you do?
Steps to reproduce the behavior:

  1. git clone
  2. emcmake cmake
  3. emmake make

What did you expect to see
It should have built protobuf without errors.

What did you see instead?
[ 52%] Building CXX object CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o
[ 52%] Building CXX object CMakeFiles/protoc-gen-upb.dir/upb_generator/file_layout.cc.o
[ 52%] Building CXX object CMakeFiles/protoc-gen-upb.dir/upb_generator/mangle.cc.o
[ 52%] Building CXX object CMakeFiles/protoc-gen-upb.dir/upb_generator/names.cc.o
[ 52%] Building CXX object CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o
[ 52%] Building C object CMakeFiles/protoc-gen-upb.dir/upb_generator/cmake/google/protobuf/compiler/plugin.upb_minitable.c.o
[ 52%] Linking CXX executable protoc-gen-upb.js
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::string_view::rfind(char, unsigned long) const
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::StrReplaceAll(absl::lts_20240116::string_view, std::initializer_list<std::__2::pair<absl::lts_20240116::string_view, absl::lts_20240116::string_view>>)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::string_view::find_first_not_of(char, unsigned long) const
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::StrReplaceAll(absl::lts_20240116::string_view, std::initializer_list<std::__2::pair<absl::lts_20240116::string_view, absl::lts_20240116::string_view>>)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::substitute_internal::SubstituteAndAppendArray(std::__2::basic_string<char, std::__2::char_traits, std::__2::allocator>, absl::lts_20240116::string_view, absl::lts_20240116::string_view const, unsigned long)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::substitute_internal::SubstituteAndAppendArray(std::__2::basic_string<char, std::__2::char_traits, std::__2::allocator>, absl::lts_20240116::string_view, absl::lts_20240116::string_view const, unsigned long)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::substitute_internal::SubstituteAndAppendArray(std::__2::basic_string<char, std::__2::char_traits, std::__2::allocator>, absl::lts_20240116::string_view, absl::lts_20240116::string_view const, unsigned long)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::StrReplaceAll(absl::lts_20240116::string_view, std::initializer_list<std::__2::pair<absl::lts_20240116::string_view, absl::lts_20240116::string_view>>)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o: undefined symbol: absl::lts_20240116::log_internal::LogMessage::operator<<(absl::lts_20240116::string_view)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o: undefined symbol: void absl::lts_20240116::log_internal::LogMessage::CopyToEncodedBuffer<(absl::lts_20240116::log_internal::LogMessage::StringType)0>(absl::lts_20240116::string_view)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o: undefined symbol: absl::lts_20240116::string_view::find(char, unsigned long) const
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o: undefined symbol: absl::lts_20240116::ByChar::Find(absl::lts_20240116::string_view, unsigned long) const
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o: undefined symbol: void absl::lts_20240116::log_internal::LogMessage::CopyToEncodedBuffer<(absl::lts_20240116::log_internal::LogMessage::StringType)0>(absl::lts_20240116::string_view)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o: undefined symbol: void absl::lts_20240116::log_internal::LogMessage::CopyToEncodedBuffer<(absl::lts_20240116::log_internal::LogMessage::StringType)0>(absl::lts_20240116::string_view)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o: undefined symbol: void absl::lts_20240116::log_internal::LogMessage::CopyToEncodedBuffer<(absl::lts_20240116::log_internal::LogMessage::StringType)0>(absl::lts_20240116::string_view)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o: undefined symbol: void absl::lts_20240116::log_internal::LogMessage::CopyToEncodedBuffer<(absl::lts_20240116::log_internal::LogMessage::StringType)0>(absl::lts_20240116::string_view)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/protoc-gen-upb.cc.o: undefined symbol: absl::lts_20240116::CEscape(absl::lts_20240116::string_view)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::substitute_internal::SubstituteAndAppendArray(std::__2::basic_string<char, std::__2::char_traits, std::__2::allocator>, absl::lts_20240116::string_view, absl::lts_20240116::string_view const, unsigned long)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/names.cc.o: undefined symbol: absl::lts_20240116::log_internal::LogMessageFatal::LogMessageFatal(char const*, int, absl::lts_20240116::string_view)
wasm-ld: error: CMakeFiles/protoc-gen-upb.dir/upb_generator/common.cc.o: undefined symbol: absl::lts_20240116::substitute_internal::SubstituteAndAppendArray(std::__2::basic_string<char, std::__2::char_traits, std::__2::allocator>, absl::lts_20240116::string_view, absl::lts_20240116::string_view const, unsigned long)
wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)

@adokhugi adokhugi added the untriaged auto added to all issues by default when created. label Apr 5, 2024
@shaod2 shaod2 added c++ upb and removed untriaged auto added to all issues by default when created. labels Apr 5, 2024
@shaod2
Copy link
Member

shaod2 commented Apr 5, 2024

Can you confirm the version? I don't think v27 is released yet

@adokhugi
Copy link
Author

adokhugi commented Apr 8, 2024 via email

Copy link

github-actions bot commented Jul 7, 2024

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.

This issue is labeled inactive because the last activity was over 90 days ago.

@github-actions github-actions bot added the inactive Denotes the issue/PR has not seen activity in the last 90 days. label Jul 7, 2024
Copy link

We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.

This issue was closed and archived because there has been no new activity in the 14 days since the inactive label was added.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ inactive Denotes the issue/PR has not seen activity in the last 90 days. upb
Projects
None yet
Development

No branches or pull requests

2 participants