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

Fix detection of LIBGFORTRAN_VERSION #44026

Conversation

haampie
Copy link
Contributor

@haampie haampie commented Feb 3, 2022

An empty string "" was passed as the second arg to normalize_triplet.py due to a typo, which makes the script pick gfortran5, resulting in an error

Unable to locate libgfortran.so.5 on your system

later when using e.g. GCC 7.5.0.

Introduced in 6b91bbb, so should only be backported to 1.7.x

@giordano giordano added the domain:building Build system, or building Julia or its dependencies label Feb 3, 2022
Copy link
Contributor

@giordano giordano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment we have

sandbox:${WORKSPACE}/julia # cc --version
x86_64-linux-gnu-gcc (GCC) 7.1.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

sandbox:${WORKSPACE}/julia # make print-BB_TRIPLET_LIBGFORTRAN
BB_TRIPLET_LIBGFORTRAN=x86_64-linux-gnu-libgfortran5

which is wrong, because GCC 7 corresponds to libgfortran 4, instead with this PR:

sandbox:${WORKSPACE}/julia # make print-BB_TRIPLET_LIBGFORTRAN
BB_TRIPLET_LIBGFORTRAN=x86_64-linux-gnu-libgfortran4

as expected

@staticfloat staticfloat merged commit 1edafa0 into JuliaLang:master Feb 3, 2022
KristofferC pushed a commit that referenced this pull request Feb 15, 2022
@KristofferC KristofferC mentioned this pull request Feb 15, 2022
40 tasks
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
@haampie haampie deleted the fix/gfortran-abi-detection-from-gcc-version branch March 23, 2022 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:building Build system, or building Julia or its dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants