Skip to content

Spack complains for too long lines and fails #2313

@vkarak

Description

@vkarak

From the discussion in the Slack channel:

I am using Spack with ReFrame. I seem to struggle with the reframe generated 'stage' directory getting long. So long that it means that spack's generated 'shebang' lines are invalid. It looks like this:

==> Error: SbangPathError: Install tree root is too long. Spack cannot patch shebang lines when script path length (135) exceeds limit (127).
 /tmp/tmp.9PZALJN4y6/generic/default/gcc@11.2.0/cloverLeafSpackTest_cloverleaf_gcc_10_3_0_cflags___O3_/rfm_spack_env/opt/spack/bin/sbang

This is due to the current naming scheme. A possible workaround is to enable the compact test names with RFM_COMPACT_TEST_NAMES=y, but you it won't be easy –for the moment– to track the test parameters. This will be addressed by #2248.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions