Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error #232

Open
web3creator opened this issue Nov 14, 2023 · 4 comments
Open

compile error #232

web3creator opened this issue Nov 14, 2023 · 4 comments

Comments

@web3creator
Copy link
Contributor

system:macos 14.1.1 (23B81)

warning: In file included from duckdb/ub_src_common_enums.cpp:1:
warning: In file included from duckdb/src/common/enums/catalog_type.cpp:1:
warning: In file included from duckdb/src/include/duckdb/common/enums/catalog_type.hpp:11:
warning: duckdb/src/include/duckdb/common/constants.hpp:11:10: fatal error: 'memory' file not found
warning: #include <memory>
warning:          ^~~~~~~~
warning: 1 error generated.
warning: In file included from duckdb/third_party/libpg_query/src_backend_nodes_makefuncs.cpp:32:
warning: duckdb/third_party/libpg_query/include/pg_functions.hpp:4:10: fatal error: 'string' file not found
warning: #include <string>
warning:          ^~~~~~~~
warning: 1 error generated.
warning: In file included from duckdb/ub_src_optimizer_statistics_operator.cpp:1:
warning: In file included from duckdb/src/optimizer/statistics/operator/propagate_aggregate.cpp:1:
warning: In file included from duckdb/src/include/duckdb/optimizer/statistics_propagator.hpp:11:
warning: In file included from duckdb/src/include/duckdb/common/common.hpp:11:
warning: duckdb/src/include/duckdb/common/constants.hpp:11:10: fatal error: 'memory' file not found
warning: #include <memory>
warning:          ^~~~~~~~
warning: 1 error generated.
warning: In file included from duckdb/ub_src_core_functions_aggregate_regression.cpp:1:
warning: In file included from duckdb/src/core_functions/aggregate/regression/regr_avg.cpp:1:
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:11:
warning: duckdb/src/include/duckdb/common/string.hpp:11:10: fatal error: 'string' file not found
warning: #include <string>
warning:          ^~~~~~~~
@mlafeldt
Copy link
Contributor

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

@web3creator
Copy link
Contributor Author

web3creator commented Dec 15, 2023

@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).




@ctsrc
Copy link

ctsrc commented Dec 24, 2023

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"] }

@ctsrc
Copy link

ctsrc commented Dec 24, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants