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

rusoto_core build failure on MacOS 12.6.1 with Apple M1 Max chip #925

Closed
chris-bucchere-lark opened this issue Nov 8, 2022 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@chris-bucchere-lark
Copy link

Environment

Delta-rs version: latest from main

Binding: n/a

Environment:

  • Cloud provider: n/a
  • OS: MacOS 12.6.1 (Monterey) Apple M1 Max silicon
  • Other:

Bug

What happened: cargo build failed

What you expected to happen: cargo build should build the rusoto_core binary and continue with the rest of the build

How to reproduce it: git clone https://github.com/delta-io/delta-rs.git; cargo build

More details:

% cargo build
   Compiling pyo3-build-config v0.17.2
   Compiling zstd-safe v5.0.2+zstd.1.5.2
   Compiling zstd-sys v2.0.1+zstd.1.5.2
   Compiling lz4-sys v1.9.4
   Compiling object_store v0.5.1
   Compiling rusoto_core v0.48.0
   Compiling blake3 v1.3.1
   Compiling glibc_version v0.1.2
   Compiling openssl-src v111.22.0+1.1.1q
   Compiling pkg-config v0.3.25
error[E0252]: the name `tls` is defined multiple times
  --> /Users/bucchere/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/rusoto_core-0.48.0/src/lib.rs:25:5
   |
23 | use hyper_rustls as tls;
   |     ------------------- previous import of the module `tls` here
24 | #[cfg(feature = "native-tls")]
25 | use hyper_tls as tls;
   |     ^^^^^^^^^^^^^^^^ `tls` reimported here
   |
   = note: `tls` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
25 | use hyper_tls as other_tls;
   |     ~~~~~~~~~~~~~~~~~~~~~~

   Compiling lz4 v1.24.0
   Compiling deltalake v0.4.1 (/Users/bucchere/lark/delta-rs/rust)
   Compiling atty v0.2.14
   Compiling glob v0.3.0
   Compiling termcolor v1.1.3
   Compiling zstd v0.11.2+zstd.1.5.2
error[E0599]: no function or associated item named `new` found for struct `hyper_rustls::HttpsConnector` in the current scope
   --> /Users/bucchere/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/rusoto_core-0.48.0/src/request.rs:224:41
    |
224 |         let connector = HttpsConnector::new();
    |                                         ^^^ function or associated item not found in `hyper_rustls::HttpsConnector<_>`

error[E0599]: no function or associated item named `new` found for struct `hyper_rustls::HttpsConnector` in the current scope
   --> /Users/bucchere/.cargo/registry/src/git.luolix.top-1ecc6299db9ec823/rusoto_core-0.48.0/src/request.rs:244:41
    |
244 |         let connector = HttpsConnector::new();
    |                                         ^^^ function or associated item not found in `hyper_rustls::HttpsConnector<_>`

   Compiling pin-project-internal v1.0.12
Some errors have detailed explanations: E0252, E0599.
For more information about an error, try `rustc --explain E0252`.
error: could not compile `rusoto_core` due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
@chris-bucchere-lark chris-bucchere-lark added the bug Something isn't working label Nov 8, 2022
@wjones127
Copy link
Collaborator

Duplicate of #677.

We should fix this, I've just never been successful at it and tried a couple times.

The error originates from the aws/delta-checkpoint folder, so if you aren't working on that component you can simply build from one of the subdirectories instead and it should work.

@chris-bucchere-lark
Copy link
Author

Thanks and sorry for the dupe.

@rtyler
Copy link
Member

rtyler commented Sep 20, 2023

Related ticket is fixed, closing

@rtyler rtyler closed this as completed Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants