bustub icon indicating copy to clipboard operation
bustub copied to clipboard

Build failure on MacOs

Open varunu28 opened this issue 4 months ago • 2 comments

I am facing the following build failure after running make.

In file included from /Users/varunu28/projects/bustub/third_party/googletest/googlemock/src/gmock-all.cc:43:
/Users/varunu28/projects/bustub/third_party/googletest/googlemock/src/gmock-internal-utils.cc:185:36: error: too few arguments to function call, expected 2, have 1
  184 |               << ::testing::internal::GetCurrentOsStackTraceExceptTop(
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  185 |                      actual_to_skip);
      |                                    ^
/usr/local/include/gtest/internal/gtest-internal.h:839:24: note: 'GetCurrentOsStackTraceExceptTop' declared here
  839 | GTEST_API_ std::string GetCurrentOsStackTraceExceptTop(UnitTest* unit_test,
      |                        ^                               ~~~~~~~~~~~~~~~~~~~~
  840 |                                                        int skip_count);
      |                                                        ~~~~~~~~~~~~~~
1 error generated.

The above error happens after I successfully run cmake ...

Output for g++ --version

g++ --version
Apple clang version 17.0.0 (clang-1700.0.13.5)
Target: arm64-apple-darwin24.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

varunu28 avatar Aug 29 '25 23:08 varunu28

@varunu28 Can you send a PR with the fix?

apavlo avatar Oct 30 '25 14:10 apavlo

@apavlo I have given this a shot as part of https://github.com/cmu-db/bustub/pull/855. Please take a look

varunu28 avatar Oct 30 '25 17:10 varunu28