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

duckdb-rs 0.10.0 compilation failed on windows 11 #268

Open
ou-bing opened this issue Feb 23, 2024 · 8 comments
Open

duckdb-rs 0.10.0 compilation failed on windows 11 #268

ou-bing opened this issue Feb 23, 2024 · 8 comments

Comments

@ou-bing
Copy link

ou-bing commented Feb 23, 2024

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
Copy link

photino commented Jun 9, 2024

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

@Mause
Copy link
Member

Mause commented Jun 9, 2024

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

@eaglebetter
Copy link

eaglebetter commented Jun 16, 2024

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
Copy link

I also encountered the same problem.

@photino
Copy link

photino commented Jun 27, 2024

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

@Mause
Copy link
Member

Mause commented Jun 27, 2024

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

@photino
Copy link

photino commented Jun 27, 2024

duckdb-compling.log

@wyhaya
Copy link

wyhaya commented Jun 30, 2024

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?

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

6 participants