pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cargo-c



Am Wed, 16 Apr 2025 09:38:40 +0200
schrieb pin <voidpin%protonmail.com@localhost>:

> devel/cargo-c in pkgsrc is currently stuck at version 0.9.32
> [..] 
> I would like to import 0.10.12 into the main branch and probably deprecate Rust-1.76

In danger of being guilty of thread hijacking … but it might be
something to be fixed by a cargo-c update. Any idea about this failure
I get on a Debian system? It's not using the libdir
/usr/lib/x86_64-linux-gnu/ (or even /usr/lib/x86_64-linux-musl/ which
could matter on other systems) but the non-multiarch /usr/lib64 or
/usr/lib.

Where should I hack things so that it uses the correct directory? Would
it be too easy if things would just use pkg-config?

$ pkg-config --variable libdir openssl
/usr/lib/x86_64-linux-gnu


   Compiling annotate-snippets v0.10.2
   Compiling supports-unicode v2.1.0
error: failed to run custom build command for `openssl-sys v0.9.102`

Caused by:
  process didn't exit successfully: `/nfs/ssd2.2/u/sw/work/a770de/pkgsrc/2025Q1-devel/bw/devel/cargo-c/work/cargo-c-0.9.32/target/release/build/openssl-sys-bc5f05c28c6e7994/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
  OPENSSL_LIB_DIR unset
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
  OPENSSL_INCLUDE_DIR unset
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_DIR
  OPENSSL_DIR = /usr
  cargo:rerun-if-changed=/usr/include/openssl
  cargo:rustc-link-search=native=/usr/lib64
  cargo:rustc-link-search=native=/usr/lib
  cargo:include=/usr/include
  cargo:rerun-if-changed=build/expando.c
  OPT_LEVEL = Some("3")
  TARGET = Some("x86_64-unknown-linux-gnu")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = Some("gcc")
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = Some("-march=native -O2 -fno-math-errno -ftree-vectorize -I/sw/env/gcc-13.2.0/openmpi/4.1.6/include -I/sw/compiler/gcc-13.2.0/include -I/sw/env/gcc-13.2.0_openmpi-4.1.6/pkgsrc/2025Q1-devel/include -I/usr/include")
  version: 3_0_15
  cargo:rustc-cfg=osslconf="OPENSSL_NO_IDEA"
  cargo:rustc-cfg=osslconf="OPENSSL_NO_SSL3_METHOD"
  cargo:conf=OPENSSL_NO_IDEA,OPENSSL_NO_SSL3_METHOD
  cargo:rustc-cfg=openssl
  cargo:rustc-cfg=ossl300
  cargo:rustc-cfg=ossl101
  cargo:rustc-cfg=ossl102
  cargo:rustc-cfg=ossl102f
  cargo:rustc-cfg=ossl102h
  cargo:rustc-cfg=ossl110
  cargo:rustc-cfg=ossl110f
  cargo:rustc-cfg=ossl110g
  cargo:rustc-cfg=ossl110h
  cargo:rustc-cfg=ossl111
  cargo:rustc-cfg=ossl111b
  cargo:rustc-cfg=ossl111c
  cargo:rustc-cfg=ossl111d
  cargo:version_number=300000f0
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIBS
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIBS unset
  cargo:rerun-if-env-changed=OPENSSL_LIBS
  OPENSSL_LIBS unset
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_STATIC
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_STATIC unset
  cargo:rerun-if-env-changed=OPENSSL_STATIC
  OPENSSL_STATIC unset

  --- stderr
  thread 'main' panicked at /nfs/ssd2.2/u/sw/work/a770de/pkgsrc/2025Q1-devel/bw/devel/cargo-c/work/vendor/openssl-sys-0.9.102/build/main.rs:417:13:
  OpenSSL libdir at `["/usr/lib64", "/usr/lib"]` does not contain the required files to either statically or dynamically link OpenSSL
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
*** Error code 101

Stop.
bmake[1]: stopped making "all" in /nfs/ssd2.2/u/sw/work/a770de/pkgsrc/2025Q1-devel/pkgsrc-41da1554ace8/devel/cargo-c
*** Error code 1

Stop.
bmake: stopped making "all" in /nfs/ssd2.2/u/sw/work/a770de/pkgsrc/2025Q1-devel/pkgsrc-41da1554ace8/devel/cargo-c


Alrighty then,

Thomas

-- 
Dr. Thomas Orgis
HPC @ Universität Hamburg


Home | Main Index | Thread Index | Old Index