v6d-io / v6d

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

0.22.0 failed to build on macos #1867

Closed chenrui333 closed 5 months ago

chenrui333 commented 5 months ago

👋 trying to build the latest release, but run into some build issue. The error log is as below:

error build log ``` [ 66%] Building CXX object modules/malloc/CMakeFiles/vineyard_malloc.dir/mimalloc_allocator.cc.o cd /tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/build/modules/malloc && /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ -DJSON_DIAGNOSTICS=0 -DJSON_DISABLE_ENUM_SERIALIZATION=0 -DJSON_USE_GLOBAL_UDLS=1 -DJSON_USE_IMPLICIT_CONVERSIONS=0 -DJSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON=0 -Dvineyard_malloc_EXPORTS -I/tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/thirdparty/libcuckoo -I/tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/src -I/tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/modules -isystem /tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/thirdparty/nlohmann-json -isystem /tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/thirdparty -fPIC -Wall -Wno-attributes -Wno-unknown-pragmas -Wno-class-conversion -Wno-defaulted-function-deleted -Wno-deprecated-declarations -Wno-error=c++11-narrowing -Wno-noexcept-type -Wno-unused-but-set-parameter -Wno-unused-private-field -Wno-unknown-warning-option -Wno-enum-constexpr-conversion -O2 -g -DNDEBUG -std=gnu++17 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fPIC -fcolor-diagnostics -D_GLIBCXX_USE_CXX11_ABI=1 -DBOOST_SPIRIT_THREADSAFE -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_BIND_GLOBAL_PLACEHOLDERS -DBOOST_NO_CXX98_FUNCTION_BASE -D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION -g -MD -MT modules/malloc/CMakeFiles/vineyard_malloc.dir/mimalloc_allocator.cc.o -MF CMakeFiles/vineyard_malloc.dir/mimalloc_allocator.cc.o.d -o CMakeFiles/vineyard_malloc.dir/mimalloc_allocator.cc.o -c /tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/modules/malloc/mimalloc_allocator.cc /tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/modules/llm-cache/storage/file_storage.cc:211:11: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] TouchFile(this->rootPath + pathList[i]); ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/modules/llm-cache/storage/file_storage.cc:405:11: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] TouchFile(this->rootPath + pathList[i]); ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/vineyard-20240418-25454-hib1v9/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' (aka 'duration>') to 'std::chrono::time_point' std::chrono::time_point(time); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__chrono/time_point.h:35:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::chrono::duration' (aka 'duration>') to 'const std::chrono::time_point' for 1st argument class _LIBCPP_TEMPLATE_VIS time_point ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__chrono/time_point.h:35:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'std::chrono::duration' (aka 'duration>') to 'std::chrono::time_point' for 1st argument /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__chrono/time_point.h:49:70: note: candidate constructor not viable: no known conversion from 'duration<[...], ratio<[...], 1000000000>>' to 'const duration<[...], ratio<[...], 1000000>>' for 1st argument _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX14 explicit time_point(const duration& __d) : __d_(__d) {} ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__chrono/time_point.h:54:5: note: candidate template ignored: could not match 'time_point' against 'duration' time_point(const time_point& __t, ^ /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/c++/v1/__chrono/time_point.h:48:61: note: candidate constructor not viable: requires 0 arguments, but 1 was provided _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX14 time_point() : __d_(duration::zero()) {} ^ /tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/modules/llm-cache/storage/file_storage.cc:697:7: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] Delete(path); ^~~~~~ ~~~~ /tmp/vineyard-20240418-25454-hib1v9/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-20240418-25454-hib1v9/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); ~~~~~~~ ^ /tmp/vineyard-20240418-25454-hib1v9/v6d-0.22.0/modules/llm-cache/storage/local_file_storage.cc:207:31: warning: suggest braces around initialization of subobject [-Wmissing-braces] struct timespec times[2] = {0}; ^ {} ```

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/8732128425/job/23961466691?pr=169388 relates to Homebrew/homebrew-core#169388

sighingnow commented 5 months ago

Thanks for raising the issue.