strfry
strfry copied to clipboard
OSX build error
Hey there,
Logging this for now so i can come back to it later to try to resolve:
On: c0dec7c53f82a72e41bc3e49f77b97bd9746bbb9
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Build steps:
brew install perl openssl flatbuffers lmdb
cpan Template
kieran@Kierans-MacBook-Pro strfry % make
c++ -std=c++20 -O3 -g -Wall -fPIC -DDOCOPT_HEADER_ONLY -Iinclude -Ibuild -Isrc -Igolpe/external -Igolpe/external/lmdbxx/include -Igolpe/external/config/include -Igolpe/external/json/include -Igolpe/external/PEGTL/include -Igolpe/external/hoytech-cpp -Igolpe/external/docopt.cpp -Igolpe/external/loguru -Igolpe/external/parallel-hashmap -Iexternal/negentropy/cpp -I/opt/homebrew/include -MMD -MP -MT src/apps/dbutils/cmd_delete.o -MF src/apps/dbutils/cmd_delete.d -c src/apps/dbutils/cmd_delete.cpp -o src/apps/dbutils/cmd_delete.o
In file included from src/apps/dbutils/cmd_delete.cpp:4:
In file included from build/golpe.h:6:
golpe/external/hoytech-cpp/hoytech/hex.h:35:63: warning: format specifies type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat]
snprintf(buf, sizeof(buf), "%s%lx", prefixed ? "0x" : "", input);
~~~ ^~~~~
%llx
In file included from src/apps/dbutils/cmd_delete.cpp:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/mutex:191:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocation_guard.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:304:9: error: no matching function for call to 'construct_at'
_VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...);
^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:715:17: note: expanded from macro '_VSTD'
# define _VSTD std
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:811:21: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DBScan::ScanCursor>>::construct<DBScan::ScanCursor, std::string, const unsigned long long &, (lambda at src/DBQuery.h:119:21), void, void>' requested here
__alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1600:9: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::__construct_one_at_end<std::string, const unsigned long long &, (lambda at src/DBQuery.h:119:21)>' requested here
__construct_one_at_end(std::forward<_Args>(__args)...);
^
src/DBQuery.h:116:25: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::emplace_back<std::string, const unsigned long long &, (lambda at src/DBQuery.h:119:21)>' requested here
cursors.emplace_back(
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:36:38: note: candidate template ignored: substitution failure [with _Tp = DBScan::ScanCursor, _Args = <std::string, const unsigned long long &, (lambda at src/DBQuery.h:119:21)>]: no matching constructor for initialization of 'DBScan::ScanCursor'
_LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) {
^
In file included from src/apps/dbutils/cmd_delete.cpp:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/mutex:191:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocation_guard.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:304:9: error: no matching function for call to 'construct_at'
_VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...);
^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:715:17: note: expanded from macro '_VSTD'
# define _VSTD std
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:811:21: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DBScan::ScanCursor>>::construct<DBScan::ScanCursor, std::string, const unsigned long long &, (lambda at src/DBQuery.h:150:21), void, void>' requested here
__alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1600:9: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::__construct_one_at_end<std::string, const unsigned long long &, (lambda at src/DBQuery.h:150:21)>' requested here
__construct_one_at_end(std::forward<_Args>(__args)...);
^
src/DBQuery.h:147:25: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::emplace_back<std::string, const unsigned long long &, (lambda at src/DBQuery.h:150:21)>' requested here
cursors.emplace_back(
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:36:38: note: candidate template ignored: substitution failure [with _Tp = DBScan::ScanCursor, _Args = <std::string, const unsigned long long &, (lambda at src/DBQuery.h:150:21)>]: no matching constructor for initialization of 'DBScan::ScanCursor'
_LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) {
^
In file included from src/apps/dbutils/cmd_delete.cpp:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/mutex:191:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocation_guard.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:304:9: error: no matching function for call to 'construct_at'
_VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...);
^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:715:17: note: expanded from macro '_VSTD'
# define _VSTD std
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:811:21: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DBScan::ScanCursor>>::construct<DBScan::ScanCursor, std::string, const unsigned long long &, (lambda at src/DBQuery.h:170:25), void, void>' requested here
__alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1600:9: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::__construct_one_at_end<std::string, const unsigned long long &, (lambda at src/DBQuery.h:170:25)>' requested here
__construct_one_at_end(std::forward<_Args>(__args)...);
^
src/DBQuery.h:167:29: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::emplace_back<std::string, const unsigned long long &, (lambda at src/DBQuery.h:170:25)>' requested here
cursors.emplace_back(
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:36:38: note: candidate template ignored: substitution failure [with _Tp = DBScan::ScanCursor, _Args = <std::string, const unsigned long long &, (lambda at src/DBQuery.h:170:25)>]: no matching constructor for initialization of 'DBScan::ScanCursor'
_LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) {
^
In file included from src/apps/dbutils/cmd_delete.cpp:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/mutex:191:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocation_guard.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:304:9: error: no matching function for call to 'construct_at'
_VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...);
^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:715:17: note: expanded from macro '_VSTD'
# define _VSTD std
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:811:21: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DBScan::ScanCursor>>::construct<DBScan::ScanCursor, std::string, const unsigned long long &, (lambda at src/DBQuery.h:197:21), void, void>' requested here
__alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1600:9: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::__construct_one_at_end<std::string, const unsigned long long &, (lambda at src/DBQuery.h:197:21)>' requested here
__construct_one_at_end(std::forward<_Args>(__args)...);
^
src/DBQuery.h:194:25: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::emplace_back<std::string, const unsigned long long &, (lambda at src/DBQuery.h:197:21)>' requested here
cursors.emplace_back(
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:36:38: note: candidate template ignored: substitution failure [with _Tp = DBScan::ScanCursor, _Args = <std::string, const unsigned long long &, (lambda at src/DBQuery.h:197:21)>]: no matching constructor for initialization of 'DBScan::ScanCursor'
_LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) {
^
In file included from src/apps/dbutils/cmd_delete.cpp:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/mutex:191:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocation_guard.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:304:9: error: no matching function for call to 'construct_at'
_VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...);
^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:715:17: note: expanded from macro '_VSTD'
# define _VSTD std
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:811:21: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DBScan::ScanCursor>>::construct<DBScan::ScanCursor, std::string, const unsigned long long &, (lambda at src/DBQuery.h:213:21), void, void>' requested here
__alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1600:9: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::__construct_one_at_end<std::string, const unsigned long long &, (lambda at src/DBQuery.h:213:21)>' requested here
__construct_one_at_end(std::forward<_Args>(__args)...);
^
src/DBQuery.h:210:25: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::emplace_back<std::string, const unsigned long long &, (lambda at src/DBQuery.h:213:21)>' requested here
cursors.emplace_back(
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:36:38: note: candidate template ignored: substitution failure [with _Tp = DBScan::ScanCursor, _Args = <std::string, const unsigned long long &, (lambda at src/DBQuery.h:213:21)>]: no matching constructor for initialization of 'DBScan::ScanCursor'
_LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) {
^
In file included from src/apps/dbutils/cmd_delete.cpp:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ios:221:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__locale:18:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/mutex:191:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/shared_ptr.h:22:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocation_guard.h:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/allocator_traits.h:304:9: error: no matching function for call to 'construct_at'
_VSTD::construct_at(__p, _VSTD::forward<_Args>(__args)...);
^~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:715:17: note: expanded from macro '_VSTD'
# define _VSTD std
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:811:21: note: in instantiation of function template specialization 'std::allocator_traits<std::allocator<DBScan::ScanCursor>>::construct<DBScan::ScanCursor, std::string, const unsigned long long &, (lambda at src/DBQuery.h:227:17), void, void>' requested here
__alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_),
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/vector:1600:9: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::__construct_one_at_end<std::string, const unsigned long long &, (lambda at src/DBQuery.h:227:17)>' requested here
__construct_one_at_end(std::forward<_Args>(__args)...);
^
src/DBQuery.h:224:21: note: in instantiation of function template specialization 'std::vector<DBScan::ScanCursor>::emplace_back<std::string, const unsigned long long &, (lambda at src/DBQuery.h:227:17)>' requested here
cursors.emplace_back(
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__memory/construct_at.h:36:38: note: candidate template ignored: substitution failure [with _Tp = DBScan::ScanCursor, _Args = <std::string, const unsigned long long &, (lambda at src/DBQuery.h:227:17)>]: no matching constructor for initialization of 'DBScan::ScanCursor'
_LIBCPP_HIDE_FROM_ABI constexpr _Tp* construct_at(_Tp* __location, _Args&&... __args) {
^
1 warning and 6 errors generated.
make: *** [src/apps/dbutils/cmd_delete.o] Error 1