gdrcopy icon indicating copy to clipboard operation
gdrcopy copied to clipboard

Fix building issues on OpenSUSE

Open JieRen98 opened this issue 1 year ago • 2 comments

the config_arch script is for determining the architecture of the system. However, it generates a temp dir at /tmp using mktemp in this line and then compile and run an executable. However, a lot of Linux distributions, e.g., OpenSUSE, mount the /tmp directory with the noexec flag. So it is not allowed to run any executables in /tmp.

This PR generates the temp dir at the current dir rather than in /tmp.

JieRen98 avatar Feb 27 '24 06:02 JieRen98

Thank you, @JieRen98. However, this does not solve the fundamental issue. On some clusters, the current directory is immutable inside compute nodes (i.e., it is read only). Introducing a variable to Makefile to set the temp directory location might be better.

pakmarkthub avatar Feb 27 '24 07:02 pakmarkthub

Thank you, @JieRen98. However, this does not solve the fundamental issue. On some clusters, the current directory is immutable inside compute nodes (i.e., it is read only). Introducing a variable to Makefile to set the temp directory location might be better.

Thanks for your prompt reply. I added several candidates (/tmp, /dev/shm, and pwd). The function checks the existence, writable property, and noexec flag.

JieRen98 avatar Feb 27 '24 07:02 JieRen98