Giter Club home page Giter Club logo

Comments (4)

web3creator avatar web3creator commented on September 25, 2024 2

@mlafeldt Thank you very much for your answer. I still haven't solved it. I tried using clang to replace gcc cc g++ but it didn't work. I know it's related to c++11, but I can't solve it.

   Compiling libduckdb-sys v0.9.2 (/Users/simonyi/mosdb/morse-brain/libduckdb-sys)
The following warnings were emitted during compilation:

warning: In file included from duckdb/ub_src_function_scalar_string_regexp.cpp:1:
warning: In file included from duckdb/src/function/scalar/string/regexp/regexp_util.cpp:1:
warning: In file included from duckdb/src/include/duckdb/function/scalar/regexp.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/function_set.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/aggregate_function.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/vector_operations/aggregate_executor.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/exception.hpp:12:
warning: In file included from duckdb/src/include/duckdb/common/exception_format_value.hpp:12:
warning: duckdb/src/include/duckdb/common/hugeint.hpp:18:2: error: unknown type name 'constexpr'
warning:         constexpr hugeint_t(int64_t upper, uint64_t lower) : lower(lower), upper(upper) {
warning:         ^
warning: duckdb/src/include/duckdb/common/hugeint.hpp:18:12: error: constructor cannot have a return type
warning:         constexpr hugeint_t(int64_t upper, uint64_t lower) : lower(lower), upper(upper) {
warning:                   ^~~~~~~~~
warning: duckdb/src/include/duckdb/common/hugeint.hpp:20:2: error: unknown type name 'constexpr'
warning:         constexpr hugeint_t(const hugeint_t &rhs) = default;
warning:         ^
warning: duckdb/src/include/duckdb/common/hugeint.hpp:20:12: error: constructor cannot have a return type
warning:         constexpr hugeint_t(const hugeint_t &rhs) = default;
warning:                   ^~~~~~~~~
warning: duckdb/src/include/duckdb/common/hugeint.hpp:21:2: error: unknown type name 'constexpr'
warning:         constexpr hugeint_t(hugeint_t &&rhs) = default;
warning:         ^
warning: duckdb/src/include/duckdb/common/hugeint.hpp:21:12: error: constructor cannot have a return type
warning:         constexpr hugeint_t(hugeint_t &&rhs) = default;
warning:                   ^~~~~~~~~
warning: In file included from duckdb/ub_src_function_scalar_string_regexp.cpp:1:
warning: In file included from duckdb/src/function/scalar/string/regexp/regexp_util.cpp:1:
warning: In file included from duckdb/src/include/duckdb/function/scalar/regexp.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/function_set.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/aggregate_function.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/vector_operations/aggregate_executor.hpp:11:
warning: duckdb/src/include/duckdb/common/exception.hpp:96:25: error: exception specification of overriding function is more lax than base version
warning:         DUCKDB_API const char *what() const noexcept override;
warning:                                ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:159:23: note: overridden virtual function is here
warning:   virtual const char* what() const _NOEXCEPT;
warning:                       ^
warning: In file included from duckdb/ub_src_function_scalar_string_regexp.cpp:1:
warning: In file included from duckdb/src/function/scalar/string/regexp/regexp_util.cpp:1:
warning: In file included from duckdb/src/include/duckdb/function/scalar/regexp.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/function_set.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/aggregate_function.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/vector_operations/aggregate_executor.hpp:11:
warning: duckdb/src/include/duckdb/common/exception.hpp:96:37: error: expected ';' at end of declaration list
warning:         DUCKDB_API const char *what() const noexcept override;
warning:                                            ^
warning:                                            ;
warning: duckdb/src/include/duckdb/common/exception.hpp:101:3: error: expected expression
warning:         [[noreturn]] DUCKDB_API static void ThrowAsTypeWithMessage(ExceptionType type, const string &message,
warning:          ^
warning: duckdb/src/include/duckdb/common/exception.hpp:101:26: error: expected member name or ';' after declaration specifiers
warning:         [[noreturn]] DUCKDB_API static void ThrowAsTypeWithMessage(ExceptionType type, const string &message,
warning:                                 ^
warning: duckdb/src/include/duckdb/common/exception.hpp:88:7: error: exception specification of overriding function is more lax than base version
warning: class Exception : public std::exception {
warning:       ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:158:11: note: overridden virtual function is here
warning:   virtual ~exception() _NOEXCEPT;
warning:           ^
warning: In file included from duckdb/ub_src_function_scalar_string_regexp.cpp:1:
warning: In file included from duckdb/src/function/scalar/string/regexp/regexp_util.cpp:1:
warning: In file included from duckdb/src/include/duckdb/function/scalar/regexp.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/function_set.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/aggregate_function.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/vector_operations/aggregate_executor.hpp:11:
warning: duckdb/src/include/duckdb/common/exception.hpp:354:3: error: expected expression
warning:         [[noreturn]] void Throw() const {
warning:          ^
warning: duckdb/src/include/duckdb/common/exception.hpp:354:15: error: expected member name or ';' after declaration specifiers
warning:         [[noreturn]] void Throw() const {
warning:                      ^
warning: duckdb/src/include/duckdb/common/exception.hpp:332:76: error: member initializer 'status_code' does not name a non-static data member or base class
warning:             : IOException(ExceptionType::HTTP, ConstructMessage(msg, params...)), status_code(status_code), reason(reason),
warning:                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
warning: duckdb/src/include/duckdb/common/exception.hpp:339:37: error: use of undeclared identifier 'status_code'
warning:                 return make_shared<HTTPException>(status_code, response_body, headers, reason, RawMessage());
warning:                                                   ^
warning: duckdb/src/include/duckdb/common/exception.hpp:346:10: error: use of undeclared identifier 'status_code'
warning:                 return status_code;
warning:                        ^
warning: duckdb/src/include/duckdb/common/exception.hpp:392:47: error: delegating constructors are permitted only in C++11
warning:         explicit FatalException(const string &msg) : FatalException(ExceptionType::FATAL, msg) {
warning:                                                      ^~~~~~~~~~~~~~
warning: In file included from duckdb/ub_src_function_scalar_string_regexp.cpp:1:
warning: In file included from duckdb/src/function/scalar/string/regexp/regexp_util.cpp:1:
warning: In file included from duckdb/src/include/duckdb/function/scalar/regexp.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/function_set.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/aggregate_function.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/vector_operations/aggregate_executor.hpp:12:
warning: In file included from duckdb/src/include/duckdb/common/types/vector.hpp:12:
warning: In file included from duckdb/src/include/duckdb/common/common.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/constants.hpp:14:
warning: In file included from duckdb/src/include/duckdb/common/unique_ptr.hpp:5:
warning: duckdb/src/include/duckdb/common/memory_safety.hpp:11:9: error: unknown type name 'constexpr'
warning:         static constexpr bool enabled = ENABLED;
warning:                ^
warning: In file included from duckdb/ub_src_function_scalar_string_regexp.cpp:1:
warning: In file included from duckdb/src/function/scalar/string/regexp/regexp_util.cpp:1:
warning: In file included from duckdb/src/include/duckdb/function/scalar/regexp.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/function_set.hpp:11:
warning: In file included from duckdb/src/include/duckdb/function/aggregate_function.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/vector_operations/aggregate_executor.hpp:12:
warning: In file included from duckdb/src/include/duckdb/common/types/vector.hpp:12:
warning: In file included from duckdb/src/include/duckdb/common/common.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/constants.hpp:14:
warning: duckdb/src/include/duckdb/common/unique_ptr.hpp:51:70: error: expected ';' at end of declaration list
warning:         reset(typename original::pointer ptr = typename original::pointer()) noexcept {
warning:                                                                             ^
warning:                                                                             ;
warning: fatal error: too many errors emitted, stopping now [-ferror-limit=]
warning: 20 errors generated.
warning: ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "sccache" "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/opt/homebrew/opt/openssl@3/include" "-I" "duckdb" "-I" "duckdb/third_party/fmt/include" "-I" "duckdb/third_party/mbedtls" "-I" "duckdb/extension/json/yyjson/include" "-I" "duckdb/third_party/jaro_winkler" "-I" "duckdb/third_party/tdigest" "-I" "duckdb/third_party/utf8proc/include" "-I" "duckdb/third_party/mbedtls/library" "-I" "duckdb/third_party/jaro_winkler/details" "-I" "duckdb/third_party/miniz" "-I" "duckdb/src/include" "-I" "duckdb/third_party/snappy" "-I" "duckdb/third_party/utf8proc" "-I" "duckdb/extension/json/include" "-I" "duckdb/third_party/fast_float" "-I" "duckdb/third_party/libpg_query/include" "-I" "duckdb/extension/parquet/include" "-I" "duckdb/third_party/httplib" "-I" "duckdb/third_party/fastpforlib" "-I" "duckdb/extension/httpfs/include" "-I" "duckdb/third_party/parquet" "-I" "duckdb/third_party/pcg" "-I" "duckdb/third_party/hyperloglog" "-I" "duckdb/third_party/fsst" "-I" "duckdb/third_party/concurrentqueue" "-I" "duckdb/third_party/mbedtls/include" "-I" "duckdb/third_party/re2" "-I" "duckdb/third_party/libpg_query" "-I" "duckdb/third_party/zstd/include" "-I" "duckdb/third_party/thrift" "-w" "-DDUCKDB_EXTENSION_HTTPFS_LINKED=1" "-DDUCKDB_EXTENSION_PARQUET_LINKED=1" "-DDUCKDB_EXTENSION_JSON_LINKED=1" "-DDUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1" "-DDUCKDB_EXTENSION_AUTOLOAD_DEFAULT=1" "-o" "/Users/simonyi/mosdb/morse-brain/libduckdb-sys/target/debug/build/libduckdb-sys-105f448a5b5bb3a1/out/duckdb/ub_src_function_scalar_string_regexp.o" "-c" "duckdb/ub_src_function_scalar_string_regexp.cpp" with args "c++" did not execute successfully (status code exit status: 1).running: env -u IPHONEOS_DEPLOYMENT_TARGET "sccache" "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/opt/homebrew/opt/openssl@3/include" "-I" "duckdb" "-I" "duckdb/third_party/fmt/include" "-I" "duckdb/third_party/mbedtls" "-I" "duckdb/extension/json/yyjson/include" "-I" "duckdb/third_party/jaro_winkler" "-I" "duckdb/third_party/tdigest" "-I" "duckdb/third_party/utf8proc/include" "-I" "duckdb/third_party/mbedtls/library" "-I" "duckdb/third_party/jaro_winkler/details" "-I" "duckdb/third_party/miniz" "-I" "duckdb/src/include" "-I" "duckdb/third_party/snappy" "-I" "duckdb/third_party/utf8proc" "-I" "duckdb/extension/json/include" "-I" "duckdb/third_party/fast_float" "-I" "duckdb/third_party/libpg_query/include" "-I" "duckdb/extension/parquet/include" "-I" "duckdb/third_party/httplib" "-I" "duckdb/third_party/fastpforlib" "-I" "duckdb/extension/httpfs/include" "-I" "duckdb/third_party/parquet" "-I" "duckdb/third_party/pcg" "-I" "duckdb/third_party/hyperloglog" "-I" "duckdb/third_party/fsst" "-I" "duckdb/third_party/concurrentqueue" "-I" "duckdb/third_party/mbedtls/include" "-I" "duckdb/third_party/re2" "-I" "duckdb/third_party/libpg_query" "-I" "duckdb/third_party/zstd/include" "-I" "duckdb/third_party/thrift" "-w" "-DDUCKDB_EXTENSION_HTTPFS_LINKED=1" "-DDUCKDB_EXTENSION_PARQUET_LINKED=1" "-DDUCKDB_EXTENSION_JSON_LINKED=1" "-DDUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1" "-DDUCKDB_EXTENSION_AUTOLOAD_DEFAULT=1" "-o" "/Users/simonyi/mosdb/morse-brain/libduckdb-sys/target/debug/build/libduckdb-sys-105f448a5b5bb3a1/out/duckdb/third_party/libpg_query/src_backend_nodes_list.o" "-c" "duckdb/third_party/libpg_query/src_backend_nodes_list.cpp"
warning: In file included from duckdb/src/verification/statement_verifier.cpp:1:
warning: In file included from duckdb/src/include/duckdb/verification/statement_verifier.hpp:11:
warning: In file included from duckdb/src/include/duckdb/main/client_context.hpp:11:
warning: In file included from duckdb/src/include/duckdb/catalog/catalog_entry/schema_catalog_entry.hpp:11:
warning: In file included from duckdb/src/include/duckdb/catalog/catalog_entry.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/common.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/constants.hpp:14:
warning: In file included from duckdb/src/include/duckdb/common/unique_ptr.hpp:3:
warning: In file included from duckdb/src/include/duckdb/common/exception.hpp:12:
warning: In file included from duckdb/src/include/duckdb/common/exception_format_value.hpp:12:
warning: duckdb/src/include/duckdb/common/hugeint.hpp:18:2: error: unknown type name 'constexpr'
warning:         constexpr hugeint_t(int64_t upper, uint64_t lower) : lower(lower), upper(upper) {
warning:         ^
warning: duckdb/src/include/duckdb/common/hugeint.hpp:18:12: error: constructor cannot have a return type
warning:         constexpr hugeint_t(int64_t upper, uint64_t lower) : lower(lower), upper(upper) {
warning:                   ^~~~~~~~~
warning: duckdb/src/include/duckdb/common/hugeint.hpp:20:2: error: unknown type name 'constexpr'
warning:         constexpr hugeint_t(const hugeint_t &rhs) = default;
warning:         ^
warning: duckdb/src/include/duckdb/common/hugeint.hpp:20:12: error: constructor cannot have a return type
warning: In file included from duckdb/third_party/parquet/parquet_types.cpp:7:
warning: In file included from duckdb/third_party/parquet/parquet_types.h:12:
warning: In file included from duckdb/src/include/duckdb/common/vector.hpp:14:
warning: In file included from duckdb/src/include/duckdb/common/exception.hpp:12:
warning: In file included from duckdb/src/include/duckdb/common/exception_format_value.hpp:12:
warning: duckdb/src/include/duckdb/common/hugeint.hpp:18:2: error: unknown type name 'constexpr'
warning:         constexpr hugeint_t(int64_t upper, uint64_t lower) : lower(lower), upper(upper) {
warning:         ^
warning: duckdb/src/include/duckdb/common/hugeint.hpp:18:12: error: constructor cannot have a return type
warning:         constexpr hugeint_t(int64_t upper, uint64_t lower) : lower(lower), upper(upper) {
warning:                   ^~~~~~~~~
warning: duckdb/src/include/duckdb/common/hugeint.hpp:20:2: error: unknown type name 'constexpr'
warning:         constexpr hugeint_t(const hugeint_t &rhs) = default;
warning:         ^
warning:         constexpr hugeint_t(const hugeint_t &rhs) = default;
warning:                   ^~~~~~~~~
warning: duckdb/src/include/duckdb/common/hugeint.hpp:21:2: error: unknown type name 'constexpr'
warning:         constexpr hugeint_t(hugeint_t &&rhs) = default;
warning:         ^
warning: duckdb/src/include/duckdb/common/hugeint.hpp:21:12: error: constructor cannot have a return type
warning:         constexpr hugeint_t(hugeint_t &&rhs) = default;
warning:                   ^~~~~~~~~
warning: In file included from duckdb/src/verification/statement_verifier.cpp:1:
warning: In file included from duckdb/src/include/duckdb/verification/statement_verifier.hpp:11:
warning: In file included from duckdb/src/include/duckdb/main/client_context.hpp:11:
warning: In file included from duckdb/src/include/duckdb/catalog/catalog_entry/schema_catalog_entry.hpp:11:
warning: In file included from duckdb/src/include/duckdb/catalog/catalog_entry.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/common.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/constants.hpp:14:
warning: In file included from duckdb/src/include/duckdb/common/unique_ptr.hpp:3:
warning: duckdb/src/include/duckdb/common/exception.hpp:96:25: error: exception specification of overriding function is more lax than base version
warning:         DUCKDB_API const char *what() const noexcept override;
warning:                                ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:159:23: note: overridden virtual function is here
warning:   virtual const char* what() const _NOEXCEPT;
warning:                       ^
warning: In file included from duckdb/src/verification/statement_verifier.cpp:1:
warning: In file included from duckdb/src/include/duckdb/verification/statement_verifier.hpp:11:
warning: In file included from duckdb/src/include/duckdb/main/client_context.hpp:11:
warning: In file included from duckdb/src/include/duckdb/catalog/catalog_entry/schema_catalog_entry.hpp:11:
warning: In file included from duckdb/src/include/duckdb/catalog/catalog_entry.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/common.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/constants.hpp:14:
warning: In file included from duckdb/src/include/duckdb/common/unique_ptr.hpp:3:
warning: duckdb/src/include/duckdb/common/exception.hpp:96:37: error: expected ';' at end of declaration list
warning:         DUCKDB_API const char *what() const noexcept override;
warning:                                            ^
warning:                                            ;
warning: duckdb/src/include/duckdb/common/exception.hpp:101:3: error: expected expression
warning:         [[noreturn]] DUCKDB_API static void ThrowAsTypeWithMessage(ExceptionType type, const string &message,
warning:          ^
warning: duckdb/src/include/duckdb/common/exception.hpp:101:26: error: expected member name or ';' after declaration specifiers
warning:         [[noreturn]] DUCKDB_API static void ThrowAsTypeWithMessage(ExceptionType type, const string &message,
warning:                                 ^
warning: duckdb/src/include/duckdb/common/exception.hpp:88:7: error: exception specification of overriding function is more lax than base version
warning: class Exception : public std::exception {
warning:       ^
warning: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/exception:158:11: note: overridden virtual function is here
warning:   virtual ~exception() _NOEXCEPT; 


  cargo:warning=fatal error: too many errors emitted, stopping now [-ferror-limit=]

  cargo:warning=20 errors generated.


  exit status: 1
  cargo:warning=ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "sccache" "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/opt/homebrew/opt/openssl@3/include" "-I" "duckdb" "-I" "duckdb/third_party/fmt/include" "-I" "duckdb/third_party/mbedtls" "-I" "duckdb/extension/json/yyjson/include" "-I" "duckdb/third_party/jaro_winkler" "-I" "duckdb/third_party/tdigest" "-I" "duckdb/third_party/utf8proc/include" "-I" "duckdb/third_party/mbedtls/library" "-I" "duckdb/third_party/jaro_winkler/details" "-I" "duckdb/third_party/miniz" "-I" "duckdb/src/include" "-I" "duckdb/third_party/snappy" "-I" "duckdb/third_party/utf8proc" "-I" "duckdb/extension/json/include" "-I" "duckdb/third_party/fast_float" "-I" "duckdb/third_party/libpg_query/include" "-I" "duckdb/extension/parquet/include" "-I" "duckdb/third_party/httplib" "-I" "duckdb/third_party/fastpforlib" "-I" "duckdb/extension/httpfs/include" "-I" "duckdb/third_party/parquet" "-I" "duckdb/third_party/pcg" "-I" "duckdb/third_party/hyperloglog" "-I" "duckdb/third_party/fsst" "-I" "duckdb/third_party/concurrentqueue" "-I" "duckdb/third_party/mbedtls/include" "-I" "duckdb/third_party/re2" "-I" "duckdb/third_party/libpg_query" "-I" "duckdb/third_party/zstd/include" "-I" "duckdb/third_party/thrift" "-w" "-DDUCKDB_EXTENSION_HTTPFS_LINKED=1" "-DDUCKDB_EXTENSION_PARQUET_LINKED=1" "-DDUCKDB_EXTENSION_JSON_LINKED=1" "-DDUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1" "-DDUCKDB_EXTENSION_AUTOLOAD_DEFAULT=1" "-o" "/Users/simonyi/mosdb/morse-brain/libduckdb-sys/target/debug/build/libduckdb-sys-105f448a5b5bb3a1/out/duckdb/src/verification/deserialized_statement_verifier.o" "-c" "duckdb/src/verification/deserialized_statement_verifier.cpp" with args "c++" did not execute successfully (status code exit status: 1).
  exit status: 1
  cargo:warning=ToolExecError: Command env -u IPHONEOS_DEPLOYMENT_TARGET "sccache" "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/opt/homebrew/opt/openssl@3/include" "-I" "duckdb" "-I" "duckdb/third_party/fmt/include" "-I" "duckdb/third_party/mbedtls" "-I" "duckdb/extension/json/yyjson/include" "-I" "duckdb/third_party/jaro_winkler" "-I" "duckdb/third_party/tdigest" "-I" "duckdb/third_party/utf8proc/include" "-I" "duckdb/third_party/mbedtls/library" "-I" "duckdb/third_party/jaro_winkler/details" "-I" "duckdb/third_party/miniz" "-I" "duckdb/src/include" "-I" "duckdb/third_party/snappy" "-I" "duckdb/third_party/utf8proc" "-I" "duckdb/extension/json/include" "-I" "duckdb/third_party/fast_float" "-I" "duckdb/third_party/libpg_query/include" "-I" "duckdb/extension/parquet/include" "-I" "duckdb/third_party/httplib" "-I" "duckdb/third_party/fastpforlib" "-I" "duckdb/extension/httpfs/include" "-I" "duckdb/third_party/parquet" "-I" "duckdb/third_party/pcg" "-I" "duckdb/third_party/hyperloglog" "-I" "duckdb/third_party/fsst" "-I" "duckdb/third_party/concurrentqueue" "-I" "duckdb/third_party/mbedtls/include" "-I" "duckdb/third_party/re2" "-I" "duckdb/third_party/libpg_query" "-I" "duckdb/third_party/zstd/include" "-I" "duckdb/third_party/thrift" "-w" "-DDUCKDB_EXTENSION_HTTPFS_LINKED=1" "-DDUCKDB_EXTENSION_PARQUET_LINKED=1" "-DDUCKDB_EXTENSION_JSON_LINKED=1" "-DDUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1" "-DDUCKDB_EXTENSION_AUTOLOAD_DEFAULT=1" "-o" "/Users/simonyi/mosdb/morse-brain/libduckdb-sys/target/debug/build/libduckdb-sys-105f448a5b5bb3a1/out/duckdb/ub_src_catalog.o" "-c" "duckdb/ub_src_catalog.cpp" with args "c++" did not execute successfully (status code exit status: 1).
  exit status: 0

  --- stderr


  error occurred: Command env -u IPHONEOS_DEPLOYMENT_TARGET "sccache" "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-arch" "arm64" "-I" "/opt/homebrew/opt/openssl@3/include" "-I" "duckdb" "-I" "duckdb/third_party/fmt/include" "-I" "duckdb/third_party/mbedtls" "-I" "duckdb/extension/json/yyjson/include" "-I" "duckdb/third_party/jaro_winkler" "-I" "duckdb/third_party/tdigest" "-I" "duckdb/third_party/utf8proc/include" "-I" "duckdb/third_party/mbedtls/library" "-I" "duckdb/third_party/jaro_winkler/details" "-I" "duckdb/third_party/miniz" "-I" "duckdb/src/include" "-I" "duckdb/third_party/snappy" "-I" "duckdb/third_party/utf8proc" "-I" "duckdb/extension/json/include" "-I" "duckdb/third_party/fast_float" "-I" "duckdb/third_party/libpg_query/include" "-I" "duckdb/extension/parquet/include" "-I" "duckdb/third_party/httplib" "-I" "duckdb/third_party/fastpforlib" "-I" "duckdb/extension/httpfs/include" "-I" "duckdb/third_party/parquet" "-I" "duckdb/third_party/pcg" "-I" "duckdb/third_party/hyperloglog" "-I" "duckdb/third_party/fsst" "-I" "duckdb/third_party/concurrentqueue" "-I" "duckdb/third_party/mbedtls/include" "-I" "duckdb/third_party/re2" "-I" "duckdb/third_party/libpg_query" "-I" "duckdb/third_party/zstd/include" "-I" "duckdb/third_party/thrift" "-w" "-DDUCKDB_EXTENSION_HTTPFS_LINKED=1" "-DDUCKDB_EXTENSION_PARQUET_LINKED=1" "-DDUCKDB_EXTENSION_JSON_LINKED=1" "-DDUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1" "-DDUCKDB_EXTENSION_AUTOLOAD_DEFAULT=1" "-o" "/Users/simonyi/mosdb/morse-brain/libduckdb-sys/target/debug/build/libduckdb-sys-105f448a5b5bb3a1/out/duckdb/ub_src_catalog.o" "-c" "duckdb/ub_src_catalog.cpp" with args "c++" did not execute successfully (status code exit status: 1).




from duckdb-rs.

mlafeldt avatar mlafeldt commented on September 25, 2024 1

@web3creator Looks like you're missing C++ header files - see apple/swift-nio-ssl#105 for a similar problem and possible solutions.

from duckdb-rs.

ctsrc avatar ctsrc commented on September 25, 2024

Are those errors occurring when you build it directly, or as a dep of something else?

For me, I had similar errors when trying to build on FreeBSD as a dep of another project with certain features of the duckdb crate enabled. Then I switched to using just the default features and it built successfully. Then I gradually kept adding enabled features again.

For me the following features out of the ones I tested make it unable to build on my FreeBSD server:

  • extensions-full, which in turn enable a few other features
  • httpfs (also enabled by extensions-full)
  • json (also enabled by extensions-full)
  • parquet (also enabled by extensions-full)

In the end I have this in the [dependencies] section of my Cargo.toml and am able to successfully build:

duckdb = { version = "0.9", features = ["chrono", "serde_json", "url", "r2d2", "uuid", "vtab-full"] }

from duckdb-rs.

ctsrc avatar ctsrc commented on September 25, 2024

And looking at https://docs.rs/crate/duckdb/latest/features I notice that all of the three features that cause build failure in this manner for me are enabling the bundled feature flag

Is there a way to enable for example parquet without the bundled feature flag, when my system installed duckdb already has parquet support built into it anyway?

from duckdb-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.