Skip to content

paramiko crosscompile issue #100

@mosolovsa

Description

@mosolovsa

Hello! Please help me with cross compiling paramiko module to embedded Linux with ARM.

I've crosscompiling from linux x86_64 to armv7 (32 bit).

Looks like there is a problem with crosscompiling "cryptography" module due to some parts is written in Rust and Rust do not have information about need to crosscompile the library to target board. I think that way because of messages during build, e.g.:

error: linking with `cc` failed: exit status: 1
      |
      = note: "cc" "-m64"

I doubt that -m64 is right argument because my target board has imx6 (32-bit armv7)

and later on I've see:

     = note: /usr/bin/ld: /home/serg/crscmpl/imx6bh4/host/usr/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib32/../lib/Scrt1.o: Relocations in generic ELF (EM: 40)
              /usr/bin/ld: /home/serg/crscmpl/imx6bh4/host/usr/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib32/../lib/Scrt1.o: Relocations in generic ELF (EM: 40)
              /home/serg/crscmpl/imx6bh4/host/usr/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib32/../lib/Scrt1.o: error adding symbols: File in wrong format
              collect2: error: ld returned 1 exit status

host ld fails at trying to link target libs

host and target python version is 3.6.10, crossvenv ver. 1.20

verbose output:

(cross)  ✘ cepera@mosolov  ~/tmp/pybh4  🙈🙊🙉 pip install paramiko
Collecting paramiko
  Using cached https://files.pythonhosted.org/packages/04/e5/39ec73dd4a8769d6759b8d6c60a1b2c9337f585407c2ae8bfb8ccb734278/paramiko-2.11.0-py2.py3-none-any.whl
Collecting cryptography>=2.5 (from paramiko)
  Using cached https://files.pythonhosted.org/packages/51/05/bb2b681f6a77276fc423d04187c39dafdb65b799c8d87b62ca82659f9ead/cryptography-37.0.2.tar.gz
  Installing build dependencies ... done
Collecting six (from paramiko)
  Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Requirement already satisfied: bcrypt>=3.1.3 in ./cross_venv/cross/lib/python3.6/site-packages (from paramiko) (3.2.2)
Collecting pynacl>=1.0.1 (from paramiko)
  Using cached https://files.pythonhosted.org/packages/a7/22/27582568be639dfe22ddb3902225f91f2f17ceff88ce80e4db396c8986da/PyNaCl-1.5.0.tar.gz
  Installing build dependencies ... done
Requirement already satisfied: cffi>=1.12 in ./cross_venv/cross/lib/python3.6/site-packages (from cryptography>=2.5->paramiko) (1.15.0)
Requirement already satisfied: pycparser in ./cross_venv/cross/lib/python3.6/site-packages (from cffi>=1.12->cryptography>=2.5->paramiko) (2.21)
Installing collected packages: cryptography, six, pynacl, paramiko
  Running setup.py install for cryptography ... error
    Complete output from command /home/cepera/tmp/pybh4/cross_venv/cross/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-uw5jp1jq/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-17latr65/install-record.txt --single-version-externally-managed --compile --install-headers /home/cepera/tmp/pybh4/cross_venv/cross/include/site/python3.6/cryptography:
    /home/cepera/crscmpl/target/build-python/bh4/lib/python3.6/importlib/__init__.py:126: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
      return _bootstrap._gcd_import(name[level:], package, level)
    running install
    /tmp/pip-build-env-sc5ybsya/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      setuptools.SetuptoolsDeprecationWarning,
    running build
    running build_py
    creating build
    creating build/lib.linux-arm-3.6
    creating build/lib.linux-arm-3.6/cryptography
    copying src/cryptography/fernet.py -> build/lib.linux-arm-3.6/cryptography
    copying src/cryptography/__about__.py -> build/lib.linux-arm-3.6/cryptography
    copying src/cryptography/exceptions.py -> build/lib.linux-arm-3.6/cryptography
    copying src/cryptography/utils.py -> build/lib.linux-arm-3.6/cryptography
    copying src/cryptography/__init__.py -> build/lib.linux-arm-3.6/cryptography
    creating build/lib.linux-arm-3.6/cryptography/hazmat
    copying src/cryptography/hazmat/_oid.py -> build/lib.linux-arm-3.6/cryptography/hazmat
    copying src/cryptography/hazmat/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat
    creating build/lib.linux-arm-3.6/cryptography/x509
    copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-arm-3.6/cryptography/x509
    copying src/cryptography/x509/extensions.py -> build/lib.linux-arm-3.6/cryptography/x509
    copying src/cryptography/x509/base.py -> build/lib.linux-arm-3.6/cryptography/x509
    copying src/cryptography/x509/name.py -> build/lib.linux-arm-3.6/cryptography/x509
    copying src/cryptography/x509/ocsp.py -> build/lib.linux-arm-3.6/cryptography/x509
    copying src/cryptography/x509/oid.py -> build/lib.linux-arm-3.6/cryptography/x509
    copying src/cryptography/x509/__init__.py -> build/lib.linux-arm-3.6/cryptography/x509
    copying src/cryptography/x509/general_name.py -> build/lib.linux-arm-3.6/cryptography/x509
    creating build/lib.linux-arm-3.6/cryptography/hazmat/backends
    copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends
    creating build/lib.linux-arm-3.6/cryptography/hazmat/bindings
    copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/bindings
    creating build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives
    creating build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-arm-3.6/cryptography/hazmat/backends/openssl
    creating build/lib.linux-arm-3.6/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-arm-3.6/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/bindings/openssl
    copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-arm-3.6/cryptography/hazmat/bindings/openssl
    creating build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/asymmetric
    creating build/lib.linux-arm-3.6/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/serialization
    copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/serialization
    creating build/lib.linux-arm-3.6/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/ciphers
    copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/ciphers
    creating build/lib.linux-arm-3.6/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/twofactor
    copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/twofactor
    creating build/lib.linux-arm-3.6/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/kdf
    copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-arm-3.6/cryptography/hazmat/primitives/kdf
    running egg_info
    writing src/cryptography.egg-info/PKG-INFO
    writing dependency_links to src/cryptography.egg-info/dependency_links.txt
    writing requirements to src/cryptography.egg-info/requires.txt
    writing top-level names to src/cryptography.egg-info/top_level.txt
    reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    no previously-included directories found matching 'docs/_build'
    warning: no previously-included files found matching 'vectors'
    warning: no previously-included files matching '*' found under directory 'vectors'
    warning: no previously-included files matching '*' found under directory '.github'
    warning: no previously-included files found matching 'release.py'
    warning: no previously-included files found matching '.coveragerc'
    warning: no previously-included files found matching 'codecov.yml'
    warning: no previously-included files found matching '.readthedocs.yml'
    warning: no previously-included files found matching 'dev-requirements.txt'
    warning: no previously-included files found matching 'tox.ini'
    warning: no previously-included files found matching 'mypy.ini'
    warning: no previously-included files matching '*' found under directory '.circleci'
    adding license file 'LICENSE'
    adding license file 'LICENSE.APACHE'
    adding license file 'LICENSE.BSD'
    adding license file 'LICENSE.PSF'
    writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
    copying src/cryptography/py.typed -> build/lib.linux-arm-3.6/cryptography
    creating build/lib.linux-arm-3.6/cryptography/hazmat/bindings/_rust
    copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-arm-3.6/cryptography/hazmat/bindings/_rust
    copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-arm-3.6/cryptography/hazmat/bindings/_rust
    copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-arm-3.6/cryptography/hazmat/bindings/_rust
    copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-arm-3.6/cryptography/hazmat/bindings/_rust
    running build_ext
    running build_rust
     Downloading crates ...
      Downloaded once_cell v1.10.0
      Downloaded asn1 v0.8.7
      Downloaded indoc v0.3.6
      Downloaded ouroboros v0.15.0
      Downloaded ouroboros_macro v0.15.0
      Downloaded proc-macro-hack v0.5.19
      Downloaded proc-macro2 v1.0.37
      Downloaded pyo3-build-config v0.15.2
      Downloaded pyo3-macros v0.15.2
      Downloaded pyo3 v0.15.2
      Downloaded redox_syscall v0.2.13
      Downloaded pyo3-macros-backend v0.15.2
      Downloaded syn v1.0.91
      Downloaded stable_deref_trait v1.2.0
      Downloaded unindent v0.1.8
      Downloaded aliasable v0.1.3
      Downloaded asn1_derive v0.8.7
      Downloaded indoc-impl v0.3.6
      Downloaded paste v0.1.18
      Downloaded paste-impl v0.1.18
      Downloaded quote v1.0.18
      Downloaded smallvec v1.8.0
      Downloaded pem v1.0.2
      Downloaded lock_api v0.4.7
      Downloaded Inflector v0.11.4
      Downloaded libc v0.2.124
    cargo rustc --lib --manifest-path src/rust/Cargo.toml --target arm-unknown-linux-gnueabihf --release -v --features pyo3/abi3-py36 pyo3/extension-module -- --crate-type cdylib -C linker=/home/serg/crscmpl/imx6bh4/host/usr/bin/arm-buildroot-linux-gnueabihf-gcc
       Compiling proc-macro2 v1.0.37
       Compiling unicode-xid v0.2.2
       Compiling autocfg v1.1.0
       Compiling syn v1.0.91
         Running `rustc --crate-name build_script_build --edition=2018 /home/cepera/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.37/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=35ff75aff74bf081 -C extra-filename=-35ff75aff74bf081 --out-dir /tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081 -L dependency=/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps --cap-lints allow`
         Running `rustc --crate-name build_script_build --edition=2018 /home/cepera/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.91/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="extra-traits"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' -C metadata=21505b28ff620a5c -C extra-filename=-21505b28ff620a5c --out-dir /tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c -L dependency=/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps --cap-lints allow`
         Running `rustc --crate-name autocfg /home/cepera/.cargo/registry/src/github.com-1ecc6299db9ec823/autocfg-1.1.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on -C metadata=d37872fa5288df29 -C extra-filename=-d37872fa5288df29 --out-dir /tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps -L dependency=/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps --cap-lints allow`
         Running `rustc --crate-name unicode_xid /home/cepera/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.2.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on --cfg 'feature="default"' -C metadata=2c51865e5af486b3 -C extra-filename=-2c51865e5af486b3 --out-dir /tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps -L dependency=/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps --cap-lints allow`
       Compiling version_check v0.9.4
         Running `rustc --crate-name version_check /home/cepera/.cargo/registry/src/github.com-1ecc6299db9ec823/version_check-0.9.4/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on -C metadata=29e8cd0c9737a1b7 -C extra-filename=-29e8cd0c9737a1b7 --out-dir /tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps -L dependency=/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps --cap-lints allow`
    error: linking with `cc` failed: exit status: 1
      |
      = note: "cc" "-m64" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.0.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.1.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.10.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.11.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.12.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.13.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.14.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.15.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.2.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.3.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.4.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.5.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.6.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.7.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.8.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.build_script_build.db0d15af-cgu.9.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c.1jfinw2wyfhmo45e.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps" "-L" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-05b39ac0cb4c5688.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-ccaa149b737d6503.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-a94a6388c153126b.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-1ecfa264246b85c6.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-ee710154a50440b8.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-f09986d873ea8592.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f3521e20c99619ab.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-df6036c77d75ce21.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-24f91c1a1dfc7e13.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-bffcc61991adb202.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-cf22313353d8663e.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-c45fb100f99430e9.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-0cdc47a8a81950ea.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-f1e158606c4c82f6.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0b608b5ef4df0ec4.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-b8438dc0bcbbcc08.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-70e2ae036775ff2f.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-815d281f7068a893.rlib" "-Wl,--end-group" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-377835cfab8dae0d.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c/build_script_build-21505b28ff620a5c" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs"
      = note: /usr/bin/ld: /home/serg/crscmpl/imx6bh4/host/usr/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib32/../lib/Scrt1.o: Relocations in generic ELF (EM: 40)
              /usr/bin/ld: /home/serg/crscmpl/imx6bh4/host/usr/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib32/../lib/Scrt1.o: Relocations in generic ELF (EM: 40)
              /home/serg/crscmpl/imx6bh4/host/usr/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib32/../lib/Scrt1.o: error adding symbols: File in wrong format
              collect2: error: ld returned 1 exit status
    
    
    error: could not compile `syn` due to previous error
    
    Caused by:
      process didn't exit successfully: `rustc --crate-name build_script_build --edition=2018 /home/cepera/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.91/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on --cfg 'feature="clone-impls"' --cfg 'feature="default"' --cfg 'feature="derive"' --cfg 'feature="extra-traits"' --cfg 'feature="full"' --cfg 'feature="parsing"' --cfg 'feature="printing"' --cfg 'feature="proc-macro"' --cfg 'feature="quote"' -C metadata=21505b28ff620a5c -C extra-filename=-21505b28ff620a5c --out-dir /tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/syn-21505b28ff620a5c -L dependency=/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps --cap-lints allow` (exit status: 1)
    warning: build failed, waiting for other jobs to finish...
    error: linking with `cc` failed: exit status: 1
      |
      = note: "cc" "-m64" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.0.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.1.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.10.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.11.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.12.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.13.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.14.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.15.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.2.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.3.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.4.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.5.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.6.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.7.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.8.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.build_script_build.caf484eb-cgu.9.rcgu.o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081.285hor1zdzroiwv.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps" "-L" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-05b39ac0cb4c5688.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-ccaa149b737d6503.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-a94a6388c153126b.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-1ecfa264246b85c6.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-ee710154a50440b8.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-f09986d873ea8592.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-f3521e20c99619ab.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-df6036c77d75ce21.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-24f91c1a1dfc7e13.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-bffcc61991adb202.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-cf22313353d8663e.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-c45fb100f99430e9.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-0cdc47a8a81950ea.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-f1e158606c4c82f6.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0b608b5ef4df0ec4.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-b8438dc0bcbbcc08.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-70e2ae036775ff2f.rlib" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-815d281f7068a893.rlib" "-Wl,--end-group" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-377835cfab8dae0d.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/cepera/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081/build_script_build-35ff75aff74bf081" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs"
      = note: /usr/bin/ld: /home/serg/crscmpl/imx6bh4/host/usr/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib32/../lib/Scrt1.o: Relocations in generic ELF (EM: 40)
              /usr/bin/ld: /home/serg/crscmpl/imx6bh4/host/usr/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib32/../lib/Scrt1.o: Relocations in generic ELF (EM: 40)
              /home/serg/crscmpl/imx6bh4/host/usr/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/lib32/../lib/Scrt1.o: error adding symbols: File in wrong format
              collect2: error: ld returned 1 exit status
    
    
    error: could not compile `proc-macro2` due to previous error
    
    Caused by:
      process didn't exit successfully: `rustc --crate-name build_script_build --edition=2018 /home/cepera/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.37/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=35ff75aff74bf081 -C extra-filename=-35ff75aff74bf081 --out-dir /tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/build/proc-macro2-35ff75aff74bf081 -L dependency=/tmp/pip-install-uw5jp1jq/cryptography/src/rust/target/release/deps --cap-lints allow` (exit status: 1)
    
        =============================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.6.10
        platform: Linux-arm-with
        pip: 18.1
        setuptools: 59.6.0
        setuptools_rust: 1.1.2
        =============================DEBUG ASSISTANCE=============================
    
    error: cargo failed with code: 101
    
    
    ----------------------------------------
Command "/home/cepera/tmp/pybh4/cross_venv/cross/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-uw5jp1jq/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-17latr65/install-record.txt --single-version-externally-managed --compile --install-headers /home/cepera/tmp/pybh4/cross_venv/cross/include/site/python3.6/cryptography" failed with error code 1 in /tmp/pip-install-uw5jp1jq/cryptography/
You are using pip version 18.1, however version 21.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions