Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/R-CRAN-arrangements.spec'], chrootPath='/var/lib/mock/fedora-39-x86_64-1692118482.239978/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1wjbap6n:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1wjbap6n:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '82933d9389ee4829a25d46797957e009', '-D', '/var/lib/mock/fedora-39-x86_64-1692118482.239978/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1wjbap6n:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/R-CRAN-arrangements.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False warning: source_date_epoch_from_changelog set but %changelog is missing Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.src.rpm RPM build warnings: source_date_epoch_from_changelog set but %changelog is missing Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/R-CRAN-arrangements.spec'], chrootPath='/var/lib/mock/fedora-39-x86_64-1692118482.239978/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1wjbap6n:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=True) Using nspawn with args ['--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1wjbap6n:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'b9f2585fe5e64cd8997d63059445bb81', '-D', '/var/lib/mock/fedora-39-x86_64-1692118482.239978/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--rlimit=RLIMIT_NOFILE=10240', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.1wjbap6n:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/R-CRAN-arrangements.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False warning: source_date_epoch_from_changelog set but %changelog is missing Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ALAvHf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf arrangements + /usr/bin/mkdir -p arrangements + cd arrangements + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/arrangements_1.1.9.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + rm -rf /builddir/build/BUILD/arrangements-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/arrangements-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + find -type f -executable -exec grep -Iq . '{}' ';' -exec sed -i -e '$a\' '{}' ';' + '[' -d arrangements/src ']' + find arrangements/src -type f -exec sed -i s@/usr/bin/strip@/usr/bin/true@g '{}' ';' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.v3BsM0 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd arrangements + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.90APAW + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64 ++ dirname /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd arrangements + mkdir -p /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64/usr/local/lib/R/library + /usr/bin/R CMD INSTALL -l /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64/usr/local/lib/R/library arrangements * installing *source* package 'arrangements' ... ** package 'arrangements' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: 'gcc (GCC) 13.2.1 20230728 (Red Hat 13.2.1-1)' gcc -I"/usr/include/R" -DNDEBUG -I/usr/local/include -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c arrangements.c -o arrangements.o arrangements.c: In function 'validate_n_value': arrangements.c:17:12: warning: variable 'k' set but not used [-Wunused-but-set-variable] 17 | int n, k; | ^ arrangements.c:27:12: warning: 'n' may be used uninitialized [-Wmaybe-uninitialized] 27 | return Rf_ScalarInteger(n); | ^~~~~~~~~~~~~~~~~~~ arrangements.c:17:9: note: 'n' was declared here 17 | int n, k; | ^ gcc -I"/usr/include/R" -DNDEBUG -I/usr/local/include -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c combinations.c -o combinations.o In file included from combinations.c:5: combinations/combinations-ordinary.c: In function 'next_ordinary_combinations': combinations/combinations-ordinary.c:126:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 126 | if (skip >= (int) maxd) { | ^~~~~~~~~~ combinations/combinations-ordinary.c:90:12: note: 'maxd' was declared here 90 | double maxd; | ^~~~ In file included from utils.h:6, from macros.h:4, from combinations.c:2: /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ combinations/combinations-ordinary.c:87:10: note: 'result' was declared here 87 | SEXP result; | ^~~~~~ combinations/combinations-ordinary.c: In function 'draw_ordinary_combinations': combinations/combinations-ordinary.c:272:57: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 272 | nth_ordinary_combination(ap, n, k, index[j] - 1); \ | ~~~~~^~~ combinations/combinations-ordinary.c:255:14: note: 'index' was declared here 255 | int* index; | ^~~~~ combinations/combinations-ordinary.c:196:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 196 | mpz_t* index; | ^~~~~ In file included from combinations.c:6: combinations/combinations-multiset.c: In function 'n_multiset_combinations': combinations/combinations-multiset.c:77:12: warning: 'ptemp' may be used uninitialized [-Wmaybe-uninitialized] 77 | return ptemp; | ^~~~~ combinations/combinations-multiset.c:52:12: note: 'ptemp' was declared here 52 | double ptemp; | ^~~~~ combinations/combinations-multiset.c: In function 'next_multiset_combinations': combinations/combinations-multiset.c:241:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 241 | if (skip >= (int) maxd) { | ^~~~~~~~~~ combinations/combinations-multiset.c:194:12: note: 'maxd' was declared here 194 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ combinations/combinations-multiset.c:185:12: note: 'j' was declared here 185 | int i, j, h; | ^ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ combinations/combinations-multiset.c:188:10: note: 'result' was declared here 188 | SEXP result; | ^~~~~~ combinations/combinations-multiset.c: In function 'draw_multiset_combinations': combinations/combinations-multiset.c:400:64: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 400 | nth_multiset_combination(ap, fp, flen, k, index[j] - 1); \ | ~~~~~^~~ combinations/combinations-multiset.c:383:14: note: 'index' was declared here 383 | int* index; | ^~~~~ combinations/combinations-multiset.c:324:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 324 | mpz_t* index; | ^~~~~ In file included from combinations.c:7: combinations/combinations-replacement.c: In function 'next_replacement_combinations': combinations/combinations-replacement.c:121:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 121 | if (skip >= (int) maxd) { | ^~~~~~~~~~ combinations/combinations-replacement.c:87:12: note: 'maxd' was declared here 87 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ combinations/combinations-replacement.c:84:10: note: 'result' was declared here 84 | SEXP result; | ^~~~~~ combinations/combinations-replacement.c: In function 'draw_replacement_combinations': combinations/combinations-replacement.c:267:60: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 267 | nth_replacement_combination(ap, n, k, index[j] - 1); \ | ~~~~~^~~ combinations/combinations-replacement.c:250:14: note: 'index' was declared here 250 | int* index; | ^~~~~ combinations/combinations-replacement.c:191:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 191 | mpz_t* index; | ^~~~~ combinations.c: In function 'ncombinations': combinations.c:47:19: warning: 'n' may be used uninitialized [-Wmaybe-uninitialized] 47 | } else if (n < k) { | ^ combinations.c:18:9: note: 'n' was declared here 18 | int n, k; | ^ combinations.c:50:17: warning: 'fp' may be used uninitialized [-Wmaybe-uninitialized] 50 | d = n_multiset_combinations(fp, flen, k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ combinations.c:19:10: note: 'fp' was declared here 19 | int* fp; | ^~ combinations.c:50:17: warning: 'flen' may be used uninitialized [-Wmaybe-uninitialized] 50 | d = n_multiset_combinations(fp, flen, k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ combinations.c:20:9: note: 'flen' was declared here 20 | int flen; | ^~~~ combinations.c: In function 'get_combinations': combinations.c:119:19: warning: 'n' may be used uninitialized [-Wmaybe-uninitialized] 119 | ans = draw_ordinary_combinations(n, k, _v, layout, _index, _nsample); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ combinations.c:72:9: note: 'n' was declared here 72 | int n, k; | ^ combinations.c:117:19: warning: 'fp' may be used uninitialized [-Wmaybe-uninitialized] 117 | ans = draw_multiset_combinations(fp, flen, k, _v, layout, _index, _nsample); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ combinations.c:73:10: note: 'fp' was declared here 73 | int* fp; | ^~ combinations.c:117:19: warning: 'flen' may be used uninitialized [-Wmaybe-uninitialized] 117 | ans = draw_multiset_combinations(fp, flen, k, _v, layout, _index, _nsample); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ combinations.c:74:9: note: 'flen' was declared here 74 | int flen; | ^~~~ gcc -I"/usr/include/R" -DNDEBUG -I/usr/local/include -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c compositions.c -o compositions.o In file included from compositions.c:6: compositions/compositions-asc-k.c: In function 'next_asc_k_composition': compositions/compositions-asc-k.c:26:19: warning: 'a' may be used uninitialized [-Wmaybe-uninitialized] 26 | ar[k - 1] = a - 1; | ~~^~~ compositions/compositions-asc-k.c:13:18: note: 'a' was declared here 13 | unsigned int a; | ^ In file included from compositions.c:4: compositions/compositions-asc.c: In function 'next_asc_compositions': compositions/compositions-asc.c:131:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 131 | if (skip >= (int) maxd) { | ^~~~~~~~~~ compositions/compositions-asc.c:96:12: note: 'maxd' was declared here 96 | double maxd; | ^~~~ In file included from utils.h:6, from compositions.c:2: /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ compositions/compositions-asc.c:93:10: note: 'result' was declared here 93 | SEXP result; | ^~~~~~ compositions/compositions-asc.c: In function 'draw_asc_compositions': compositions/compositions-asc.c:276:49: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 276 | nth_asc_composition(ap, n, index[j] - 1); \ | ~~~~~^~~ compositions/compositions-asc.c:257:14: note: 'index' was declared here 257 | int* index; | ^~~~~ compositions/compositions-asc.c:203:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 203 | mpz_t* index; | ^~~~~ In file included from compositions.c:5: compositions/compositions-desc.c: In function 'next_desc_compositions': compositions/compositions-desc.c:130:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 130 | if (skip >= (int) maxd) { | ^~~~~~~~~~ compositions/compositions-desc.c:94:12: note: 'maxd' was declared here 94 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ compositions/compositions-desc.c:91:10: note: 'result' was declared here 91 | SEXP result; | ^~~~~~ compositions/compositions-desc.c: In function 'draw_desc_compositions': compositions/compositions-desc.c:275:50: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 275 | nth_desc_composition(ap, n, index[j] - 1); \ | ~~~~~^~~ compositions/compositions-desc.c:256:14: note: 'index' was declared here 256 | int* index; | ^~~~~ compositions/compositions-desc.c:202:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 202 | mpz_t* index; | ^~~~~ compositions/compositions-asc-k.c: In function 'next_asc_k_compositions': compositions/compositions-asc-k.c:119:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 119 | if (skip >= (int) maxd) { | ^~~~~~~~~~ compositions/compositions-asc-k.c:84:12: note: 'maxd' was declared here 84 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ compositions/compositions-asc-k.c:81:10: note: 'result' was declared here 81 | SEXP result; | ^~~~~~ compositions/compositions-asc-k.c: In function 'draw_asc_k_compositions': compositions/compositions-asc-k.c:239:54: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 239 | nth_asc_k_composition(ap, n, k, index[j] - 1); \ | ~~~~~^~~ compositions/compositions-asc-k.c:222:14: note: 'index' was declared here 222 | int* index; | ^~~~~ compositions/compositions-asc-k.c:176:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 176 | mpz_t* index; | ^~~~~ In file included from compositions.c:7: compositions/compositions-desc-k.c: In function 'next_desc_k_compositions': compositions/compositions-desc-k.c:130:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 130 | if (skip >= (int) maxd) { | ^~~~~~~~~~ compositions/compositions-desc-k.c:93:12: note: 'maxd' was declared here 93 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ compositions/compositions-desc-k.c:90:10: note: 'result' was declared here 90 | SEXP result; | ^~~~~~ compositions/compositions-desc-k.c: In function 'draw_desc_k_compositions': compositions/compositions-desc-k.c:265:55: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 265 | nth_desc_k_composition(ap, n, k, index[j] - 1); \ | ~~~~~^~~ compositions/compositions-desc-k.c:248:14: note: 'index' was declared here 248 | int* index; | ^~~~~ compositions/compositions-desc-k.c:202:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 202 | mpz_t* index; | ^~~~~ gcc -I"/usr/include/R" -DNDEBUG -I/usr/local/include -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c math.c -o math.o gcc -I"/usr/include/R" -DNDEBUG -I/usr/local/include -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c partitions.c -o partitions.o In file included from partitions.c:5: partitions/partitions-asc.c: In function 'next_asc_partitions': partitions/partitions-asc.c:143:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 143 | if (skip >= (int) maxd) { | ^~~~~~~~~~ partitions/partitions-asc.c:108:12: note: 'maxd' was declared here 108 | double maxd; | ^~~~ In file included from utils.h:6, from partitions.c:3: /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ partitions/partitions-asc.c:105:10: note: 'result' was declared here 105 | SEXP result; | ^~~~~~ partitions/partitions-asc.c: In function 'draw_asc_partitions': partitions/partitions-asc.c:288:47: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 288 | nth_asc_partition(ap, n, index[j] - 1); \ | ~~~~~^~~ partitions/partitions-asc.c:269:14: note: 'index' was declared here 269 | int* index; | ^~~~~ partitions/partitions-asc.c:215:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 215 | mpz_t* index; | ^~~~~ In file included from partitions.c:6: partitions/partitions-desc.c: In function 'next_desc_partitions': partitions/partitions-desc.c:163:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 163 | if (skip >= (int) maxd) { | ^~~~~~~~~~ partitions/partitions-desc.c:126:12: note: 'maxd' was declared here 126 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ partitions/partitions-desc.c:120:12: note: 'j' was declared here 120 | int i, j, k; | ^ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ partitions/partitions-desc.c:123:10: note: 'result' was declared here 123 | SEXP result; | ^~~~~~ partitions/partitions-desc.c: In function 'draw_desc_partitions': partitions/partitions-desc.c:326:48: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 326 | nth_desc_partition(ap, n, index[j] - 1); \ | ~~~~~^~~ partitions/partitions-desc.c:307:14: note: 'index' was declared here 307 | int* index; | ^~~~~ partitions/partitions-desc.c:253:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 253 | mpz_t* index; | ^~~~~ In file included from partitions.c:7: partitions/partitions-asc-k.c: In function 'next_asc_k_partitions': partitions/partitions-asc-k.c:126:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 126 | if (skip >= (int) maxd) { | ^~~~~~~~~~ partitions/partitions-asc-k.c:91:12: note: 'maxd' was declared here 91 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ partitions/partitions-asc-k.c:88:10: note: 'result' was declared here 88 | SEXP result; | ^~~~~~ partitions/partitions-asc-k.c: In function 'draw_asc_k_partitions': partitions/partitions-asc-k.c:246:52: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 246 | nth_asc_k_partition(ap, n, k, index[j] - 1); \ | ~~~~~^~~ partitions/partitions-asc-k.c:229:14: note: 'index' was declared here 229 | int* index; | ^~~~~ partitions/partitions-asc-k.c:183:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 183 | mpz_t* index; | ^~~~~ In file included from partitions.c:8: partitions/partitions-desc-k.c: In function 'next_desc_k_partitions': partitions/partitions-desc-k.c:147:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 147 | if (skip >= (int) maxd) { | ^~~~~~~~~~ partitions/partitions-desc-k.c:112:12: note: 'maxd' was declared here 112 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ partitions/partitions-desc-k.c:109:10: note: 'result' was declared here 109 | SEXP result; | ^~~~~~ partitions/partitions-desc-k.c: In function 'draw_desc_k_partitions': partitions/partitions-desc-k.c:267:53: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 267 | nth_desc_k_partition(ap, n, k, index[j] - 1); \ | ~~~~~^~~ partitions/partitions-desc-k.c:250:14: note: 'index' was declared here 250 | int* index; | ^~~~~ partitions/partitions-desc-k.c:204:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 204 | mpz_t* index; | ^~~~~ In file included from partitions.c:9: partitions/partitions-asc-distinct.c: In function 'next_asc_distinct_partitions': partitions/partitions-asc-distinct.c:146:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 146 | if (skip >= (int) maxd) { | ^~~~~~~~~~ partitions/partitions-asc-distinct.c:109:12: note: 'maxd' was declared here 109 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ partitions/partitions-asc-distinct.c:106:10: note: 'result' was declared here 106 | SEXP result; | ^~~~~~ partitions/partitions-asc-distinct.c: In function 'draw_asc_distinct_partitions': partitions/partitions-asc-distinct.c:292:59: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 292 | nth_asc_distinct_partition(ap, m, n, index[j] - 1); \ | ~~~~~^~~ partitions/partitions-asc-distinct.c:273:14: note: 'index' was declared here 273 | int* index; | ^~~~~ partitions/partitions-asc-distinct.c:219:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 219 | mpz_t* index; | ^~~~~ In file included from partitions.c:10: partitions/partitions-desc-distinct.c: In function 'next_desc_distinct_partitions': partitions/partitions-desc-distinct.c:159:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 159 | if (skip >= (int) maxd) { | ^~~~~~~~~~ partitions/partitions-desc-distinct.c:122:12: note: 'maxd' was declared here 122 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ partitions/partitions-desc-distinct.c:119:10: note: 'result' was declared here 119 | SEXP result; | ^~~~~~ partitions/partitions-desc-distinct.c: In function 'draw_desc_distinct_partitions': partitions/partitions-desc-distinct.c:305:60: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 305 | nth_desc_distinct_partition(ap, m, n, index[j] - 1); \ | ~~~~~^~~ partitions/partitions-desc-distinct.c:286:14: note: 'index' was declared here 286 | int* index; | ^~~~~ partitions/partitions-desc-distinct.c:232:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 232 | mpz_t* index; | ^~~~~ In file included from partitions.c:11: partitions/partitions-asc-k-distinct.c: In function 'next_asc_k_distinct_partitions': partitions/partitions-asc-k-distinct.c:102:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 102 | if (skip >= (int) maxd) { | ^~~~~~~~~~ partitions/partitions-asc-k-distinct.c:67:12: note: 'maxd' was declared here 67 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ partitions/partitions-asc-k-distinct.c:64:10: note: 'result' was declared here 64 | SEXP result; | ^~~~~~ partitions/partitions-asc-k-distinct.c: In function 'draw_asc_k_distinct_partitions': partitions/partitions-asc-k-distinct.c:222:61: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 222 | nth_asc_k_distinct_partition(ap, n, k, index[j] - 1); \ | ~~~~~^~~ partitions/partitions-asc-k-distinct.c:205:14: note: 'index' was declared here 205 | int* index; | ^~~~~ partitions/partitions-asc-k-distinct.c:159:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 159 | mpz_t* index; | ^~~~~ In file included from partitions.c:12: partitions/partitions-desc-k-distinct.c: In function 'next_desc_k_distinct_partitions': partitions/partitions-desc-k-distinct.c:114:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 114 | if (skip >= (int) maxd) { | ^~~~~~~~~~ partitions/partitions-desc-k-distinct.c:79:12: note: 'maxd' was declared here 79 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ partitions/partitions-desc-k-distinct.c:76:10: note: 'result' was declared here 76 | SEXP result; | ^~~~~~ partitions/partitions-desc-k-distinct.c: In function 'draw_desc_k_distinct_partitions': partitions/partitions-desc-k-distinct.c:234:62: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 234 | nth_desc_k_distinct_partition(ap, n, k, index[j] - 1); \ | ~~~~~^~~ partitions/partitions-desc-k-distinct.c:217:14: note: 'index' was declared here 217 | int* index; | ^~~~~ partitions/partitions-desc-k-distinct.c:171:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 171 | mpz_t* index; | ^~~~~ gcc -I"/usr/include/R" -DNDEBUG -I/usr/local/include -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c permutations.c -o permutations.o In file included from permutations.c:4: permutations/permutations-ordinary.c: In function 'draw_ordinary_permutations': permutations/permutations-ordinary.c:326:54: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 326 | nth_ordinary_permutation(ap, n, index[j] - 1); \ | ~~~~~^~~ permutations/permutations-ordinary.c:309:14: note: 'index' was declared here 309 | int* index; | ^~~~~ permutations/permutations-ordinary.c:250:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 250 | mpz_t* index; | ^~~~~ In file included from permutations.c:5: permutations/permutations-k.c: In function 'next_k_permutations': permutations/permutations-k.c:143:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 143 | if (skip >= (int) maxd) { | ^~~~~~~~~~ permutations/permutations-k.c:108:12: note: 'maxd' was declared here 108 | double maxd; | ^~~~ In file included from utils.h:6, from macros.h:4, from permutations.c:2: /usr/include/R/Rinternals.h:368:25: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ permutations/permutations-k.c:102:12: note: 'j' was declared here 102 | int i, j; | ^ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ permutations/permutations-k.c:105:10: note: 'result' was declared here 105 | SEXP result; | ^~~~~~ permutations/permutations-k.c: In function 'draw_k_permutations': permutations/permutations-k.c:313:50: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 313 | nth_k_permutation(ap, n, k, index[j] - 1); \ | ~~~~~^~~ permutations/permutations-k.c:296:14: note: 'index' was declared here 296 | int* index; | ^~~~~ permutations/permutations-k.c:237:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 237 | mpz_t* index; | ^~~~~ In file included from permutations.c:6: permutations/permutations-multiset.c: In function 'n_multiset_permutations': permutations/permutations-multiset.c:63:12: warning: 'ptemp' may be used uninitialized [-Wmaybe-uninitialized] 63 | return ptemp; | ^~~~~ permutations/permutations-multiset.c:37:12: note: 'ptemp' was declared here 37 | double ptemp; | ^~~~~ permutations/permutations-ordinary.c: In function 'next_ordinary_permutations': permutations/permutations-ordinary.c:125:20: warning: 'fp' may be used uninitialized [-Wmaybe-uninitialized] 125 | maxd = multichoose(fp, flen); | ^~~~~~~~~~~~~~~~~~~~~ permutations/permutations-ordinary.c:111:10: note: 'fp' was declared here 111 | int* fp; | ^~ permutations/permutations-ordinary.c:125:20: warning: 'flen' may be used uninitialized [-Wmaybe-uninitialized] 125 | maxd = multichoose(fp, flen); | ^~~~~~~~~~~~~~~~~~~~~ permutations/permutations-ordinary.c:112:9: note: 'flen' was declared here 112 | int flen; | ^~~~ permutations/permutations-ordinary.c:176:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 176 | if (skip >= (int) maxd) { | ^~~~~~~~~~ permutations/permutations-ordinary.c:119:12: note: 'maxd' was declared here 119 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ permutations/permutations-ordinary.c:106:12: note: 'j' was declared here 106 | int i, j, h; | ^ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ permutations/permutations-ordinary.c:109:10: note: 'result' was declared here 109 | SEXP result; | ^~~~~~ permutations/permutations-multiset.c: In function 'next_multiset_permutations': permutations/permutations-multiset.c:301:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 301 | if (skip >= (int) maxd) { | ^~~~~~~~~~ permutations/permutations-multiset.c:262:12: note: 'maxd' was declared here 262 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'j' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ permutations/permutations-multiset.c:253:12: note: 'j' was declared here 253 | int i, j, h; | ^ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ permutations/permutations-multiset.c:256:10: note: 'result' was declared here 256 | SEXP result; | ^~~~~~ permutations/permutations-multiset.c: In function 'draw_multiset_permutations': permutations/permutations-multiset.c:460:64: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 460 | nth_multiset_permutation(ap, fp, flen, k, index[j] - 1); \ | ~~~~~^~~ permutations/permutations-multiset.c:443:14: note: 'index' was declared here 443 | int* index; | ^~~~~ permutations/permutations-multiset.c:384:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 384 | mpz_t* index; | ^~~~~ In file included from permutations.c:7: permutations/permutations-replacement.c: In function 'next_replacement_permutations': permutations/permutations-replacement.c:105:29: warning: 'maxd' may be used uninitialized [-Wmaybe-uninitialized] 105 | if (skip >= (int) maxd) { | ^~~~~~~~~~ permutations/permutations-replacement.c:71:12: note: 'maxd' was declared here 71 | double maxd; | ^~~~ /usr/include/R/Rinternals.h:368:25: warning: 'result' may be used uninitialized [-Wmaybe-uninitialized] 368 | #define PROTECT(s) Rf_protect(s) | ^~~~~~~~~~~~~ permutations/permutations-replacement.c:64:10: note: 'result' was declared here 64 | SEXP result; | ^~~~~~ permutations/permutations-replacement.c: In function 'draw_replacement_permutations': permutations/permutations-replacement.c:251:60: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 251 | nth_replacement_permutation(ap, n, k, index[j] - 1); \ | ~~~~~^~~ permutations/permutations-replacement.c:234:14: note: 'index' was declared here 234 | int* index; | ^~~~~ permutations/permutations-replacement.c:175:16: warning: 'index' may be used uninitialized [-Wmaybe-uninitialized] 175 | mpz_t* index; | ^~~~~ permutations.c: In function 'npermutations': permutations.c:54:19: warning: 'n' may be used uninitialized [-Wmaybe-uninitialized] 54 | } else if (n < k) { | ^ permutations.c:17:9: note: 'n' was declared here 17 | int n, k; | ^ permutations.c:60:21: warning: 'fp' may be used uninitialized [-Wmaybe-uninitialized] 60 | d = n_multiset_permutations(fp, flen, k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ permutations.c:18:10: note: 'fp' was declared here 18 | int* fp; | ^~ permutations.c:37:17: warning: 'flen' may be used uninitialized [-Wmaybe-uninitialized] 37 | n_multiset_n_permutations_bigz(z, fp, flen); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ permutations.c:19:9: note: 'flen' was declared here 19 | int flen; | ^~~~ permutations.c: In function 'get_permutations': permutations.c:135:19: warning: 'n' may be used uninitialized [-Wmaybe-uninitialized] 135 | } else if (n == k) { | ^ permutations.c:87:9: note: 'n' was declared here 87 | int n, k; | ^ permutations.c:134:19: warning: 'fp' may be used uninitialized [-Wmaybe-uninitialized] 134 | ans = draw_multiset_permutations(fp, flen, k, _v, layout, _index, _nsample); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ permutations.c:88:10: note: 'fp' was declared here 88 | int* fp; | ^~ permutations.c:134:19: warning: 'flen' may be used uninitialized [-Wmaybe-uninitialized] 134 | ans = draw_multiset_permutations(fp, flen, k, _v, layout, _index, _nsample); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ permutations.c:89:9: note: 'flen' was declared here 89 | int flen; | ^~~~ gcc -I"/usr/include/R" -DNDEBUG -I/usr/local/include -fpic -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c utils.c -o utils.o gcc -shared -L/usr/lib64/R/lib -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -o arrangements.so arrangements.o combinations.o compositions.o math.o partitions.o permutations.o utils.o -lgmp -L/usr/lib64/R/lib -lR installing to /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64/usr/local/lib/R/library/00LOCK-arrangements/00new/arrangements/libs ** R ** byte-compile and prepare package for lazy loading ** help *** installing help indices converting help for package 'arrangements' finding HTML links ... done arrangements-package html combinations html compositions html icombinations html icompositions html ipartitions html ipermutations html ncombinations html ncompositions html npartitions html npermutations html partitions html permutations html ** building package indices ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (arrangements) + test -d arrangements/src + cd arrangements/src + rm -f arrangements.o combinations.o compositions.o math.o partitions.o permutations.o utils.o arrangements.so + rm -f /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64/usr/local/lib/R/library/R.css + find /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64/usr/local/lib/R/library -type f -exec sed -i s@/builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64@@g '{}' ';' + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 1.1.9-1.fc39.copr6282988 --unique-debug-suffix -1.1.9-1.fc39.copr6282988.x86_64 --unique-debug-src-base R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/arrangements find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64 401 blocks find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64 Provides: R-CRAN-arrangements = 1.1.9-1.fc39.copr6282988 R-CRAN-arrangements(x86-64) = 1.1.9-1.fc39.copr6282988 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libR.so()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgmp.so.10()(64bit) rtld(GNU_HASH) Processing files: R-CRAN-arrangements-debugsource-1.1.9-1.fc39.copr6282988.x86_64 Provides: R-CRAN-arrangements-debugsource = 1.1.9-1.fc39.copr6282988 R-CRAN-arrangements-debugsource(x86-64) = 1.1.9-1.fc39.copr6282988 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: R-CRAN-arrangements-debuginfo-1.1.9-1.fc39.copr6282988.x86_64 Provides: R-CRAN-arrangements-debuginfo = 1.1.9-1.fc39.copr6282988 R-CRAN-arrangements-debuginfo(x86-64) = 1.1.9-1.fc39.copr6282988 debuginfo(build-id) = a34b2c9416de5386d2a2e7cf39f77f77ffff55af Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: R-CRAN-arrangements-debugsource(x86-64) = 1.1.9-1.fc39.copr6282988 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64 Wrote: /builddir/build/RPMS/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64.rpm Wrote: /builddir/build/RPMS/R-CRAN-arrangements-debuginfo-1.1.9-1.fc39.copr6282988.x86_64.rpm Wrote: /builddir/build/RPMS/R-CRAN-arrangements-debugsource-1.1.9-1.fc39.copr6282988.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.ZWY5Bp + umask 022 + cd /builddir/build/BUILD + cd arrangements + /usr/bin/rm -rf /builddir/build/BUILDROOT/R-CRAN-arrangements-1.1.9-1.fc39.copr6282988.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.lXbJT3 + umask 022 + cd /builddir/build/BUILD + rm -rf /builddir/build/BUILD/arrangements-SPECPARTS + rm -rf arrangements arrangements.gemspec + RPM_EC=0 ++ jobs -p + exit 0 RPM build warnings: source_date_epoch_from_changelog set but %changelog is missing Child return code was: 0