Package Details: fanyi-git 0.1.1-1

Git Clone URL: https://aur.archlinux.org/fanyi-git.git (read-only, click to copy)
Package Base: fanyi-git
Description: (Rust ver.)A CN and US translate tool in your command line.
Upstream URL: https://github.com/jialanxin/fanyi.git
Submitter: lstnbl
Maintainer: lstnbl
Last Packager: lstnbl
Votes: 0
Popularity: 0.000000
First Submitted: 2021-05-08 09:23 (UTC)
Last Updated: 2024-10-09 11:03 (UTC)

Latest Comments

lstnbl commented on 2024-10-09 11:06 (UTC)

@yuioto I update the upstream version to fix the error.

yuioto commented on 2024-10-09 08:25 (UTC)

Build(extra-x86_64-build -c) failed, try openssl to makedepends, but still failed. I get log:

   Compiling idna v0.2.3
The following warnings were emitted during compilation:

warning: openssl-sys@0.9.61: build/expando.c:4:24: error: pasting "RUST_VERSION_OPENSSL_" and "(" does not give a valid preprocessing token
warning: openssl-sys@0.9.61:     4 | #define VERSION2(n, v) RUST_VERSION_##n##_##v
warning: openssl-sys@0.9.61:       |                        ^~~~~~~~~~~~~
warning: openssl-sys@0.9.61: build/expando.c:5:23: note: in expansion of macro ‘VERSION2’
warning: openssl-sys@0.9.61:     5 | #define VERSION(n, v) VERSION2(n, v)
warning: openssl-sys@0.9.61:       |                       ^~~~~~~~
warning: openssl-sys@0.9.61: build/expando.c:10:1: note: in expansion of macro ‘VERSION’
warning: openssl-sys@0.9.61:    10 | VERSION(OPENSSL, OPENSSL_VERSION_NUMBER)
warning: openssl-sys@0.9.61:       | ^~~~~~~

error: failed to run custom build command for `openssl-sys v0.9.61`

Caused by:
  process didn't exit successfully: `/build/fanyi-git/src/fanyi/target/release/build/openssl-sys-de86c1d9706620b1/build-script-main` (exit status: 101)
  --- stdout
...
  CFLAGS = Some("-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/fanyi-git/src=/usr/src/debug/fanyi-git -flto=auto")
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-march=x86-64" "-mtune=generic" "-O2" "-pipe" "-fno-plt" "-fexceptions" "-Wp,-D_FORTIFY_SOURCE=3" "-Wformat" "-Werror=format-security" "-fstack-clash-protection" "-fcf-protection" "-fno-omit-frame-pointer" "-mno-omit-leaf-frame-pointer" "-g" "-ffile-prefix-map=/build/fanyi-git/src=/usr/src/debug/fanyi-git" "-flto=auto" "-I" "/usr/include" "-E" "build/expando.c"
  cargo:warning=build/expando.c:4:24: error: pasting "RUST_VERSION_OPENSSL_" and "(" does not give a valid preprocessing token
  cargo:warning=    4 | #define VERSION2(n, v) RUST_VERSION_##n##_##v
  cargo:warning=      |                        ^~~~~~~~~~~~~
  cargo:warning=build/expando.c:5:23: note: in expansion of macro ‘VERSION2’
  cargo:warning=    5 | #define VERSION(n, v) VERSION2(n, v)
  cargo:warning=      |                       ^~~~~~~~
  cargo:warning=build/expando.c:10:1: note: in expansion of macro ‘VERSION’
  cargo:warning=   10 | VERSION(OPENSSL, OPENSSL_VERSION_NUMBER)
  cargo:warning=      | ^~~~~~~
  exit status: 1

  --- stderr
  thread 'main' panicked at /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.61/build/main.rs:147:13:

  Header expansion error:
  Error { kind: ToolExecError, message: "Command \"cc\" \"-O3\" \"-ffunction-sections\" \"-fdata-sections\" \"-fPIC\" \"-m64\" \"-march=x86-64\" \"-mtune=generic\" \"-O2\" \"-pipe\" \"-fno-plt\" \"-fexceptions\" \"-Wp,-D_FORTIFY_SOURCE=3\" \"-Wformat\" \"-Werror=format-security\" \"-fstack-clash-protection\" \"-fcf-protection\" \"-fno-omit-frame-pointer\" \"-mno-omit-leaf-frame-pointer\" \"-g\" \"-ffile-prefix-map=/build/fanyi-git/src=/usr/src/debug/fanyi-git\" \"-flto=auto\" \"-I\" \"/usr/include\" \"-E\" \"build/expando.c\" with args \"cc\" did not execute successfully (status code exit status: 1)." }

  Failed to find OpenSSL development headers.

  You can try fixing this setting the `OPENSSL_DIR` environment variable
  pointing to your OpenSSL installation or installing OpenSSL headers package
  specific to your distribution:

      # On Ubuntu
      sudo apt-get install libssl-dev
      # On Arch Linux
      sudo pacman -S openssl
      # On Fedora
      sudo dnf install openssl-devel

  See rust-openssl README for more information:

      https://github.com/sfackler/rust-openssl#linux

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/yuioto/build

All log on(make use extra-x86_64-build -c | curl -F "c=@-" "http://fars.ee/"): https://anonpaste.io/share/9a1000d786