-
Notifications
You must be signed in to change notification settings - Fork 244
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
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" } #4895
Comments
You can see in our CI that we are successfully using |
I downloaded the zip of the 5.14.0 tag and performed the operations in the section https://github.com/prisma/prisma-engines/tree/5.14.0?tab=readme-ov-file#building-prisma-engines, which are mentioned in this comment: I also tried to install and perform all the operations with root instead of with the basic user of the raspberry, but same error. this is the operating system information: pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:~ $ uname -m
armv7l
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 6.1.21-v7l+ #1642 SMP Mon Apr 3 17:22:30 BST 2023 armv7l GNU/Linux |
I should have solved it by modifying the Dockerfile of this repository: https://github.com/pantharshit00/prisma-rpi-builds/tree/master. Apparently the problem was the Raspberry, I don't know why but the build didn't go directly there.
# most steps taken from: https://stackoverflow.com/questions/60821697/how-to-build-openssl-for-arm-linux
FROM debian:latest AS builder
ENV PATH=/root/.cargo/bin:$PATH
RUN apt-get update && apt-get -y install wget curl git make direnv build-essential clang libz-dev libsqlite3-dev openssl libssl-dev pkg-config gzip mingw-w64 g++ libmpc-dev libmpfr-dev libgmp-dev gcc-arm-linux-gnueabihf libc6-dev-armhf-cross g++-arm-linux-gnueabihf libmagic-dev
# cross compile OpenSSL
# latest version can be found here: https://www.openssl.org/source/
ENV OPENSSL_VERSION=openssl-3.3.0
RUN wget https://www.openssl.org/source/$OPENSSL_VERSION.tar.gz && tar zxf $OPENSSL_VERSION.tar.gz
RUN cd $OPENSSL_VERSION && ./Configure linux-armv4 --cross-compile-prefix=/usr/bin/arm-linux-gnueabihf- --prefix=/opt/openssl-arm --openssldir=/opt/openssl-arm -static && make install
# This env var configures rust-openssl to use the cross compiled version
ENV OPENSSL_DIR=/opt/openssl-arm
ENV ZLIB_VERSION=1.3.1
RUN cd /tmp && \
curl -fLO "http://zlib.net/zlib-$ZLIB_VERSION.tar.gz" && \
tar xzf "zlib-$ZLIB_VERSION.tar.gz" && cd "zlib-$ZLIB_VERSION" && \
CHOST=arm CC=/usr/bin/arm-linux-gnueabihf-gcc \
AR=/usr/bin/arm-linux-gnueabihf-ar RANLIB=/usr/bin/arm-linux-gnueabihf-ranlib \
./configure --static --prefix=/opt/zlib && \
make && make install && \
rm -r /tmp/*
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_RUNNER="/linux-runner armv7"
ENV CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc
ENV CXX_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-g++
ENV QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
ENV LIBZ_SYS_STATIC=1
RUN echo 'eval "$(direnv hook bash)"' >> ~/.bashrc
# Clone prisma-engines repository and check out the specified tag
WORKDIR /prisma-engines
ENV PRISMA_ENGINES_TAG=5.14.0
RUN wget https://github.com/prisma/prisma-engines/archive/refs/tags/$PRISMA_ENGINES_TAG.tar.gz && \
tar xzf $PRISMA_ENGINES_TAG.tar.gz --strip-components=1 && \
direnv allow
|
Bug description
rust-lang/cargo#13983
How to reproduce
https://github.com/prisma/prisma-engines?tab=readme-ov-file#building-prisma-engines
Expected behavior
No response
Prisma information
Build
Environment & setup
cargo 1.78.0 (54d8815d0 2024-03-26)
release: 1.78.0
commit-hash: 54d8815d04fa3816edc207bbc4dd36bf18014dbc
commit-date: 2024-03-26
host: armv7-unknown-linux-gnueabihf
libgit2: 1.7.2 (sys:0.18.2 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w 11 Sep 2023
os: Raspberry Pi OS 11 (bullseye) [32-bit]
Prisma Version
latest
The text was updated successfully, but these errors were encountered: