You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My guess is that's related to the path on ubuntu being /usr/x86_64-w64-mingw32/lib/libpthread.a while on fedora it's /usr/x86_64-w64-mingw32/sys-root/mingw/lib/libpthread.a although running RUSTFLAGS="-L /usr/x86_64-w64-mingw32/sys-root/mingw/lib" cargo build (i also tried all subpaths) did not help either
FROM fedora
RUN dnf install -y \
vim \
gcc \
mingw64-gcc \
&& dnf clean all
WORKDIR /app
ENV HOME=/home/rust
RUN groupadd -r -g 1000 rust \
&& useradd --no-log-init -r -g rust -u 1000 rust \
&& mkdir -p $HOME \
&& chown rust:rust $WORKDIR $HOME
USER rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="$HOME/.cargo/bin:$PATH"RUN rustup target add x86_64-pc-windows-gnu
RUN echo -e >>~/.cargo/config '[build]\ntarget = "x86_64-pc-windows-gnu"\n\n[target.x86_64-pc-windows-gnu]\nlinker = "x86_64-w64-mingw32-gcc"\nar = "x86_64-w64-mingw32-gcc-ar"'
mkdir testcdtest
clippaste >Dockerfile # put above snippet in Dockerfile
docker build -t rust-test .
docker run --rm -it rust-test bash
USER=a cargo init --bin
cargo build # works with ubuntu but fails with fedora
I originally filed this here retep998/winapi-rs#527 because i thought it only happened when i added the winapi crate.
I found these similar issues #32859#33465#44787 but they seem not to be the same.
The text was updated successfully, but these errors were encountered:
Trying to compile
Hello, world!
on fedora results inMy guess is that's related to the path on ubuntu being
/usr/x86_64-w64-mingw32/lib/libpthread.a
while on fedora it's/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libpthread.a
although runningRUSTFLAGS="-L /usr/x86_64-w64-mingw32/sys-root/mingw/lib" cargo build
(i also tried all subpaths) did not help eitherHere is my test setup:
I originally filed this here retep998/winapi-rs#527 because i thought it only happened when i added the winapi crate.
I found these similar issues #32859 #33465 #44787 but they seem not to be the same.
The text was updated successfully, but these errors were encountered: