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 (RSOD) Red screen of death, Compilation Issues #1823

Open
nikhil-swamix opened this issue Nov 17, 2024 · 1 comment
Open

Python (RSOD) Red screen of death, Compilation Issues #1823

nikhil-swamix opened this issue Nov 17, 2024 · 1 comment

Comments

@nikhil-swamix
Copy link

PS D:\GitHub\COMPANY> pip install libsql-experimental
Collecting libsql-experimental
Using cached libsql_experimental-0.0.41.tar.gz (28 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: libsql-experimental
Building wheel for libsql-experimental (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for libsql-experimental (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [125 lines of output]
Running maturin pep517 build-wheel -i C:\Python312\python.exe --compatibility off
📦 Including license file "C:\Users\User\AppData\Local\Temp\pip-install-hurymq80\libsql-experimental_ec7ff98921144b36aca045b4f3c07797\LICENSE.md"
🔗 Found pyo3 bindings
🐍 Found CPython 3.12 at C:\Python312\python.exe
📡 Using build options features from pyproject.toml
Compiling proc-macro2 v1.0.86
Compiling unicode-ident v1.0.12
Compiling windows_x86_64_gnu v0.52.6
Compiling version_check v0.9.5
Compiling cfg-if v1.0.0
Compiling autocfg v1.3.0
Compiling serde v1.0.204
Compiling pin-project-lite v0.2.14
Compiling once_cell v1.19.0
Compiling smallvec v1.13.2
Compiling parking_lot_core v0.9.10
Compiling cc v1.1.6
Compiling futures-core v0.3.30
Compiling scopeguard v1.2.0
Compiling log v0.4.22
Compiling byteorder v1.5.0
Compiling futures-sink v0.3.30
Compiling getrandom v0.2.15
Compiling ahash v0.8.11
Compiling memchr v2.7.4
Compiling futures-channel v0.3.30
Compiling tracing-core v0.1.32
Compiling lock_api v0.4.12
Compiling slab v0.4.9
Compiling pin-utils v0.1.0
Compiling futures-task v0.3.30
Compiling windows-targets v0.52.6
Compiling futures-io v0.3.30
Compiling windows-sys v0.52.0
Compiling either v1.13.0
Compiling allocator-api2 v0.2.18
Compiling itoa v1.0.11
Compiling uncased v0.9.10
Compiling fnv v1.0.7
Compiling target-lexicon v0.12.15
Compiling quote v1.0.36
Compiling glob v0.3.1
Compiling syn v2.0.72
Compiling parking_lot v0.12.3
Compiling rustversion v1.0.17
Compiling anyhow v1.0.86
Compiling prettyplease v0.2.20
Compiling rustls-pki-types v1.7.0
Compiling clang-sys v1.8.1
Compiling rustix v0.38.34
Compiling tower-service v0.3.2
Compiling typenum v1.17.0
Compiling equivalent v1.0.1
Compiling libc v0.2.155
Compiling pyo3-build-config v0.19.2
Compiling ring v0.17.8
Compiling generic-array v0.14.7
Compiling httparse v1.9.4
Compiling minimal-lexical v0.2.1
Compiling regex-syntax v0.8.4
Compiling bitflags v2.6.0
Compiling libloading v0.8.5
Compiling indexmap v1.9.3
Compiling nom v7.1.3
Compiling rand_core v0.6.4
Compiling ppv-lite86 v0.2.17
Compiling spin v0.9.8
Compiling try-lock v0.2.5
Compiling bindgen v0.66.1
Compiling untrusted v0.9.0
Compiling want v0.3.1
The following warnings were emitted during compilation:

  warning: [email protected]: crypto/curve25519/curve25519.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
  warning: [email protected]:  /* Copyright (c) 2020, Google Inc.
  warning: [email protected]:
 
  error: failed to run custom build command for `ring v0.17.8`
 
  Caused by:
    process didn't exit successfully: `C:\Users\User\AppData\Local\Temp\pip-install-hurymq80\libsql-experimental_ec7ff98921144b36aca045b4f3c07797\target\release\build\ring-96877f784e2de548\build-script-build` (exit code: 1)
    --- stdout
    cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
    cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_8_
    OPT_LEVEL = Some(3)
    TARGET = Some(x86_64-pc-windows-gnu)
    OUT_DIR = Some(C:\Users\User\AppData\Local\Temp\pip-install-hurymq80\libsql-experimental_ec7ff98921144b36aca045b4f3c07797\target\release\build\ring-87148fa0e5893b46\out)
    HOST = Some(x86_64-pc-windows-gnu)
    cargo:rerun-if-env-changed=CC_x86_64-pc-windows-gnu
    CC_x86_64-pc-windows-gnu = None
    cargo:rerun-if-env-changed=CC_x86_64_pc_windows_gnu
    CC_x86_64_pc_windows_gnu = None
    cargo:rerun-if-env-changed=HOST_CC
    HOST_CC = None
    cargo:rerun-if-env-changed=CC
    CC = None
    cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
    RUSTC_WRAPPER = None
    cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
    CRATE_CC_NO_DEFAULTS = None
    DEBUG = Some(false)
    CARGO_CFG_TARGET_FEATURE = Some(cmpxchg16b,fxsr,sse,sse2,sse3)
    cargo:rerun-if-env-changed=CFLAGS_x86_64-pc-windows-gnu
    CFLAGS_x86_64-pc-windows-gnu = None
    cargo:rerun-if-env-changed=CFLAGS_x86_64_pc_windows_gnu
    CFLAGS_x86_64_pc_windows_gnu = None
    cargo:rerun-if-env-changed=HOST_CFLAGS
    HOST_CFLAGS = None
    cargo:rerun-if-env-changed=CFLAGS
    CFLAGS = None
    cargo:warning=crypto/curve25519/curve25519.c:1:0: sorry, unimplemented: 64-bit mode not compiled in
    cargo:warning= /* Copyright (c) 2020, Google Inc.
    cargo:warning=

    --- stderr


    error occurred: Command "gcc.exe" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-I" "include" "-I" "C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-hurymq80\\libsql-experimental_ec7ff98921144b36aca045b4f3c07797\\target\\release\\build\\ring-87148fa0e5893b46\\out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-g3" "-DNDEBUG" "-o" "C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-hurymq80\\libsql-experimental_ec7ff98921144b36aca045b4f3c07797\\target\\release\\build\\ring-87148fa0e5893b46\\out\\fad98b632b8ce3cc-curve25519.o" "-c" "crypto/curve25519/curve25519.c" with args gcc.exe did not execute successfully (status code 

exit code: 1).

  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 code: 101": `"cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-hurymq80\\libsql-experimental_ec7ff98921144b36aca045b4f3c07797\\Cargo.toml" "--release" "--lib"`
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'C:\\Python312\\python.exe', '--compatibility', 'off'] 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 wheel for libsql-experimental
Failed to build libsql-experimental
ERROR: Could not build wheels for libsql-experimental, which is required to install pyproject.toml-based projects

[notice] A new release of pip is available: 24.0 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip

@dextermb
Copy link

I am also struggling to compile libsql-experimental.

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