-
Notifications
You must be signed in to change notification settings - Fork 213
Closed
Copy link
Labels
Milestone
Description
See the easyconfig in easybuilders/easybuild-easyconfigs#23618 or any of the STREAM easyconfigs.
These have tests = ['%(installdir)s/bin/stream_1Kx10M']
$ eb STREAM-5.10-GCC-11.3.0.eb
== Temporary log file in case of crash /dev/shm/branfosj/tmp-up-EL8/eb-j95ah12_/easybuild-6jq0zbfw.log
== resolving dependencies ...
== processing EasyBuild easyconfig /rds/projects/2017/branfosj-rse/easybuild/src/easybuild-easyconfigs/easybuild/easyconfigs/STREAM-5.10-GCC-11.3.0.eb
== FAILED: Installation ended unsuccessfully: Failed to resolve all templates in "%(installdir)s/bin/stream_1Kx10M" using template dictionary: {'arch': 'x86_64', 'rpath_enabled': 'true', 'sysroot': '', 'software_commit': '', 'nameletter': 'S', 'toolchain_name': 'GCC', 'toolchain_version': '11.3.0', 'version_major': '5', 'version_minor': '10', 'version_major_minor': '5.10', 'bitbucket_account': 'stream', 'github_account': 'stream', 'name': 'STREAM', 'version': '5.10', 'versionsuffix': '', 'versionprefix': '', 'namelower': 'stream', 'nameletterlower': 's', 'cuda_compute_capabilities': '8.0', 'cuda_cc_space_sep': '8.0', 'cuda_cc_space_sep_no_period': '80', 'cuda_cc_semicolon_sep': '8.0', 'cuda_cc_cmake': '80', 'cuda_int_comma_sep': '80', 'cuda_int_space_sep': '80', 'cuda_int_semicolon_sep': '80', 'cuda_sm_comma_sep': 'sm_80', 'cuda_sm_space_sep': 'sm_80'}. This might cause failures or unexpected behavior, check for correct escaping if this is intended! (took 0 secs)
== Results of the build can be found in the log file(s) /dev/shm/branfosj/tmp-up-EL8/eb-j95ah12_/easybuild-STREAM-5.10-20250829.133847.HviGv.log
== Summary:
* [FAILED] STREAM/5.10-GCC-11.3.0
ERROR: Installation of STREAM-5.10-GCC-11.3.0.eb failed: 'Failed to resolve all templates in "%(installdir)s/bin/stream_1Kx10M" using template dictionary: {\'arch\': \'x86_64\', \'rpath_enabled\': \'true\', \'sysroot\': \'\', \'software_commit\': \'\', \'nameletter\': \'S\', \'toolchain_name\': \'GCC\', \'toolchain_version\': \'11.3.0\', \'version_major\': \'5\', \'version_minor\': \'10\', \'version_major_minor\': \'5.10\', \'bitbucket_account\': \'stream\', \'github_account\': \'stream\', \'name\': \'STREAM\', \'version\': \'5.10\', \'versionsuffix\': \'\', \'versionprefix\': \'\', \'namelower\': \'stream\', \'nameletterlower\': \'s\', \'cuda_compute_capabilities\': \'8.0\', \'cuda_cc_space_sep\': \'8.0\', \'cuda_cc_space_sep_no_period\': \'80\', \'cuda_cc_semicolon_sep\': \'8.0\', \'cuda_cc_cmake\': \'80\', \'cuda_int_comma_sep\': \'80\', \'cuda_int_space_sep\': \'80\', \'cuda_int_semicolon_sep\': \'80\', \'cuda_sm_comma_sep\': \'sm_80\', \'cuda_sm_space_sep\': \'sm_80\'}. This might cause failures or unexpected behavior, check for correct escaping if this is intended!'
But, if I use --allow-unresolved-templates
then it builds and this use of installdir
is resolved correctly. There is also a similar warning on the use of source
:
$ eb STREAM-5.10-GCC-11.3.0.eb -r --rebuild --allow-unresolved-templates
== Temporary log file in case of crash /dev/shm/branfosj/tmp-up-EL8/eb-0c36lkj6/easybuild-u3_3ekdv.log
== resolving dependencies ...
== processing EasyBuild easyconfig /rds/projects/2017/branfosj-rse/easybuild/src/easybuild-easyconfigs/easybuild/easyconfigs/STREAM-5.10-GCC-11.3.0.eb
WARNING: Failed to resolve all templates in "%(installdir)s/bin/stream_1Kx10M" using template dictionary: {'arch': 'x86_64', 'rpath_enabled': 'true', 'sysroot': '', 'software_commit': '', 'nameletter': 'S', 'toolchain_name': 'GCC', 'toolchain_version': '11.3.0', 'version_major': '5', 'version_minor': '10', 'version_major_minor': '5.10', 'bitbucket_account': 'stream', 'github_account': 'stream', 'name': 'STREAM', 'version': '5.10', 'versionsuffix': '', 'versionprefix': '', 'namelower': 'stream', 'nameletterlower': 's', 'cuda_compute_capabilities': '8.0', 'cuda_cc_space_sep': '8.0', 'cuda_cc_space_sep_no_period': '80', 'cuda_cc_semicolon_sep': '8.0', 'cuda_cc_cmake': '80', 'cuda_int_comma_sep': '80', 'cuda_int_space_sep': '80', 'cuda_int_semicolon_sep': '80', 'cuda_sm_comma_sep': 'sm_80', 'cuda_sm_space_sep': 'sm_80'}. This might cause failures or unexpected behavior, check for correct escaping if this is intended!
== building and installing STREAM/5.10-GCC-11.3.0...
>> installation prefix: /rds/projects/2017/branfosj-rse/easybuild/EL8-ice/software/STREAM/5.10-GCC-11.3.0
== fetching files and verifying checksums...
>> sources:
>> /rds/projects/b/branfosj-bear-apps/sources/s/STREAM/stream-5.10.c [SHA256: a52bae5e175bea3f7832112af9c085adab47117f7d2ce219165379849231692b]
== ... (took < 1 sec)
== creating build dir, resetting environment...
>> build dir: /dev/shm/branfosj/build-up-EL8/STREAM/5.10/GCC-11.3.0
== ... (took < 1 sec)
== unpacking...
>> running shell command:
cp /rds/projects/b/branfosj-bear-apps/sources/s/STREAM/stream-5.10.c .
[started at: 2025-08-29 13:39:12]
[working dir: /dev/shm/branfosj/build-up-EL8/STREAM/5.10/GCC-11.3.0]
[output and state saved to /dev/shm/branfosj/tmp-up-EL8/eb-0c36lkj6/run-shell-cmd-output/cp-psh4pqdy]
>> command completed: exit 0, ran in < 1s
== ... (took < 1 sec)
== patching...
== ... (took < 1 sec)
== preparing...
>> loading toolchain module: GCC/11.3.0
>> defining build environment for GCC/11.3.0 toolchain
== ... (took 2 secs)
== configuring...
== ... (took < 1 sec)
== building...
WARNING: Failed to resolve all templates in "$CC $CFLAGS %(source)s -mcmodel=large -DSTREAM_ARRAY_SIZE=10000000 -DNTIMES=1000 -o stream_1Kx10M; $CC $CFLAGS %(source)s -mcmodel=large -DSTREAM_ARRAY_SIZE=100000000 -DNTIMES=1000 -o stream_1Kx100M; $CC $CFLAGS %(source)s -mcmodel=large -DSTREAM_ARRAY_SIZE=1000000000 -DNTIMES=1000 -o stream_1Kx1B; $CC $CFLAGS %(source)s -mcmodel=large -DSTREAM_ARRAY_SIZE=2500000000 -DNTIMES=1000 -o stream_1Kx2.5B; $CC $CFLAGS %(source)s -mcmodel=large -DSTREAM_ARRAY_SIZE=5000000000 -DNTIMES=1000 -o stream_1Kx5B; " using template dictionary: {'arch': 'x86_64', 'rpath_enabled': 'true', 'sysroot': '', 'software_commit': '', 'nameletter': 'S', 'toolchain_name': 'GCC', 'toolchain_version': '11.3.0', 'version_major': '5', 'version_minor': '10', 'version_major_minor': '5.10', 'bitbucket_account': 'stream', 'github_account': 'stream', 'name': 'STREAM', 'version': '5.10', 'versionsuffix': '', 'versionprefix': '', 'namelower': 'stream', 'nameletterlower': 's', 'cuda_compute_capabilities': '8.0', 'cuda_cc_space_sep': '8.0', 'cuda_cc_space_sep_no_period': '80', 'cuda_cc_semicolon_sep': '8.0', 'cuda_cc_cmake': '80', 'cuda_int_comma_sep': '80', 'cuda_int_space_sep': '80', 'cuda_int_semicolon_sep': '80', 'cuda_sm_comma_sep': 'sm_80', 'cuda_sm_space_sep': 'sm_80', 'module_name': 'STREAM/5.10-GCC-11.3.0', 'parallel': '8', 'builddir': '/dev/shm/branfosj/build-up-EL8/STREAM/5.10/GCC-11.3.0', 'installdir': '/rds/projects/2017/branfosj-rse/easybuild/EL8-ice/software/STREAM/5.10-GCC-11.3.0', 'start_dir': '/dev/shm/branfosj/build-up-EL8/STREAM/5.10/GCC-11.3.0/'}. This might cause failures or unexpected behavior, check for correct escaping if this is intended!
>> running shell command:
$CC $CFLAGS /rds/projects/b/branfosj-bear-apps/sources/s/STREAM/stream-5.10.c -mcmodel=large -DSTREAM_ARRAY_SIZE=10000000 -DNTIMES=1000 -o stream_1Kx10M; $CC $CFLAGS /rds/projects/b/branfosj-bear-apps/sources/s/STREAM/stream-5.10.c -mcmodel=large -DSTREAM_ARRAY_SIZE=100000000 -DNTIMES=1000 -o stream_1Kx100M; $CC $CFLAGS /rds/projects/b/branfosj-bear-apps/sources/s/STREAM/stream-5.10.c -mcmodel=large -DSTREAM_ARRAY_SIZE=1000000000 -DNTIMES=1000 -o stream_1Kx1B; $CC $CFLAGS /rds/projects/b/branfosj-bear-apps/sources/s/STREAM/stream-5.10.c -mcmodel=large -DSTREAM_ARRAY_SIZE=2500000000 -DNTIMES=1000 -o stream_1Kx2.5B; $CC $CFLAGS /rds/projects/b/branfosj-bear-apps/sources/s/STREAM/stream-5.10.c -mcmodel=large -DSTREAM_ARRAY_SIZE=5000000000 -DNTIMES=1000 -o stream_1Kx5B;
[started at: 2025-08-29 13:39:16]
[working dir: /dev/shm/branfosj/build-up-EL8/STREAM/5.10/GCC-11.3.0]
[output and state saved to /dev/shm/branfosj/tmp-up-EL8/eb-0c36lkj6/run-shell-cmd-output/CC-95r87oqt]
>> command completed: exit 0, ran in 00h00m02s
== ... (took 2 secs)
== testing...
== ... (took < 1 sec)
== installing...
== ... (took < 1 sec)
== taking care of extensions...
== ... (took < 1 sec)
== restore after iterating...
== ... (took < 1 sec)
== postprocessing...
== ... (took < 1 sec)
== sanity checking...
>> file 'bin/stream_1Kx10M' found: OK
>> file 'bin/stream_1Kx100M' found: OK
>> file 'bin/stream_1Kx1B' found: OK
>> file 'bin/stream_1Kx2.5B' found: OK
>> file 'bin/stream_1Kx5B' found: OK
>> loading modules: STREAM/5.10-GCC-11.3.0...
== ... (took 4 secs)
== cleaning up...
== ... (took < 1 sec)
== creating module...
>> generating module file @ /rds/projects/2017/branfosj-rse/easybuild/EL8-ice/modules/all/STREAM/5.10-GCC-11.3.0.lua
== ... (took 4 secs)
== permissions...
== ... (took < 1 sec)
== packaging...
== ... (took < 1 sec)
== running test cases...
>> loading modules: STREAM/5.10-GCC-11.3.0...
>> running shell command:
/rds/projects/2017/branfosj-rse/easybuild/EL8-ice/software/STREAM/5.10-GCC-11.3.0/bin/stream_1Kx10M
[started at: 2025-08-29 13:39:30]
[working dir: /rds/projects/2017/branfosj-rse/easybuild/src/easybuild-easyconfigs/easybuild/easyconfigs]
[output and state saved to /dev/shm/branfosj/tmp-up-EL8/eb-0c36lkj6/run-shell-cmd-output/stream_1Kx10M-mxc9u668]
>> command completed: exit 0, ran in 00h00m48s
== ... (took 49 secs)
== COMPLETED: Installation ended successfully (took 1 min 9 secs)
== Results of the build can be found in the log file(s) /rds/projects/2017/branfosj-rse/easybuild/EL8-ice/software/STREAM/5.10-GCC-11.3.0/easybuild/easybuild-STREAM-5.10-20250829.134020.log
== Build succeeded for 1 out of 1
== Summary:
* [SUCCESS] STREAM/5.10-GCC-11.3.0
== Temporary log file(s) /dev/shm/branfosj/tmp-up-EL8/eb-0c36lkj6/easybuild-u3_3ekdv.log* have been removed.
== Temporary directory /dev/shm/branfosj/tmp-up-EL8/eb-0c36lkj6 has been removed.