Skip to content

don't use special flags for strict, precise, loose, veryloose toolchain options on RISC-V#4576

Merged
boegel merged 2 commits intoeasybuilders:developfrom
bedroge:gcc_riscv_strict_precise
Jul 31, 2024
Merged

don't use special flags for strict, precise, loose, veryloose toolchain options on RISC-V#4576
boegel merged 2 commits intoeasybuilders:developfrom
bedroge:gcc_riscv_strict_precise

Conversation

@bedroge
Copy link
Copy Markdown
Contributor

@bedroge bedroge commented Jul 12, 2024

While trying to build GMP (which has precise: True in toolchainopts), the configure step failed because -mno-recip is not supported on RISC-V, similar to Arm (see #3425).

@julianmorillo checked with a compiler expert, and he recommended to use -fno-reciprocal-math. This is a generic flag and used by default, so without a sensible alternative, I've just removed the flags for these toolchain options. It will then basically ignore the precise: True and use the default flags.

@bedroge
Copy link
Copy Markdown
Contributor Author

bedroge commented Jul 12, 2024

Test report for GMP can be found here (with a modified EB version that's using the changes from this PR):
easybuilders/easybuild-easyconfigs#20633 (comment)

Copy link
Copy Markdown
Contributor

@bartoldeman bartoldeman left a comment

Choose a reason for hiding this comment

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

Did you check loose and veryloose as well? I'm surprised they'd work.

@bedroge
Copy link
Copy Markdown
Contributor Author

bedroge commented Jul 15, 2024

Did you check loose and veryloose as well? I'm surprised they'd work.

@bartoldeman I hadn't looked into those yet (also because it seems they're not really used?), and just applied the same kind of fix that was also done for aarch64. But you're right, they will not work either, so I can remove them as well.

edit: done in 37858f1.

@boegel boegel added this to the release after 4.9.2 milestone Jul 31, 2024
@boegel boegel changed the title don't use special flags for strict and precise toolchain options on RISC-V don't use special flags for strict, precise, loose, veryloose toolchain options on RISC-V Jul 31, 2024
@boegel boegel dismissed bartoldeman’s stale review July 31, 2024 13:26

requested changes made

@boegel boegel merged commit 45e6db4 into easybuilders:develop Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix EESSI Related to EESSI project riscv

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants