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

Build from master fails with clang: raw_logging.cc: error: use of undeclared identifier 'LogPrefixHook' #381

Open
barracuda156 opened this issue Aug 11, 2024 · 0 comments

Comments

@barracuda156
Copy link

/opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_bloaty/bloaty/work/bloaty-34f4a66559ad4938c1e629e9b5f54630b2b4d7b0/third_party/abseil-cpp/absl/debugging/internal/demangle.cc
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_bloaty/bloaty/work/bloaty-34f4a66559ad4938c1e629e9b5f54630b2b4d7b0/third_party/abseil-cpp/absl/base/internal/raw_logging.cc:80:37: error: use of undeclared identifier 'LogPrefixHook'
      absl::base_internal::AtomicHook<LogPrefixHook>
                                      ^
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_bloaty/bloaty/work/bloaty-34f4a66559ad4938c1e629e9b5f54630b2b4d7b0/third_party/abseil-cpp/absl/base/internal/raw_logging.cc:83:37: error: unknown type name 'AbortHook'; did you mean 'raw_log_internal::AbortHook'?
      absl::base_internal::AtomicHook<AbortHook>
                                      ^~~~~~~~~
                                      raw_log_internal::AbortHook
  /opt/local/include/absl/base/internal/raw_logging.h:188:7: note: 'raw_log_internal::AbortHook' declared here
  using AbortHook = void (*)(const char* file, int line, const char* buf_start,
        ^
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_bloaty/bloaty/work/bloaty-34f4a66559ad4938c1e629e9b5f54630b2b4d7b0/third_party/abseil-cpp/absl/base/internal/raw_logging.cc:171:5: error: use of undeclared identifier 'SafeWriteToStderr'
      SafeWriteToStderr(buffer, strlen(buffer));
      ^
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_bloaty/bloaty/work/bloaty-34f4a66559ad4938c1e629e9b5f54630b2b4d7b0/third_party/abseil-cpp/absl/base/internal/raw_logging.cc:192:3: error: use of undeclared identifier 'RawLog'
    RawLog(severity, file, line, "%.*s", static_cast<int>(message.size()),
    ^
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_bloaty/bloaty/work/bloaty-34f4a66559ad4938c1e629e9b5f54630b2b4d7b0/third_party/abseil-cpp/absl/base/internal/raw_logging.cc:229:37: error: unknown type name 'InternalLogFunction'; did you mean 'raw_log_internal::InternalLogFunction'?
      absl::base_internal::AtomicHook<InternalLogFunction>
                                      ^~~~~~~~~~~~~~~~~~~
                                      raw_log_internal::InternalLogFunction
  /opt/local/include/absl/base/internal/raw_logging.h:195:7: note: 'raw_log_internal::InternalLogFunction' declared here
  using InternalLogFunction = void (*)(absl::LogSeverity severity,
        ^
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_bloaty/bloaty/work/bloaty-34f4a66559ad4938c1e629e9b5f54630b2b4d7b0/third_party/abseil-cpp/absl/base/internal/raw_logging.cc:232:28: error: unknown type name 'LogPrefixHook'
  void RegisterLogPrefixHook(LogPrefixHook func) { log_prefix_hook.Store(func); }
                             ^
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_bloaty/bloaty/work/bloaty-34f4a66559ad4938c1e629e9b5f54630b2b4d7b0/third_party/abseil-cpp/absl/base/internal/raw_logging.cc:234:24: error: unknown type name 'AbortHook'; did you mean 'raw_log_internal::AbortHook'?
  void RegisterAbortHook(AbortHook func) { abort_hook.Store(func); }
                         ^~~~~~~~~
                         raw_log_internal::AbortHook
  /opt/local/include/absl/base/internal/raw_logging.h:188:7: note: 'raw_log_internal::AbortHook' declared here
  using AbortHook = void (*)(const char* file, int line, const char* buf_start,
        ^
  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_devel_bloaty/bloaty/work/bloaty-34f4a66559ad4938c1e629e9b5f54630b2b4d7b0/third_party/abseil-cpp/absl/base/internal/raw_logging.cc:236:34: error: unknown type name 'InternalLogFunction'; did you mean 'raw_log_internal::InternalLogFunction'?
  void RegisterInternalLogFunction(InternalLogFunction func) {
                                   ^~~~~~~~~~~~~~~~~~~
                                   raw_log_internal::InternalLogFunction
  /opt/local/include/absl/base/internal/raw_logging.h:195:7: note: 'raw_log_internal::InternalLogFunction' declared here
  using InternalLogFunction = void (*)(absl::LogSeverity severity,
        ^
  8 errors generated.
  make[2]: *** [CMakeFiles/libbloaty.dir/third_party/abseil-cpp/absl/base/internal/raw_logging.cc.o] Error 1
  make[2]: *** Waiting for unfinished jobs....

Logs: https://github.com/macports/macports-ports/actions/runs/10340469446/job/28621132627?pr=25284
https://github.com/macports/macports-ports/actions/runs/10340469446/job/28621132458?pr=25284

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