ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

Bug #2016922 reported by Felipe Reyes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Manila Charm
Fix Committed
Undecided
Felipe Reyes
2023.1
Fix Committed
Undecided
Unassigned
Zed
Fix Released
Undecided
Unassigned
OpenStack Octavia Charm
Fix Committed
Undecided
Unassigned
Zed
Fix Released
Undecided
Unassigned

Bug Description

FTBS on s390x

https://launchpadlibrarian.net/661832865/buildlog_charm_ubuntu_jammy_s390x_charm-octavia.stable-zed.zed_BUILDING.txt.gz

::
:: Caused by:
:: process didn't exit successfully: `/root/snap/charmcraft/common/pip-install-5z8bjd18/cryptography/src/rust/target/release/build/openssl-sys-a18af1042e2bae73/build-script-main` (exit status: 101)
:: --- stdout
:: cargo:rerun-if-env-changed=S390X_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
:: S390X_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
:: cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
:: OPENSSL_LIB_DIR unset
:: cargo:rerun-if-env-changed=S390X_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
:: S390X_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
:: cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
:: OPENSSL_INCLUDE_DIR unset
:: cargo:rerun-if-env-changed=S390X_UNKNOWN_LINUX_GNU_OPENSSL_DIR
:: S390X_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
:: cargo:rerun-if-env-changed=OPENSSL_DIR
:: OPENSSL_DIR unset
:: cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG
:: cargo:rerun-if-env-changed=PKG_CONFIG_s390x-unknown-linux-gnu
:: cargo:rerun-if-env-changed=PKG_CONFIG_s390x_unknown_linux_gnu
:: cargo:rerun-if-env-changed=HOST_PKG_CONFIG
:: cargo:rerun-if-env-changed=PKG_CONFIG
:: cargo:rerun-if-env-changed=OPENSSL_STATIC
:: cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
:: cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
:: cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
:: cargo:rerun-if-env-changed=PKG_CONFIG_PATH_s390x-unknown-linux-gnu
:: cargo:rerun-if-env-changed=PKG_CONFIG_PATH_s390x_unknown_linux_gnu
:: cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
:: cargo:rerun-if-env-changed=PKG_CONFIG_PATH
:: cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_s390x-unknown-linux-gnu
:: cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_s390x_unknown_linux_gnu
:: cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
:: cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
:: cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_s390x-unknown-linux-gnu
:: cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_s390x_unknown_linux_gnu
:: cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
:: cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
:: run pkg_config fail: Could not run `"pkg-config" "--libs" "--cflags" "openssl"`
:: The pkg-config command could not be found.
::
:: Most likely, you need to install a pkg-config package for your OS.
:: Try `apt install pkg-config`, or `yum install pkg-config`,
:: or `pkg install pkg-config`, or `apk add pkgconfig` depending on your distribution.
::
:: If you've already installed it, ensure the pkg-config command is one of the
:: directories in the PATH environment variable.
::
:: If you did not expect this build to link to a pre-installed system library,
:: then check documentation of the openssl-sys crate for an option to
:: build the library from source, or disable features or dependencies
:: that require pkg-config.
::
:: --- stderr
:: thread 'main' panicked at '
::
:: Could not find directory of OpenSSL installation, and this `-sys` crate cannot
:: proceed without this knowledge. If OpenSSL is installed and this crate had
:: trouble finding it, you can set the `OPENSSL_DIR` environment variable for the
:: compilation process.
::
:: Make sure you also have the development packages of openssl installed.
:: For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.
::
:: If you're in a situation where you think the directory *should* be found
:: automatically, please open a bug at https://github.com/sfackler/rust-openssl
:: and include information about your system as well as this message.
::
:: $HOST = s390x-unknown-linux-gnu
:: $TARGET = s390x-unknown-linux-gnu
:: openssl-sys = 0.9.85
::
::
:: It looks like you're compiling on Linux and also targeting Linux. Currently this
:: requires the `pkg-config` utility to find OpenSSL but unfortunately `pkg-config`
:: could not be found. If you have OpenSSL installed you can likely fix this by
:: installing `pkg-config`.
::
:: ', /root/.cargo/registry/src/github.com-eae4ba8cbf2ce1c7/openssl-sys-0.9.85/build/find_normal.rs:190:5
:: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
:: warning: build failed, waiting for other jobs to finish...
::
:: =============================DEBUG ASSISTANCE=============================
:: If you are seeing a compilation error please try the following steps to
:: successfully install cryptography:
:: 1) Upgrade to the latest pip and try again. This will fix errors for most
:: users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
:: 2) Read https://cryptography.io/en/latest/installation/ for specific
:: instructions for your platform.
:: 3) Check our frequently asked questions for more information:
:: https://cryptography.io/en/latest/faq/
:: 4) Ensure you have a recent Rust toolchain installed:
:: https://cryptography.io/en/latest/installation/#rust
::
:: Python: 3.10.6
:: platform: Linux-5.4.0-139-generic-s390x-with-glibc2.35
:: pip: n/a
:: setuptools: 67.6.1
:: setuptools_rust: 1.5.2
:: rustc: 1.65.0
:: =============================DEBUG ASSISTANCE=============================
::
:: error: `cargo rustc --lib --message-format=json-render-diagnostics --manifest-path src/rust/Cargo.toml --release -v --features 'pyo3/abi3-py36 pyo3/extension-module' -- --crate-type cdylib` failed with code 101
:: ----------------------------------------
:: ERROR: Failed building wheel for cryptography
:: Building wheel for ruamel.yaml.clib (setup.py): started
:: Building wheel for ruamel.yaml.clib (setup.py): finished with status 'done'
:: Created wheel for ruamel.yaml.clib: filename=ruamel.yaml.clib-0.2.7-cp310-cp310-linux_s390x.whl size=570489 sha256=a4eb64543b5f2b4fc6e98c609fa1cd57905048d0a538b18c28dfc5545691c766
:: Stored in directory: /root/snap/charmcraft/common/cache/pip/wheels/29/c2/16/82a391cde82afcab57744d31ac64f7589b23f715cca9560317
:: Building wheel for parse (setup.py): started
:: Building wheel for parse (setup.py): finished with status 'done'
:: Created wheel for parse: filename=parse-1.19.0-py3-none-any.whl size=24581 sha256=a71272539734ee91d0b845d1d1284277ce1425fc4a6bd6fdcee9d9f5b086fa5b
:: Stored in directory: /root/snap/charmcraft/common/cache/pip/wheels/70/4b/f0/eaf5a8de646d8676dc25caa01949b9f9d883b8fa2efb435bc3
:: Building wheel for cffi (setup.py): started
:: Building wheel for cffi (setup.py): finished with status 'done'
:: Created wheel for cffi: filename=cffi-1.15.1-cp310-cp310-linux_s390x.whl size=381043 sha256=e87ce8fca74efff29855f92964f40156e174c2fe2e1327595cfda3ef26e1bdb9
:: Stored in directory: /root/snap/charmcraft/common/cache/pip/wheels/9a/ee/45/194003e40379492794fdf4ff200b86205f5f63115b85864251
:: Successfully built charm-tools cheetah3 pyyaml jujubundlelib dict2colander vergit ruamel.yaml.clib parse cffi
:: Failed to build cryptography
:: ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

Revision history for this message
Felipe Reyes (freyes) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-octavia (master)
Changed in charm-octavia:
status: New → In Progress
Revision history for this message
Felipe Reyes (freyes) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-octavia (master)

Reviewed: https://review.opendev.org/c/openstack/charm-octavia/+/880779
Committed: https://opendev.org/openstack/charm-octavia/commit/07d0b94cdbd3f95b2d1fb74537e3f37d7237594f
Submitter: "Zuul (22348)"
Branch: master

commit 07d0b94cdbd3f95b2d1fb74537e3f37d7237594f
Author: Felipe Reyes <email address hidden>
Date: Tue Apr 18 15:58:57 2023 -0400

    Add pkg-config to build-packages

    Closes-Bug: #2016922
    Change-Id: I7469c45fd90207857918b3c727fc2779d32236f0

Changed in charm-octavia:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-octavia (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/charm-octavia/+/881017

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-octavia (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/charm-octavia/+/880989

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-octavia (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/charm-octavia/+/881017
Committed: https://opendev.org/openstack/charm-octavia/commit/731bc4f20cbfa8fd356f44b7462fa5f39384e604
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 731bc4f20cbfa8fd356f44b7462fa5f39384e604
Author: Felipe Reyes <email address hidden>
Date: Tue Apr 18 15:58:57 2023 -0400

    Add pkg-config to build-packages

    Closes-Bug: #2016922
    Change-Id: I7469c45fd90207857918b3c727fc2779d32236f0
    (cherry picked from commit 07d0b94cdbd3f95b2d1fb74537e3f37d7237594f)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-octavia (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/charm-octavia/+/880989
Committed: https://opendev.org/openstack/charm-octavia/commit/73af217350811ca3cca4ba2e794feadea2c8f071
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 73af217350811ca3cca4ba2e794feadea2c8f071
Author: Felipe Reyes <email address hidden>
Date: Tue Apr 18 15:58:57 2023 -0400

    Add pkg-config to build-packages

    Closes-Bug: #2016922
    Change-Id: I7469c45fd90207857918b3c727fc2779d32236f0
    (cherry picked from commit 07d0b94cdbd3f95b2d1fb74537e3f37d7237594f)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-manila (master)
Changed in charm-manila:
status: New → In Progress
Felipe Reyes (freyes)
Changed in charm-manila:
assignee: nobody → Felipe Reyes (freyes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-manila (master)

Reviewed: https://review.opendev.org/c/openstack/charm-manila/+/895010
Committed: https://opendev.org/openstack/charm-manila/commit/ef99e1eae4cdb5340ac295567e4ad87c2733ab93
Submitter: "Zuul (22348)"
Branch: master

commit ef99e1eae4cdb5340ac295567e4ad87c2733ab93
Author: Felipe Reyes <email address hidden>
Date: Wed Sep 13 21:50:25 2023 -0300

    Add pkg-config to build-packages

    Closes-Bug: #2016922
    Change-Id: Iff0ac6c30052bf8f00b88bb4f5f9b6eb71feeed7

Changed in charm-manila:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-manila (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/charm-manila/+/895027

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-manila (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/charm-manila/+/895165

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-manila (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/charm-manila/+/895165
Committed: https://opendev.org/openstack/charm-manila/commit/541535adae527a96a254757a547af6083d03aa56
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 541535adae527a96a254757a547af6083d03aa56
Author: Felipe Reyes <email address hidden>
Date: Wed Sep 13 21:50:25 2023 -0300

    Add pkg-config to build-packages

    Closes-Bug: #2016922
    Change-Id: Iff0ac6c30052bf8f00b88bb4f5f9b6eb71feeed7
    (cherry picked from commit ef99e1eae4cdb5340ac295567e4ad87c2733ab93)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-manila (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/charm-manila/+/895027
Committed: https://opendev.org/openstack/charm-manila/commit/5d1bd42e25fe11cf26d992f6b3b965e09cf88f20
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 5d1bd42e25fe11cf26d992f6b3b965e09cf88f20
Author: Felipe Reyes <email address hidden>
Date: Wed Sep 13 21:50:25 2023 -0300

    Add pkg-config to build-packages

    Closes-Bug: #2016922
    Change-Id: Iff0ac6c30052bf8f00b88bb4f5f9b6eb71feeed7
    (cherry picked from commit ef99e1eae4cdb5340ac295567e4ad87c2733ab93)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.