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

Parsec build issue #772

Open
jainvikas8 opened this issue Aug 2, 2024 · 3 comments
Open

Parsec build issue #772

jainvikas8 opened this issue Aug 2, 2024 · 3 comments

Comments

@jainvikas8
Copy link

#34 195.5   Downloaded linux-raw-sys v0.4.14
#34 195.7   Downloaded psa-crypto-sys v0.12.0
#34 196.0 error: package `home v0.5.9` cannot be built because it requires rustc 1.70.0 or newer, while the currently active rustc version is 1.66.0
#34 196.0 Either upgrade to rustc 1.70.0 or newer, or use
#34 196.0 cargo update -p [email protected] --precise ver
#34 196.0 where `ver` is the latest version of `home` supporting rustc 1.66.0
#34 ERROR: process "/bin/sh -c /tmp/cross-compile.sh" did not complete successfully: exit code: 101

See this issue when building parsec, it requires rustc 1.78 version, the newest release 1.8 also gives issues.

@anta5010
Copy link
Collaborator

anta5010 commented Aug 2, 2024

Could you provide more details: how do you build parsec, what version, do you use Yocto, what poky version, what meta-security version, do you have any your own bbapend for parsec recipes, etc.

@jainvikas8
Copy link
Author

jainvikas8 commented Aug 5, 2024

This was done on a Debian (Ubuntu 22 LTS) on a docker container.

FROM ubuntu:22.04

RUN apt update && apt-get -y upgrade
RUN apt install -y autoconf-archive libcmocka0 libcmocka-dev procps
RUN apt install -y iproute2 build-essential git pkg-config gcc libtool automake libssl-dev uthash-dev doxygen libjson-c-dev
RUN apt install -y --fix-missing wget python3 cmake clang
RUN apt install -y libini-config-dev curl libgcc1
RUN apt install -y python3-distutils libclang-11-dev protobuf-compiler python3-pip
RUN apt install -y libgcrypt20-dev uuid-dev
RUN apt install -y git gcc nano openssl

ENV RUSTUP_HOME="/opt/rust"
ENV CARGO_HOME="/opt/rust"
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=1.78.0 -y --no-modify-path
ENV PATH="/root/.cargo/bin:/opt/rust/bin:${PATH}"

RUN git clone https://github.com/parallaxsecond/parsec.git --branch main \
    && cd parsec \
    && cargo build --features "mbed-crypto-provider,direct-authenticator"

This issue is also seen on a host machine.

Upgraded to latest 1.8.0 and it gives different issue

@jainvikas8
Copy link
Author

jainvikas8 commented Nov 20, 2024

https://git.yoctoproject.org/poky/commit/?id=30bf8dcc25602ccc7e119ef2b9e766b33fcc35cb
meta-poky, upgrades to use 1.80.0 version and we see the similar issue on Yocto builds when we use 1.4.1 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants