Skip to content

Instantly share code, notes, and snippets.

@darrenfu
Created December 10, 2022 02:08
Show Gist options
  • Save darrenfu/ff42788e732cb04aa9c98acc37118fcd to your computer and use it in GitHub Desktop.
Save darrenfu/ff42788e732cb04aa9c98acc37118fcd to your computer and use it in GitHub Desktop.
fmt9 build error
[14/968] Building CXX object velox/common/base/CMakeFiles/velox_common_base.dir/RuntimeMetrics.cpp.o
FAILED: velox/common/base/CMakeFiles/velox_common_base.dir/RuntimeMetrics.cpp.o
ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DFMT_SHARED -DGFLAGS_IS_A_DLL=0 -I/opt/homebrew/opt/icu4c/include -I/Users/dofu/git/velox/. -I/Users/dofu/git/velox/velox/external/xxhash -I/Users/dofu/git/velox/third_party/xsimd/include -isystem /Users/dofu/homebrew/include -isystem /Users/dofu/git/velox/velox -isystem /Users/dofu/git/velox/velox/external -isystem /Users/dofu/git/velox/velox/external/duckdb -isystem /Users/dofu/git/velox/velox/external/duckdb/tpch/dbgen/include -isystem /opt/homebrew/include -isystem /usr/local/include -isystem /opt/homebrew/opt/[email protected]/include -mcpu=apple-m1+crc -std=c++17 -fvisibility=hidden -D USE_VELOX_COMMON_BASE -D HAS_UNCAUGHT_EXCEPTIONS -Wno-nullability-completeness -Wdeprecated-declarations -Werror -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wno-sign-compare -Wno-ignored-qualifiers -Wno-range-loop-analysis -Wno-mismatched-tags -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -mmacosx-version-min=12.6 -fPIC -std=gnu++17 -MD -MT velox/common/base/CMakeFiles/velox_common_base.dir/RuntimeMetrics.cpp.o -MF velox/common/base/CMakeFiles/velox_common_base.dir/RuntimeMetrics.cpp.o.d -o velox/common/base/CMakeFiles/velox_common_base.dir/RuntimeMetrics.cpp.o -c /Users/dofu/git/velox/velox/common/base/RuntimeMetrics.cpp
In file included from /Users/dofu/git/velox/velox/common/base/RuntimeMetrics.cpp:17:
In file included from /usr/local/include/folly/ThreadLocal.h:52:
In file included from /usr/local/include/folly/detail/ThreadLocalDetail.h:30:
In file included from /usr/local/include/folly/Exception.h:25:
In file included from /usr/local/include/folly/Conv.h:121:
In file included from /usr/local/include/folly/Range.h:45:
In file included from /Users/dofu/homebrew/include/fmt/format.h:48:
/Users/dofu/homebrew/include/fmt/core.h:1756:3: error: static_assert failed due to requirement 'formattable' "Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt"
static_assert(
^
/Users/dofu/homebrew/include/fmt/core.h:1777:10: note: in instantiation of function template specialization 'fmt::detail::make_value<fmt::basic_format_context<fmt::appender, char>, const facebook::velox::RuntimeCounter::Unit &>' requested here
return make_value<Context>(val);
^
/Users/dofu/homebrew/include/fmt/core.h:1899:23: note: in instantiation of function template specialization 'fmt::detail::make_arg<true, fmt::basic_format_context<fmt::appender, char>, fmt::detail::type::custom_type, const facebook::velox::RuntimeCounter::Unit &, 0>' requested here
data_{detail::make_arg<
^
/Users/dofu/homebrew/include/fmt/core.h:1918:10: note: in instantiation of function template specialization 'fmt::format_arg_store<fmt::basic_format_context<fmt::appender, char>, facebook::velox::RuntimeCounter::Unit, facebook::velox::RuntimeCounter::Unit>::format_arg_store<const facebook::velox::RuntimeCounter::Unit &, const facebook::velox::RuntimeCounter::Unit &>' requested here
return {FMT_FORWARD(args)...};
^
/Users/dofu/git/velox/./velox/common/base/Exceptions.h:147:33: note: in instantiation of function template specialization 'fmt::make_format_args<fmt::basic_format_context<fmt::appender, char>, const facebook::velox::RuntimeCounter::Unit &, const facebook::velox::RuntimeCounter::Unit &>' requested here
return fmt::vformat(fmt, fmt::make_format_args(args...));
^
/Users/dofu/git/velox/velox/common/base/RuntimeMetrics.cpp:33:3: note: in instantiation of function template specialization 'facebook::velox::detail::errorMessage<facebook::velox::RuntimeCounter::Unit, facebook::velox::RuntimeCounter::Unit>' requested here
VELOX_CHECK_EQ(unit, other.unit);
^
/Users/dofu/git/velox/./velox/common/base/Exceptions.h:252:37: note: expanded from macro 'VELOX_CHECK_EQ'
#define VELOX_CHECK_EQ(e1, e2, ...) _VELOX_CHECK_OP(e1, e2, ==, ##__VA_ARGS__)
^
/Users/dofu/git/velox/./velox/common/base/Exceptions.h:229:26: note: expanded from macro '_VELOX_CHECK_OP'
_VELOX_CHECK_OP_HELPER(_VELOX_CHECK_IMPL, expr1, expr2, op, ##__VA_ARGS__)
^
1 error generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment