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

rdkafka-sys failed to build on windows #734

Closed
tisonkun opened this issue Oct 8, 2024 · 4 comments
Closed

rdkafka-sys failed to build on windows #734

tisonkun opened this issue Oct 8, 2024 · 4 comments

Comments

@tisonkun
Copy link

tisonkun commented Oct 8, 2024

rdkafka-sys may fail to build on windows - https://github.com/tisonkun/morax/actions/runs/11226860397/job/31208119385?pr=9

error: failed to run custom build command for `rdkafka-sys v4.7.0+2.3.0`
Caused by:
  process didn't exit successfully: `D:\a\morax\morax\target\dist\build\rdkafka-sys-e938e9d141895f08\build-script-build` (exit code: 101)
  --- stdout
  Cloning librdkafka
  Configuring librdkafka
  --- stderr
  Building and linking librdkafka statically
  Running command: "cp -a librdkafka/. D:\a\morax\morax\target\x86_64-pc-windows-msvc\dist\build\rdkafka-sys-e3eacd032f9e3efa\out" in dir: .
  Running command: "\\?\D:\a\morax\morax\target\x86_64-pc-windows-msvc\dist\build\rdkafka-sys-e3eacd032f9e3efa\out\configure --disable-ssl --disable-gssapi --disable-curl --disable-zstd --disable-lz4-ext" in dir: D:\a\morax\morax\target\x86_64-pc-windows-msvc\dist\build\rdkafka-sys-e3eacd032f9e3efa\out
  thread 'main' panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\rdkafka-sys-4.7.0+2.3.0\build.rs:38:19:
  Command failed with error: %1 is not a valid Win32 application. (os error 193)

Cargo.toml dep is like:

rdkafka = { version = "0.36" }
@tisonkun
Copy link
Author

tisonkun commented Oct 8, 2024

CI runner information:

2024-10-08T01:26:58.1675980Z Current runner version: '2.320.0'
2024-10-08T01:26:58.1775730Z ##[group]Operating System
2024-10-08T01:26:58.1776399Z Microsoft Windows Server 2019
2024-10-08T01:26:58.1776813Z 10.0.17763
2024-10-08T01:26:58.1777100Z Datacenter
2024-10-08T01:26:58.1777379Z ##[endgroup]
2024-10-08T01:26:58.1777694Z ##[group]Runner Image
2024-10-08T01:26:58.1778055Z Image: windows-2019
2024-10-08T01:26:58.1778383Z Version: 20240922.1.0
2024-10-08T01:26:58.1779329Z Included Software: https://github.com/actions/runner-images/blob/win19/20240922.1/images/windows/Windows2019-Readme.md
2024-10-08T01:26:58.1780641Z Image Release: https://github.com/actions/runner-images/releases/tag/win19%2F20240922.1
2024-10-08T01:26:58.1781401Z ##[endgroup]
2024-10-08T01:26:58.1781717Z ##[group]Runner Image Provisioner
2024-10-08T01:26:58.1782164Z 2.0.384.1
2024-10-08T01:26:58.1782460Z ##[endgroup]

@tisonkun
Copy link
Author

tisonkun commented Oct 8, 2024

Seems configure is not identified on Windows. I'll try out the cmake-build feature.

@tisonkun
Copy link
Author

tisonkun commented Oct 8, 2024

Seems work.

@tisonkun tisonkun closed this as completed Oct 8, 2024
@tisonkun
Copy link
Author

tisonkun commented Oct 8, 2024

tisonkun/morax#10

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

1 participant