v6d-io / v6d

vineyard (v6d): an in-memory immutable data manager. (Project under CNCF, TAG-Storage)
https://v6d.io
Apache License 2.0
818 stars 117 forks source link

build: add macos build patch #1876

Closed chenrui333 closed 2 months ago

chenrui333 commented 2 months ago

What do these changes do?

fix the macos build failure, error logs are below:

/tmp/vineyard-20240419-52947-c35b1q/v6d-0.22.0/modules/llm-cache/storage/file_storage.cc:667:7: error: no matching conversion for functional-style cast from 'std::chrono::duration<int64_t, std::nano>' (aka 'duration<long long, ratio<1LL, 1000000000LL>>') to 'std::chrono::time_point<std::chrono::system_clock>'
      std::chrono::time_point<std::chrono::system_clock>(time);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/vineyard-20240419-52947-c35b1q/v6d-0.22.0/modules/llm-cache/storage/local_file_storage.cc:196:15: error: no member named 'st_atim' in 'stat'
      statbuf.st_atim.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atim.tv_nsec);
      ~~~~~~~ ^
/tmp/vineyard-20240419-52947-c35b1q/v6d-0.22.0/modules/llm-cache/storage/local_file_storage.cc:196:63: error: no member named 'st_atim' in 'stat'
      statbuf.st_atim.tv_sec * SECOND_TO_NANOSECOND + statbuf.st_atim.tv_nsec);
                                                      ~~~~~~~ ^

Related issue number

fixes #1867

relates to https://github.com/Homebrew/homebrew-core/pull/169388

sighingnow commented 2 months ago

Hi @chenrui333,

I have just bump up a new release. Thanks for your effort!

chenrui333 commented 2 months ago

Oh, nice, thanks for the quick turnaround. 💪