autofdo: Building didn't work due to wrong versions

Hello, I have been struggling for a day or so with building the code using LLVM. The ninja command for building autofdo showed the following: class llvm::Expected<const char*>’ has no member named ‘getValue’ and: glog/glog/logging.h:654:9: error: ambiguous overload for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::nullptr_t’)

I realized that in order to make it work llvm needs to be version 10 as newer versions won’t work, I found that changes needed to be done in other repos that experienced the same issue as the LLVM code was changed. And glog need to be version 0.5 as the issue is fixed on PR 646, which is merged only on that version.

The way the instructions are written right now doesn’t work.

About this issue

Most upvoted comments

@jwbee thanks, your process work!

I’ve updated third_party/abseil to HEAD (as of today) and third_party/glog to 0.6 and pushed the changes.

Thanks again for help triaging and fixing this @jwbee @Enna1 @vecortez

I’ll close this bug in 2 weeks if no further glog/abseil build errors.