duckdb / duckdb-rs

Ergonomic bindings to duckdb for Rust
MIT License
464 stars 95 forks source link

duckdb-rs 0.10.0 compilation failed on windows 11 #268

Open ou-bing opened 6 months ago

ou-bing commented 6 months ago

image

OS: Windows 11 23H2 RUST Toolchains: rustc 1.76.0 (07dca489a 2024-02-04)

err msg:

  error occurred: Command "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "duckdb" "-I" "duckdb/third_party/concurrentqueue" "-I" "duckdb/third_party/utf8proc/include" "-I" "duckdb/third_party/fmt/include" "-I" "duckdb/third_party/fast_float" "-I" "duckdb/third_party/mbedtls/include" "-I" "duckdb/third_party/libpg_query" "-I" "duckdb/third_party/re2" "-I" "duckdb/third_party/hyperloglog" "-I" "duckdb/src/include" "-I" "duckdb/third_party/mbedtls" "-I" "duckdb/third_party/libpg_query/include" "-I" "duckdb/third_party/httplib" "-I" "duckdb/third_party/tdigest" "-I" "duckdb/third_party/jaro_winkler" "-I" "duckdb/third_party/miniz" "-I" "duckdb/third_party/utf8proc" "-I" "duckdb/third_party/fsst" "-I" "duckdb/third_party/fastpforlib" "-I" "duckdb/third_party/mbedtls/library" "-I" "duckdb/third_party/skiplist" "-I" "duckdb/third_party/pcg" "-I" "duckdb/third_party/jaro_winkler/details" "/bigobj" "-DDUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1" "-DDUCKDB_EXTENSION_AUTOLOAD_DEFAULT=1" "-DDUCKDB_BUILD_LIBRARY" "-FoD:\\src\\demo\\demo-duckdb\\target\\debug\\build\\libduckdb-sys-5d16083e927cb282\\out\\239a61d5cb207136-ub_src_main.o" "-c" "duckdb/ub_src_main.cpp" with args "cl.exe" did not execute successfully (status code exit code: 2).
photino commented 3 months ago

I also failed to build libduckdb-sys v0.10.2 on Windows.

Mause commented 3 months ago

Given there's no actual error in the screenshot or your message, there's not a lot we can do to help

eaglebetter commented 2 months ago

failed to run custom build command for libduckdb-sys v0.9.2 Caused by: process didn't exit successfully: D:\docker\rust\cpp_to_rust\rust_project\target\debug\build\libduckdb-sys-c3f7c59a2f83f90a\build-script-build (exit code: 1) --- stderr error occurred: Command "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "duckdb" "-I" "duckdb/src/include" "-I" "duckdb/third_party/jaro_winkler/details" "-I" "duckdb/third_party/hyperloglog" "-I" "duckdb/third_party/libpg_query" "-I" "duckdb/third_party/httplib" "-I" "duckdb/third_party/fast_float" "-I" "duckdb/third_party/mbedtls/include" "-I" "duckdb/third_party/utf8proc/include" "-I" "duckdb/third_party/fmt/include" "-I" "duckdb/third_party/re2" "-I" "duckdb/third_party/mbedtls" "-I" "duckdb/third_party/jaro_winkler" "-I" "duckdb/third_party/libpg_query/include" "-I" "duckdb/third_party/fsst" "-I" "duckdb/third_party/tdigest" "-I" "duckdb/third_party/fastpforlib" "-I" "duckdb/third_party/utf8proc" "-I" "duckdb/third_party/mbedtls/library" "-I" "duckdb/third_party/concurrentqueue" "-I" "duckdb/third_party/miniz" "-I" "duckdb/third_party/pcg" "/bigobj" "-DDUCKDB_EXTENSION_AUTOINSTALL_DEFAULT=1" "-DDUCKDB_EXTENSION_AUTOLOAD_DEFAULT=1" "-DDUCKDB_BUILD_LIBRARY" "-FoD:\docker\rust\cpp_to_rust\rust_project\target\debug\build\libduckdb-sys-35e7a27cfc7a2274\out\239a61d5cb207136-ub_src_main.o" "-c" "duckdb/ub_src_main.cpp" with args "cl.exe" did not execute successfully (status code exit code: 2).

I also encountered the compilation error mentioned above,May I ask how to obtain more compilation error information?

tansen87 commented 2 months ago

I also encountered the same problem.

photino commented 2 months ago

I have spent more than 3 hours, but never succeed to compile it ☹️

Mause commented 2 months ago

Until someone provides a full compilation log, there's not a lot we can do to help

photino commented 2 months ago

duckdb-compling.log

wyhaya commented 2 months ago

I'm experiencing the same error on a brand new Windows 10, but have no problem with GitHub actions ci, maybe some dependencies are missing?

zhajingzhaxi commented 1 month ago

@wyhaya I have the same problem as you on Windows 10, have you solved it?

wyhaya commented 1 month ago

@wyhaya I have the same problem as you on Windows 10, have you solved it?

No, I still think something is missing or the environment is not compatible, because it works fine in GitHub Action. I don't know much about C++, but if possible, you could try compiling duckdb/duckdb directly to see if you can find anything.

zhajingzhaxi commented 1 month ago

@wyhaya I have the same problem as you on Windows 10, have you solved it?

No, I still think something is missing or the environment is not compatible, because it works fine in GitHub Action. I don't know much about C++, but if possible, you could try compiling duckdb/duckdb directly to see if you can find anything.

thanks

photino commented 3 weeks ago

Is it fixed in duckdb-rs 1.0?

tansen87 commented 1 week ago

Using GNU on Windows can solve compilation error problems. You can follow zhihu.