Skip to content

Conversation

@bedroge
Copy link
Contributor

@bedroge bedroge commented Mar 15, 2024

Not entirely sure why this is needed, but on my RISC-V system the build will fail (in stage 2 and at the end in the sanity check) with errors like:

nvme/easybuild/software/binutils/2.40/bin/ld: cannot find -lgcc_s: No such file or directory

Even though libgcc_s.so is just in the lib directory of the stage 1 / final installation directory. For some reason, it doesn't seem to be in GCC's internal search path. By setting $LIBRARY_PATH, it does pick it up.

Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel added this to the release after 4.9.0 milestone Mar 16, 2024
@boegel boegel changed the title set $LIBRARY_PATH on RISC-V systems set $LIBRARY_PATH and disable building of NVPTX offload support on RISC-V systems Mar 16, 2024
@bedroge bedroge marked this pull request as ready for review March 16, 2024 19:13
@boegel
Copy link
Member

boegel commented Mar 17, 2024

extensively tested via easybuilders/easybuild-easyconfigs#20035

@boegel boegel merged commit 34568b6 into easybuilders:develop Mar 17, 2024
@boegel boegel added the riscv label Mar 17, 2024
@bedroge bedroge deleted the gcc_riscv branch March 17, 2024 09:08
@boegel boegel changed the title set $LIBRARY_PATH and disable building of NVPTX offload support on RISC-V systems enhance GCC easyblock to set $LIBRARY_PATH and disable building of NVPTX offload support on RISC-V systems Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants