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

File not found sys/ioctl.h on Windows #30

Open
Michael-F-Bryan opened this issue Aug 22, 2023 · 8 comments
Open

File not found sys/ioctl.h on Windows #30

Michael-F-Bryan opened this issue Aug 22, 2023 · 8 comments

Comments

@Michael-F-Bryan
Copy link

In wasmerio/wasmer's CI, we've seen some build failures on Windows (link) where the build script is trying to access a header file that doesn't exist.

We're using interfaces v0.0.9 with default features.

error: failed to run custom build command for `interfaces v0.0.9`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `D:\a\wasmer\wasmer\target\release\build\interfaces-10cfbade80767794\build-script-build` (exit code: 1)
  --- stdout
  TARGET = Some("x86_64-pc-windows-msvc")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-pc-windows-msvc")
  cargo:rerun-if-env-changed=CC_x86_64-pc-windows-msvc
  CC_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CC_x86_64_pc_windows_msvc
  CC_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  DEBUG = Some("false")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-msvc
  CFLAGS_x86_64-pc-windows-msvc = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_msvc
  CFLAGS_x86_64_pc_windows_msvc = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-W4" "-FoD:\\a\\wasmer\\wasmer\\target\\release\\build\\interfaces-32e0d97e2c065431\\out\\a9a87[299](https://github.com/wasmerio/wasmer/actions/runs/5935918550/job/16095269578#step:20:300)11c1686c-constants.o" "-c" "D:\\a\\wasmer\\wasmer\\target\\release\\build\\interfaces-32e0d97e2c065431\\out\\constants.c"
  constants.c
  D:\a\wasmer\wasmer\target\release\build\interfaces-32e0d97e2c065431\out\constants.c(4): fatal error C1083: Cannot open include file: 'sys/ioctl.h': No such file or directory
  exit code: 2

  --- stderr


  error occurred: Command "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.[301](https://github.com/wasmerio/wasmer/actions/runs/5935918550/job/16095269578#step:20:302)33\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-O2" "-Brepro" "-W4" "-FoD:\\a\\wasmer\\wasmer\\target\\release\\build\\interfaces-32e0d97e2c065431\\out\\a9a8729911c1686c-constants.o" "-c" "D:\\a\\wasmer\\wasmer\\target\\release\\build\\interfaces-32e0d97e2c065431\\out\\constants.c" with args "cl.exe" did not execute successfully (status code exit code: 2).
@Tnze
Copy link

Tnze commented Aug 23, 2023

Same problem.

@Llorx
Copy link

Llorx commented Nov 1, 2023

Same problem. Bump.

@JoshLambda
Copy link

Same problem

dalance added a commit that referenced this issue Nov 8, 2023
@dalance
Copy link
Collaborator

dalance commented Nov 8, 2023

Currently Windows is not supported.
I added README about it.

@Llorx
Copy link

Llorx commented Nov 8, 2023

Soooo only unix-alike systems. Weird "cross-platform manner" you have there xD

@dalance
Copy link
Collaborator

dalance commented Nov 8, 2023

I'm not the original author, but I guess that the author intended that "cross-platform" means Linux, *BSD, macOS, Android, and so on.
So I don't think that the expression is inappropriate.

Of course, if anyone contribute to add Windows support, I'll merge it.

@Tnze
Copy link

Tnze commented Nov 8, 2023

Agree

@JoshLambda
Copy link

JoshLambda commented Nov 8, 2023

As a workaround, it's possible to replace this crate with the crate get_if_addrs which supports Windows, Linux, and macOS.

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

5 participants