Spack install has problems with long paths
Job #38933 failed for ff2b9c15:
It looks like the fact that the gitlab runner ends up installing in a path with a super-long name is problematic:
+ spack install --reuse gcc@11.3.0
==> Error: SbangPathError: Install tree root is too long. Spack cannot patch shebang lines when script path length (186) exceeds limit (127).
/scratch/g/gitlab-runner/136_project-4761_pipeline18697_concurrent-0_w2w-autosubmit-icon-today/builds/w2w/autosubmit-icon-today/autosubmit/spack_user_cache_path/bootstrap/store/bin/sbang
See build log for details:
/scratch-local/slurm-job-tmp-3827350/gitlab-runner/spack-stage/spack-stage-patchelf-0.17.2-h5544cu2evxldq7puvxl5uguqdiyd3ag/spack-build-out.txt
Besides that, it looks that it doesn't find the compiler but I'm afraid it would fail anyway later due to the long path issue.