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

GCC fails post-install step when build without fortran #3316

Open
bertwesarg opened this issue May 2, 2024 · 2 comments
Open

GCC fails post-install step when build without fortran #3316

bertwesarg opened this issue May 2, 2024 · 2 comments
Milestone

Comments

@bertwesarg
Copy link

Building (any) GCC EB without fortran (--try-amend=languages=c,c++) fails the post-install step because it unconditionally try to create an f77 symlink to gfortran, which does not exist.

== 2024-05-02 14:56:48,215 build_log.py:171 ERROR EasyBuild crashed with an error (at easybuild/software/EasyBuild/4.9.1/lib/python3.11/site-packages/easybuild/tools/build_log.py:111 in caller_info): Build of /tmp/eb-w9i60165/tweaked_easyconfigs/GCCcore-13.2.0.eb failed (err: "build failed (first 300 chars): Can't link '/home/build/.local/easybuild/software/GCCcore/13.2.0/bin/f77' to non-existing location /home/build/.local/easybuild/software/GCCcore/13.2.0/bin/gfortran") (at easybuild/software/EasyBuild/4.9.1/lib/python3.11/site-packages/easybuild/main.py:176 in build_and_install_software)
ERROR: Build of /tmp/eb-w9i60165/tweaked_easyconfigs/GCCcore-13.2.0.eb failed (err: "build failed (first 300 chars): Can't link '/home/build/.local/easybuild/software/GCCcore/13.2.0/bin/f77' to non-existing location /home/build/.local/easybuild/software/GCCcore/13.2.0/bin/gfortran")
$ eb GCCcore-13.2.0.eb -l --robot --try-amend=languages=c,c++
@boegel boegel added this to the 4.x milestone May 22, 2024
@boegel
Copy link
Member

boegel commented May 22, 2024

@bertwesarg Thanks for the bug report!

This doesn't surprise me, since I think it's rare that GCC is being built without Fortran in the EasyBuild community, but it should be easy enough to allow for that by making the symlinking conditional.

Are you willing to look into a creating a pull request to fix this yourself?

Also, out of curiosity, what's your use case for a GCC without gfortran?

@boegel boegel changed the title GCC failes post-install step when build without fortran GCC fails post-install step when build without fortran May 22, 2024
bertwesarg added a commit to bertwesarg/easybuild-easyblocks that referenced this issue May 22, 2024
@bertwesarg
Copy link
Author

Also, out of curiosity, what's your use case for a GCC without gfortran?

We are using EB to build our CI env in Docker, bare metal, and QEMU/KVM on different architectures for a C/C++ project, and because of the latter reducing what is build saves a bunch of time.

bertwesarg added a commit to bertwesarg/easybuild-easyblocks that referenced this issue May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants