-
Notifications
You must be signed in to change notification settings - Fork 377
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
docker: Add gfortran support #1458
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good so far!
One issue with this, it doesn't install it for the case where we use Dockerfile.native
, which is used when doing cargo build-docker-image x86_64-unknown-linux-gnu --platform="linux/x86_64=x86_64-unknown-linux-gnu"
(or just cargo build-docker-image x86_64-unknown-linux-gnu
)
Easiest way to fix that would be to just install gfortran in linux-image.sh, perhaps add a install here:
Lines 420 to 423 in 085092c
# need to reinstall the removed libgcc packages, which are required for apt | |
if [[ "${arch}" == "${dpkg_arch}" ]]; then | |
apt-get install --no-install-recommends --assume-yes "${packages[@]}" | |
fi |
/ci try |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
No idea about why x86_64-unknown-dragonfly and |
It seems that common.sh will install it. and I don't need to add it to linux-image.sh |
Co-authored-by: Emil Gardström <[email protected]>
I can also add fortran test CI if needed. |
/ci try lets try again! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This failure is related to libc/3618 It failed because of Notice: I use the gcc8/patches/patch-libgfortran_io_io.h. It seems that every version of gcc after gcc8 has this patch except gcc9 and I don't know why. Maybe we can create the PR later. Besides, we should undefine "HAVE_NEWLOCALE" and "HAVE_FREELOCALE", because there's no Edit nothing about this target. And there's no log remained so I don't know why it failed. |
Let's try x86_64-unknown-netbsd and aarch64-linux-android again. Thanks |
/ci try |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Is any idea about why aarch64-linux-android failed? It seems that it just need more time to finish the build. |
As libc/3618 has beed merged, let's try again @Emilgardis |
/ci try |
This comment has been minimized.
This comment has been minimized.
It doesn't seem to be my fault. Should we try again? Or could we merge it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets merge this! Thank you!
timeout again. Could we adjust the settings of action? |
it should already be maxed out: https://github.com/cross-rs/cross/actions/runs/8907127039/workflow#L188 however I remember something about it not applying like you would expect. Lets just try again |
Add gfortran support for all docker except target of
*-none*
and*-andriod*
.Close #1457