From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] websocat rust package
Date: Fri, 4 Aug 2023 21:00:41 +0200 [thread overview]
Message-ID: <ZM1K2VIwLJPiyl8o@lenoch> (raw)
In-Reply-To: <CAMwGMjzhLtP33wbTzT_e+eTfXpecM8h2rKaJEJ7SwsbxTmfFZw@mail.gmail.com>
Hi,
On Fri, Aug 04, 2023 at 10:54:59AM -0400, Jon Ringle wrote:
> I'm trying to create a new package to build websocat (
> https://github.com/vi/websocat).
> Here is the websocat.make file I have now:
it seems something eat your whitespace, so output is a bit hard to read.
As you didn't provide complete patch, I can only guess websocat.in is
not selecting OPENSSL...
> #
> # We provide this package
> #
> PACKAGES-$(PTXCONF_WEBSOCAT) += websocat
>
> #
>
> # Paths and names
>
> #
>
> WEBSOCAT_VERSION := 1.11.0
> WEBSOCAT_MD5 := 2a43004dc1c256119089994b5ddb414b
> WEBSOCAT := websocat-$(WEBSOCAT_VERSION)
> WEBSOCAT_SUFFIX := tar.gz
> WEBSOCAT_URL :=
> https://github.com/vi/websocat/archive/refs/tags/v${WEBSOCAT_VERSION}.$(WEBSOCAT_SUFFIX)
> WEBSOCAT_SOURCE := $(SRCDIR)/$(WEBSOCAT).$(WEBSOCAT_SUFFIX)
> WEBSOCAT_DIR := $(BUILDDIR)/$(WEBSOCAT)
> WEBSOCAT_LICENSE := MIT
> WEBSOCAT_LICENSE_FILES :=
> file://LICENSE;md5=240269ccb62c2c66a81d8fdd094dd69f
>
> WEBSOCAT_MAKE_ENV := \
> $(CROSS_CARGO_ENV) \
> $(CROSS_ENV_PKG_CONFIG) \
> PKG_CONFIG_SYSROOT_DIR=/.
>
> WEBSOCAT_CONF_TOOL := cargo
> WEBSOCAT_CONF_OPT := \
> $(CROSS_CARGO_OPT) \
> --features=ssl
>
>
> It is failing in the compile stage:
>
> ------------------------
> target: websocat.compile
> ------------------------
>
> ptxdist: executing: cd
> /home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/build-target/websocat-1.11.0
> && PATH=/home/local/GRIDPOINT/jringle/git/gridpoint-com/gp
> ec2phx/ptxdist/platform-ec2k/sysroot-cross/usr/bin:/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-cross/usr/sbin:/home/local/GRIDPOINT/jringle/git/gr
> idpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-host/usr/lib/wrapper:/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-host/usr/bin:/home/local/GRIDP
> OINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-host/usr/sbin:/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/selected_toolchain:/usr/local/lib/ptxdis
> t-2023.08.1_GP/bin:/opt/bin:/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> HTTPS_PROXY=PTXDIST-UNALLOWED-DOWNLOAD
> HTTP_PROXY=PTXDIST-UNALLOWED-DOWNLOAD
> https_proxy=PTXDIST-UNALLOWED-DOWNLOAD
> http_proxy=PTXDIST-UNALLOWED-DOWNLOAD PKGCONFIG_WHITELIST_HOST='libcrypto
> libssl openssl' PKGCONFIG_WHITELIST_TA
> RGET='' PKGCONFIG_WHITELIST_SRC='websocat'
> SYSROOT='/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/sysroot-target'
> V=1 VERBOSE=1 KBUILD_BUILD_TIMESTAMP=2022-
> 04-13T00:00:00+00:00 KBUILD_BUILD_USER=ptxdist KBUILD_BUILD_HOST=ptxdist
> CARGO_HOME='/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/build-target/websocat-1.1
> 1.0/ptxdist-cargo-home' CARGO_BUILD_TARGET="arm-v7a-linux-gnueabihf"
> RUST_TARGET_PATH=/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/selected_toolchain
> PKG_C
> ONFIG=arm-v7a-linux-gnueabihf-pkg-config PKG_CONFIG_SYSROOT_DIR=/. cargo
> build --target "arm-v7a-linux-gnueabihf" --release --frozen -j16
>
> [...snip...]
>
> error: failed to run custom build command for `openssl-sys v0.9.75`
>
> Caused by:
> process didn't exit successfully:
> `/home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/build-target/websocat-1.11.0/target/release/build/openssl-sys-62d0d30c1c7
> 985aa/build-script-main` (exit status: 101)
> --- stdout
> cargo:rustc-cfg=const_fn
> cargo:rerun-if-env-changed=ARM_V7A_LINUX_GNUEABIHF_OPENSSL_LIB_DIR
> ARM_V7A_LINUX_GNUEABIHF_OPENSSL_LIB_DIR unset
> cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
> OPENSSL_LIB_DIR unset
> cargo:rerun-if-env-changed=ARM_V7A_LINUX_GNUEABIHF_OPENSSL_INCLUDE_DIR
> ARM_V7A_LINUX_GNUEABIHF_OPENSSL_INCLUDE_DIR unset
> cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
> OPENSSL_INCLUDE_DIR unset
> cargo:rerun-if-env-changed=ARM_V7A_LINUX_GNUEABIHF_OPENSSL_DIR
> ARM_V7A_LINUX_GNUEABIHF_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_ALLOW_CROSS_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_ALLOW_CROSS
> cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS
> cargo:rerun-if-env-changed=PKG_CONFIG_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG
> cargo:rerun-if-env-changed=PKG_CONFIG
> cargo:rerun-if-env-changed=PKG_CONFIG_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_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_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_PATH_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_PATH
> cargo:rerun-if-env-changed=PKG_CONFIG_PATH
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_arm-v7a-linux-gnueabihf
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_arm_v7a_linux_gnueabihf
> cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
> cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
> run pkg_config fail: "`PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=\"1\"
> PKG_CONFIG_SYSROOT_DIR=\"/.\" \"arm-v7a-linux-gnueabihf-pkg-config\"
> \"--libs\" \"--cflags\" \"openssl\"` did not exit successf
> ully: exit status: 1\nerror: could not find system library 'openssl'
> required by the 'openssl-sys' crate\n\n---
> stderr\narm-v7a-linux-gnueabihf-pkg-config: warning: blocking 'openssl': not
> selected by 'websocat'\n"
Above suggest no target openssl is selected by websocat.in
> --- stderr
> warning: target json file contains unused fields: ar, cc, cxx,
> has-elf-tls, ranlib, unsupported-abis
>
> 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 = x86_64-unknown-linux-gnu
> $TARGET = arm-v7a-linux-gnueabihf
> openssl-sys = 0.9.75
>
> ',
> /home/local/GRIDPOINT/jringle/git/gridpoint-com/gpec2phx/ptxdist/platform-ec2k/build-target/websocat-1.11.0/ptxdist-cargo-home/source/openssl-sys-0.9.75/build/find_normal.rs:191
> :5
> note: run with `RUST_BACKTRACE=1` environment variable to display a
> backtrace
> warning: build failed, waiting for other jobs to finish...
next parent reply other threads:[~2023-08-04 19:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAMwGMjzhLtP33wbTzT_e+eTfXpecM8h2rKaJEJ7SwsbxTmfFZw@mail.gmail.com>
2023-08-04 19:00 ` Ladislav Michl [this message]
2023-08-04 19:32 ` Jon Ringle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZM1K2VIwLJPiyl8o@lenoch \
--to=oss-lists@triops.cz \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox