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

Python build is broken on main #1856

Closed
rtyler opened this issue Nov 14, 2023 · 0 comments
Closed

Python build is broken on main #1856

rtyler opened this issue Nov 14, 2023 · 0 comments
Labels
binding/python Issues for the Python package bug Something isn't working

Comments

@rtyler
Copy link
Member

rtyler commented Nov 14, 2023

Looks like something in openssl 😢

Spotted here

Checking if build backend supports build_editable: started
Checking if build backend supports build_editable: finished with status 'done'
Building wheels for collected packages: deltalake
  Building editable for deltalake (pyproject.toml): started
  Building editable for deltalake (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error
  
  × Building editable for deltalake (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [125 lines of output]
      Running `maturin pep517 build-wheel -i /__w/delta-rs/delta-rs/python/venv/bin/python --compatibility off --editable`
      ⚠️ Warning: specify [package.metadata.maturin] name in Cargo.toml is deprecated, use module-name in [tool.maturin] section in pyproject.toml instead
      🍹 Building a mixed python/rust project
      🔗 Found pyo3 bindings with abi3 support for Python ≥ 3.7
      🐍 Not using a specific python interpreter
         Compiling libc v0.2.150
         Compiling http v0.2.11
         Compiling http-body v0.4.5
         Compiling h2 v0.3.21
         Compiling cc v1.0.84
         Compiling openssl-src v300.1.6+3.1.4
         Compiling ring v0.16.20
         Compiling ring v0.17.5
         Compiling openssl-sys v0.9.95
         Compiling hyper v0.14.27
         Compiling zstd-sys v2.0.9+zstd.1.5.5
      error: failed to run custom build command for `openssl-sys v0.9.95`
      
      Caused by:
        process didn't exit successfully: `/__w/delta-rs/delta-rs/target/release/build/openssl-sys-a6459ca26c6b4b8d/build-script-main` (exit status: 101)
        --- stdout
        cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR
        X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR unset
        cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
        OPENSSL_NO_VENDOR unset
        cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
        CC_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
        CC_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_CC
        HOST_CC = None
        cargo:rerun-if-env-changed=CC
        CC = None
        running: "cc" "--version"
        exit status: 0
        cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
        CRATE_CC_NO_DEFAULTS = None
        DEBUG = Some("false")
        CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
        cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
        CFLAGS_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
        CFLAGS_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_CFLAGS
        HOST_CFLAGS = None
        cargo:rerun-if-env-changed=CFLAGS
        CFLAGS = None
        cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
        AR_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
        AR_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_AR
        HOST_AR = None
        cargo:rerun-if-env-changed=AR
        AR = None
        cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
        ARFLAGS_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
        ARFLAGS_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_ARFLAGS
        HOST_ARFLAGS = None
        cargo:rerun-if-env-changed=ARFLAGS
        ARFLAGS = None
        cargo:rerun-if-env-changed=RANLIB_x86_64-unknown-linux-gnu
        RANLIB_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=RANLIB_x86_64_unknown_linux_gnu
        RANLIB_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_RANLIB
        HOST_RANLIB = None
        cargo:rerun-if-env-changed=RANLIB
        RANLIB = None
        cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64-unknown-linux-gnu
        RANLIBFLAGS_x86_64-unknown-linux-gnu = None
        cargo:rerun-if-env-changed=RANLIBFLAGS_x86_64_unknown_linux_gnu
        RANLIBFLAGS_x86_64_unknown_linux_gnu = None
        cargo:rerun-if-env-changed=HOST_RANLIBFLAGS
        HOST_RANLIBFLAGS = None
        cargo:rerun-if-env-changed=RANLIBFLAGS
        RANLIBFLAGS = None
        running cd "/__w/delta-rs/delta-rs/target/release/build/openssl-sys-c00318f988861ae3/out/openssl-build/build/src" && AR="ar" CC="cc" RANLIB="ranlib" "perl" "./Configure" "--prefix=/__w/delta-rs/delta-rs/target/release/build/openssl-sys-c00318f988861ae3/out/openssl-build/install" "--openssldir=/usr/local/ssl" "no-dso" "no-shared" "no-ssl3" "no-tests" "no-comp" "no-zlib" "no-zlib-dynamic" "--libdir=lib" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"
        Configuring OpenSSL version 3.1.4 for target linux-x86_64
        Using os-specific seed configuration
        Created configdata.pm
        Running configdata.pm
        Created Makefile.in
        Created Makefile
        Created include/openssl/configuration.h
      
        **********************************************************************
        ***                                                                ***
        ***   OpenSSL has been successfully configured                     ***
        ***                                                                ***
        ***   If you encounter a problem while building, please open an    ***
        ***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
        ***   and include the output from the following command:           ***
        ***                                                                ***
        ***       perl configdata.pm --dump                                ***
        ***                                                                ***
        ***   (If you are new to OpenSSL, you might want to consult the    ***
        ***   'Troubleshooting' section in the INSTALL.md file first)      ***
        ***                                                                ***
        **********************************************************************
        running cd "/__w/delta-rs/delta-rs/target/release/build/openssl-sys-c00318f988861ae3/out/openssl-build/build/src" && "make" "depend"
        running cd "/__w/delta-rs/delta-rs/target/release/build/openssl-sys-c00318f988861ae3/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "make" "build_libs"
        /usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" "-oMakefile" include/crypto/bn_conf.h.in > include/crypto/bn_conf.h
      
        --- stderr
        make: *** read jobs pipe: Resource temporarily unavailable.  Stop.
        make: *** Waiting for unfinished jobs....
        thread 'main' panicked at /github/home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-src-300.1.6+3.1.4/src/lib.rs:585:9:
      
      
      
        Error building OpenSSL:
            Command: cd "/__w/delta-rs/delta-rs/target/release/build/openssl-sys-c00318f988861ae3/out/openssl-build/build/src" && MAKEFLAGS="-j --jobserver-fds=7,8 --jobserver-auth=7,8" "make" "build_libs"
            Exit status: exit status: 2
      
      
      
        note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
      warning: build failed, waiting for other jobs to finish...
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `PYTHON_SYS_EXECUTABLE="/__w/delta-rs/delta-rs/python/venv/bin/python" RUSTFLAGS="-C debuginfo=line-tables-only" "cargo" "rustc" "--release" "--manifest-path" "/__w/delta-rs/delta-rs/python/Cargo.toml" "--message-format" "json" "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/__w/delta-rs/delta-rs/python/venv/bin/python', '--compatibility', 'off', '--editable'] returned non-zero exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building editable for deltalake
Failed to build deltalake
ERROR: Could not build wheels for deltalake, which is required to install pyproject.toml-based projects
@rtyler rtyler added bug Something isn't working binding/python Issues for the Python package labels Nov 14, 2023
@rtyler rtyler closed this as completed Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant