Skip to content

Commit d93131e

Browse files
committed
ISC26: update the Packaging section
1 parent 8f70bdf commit d93131e

15 files changed

Lines changed: 455 additions & 787 deletions

outputs/packaging.sh

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ project="$(dirname "$0")"
1212

1313
rm -rf "${raw_outputs:?}/packaging"
1414
. "$project/init_spack.sh"
15+
spack repo update
1516
# Cannot use \$HOME (in CI)
1617
mpileaks_package_py="$HOME/$dir/$tutorial_subdir/packages/tutorial_mpileaks/package.py"
1718

1819
export SPACK_COLOR=never
1920

20-
# Packaging commands
21-
2221
# tutorial repository set up
2322
example packaging/repo-create "spack repo create $repo_root $name"
2423
example packaging/repo-create "spack repo add $repo_root/$tutorial_subdir"
@@ -27,23 +26,22 @@ example packaging/repo-list "spack repo list"
2726

2827
example packaging/repo-config "spack config get repos"
2928

29+
# spack create skeleton
3030
# make the editor automatically exit
3131
export EDITOR=true
3232
example packaging/create "spack create --name tutorial-mpileaks --namespace $name https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz"
3333

3434
example packaging/checksum-mpileaks-1 "spack checksum tutorial-mpileaks 1.0"
3535

36-
example --expect-error packaging/install-mpileaks-1 "spack install tutorial-mpileaks"
36+
example --tee --expect-error packaging/install-mpileaks-1 "spack install tutorial-mpileaks"
3737

38-
# TODO: Update info-mpileaks.out output manually since automation fails.
39-
#
40-
# This fails ("Error: invalid width -2 (must be > 0)") in CI when preparing
41-
# variants BUT not when run on the command line.
42-
#cp "$PROJECT/package-py-files/1.package.py" "$mpileaks_package_py"
43-
#example packaging/info-mpileaks "spack info --phases tutorial-mpileaks"
38+
# add documentation
39+
cp "$PROJECT/package-py-files/1.package.py" "$mpileaks_package_py"
40+
example packaging/info-mpileaks "spack info --phases tutorial-mpileaks"
4441

42+
# add dependencies
4543
cp "$PROJECT/package-py-files/2.package.py" "$mpileaks_package_py"
46-
example --expect-error packaging/install-mpileaks-2 "spack install tutorial-mpileaks"
44+
example --tee --expect-error packaging/install-mpileaks-2 "spack install tutorial-mpileaks"
4745

4846
stage_dir="$(spack location -s tutorial-mpileaks)"
4947
example packaging/build-output "cat $stage_dir/spack-build-out.txt"
@@ -68,19 +66,24 @@ example packaging/build-output "cat $stage_dir/spack-build-out.txt"
6866
#)
6967
#run_configure
7068

69+
# configure arguments
7170
cp "$PROJECT/package-py-files/3.package.py" "$mpileaks_package_py"
72-
example packaging/install-mpileaks-3 "spack install tutorial-mpileaks"
71+
example --tee packaging/install-mpileaks-3 "spack install tutorial-mpileaks"
7372

73+
# variants
7474
cp "$PROJECT/package-py-files/4.package.py" "$mpileaks_package_py"
75-
example packaging/install-mpileaks-4 "spack install --verbose tutorial-mpileaks stackstart=4"
75+
example --tee packaging/install-mpileaks-4 "spack install --verbose tutorial-mpileaks stackstart=4"
7676

77-
example packaging/install-mpileaks-5 "spack uninstall -ay tutorial-mpileaks"
78-
cp "$PROJECT/package-py-files/5.package.py" "$mpileaks_package_py"
79-
example --expect-error packaging/install-mpileaks-5 "spack install --test=root tutorial-mpileaks"
80-
81-
cp "$PROJECT/package-py-files/6.package.py" "$mpileaks_package_py"
82-
example packaging/install-mpileaks-6 "spack install --test=root tutorial-mpileaks"
77+
# TODO: Re-enable once https://github.com/spack/spack/issues/52573 is resolved.
78+
# tests
79+
#example --tee packaging/install-mpileaks-5 "spack uninstall -ay tutorial-mpileaks"
80+
#cp "$PROJECT/package-py-files/5.package.py" "$mpileaks_package_py"
81+
#example --tee --expect-error packaging/install-mpileaks-5 "spack install --test=root tutorial-mpileaks"
82+
#
83+
#cp "$PROJECT/package-py-files/6.package.py" "$mpileaks_package_py"
84+
#example --tee packaging/install-mpileaks-6 "spack install --test=root tutorial-mpileaks"
8385

84-
example packaging/cleanup "spack uninstall -ay tutorial-mpileaks"
86+
# cleanup
87+
example --tee packaging/cleanup "spack uninstall -ay tutorial-mpileaks"
8588
example packaging/cleanup "spack repo remove $name"
8689
example packaging/cleanup "rm -rf $repo_root"
Lines changed: 24 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,35 @@
1-
$ ./configure --prefix=$HOME/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/mpileaks-1.0-wl3kx4o4bgegghl4u7hb3jk4toina3fx
1+
$ ./configure --prefix=$HOME/spack/opt/spack/linux-x86_64_v3/tutorial-mpileaks-1.0-olkbps3ghmpiiy4dserbxgj5hlsm5ij
22
checking metadata... no
33
checking installation directory variables... yes
44
checking for a BSD-compatible install... /usr/bin/install -c
5+
checking whether sleep supports fractional seconds... yes
6+
checking filesystem timestamp resolution... 0.01
57
checking whether build environment is sane... yes
6-
checking for a thread-safe mkdir -p... /bin/mkdir -p
7-
checking for gawk... gawk
8-
checking whether make sets $(MAKE)... yes
9-
checking for gcc... /home/spack/spack/lib/spack/env/gcc/gcc
10-
checking for C compiler default output file name... a.out
11-
checking whether the C compiler works... yes
12-
checking whether we are cross compiling... no
13-
checking for suffix of executables...
14-
checking for suffix of object files... o
15-
checking whether we are using the GNU C compiler... yes
16-
checking whether /home/spack/spack/lib/spack/env/gcc/gcc accepts -g... yes
17-
checking for /home/spack/spack/lib/spack/env/gcc/gcc option to accept ISO C89... none needed
18-
checking for style of include used by make... GNU
19-
checking dependency style of /home/spack/spack/lib/spack/env/gcc/gcc... gcc3
20-
checking whether /home/spack/spack/lib/spack/env/gcc/gcc and cc understand -c and -o together... yes
21-
checking whether we are using the GNU C++ compiler... yes
22-
checking whether /home/spack/spack/lib/spack/env/gcc/g++ accepts -g... yes
23-
checking dependency style of /home/spack/spack/lib/spack/env/gcc/g++... gcc3
24-
checking for /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.3-jfxctqwar7wb65rn7wf5mot7m4jxmsey/bin/mpicc... /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.3-jfxctqwar7wb65rn7wf5mot7m4jxmsey/bin/mpicc
25-
Checking whether /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.3-jfxctqwar7wb65rn7wf5mot7m4jxmsey/bin/mpicc responds to '-showme:compile'... yes
26-
configure: error: unable to locate adept-utils installation
27-
checking metadata... no
28-
checking installation directory variables... yes
29-
checking for a BSD-compatible install... /usr/bin/install -c
30-
checking whether build environment is sane... yes
31-
checking for a thread-safe mkdir -p... /bin/mkdir -p
8+
checking for a race-free mkdir -p... /usr/bin/mkdir -p
329
checking for gawk... no
3310
checking for mawk... mawk
3411
checking whether make sets $(MAKE)... yes
35-
checking for gcc... /home/spack/spack/lib/spack/env/gcc/gcc
36-
checking for C compiler default output file name... a.out
12+
checking whether make supports nested variables... yes
13+
checking xargs -n works... yes
14+
checking whether UID '1001' is supported by ustar format... yes
15+
checking whether GID '1001' is supported by ustar format... yes
16+
checking how to create a ustar tar archive... gnutar
17+
checking for gcc... /home/spack/spack/opt/spack/linux-x86_64_v3/compiler-wrapper-1.1.0-mmywg7x4myxvxepmqe5go3ppxirmuijp/libexec/spack/gcc/gcc
3718
checking whether the C compiler works... yes
19+
checking for C compiler default output file name... a.out
20+
checking for suffix of executables...
3821
checking whether we are cross compiling... no
39-
checking for suffix of executables...
4022
checking for suffix of object files... o
41-
checking whether we are using the GNU C compiler... yes
42-
checking whether /home/spack/spack/lib/spack/env/gcc/gcc accepts -g... yes
43-
checking for /home/spack/spack/lib/spack/env/gcc/gcc option to accept ISO C89... none needed
44-
checking for style of include used by make... GNU
45-
checking dependency style of /home/spack/spack/lib/spack/env/gcc/gcc... gcc3
46-
checking whether /home/spack/spack/lib/spack/env/gcc/gcc and cc understand -c and -o together... yes
47-
checking whether we are using the GNU C++ compiler... yes
48-
checking whether /home/spack/spack/lib/spack/env/gcc/g++ accepts -g... yes
49-
checking dependency style of /home/spack/spack/lib/spack/env/gcc/g++... gcc3
50-
checking for /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.1-p5qicacmcy72pjljd4lfdy66kavxp3tv/bin/mpicc... /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.1-p5qicacmcy72pjljd4lfdy66kavxp3tv/bin/mpicc
51-
Checking whether /home/spack/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.5.0/openmpi-4.1.1-p5qicacmcy72pjljd4lfdy66kavxp3tv/bin/mpicc responds to '-showme:compile'... yes
23+
checking whether the compiler supports GNU C... yes
24+
checking whether /home/spack/spack/opt/spack/linux-x86_64_v3/compiler-wrapper-1.1.0-mmywg7x4myxvxepmqe5go3ppxirmuijp/libexec/spack/gcc/gcc accepts -g... yes
25+
checking for /home/spack/spack/opt/spack/linux-x86_64_v3/compiler-wrapper-1.1.0-mmywg7x4myxvxepmqe5go3ppxirmuijp/libexec/spack/gcc/gcc option to enable C11 features... none needed
26+
checking whether /home/spack/spack/opt/spack/linux-x86_64_v3/compiler-wrapper-1.1.0-mmywg7x4myxvxepmqe5go3ppxirmuijp/libexec/spack/gcc/gcc understands -c and -o together... yes
27+
checking whether make supports the include directive... yes (GNU style)
28+
checking dependency style of /home/spack/spack/opt/spack/linux-x86_64_v3/compiler-wrapper-1.1.0-mmywg7x4myxvxepmqe5go3ppxirmuijp/libexec/spack/gcc/gcc... gcc3
29+
checking whether the compiler supports GNU C++... yes
30+
checking whether /home/spack/spack/opt/spack/linux-x86_64_v3/compiler-wrapper-1.1.0-mmywg7x4myxvxepmqe5go3ppxirmuijp/libexec/spack/gcc/g++ accepts -g... yes
31+
checking for /home/spack/spack/opt/spack/linux-x86_64_v3/compiler-wrapper-1.1.0-mmywg7x4myxvxepmqe5go3ppxirmuijp/libexec/spack/gcc/g++ option to enable C++11 features... none needed
32+
checking dependency style of /home/spack/spack/opt/spack/linux-x86_64_v3/compiler-wrapper-1.1.0-mmywg7x4myxvxepmqe5go3ppxirmuijp/libexec/spack/gcc/g++... gcc3
33+
checking for /home/spack/spack/opt/spack/linux-x86_64_v3/openmpi-5.0.10-qfut5qqwp2fzaq3ymgk7nxvjv3qyrvml/bin/mpicc... /home/spack/spack/opt/spack/linux-x86_64_v3/openmpi-5.0.10-qfut5qqwp2fzaq3ymgk7nxvjv3qyrvml/bin/mpicc
34+
Checking whether /home/spack/spack/opt/spack/linux-x86_64_v3/openmpi-5.0.10-qfut5qqwp2fzaq3ymgk7nxvjv3qyrvml/bin/mpicc responds to '-showme:compile'... yes
5235
configure: error: unable to locate adept-utils installation

0 commit comments

Comments
 (0)