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

Unsupported target architecture when building on armv7l-linux (starship 1.10.2) #4340

Closed
misuzu opened this issue Sep 3, 2022 · 1 comment
Labels
🐛 bug Something isn't working as expected.

Comments

@misuzu
Copy link

misuzu commented Sep 3, 2022

Bug Report

Current Behavior

starship 1.10.2 fails to build on armv7l-linux (1.10.1 is building just fine):

Build log
unpacking sources
unpacking source archive /nix/store/4dqqm0yw8fxdvw5q81npnl86agpngiq7-source
source root is source
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/53z9dd3yxpkhm61amfiy5qrjj1ik274c-starship-1.10.2-vendor.tar.gz
Finished cargoSetupPostUnpackHook
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /build/source//Cargo.lock and /build/starship-1.10.2-vendor.tar.gz/Cargo.lock
Finished cargoSetupPostPatchHook
updateAutotoolsGnuConfigScriptsPhase
configuring
building
Executing cargoBuildHook
++ env CC_armv7-unknown-linux-gnueabihf=/nix/store/5fjdgypdxd81a06asa9cksll9c1k1m97-gcc-wrapper-10.4.0/bin/cc CXX_armv7-unknown-linux-gnueabihf=/nix/store/5fjdgypdxd81a06asa9cksll9c1k1m97-gcc-wrapper-10.4.0/bin/c++ CC_armv7-unknown-linux-gnueabihf=/nix/store/5fjdgypdxd81a06asa9cksll9c1k1m97-gcc-wrapper-10.4.0/bin/cc CXX_armv7-unknown-linux-gnueabihf=/nix/store/5fjdgypdxd81a06asa9cksll9c1k1m97-gcc-wrapper-10.4.0/bin/c++ cargo build -j 4 --target armv7-unknown-linux-gnueabihf --frozen --release --no-default-features --features=default
   Compiling libc v0.2.131
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling proc-macro2 v1.0.40
   Compiling quote v1.0.20
   Compiling unicode-ident v1.0.1
   Compiling syn v1.0.98
   Compiling version_check v0.9.4
   Compiling once_cell v1.13.1
   Compiling memchr v2.5.0
   Compiling scopeguard v1.1.0
   Compiling crossbeam-utils v0.8.10
   Compiling smallvec v1.9.0
   Compiling typenum v1.15.0
   Compiling cc v1.0.73
   Compiling lazy_static v1.4.0
   Compiling quick-error v2.0.1
   Compiling either v1.6.1
   Compiling parking_lot_core v0.9.3
   Compiling regex-automata v0.1.10
   Compiling rayon-core v1.9.3
   Compiling crossbeam-queue v0.3.6
   Compiling itoa v1.0.3
   Compiling pkg-config v0.3.25
   Compiling crc32fast v1.3.2
   Compiling hex v0.4.3
   Compiling sha1_smol v1.0.0
   Compiling adler v1.0.2
   Compiling bytesize v1.1.0
   Compiling human_format v1.0.3
   Compiling same-file v1.0.6
   Compiling time-macros v0.2.4
   Compiling num_threads v0.1.6
   Compiling minimal-lexical v0.2.1
   Compiling bitflags v1.3.2
   Compiling serde_derive v1.0.143
   Compiling serde v1.0.143
   Compiling fastrand v1.7.0
   Compiling futures-core v0.3.21
   Compiling signal-hook v0.3.14
   Compiling const_fn v0.4.9
   Compiling log v0.4.17
   Compiling remove_dir_all v0.5.3
   Compiling pin-project-lite v0.2.9
   Compiling rustversion v1.0.8
   Compiling unicode-xid v0.2.3
   Compiling tinyvec_macros v0.1.0
   Compiling cache-padded v1.2.0
   Compiling parking_lot_core v0.8.5
   Compiling siphasher v0.3.10
   Compiling futures-io v0.3.21
   Compiling parking v2.0.0
   Compiling waker-fn v1.1.0
   Compiling matches v0.1.9
   Compiling event-listener v2.5.2
   Compiling ryu v1.0.10
   Compiling futures-task v0.3.21
   Compiling slab v0.4.6
   Compiling hash_hasher v2.0.3
   Compiling ppv-lite86 v0.2.16
   Compiling static_assertions v1.1.0
   Compiling iana-time-zone v0.1.44
   Compiling byteorder v1.4.3
   Compiling futures-util v0.3.21
   Compiling unicode-bom v1.1.4
   Compiling unicode-bidi v0.3.8
   Compiling ucd-trie v0.1.3
   Compiling arrayvec v0.7.2
   Compiling percent-encoding v2.1.0
   Compiling async-trait v0.1.56
   Compiling io-lifetimes v0.7.2
   Compiling regex-syntax v0.6.27
   Compiling clru v0.5.0
   Compiling unicode-width v0.1.9
   Compiling easy-parallel v3.2.0
   Compiling pin-utils v0.1.0
   Compiling rustix v0.35.7
   Compiling os_str_bytes v6.1.0
   Compiling async-task v4.2.0
   Compiling is_debug v1.0.1
   Compiling futures-sink v0.3.21
   Compiling heck v0.4.0
   Compiling strsim v0.10.0
   Compiling serde_json v1.0.83
   Compiling arc-swap v1.5.1
   Compiling home v0.5.3
   Compiling semver v1.0.13
   Compiling termcolor v1.1.3
   Compiling starship-battery v0.7.9
   Compiling utf8-width v0.1.6
   Compiling dunce v1.0.2
   Compiling process_control v3.5.1
   Compiling linux-raw-sys v0.0.46
   Compiling bytes v1.1.0
   Compiling dlv-list v0.3.0
   Compiling pathdiff v0.2.1
   Compiling linked-hash-map v0.5.6
   Compiling lazycell v1.3.0
   Compiling ansi_term v0.12.1
   Compiling path-slash v0.2.1
   Compiling local_ipaddress v0.1.3
   Compiling shell-words v1.1.0
   Compiling urlencoding v2.1.0
   Compiling unicode-segmentation v1.9.0
   Compiling instant v0.1.12
   Compiling memoffset v0.6.5
   Compiling lock_api v0.4.7
   Compiling num-traits v0.2.15
   Compiling crossbeam-epoch v0.9.9
   Compiling rayon v1.5.3
   Compiling indexmap v1.9.1
   Compiling num-integer v0.1.45
   Compiling tracing-core v0.1.28
   Compiling generic-array v0.14.5
   Compiling ahash v0.7.6
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling unicase v2.6.0
   Compiling git-bitmap v0.1.1
   Compiling git-chunk v0.3.0
   Compiling itertools v0.10.3
   Compiling cmake v0.1.48
   Compiling git-hash v0.9.7
   Compiling sha1-asm v0.5.1
   Compiling miniz_oxide v0.5.3
   Compiling sha1 v0.6.1
   Compiling prodash v19.0.1
   Compiling walkdir v2.3.2
   Compiling tinyvec v1.6.0
   Compiling concurrent-queue v1.2.2
   Compiling phf_shared v0.11.1
   Compiling async-lock v2.5.0
   Compiling form_urlencoded v1.0.1
   Compiling uluru v3.0.0
   Compiling textwrap v0.15.0
   Compiling clap_lex v0.2.3
   Compiling byte-unit v4.0.14
   Compiling open v3.0.2
   Compiling yaml-rust v0.4.5
   Compiling libz-sys v1.1.8
error: failed to run custom build command for `sha1-asm v0.5.1`

Caused by:
  process didn't exit successfully: `/build/source/target/release/build/sha1-asm-3915055a16f1bd85/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'Unsupported target architecture', /build/starship-1.10.2-vendor.tar.gz/sha1-asm/build.rs:14:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Expected Behavior

Starship should build on armv7l-linux.

Additional context/Screenshots

$ uname -a
Linux localhost 5.15.62 #1-NixOS SMP Sun Aug 21 13:17:49 UTC 2022 armv7l GNU/Linux

Possible Solution

Remove sha1-asm dependency?

Environment

  • Starship version: [the output of starship --version]
  • Shell type: [fish, zsh]
  • Shell version: [the output of fish --version or zsh --version]
  • Shell plugin manager: [if present, e.g. oh-my-fish, oh-my-zsh, fisher, antigen]
  • Terminal emulator: [e.g. iTerm, Hyper, Terminator]
  • Operating system: [e.g. macOS 10.13.4, Windows 10]

Relevant Shell Configuration

# Your configuration here

Starship Configuration

# Your configuration here
@misuzu misuzu added the 🐛 bug Something isn't working as expected. label Sep 3, 2022
@davidkna
Copy link
Member

davidkna commented Sep 3, 2022

Thanks for reporting this, but this was already reported in #4291 and has since been fixed in the master branch. You should be able to build to avoid the issue bumping the git-features crate.

@davidkna davidkna closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working as expected.
Projects
None yet
Development

No branches or pull requests

2 participants