From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 04 Aug 2023 21:01:16 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qS032-007fDS-VQ for lore@lore.pengutronix.de; Fri, 04 Aug 2023 21:01:16 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qS031-0004LQ-KI; Fri, 04 Aug 2023 21:01:15 +0200 Received: from h1.cmg2.smtp.forpsi.com ([81.2.195.188]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qS02W-0004Kn-2T for ptxdist@pengutronix.de; Fri, 04 Aug 2023 21:00:44 +0200 Received: from lenoch ([80.95.121.122]) by cmgsmtp with ESMTPSA id S02Tqm6Qev5uIS02UqPE3Z; Fri, 04 Aug 2023 21:00:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=triops.cz; s=f2019; t=1691175642; bh=qMstO6EfuAYEK09zMDA3BI/sFE+37Gv8PlWxVA8x1vU=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=IMGw3U/FZJAWfGDol1L4JWuDSxYDBBKdIQjAwpVLwIlaMDe08cp02W3wxitRYJilV Ozr8F5J8gbDPM6LWp1iqGs5jTKCiZf3y42e9wJnnhj6gnc8wC3rijnDccojAzWk7Ra o9ZPvEHHMZkw1ARd0SRN0XJGDMN7U78/3TYB+iLe5Y7+8jY91rFb5yqP7qmMiPA7rh LiJc7stZqUaXjycXP1MgEn7FXE+g4ctD/absml6NKutm510Y8QS5O95/B2I8ErFHvs Rjn7Kq0Op86wKxyChx8z/QwOpLcZ9Vl1r1NOk+129XiG2BI6ImAjggTe4cO073Y3Jz latAzQxxvphjA== Date: Fri, 4 Aug 2023 21:00:41 +0200 From: Ladislav Michl To: ptxdist@pengutronix.de Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-CMAE-Envelope: MS4wfICopeKA1oCmYZwQQ4U42wiKxvKqHwaDqyUWAuHDMAC38naV/XdrikYVEKdlKy0aU3JQql3LuuXSWnIvG4e2yKuxL8vkHjQ1RyvZnlax729UAWFLzM4c lgd3wwNSsFOgUhH6YKquZEarejGp3Vy6tXKvG5qMofDC0KG1yU/XrQEk X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] websocat rust package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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...