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

Compiling filetime in AIX fails #107

Closed
ayappanec opened this issue May 3, 2024 · 2 comments
Closed

Compiling filetime in AIX fails #107

ayappanec opened this issue May 3, 2024 · 2 comments

Comments

@ayappanec
Copy link

Compiling filetime in AIX fails with below error.,
rustc --crate-name filetime --edition=2018 /.cargo/registry/src/index.crates.io-d11c229612889eed/filetime-0.2.23/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=a98d88e96f31687d -C extra-filename=-a98d88e96f31687d --out-dir /tmp/pip-install-2doeq8db/tokenizers_a6dcd574fc864cb793f0985f2a16d7f5/target/release/deps -C strip=debuginfo -L dependency=/tmp/pip-install-2doeq8db/tokenizers_a6dcd574fc864cb793f0985f2a16d7f5/target/release/deps --extern cfg_if=/tmp/pip-install-2doeq8db/tokenizers_a6dcd574fc864cb793f0985f2a16d7f5/target/release/deps/libcfg_if-55e79adb7c27a106.rmeta --extern libc=/tmp/pip-install-2doeq8db/tokenizers_a6dcd574fc864cb793f0985f2a16d7f5/target/release/deps/liblibc-3a5102201a3aa852.rmeta --cap-lints allow -C link-arg=-bbigtoc -L/opt/freeware/lib -D_ALL_SOURCE -lpython3.9

error[E0308]: mismatched types
     --> /.cargo/registry/src/index.crates.io-d11c229612889eed/filetime-0.2.23/src/unix/utimensat.rs:58:55
      |
 58   |     let rc = unsafe { libc::utimensat(libc::AT_FDCWD, p.as_ptr(), times.as_ptr(), flags) };
      |                       ---------------                 ^^^^^^^^^^ expected `*const u8`, found `*const i8`
      |                       |
      |                       arguments to this function are incorrect
      |
      = note: expected raw pointer `*const u8`
                 found raw pointer `*const i8`
 note: function defined here
     --> /.cargo/registry/src/index.crates.io-d11c229612889eed/libc-0.2.154/src/unix/aix/mod.rs:3337:12
      |
 3337 |     pub fn utimensat(
      |            ^^^^^^^^^
@taiki-e
Copy link
Contributor

taiki-e commented Aug 5, 2024

Probably related to rust-lang/rust#122986 and updating libc or compiler should fix it.

@ayappanec
Copy link
Author

Closing it as per above comments

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

2 participants