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

rc2024 build fails on macOS 12 (LLVM 14), missing #include <unordered_map> #88

Open
cho-m opened this issue Aug 13, 2024 · 0 comments
Open

Comments

@cho-m
Copy link

cho-m commented Aug 13, 2024

I was updating librcsc package in Homebrew (Homebrew/homebrew-core#180809) and noticed the build failed on macOS 12 Monterey (Xcode 14.2 / LLVM 14.0.0).

This appears to be due to missing include. Some LLVM/GCC versions seem to indirectly pull in header given CI passes on Ubuntu 22.04 (GCC 11) and macOS 13+ (LLVM 15+).

https://github.com/Homebrew/homebrew-core/actions/runs/10334715364/job/28611025543#step:3:769

 parser_simdjson.cpp:54:10: error: no template named 'unordered_map' in namespace 'std'
      std::unordered_map< std::string, Func > funcs_;
      ~~~~~^
  parser_simdjson.cpp:150:10: error: no member named 'unordered_map' in namespace 'std'
      std::unordered_map< std::string, Func >::iterator it = funcs_.find( key );
      ~~~~~^
  parser_simdjson.cpp:150:36: error: expected '(' for function-style cast or type construction
      std::unordered_map< std::string, Func >::iterator it = funcs_.find( key );
                          ~~~~~~~~~~~^
  parser_simdjson.cpp:151:10: error: use of undeclared identifier 'it'
      if ( it == funcs_.end() )
           ^
  parser_simdjson.cpp:158:12: error: use of undeclared identifier 'it'
      if ( ! it->second( field.value(), handler ) )
             ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant