-
Notifications
You must be signed in to change notification settings - Fork 55
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
[Bug] Compile error under WSL #317
Comments
Hello @cngzhnp, |
Hello @milyin, Even though, when I changed to 1.72.0 toolchain, build does not allow me to end up successfully. Here is the output of
Still I got the same error on my machine. |
I think that problem is solved with help of this commit but it does not belong to 0.10.1-rc tag. So, when I set back zenoh-c project to main branch, it works. Rust 1.77 toolchain - Fix alignment and layout for z_owned_reply_t |
@cngzhnp thank you for the solution! That's still strange for me why 0.10.1-rc fails with rust 1.72, I'll try to investigate if I find the time |
I managed to build FROM buildpack-deps:bookworm
ARG ZENOH_VERSION=0.10.1-rc
ARG ZENOHC_VERSION=${ZENOH_VERSION}
ARG RUST_VERSION=1.72
ARG RUST_PROFILE=minimal
ARG RUST_TOOLCHAIN=${RUST_VERSION}-x86_64-unknown-linux-gnu
ENV CARGO_HOME="/usr/local/cargo"
ENV RUSTUP_HOME="/usr/local/rustup"
ENV PATH "/usr/local/cargo/bin:/usr/local/rustup:${PATH}"
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- -y --no-modify-path --profile ${RUST_PROFILE} --default-toolchain ${RUST_VERSION}
RUN git clone --depth 1 --branch ${ZENOHC_VERSION} https://github.com/eclipse-zenoh/zenoh-c.git /tmp/zenoh-c && \
cmake -S/tmp/zenoh-c -B/tmp/zenoh-c/build \
-DCMAKE_BUILD_TYPE=Release \
-DZENOHC_CARGO_CHANNEL=${RUST_TOOLCHAIN} \
-DZENOHC_INSTALL_STATIC_LIBRARY=TRUE \
&& \
cmake --build /tmp/zenoh-c/build/ --target install -j$(nproc) && \
rm -rf /tmp/zenoh-c |
The issue should no longer arise in dev/1.0.0 branch since the sizes and alignments of zenoh-rust types are no longer hardcoded, but fetched from rust compiler. |
Describe the bug
Try to compile with CMake 3.28.1
Error info:
To reproduce
System info
The text was updated successfully, but these errors were encountered: