Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/google-compute-engine-oslogin.spec'], chrootPath='/var/lib/mock/f40-build-770549-125849/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/google-compute-engine-oslogin.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'} and shell False warning: line 22: Possible unexpanded macro in: Requires(post): selinux-policy-base >= %{_selinux_policy_version} Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689811200 Wrote: /builddir/build/SRPMS/google-compute-engine-oslogin-1.4.3-13.fc40.src.rpm RPM build warnings: line 22: Possible unexpanded macro in: Requires(post): selinux-policy-base >= %{_selinux_policy_version} Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/google-compute-engine-oslogin.spec'], chrootPath='/var/lib/mock/f40-build-770549-125849/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/google-compute-engine-oslogin.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'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689811200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GizZFr + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/compute-image-packages-3178e68.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + rm -rf /builddir/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm google_compute_engine_oslogin/policy/oslogin.pp + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.oFcZhZ + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50/google_compute_engine_oslogin ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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 compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + pushd google_compute_engine_oslogin + export 'CC=gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer' + CC='gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer' + export 'CXX=g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer' + CXX='g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer' + /usr/bin/make -O -j4 V=1 VERBOSE=1 'LIBS=-lcurl -ljson-c' gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -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 -Wall -Wstrict-prototypes -fPIC -g -c -o libnss_cache_oslogin/compat/getpwent_r.o libnss_cache_oslogin/compat/getpwent_r.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -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 -Wall -Wstrict-prototypes -fPIC -g -c -o libnss_cache_oslogin/nss_cache_oslogin.o libnss_cache_oslogin/nss_cache_oslogin.c libnss_cache_oslogin/nss_cache_oslogin.c: In function ‘_nss_cache_oslogin_getpwuid_r’: libnss_cache_oslogin/nss_cache_oslogin.c:336:3: warning: ‘__builtin_strncpy’ output may be truncated copying 254 bytes from a string of length 254 [-Wstringop-truncation] 336 | strncpy(filename, p_filename, NSS_CACHE_OSLOGIN_PATH_LENGTH - 1); | ^ libnss_cache_oslogin/nss_cache_oslogin.c: In function ‘_nss_cache_oslogin_getpwnam_r’: libnss_cache_oslogin/nss_cache_oslogin.c:399:3: warning: ‘__builtin_strncpy’ output may be truncated copying 254 bytes from a string of length 254 [-Wstringop-truncation] 399 | strncpy(filename, p_filename, NSS_CACHE_OSLOGIN_PATH_LENGTH - 1); | ^ g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fPIC -c pam_module/pam_oslogin_admin.cc -o pam_module/pam_oslogin_admin.o pam_module/pam_oslogin_admin.cc: In function ‘int pam_sm_acct_mgmt(pam_handle_t*, int, int, const char**)’: pam_module/pam_oslogin_admin.cc:92:12: warning: ignoring return value of ‘int chown(const char*, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 92 | chown(filename.c_str(), 0, 0); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fPIC -c pam_module/pam_oslogin_login.cc -o pam_module/pam_oslogin_login.o pam_module/pam_oslogin_login.cc: In function ‘int pam_sm_authenticate(pam_handle_t*, int, int, const char**)’: pam_module/pam_oslogin_login.cc:213:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 213 | if (choicei > challenges.size()) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~ pam_module/pam_oslogin_login.cc: In function ‘int pam_sm_acct_mgmt(pam_handle_t*, int, int, const char**)’: pam_module/pam_oslogin_login.cc:100:12: warning: ignoring return value of ‘int chown(const char*, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 100 | chown(users_filename.c_str(), 0, 0); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -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 -Wall -Wstrict-prototypes -fPIC -g -shared -Wl,-soname,libnss_cache_oslogin.so.2 -o libnss_cache_google-compute-engine-oslogin-1.4.3.so libnss_cache_oslogin/nss_cache_oslogin.o libnss_cache_oslogin/compat/getpwent_r.o g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fPIC -I/usr/include/json-c -c utils/oslogin_utils.cc -o utils/oslogin_utils.o utils/oslogin_utils.cc: In member function ‘bool oslogin_utils::NssCache::HasNextPasswd()’: utils/oslogin_utils.cc:99:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 99 | return index_ < passwd_cache_.size() && !passwd_cache_[index_].empty(); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ utils/oslogin_utils.cc: In function ‘bool oslogin_utils::ParseJsonToChallenges(const std::string&, std::vector*)’: utils/oslogin_utils.cc:548:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 548 | for (int i = 0; i < json_object_array_length(jsonChallenges); ++i) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils/oslogin_utils.cc: In function ‘bool oslogin_utils::ContinueSession(const std::string&, const std::string&, const std::string&, const Challenge&, std::string*)’: utils/oslogin_utils.cc:652:20: warning: ‘jresp’ may be used uninitialized [-Wmaybe-uninitialized] 652 | json_object_put(jresp); | ~~~~~~~~~~~~~~~^~~~~~~ utils/oslogin_utils.cc:619:30: note: ‘jresp’ was declared here 619 | struct json_object *jobj, *jresp; | ^~~~~ g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -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 -I/usr/include/json-c -shared -o pam_oslogin_admin.so pam_module/pam_oslogin_admin.o utils/oslogin_utils.o -lpam -lcurl -ljson-c g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fPIC -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 -I/usr/include/json-c -o google_oslogin_nss_cache nss_cache/nss_cache.cc utils/oslogin_utils.cc -lcurl -ljson-c nss_cache/nss_cache.cc: In function ‘int main(int, char**)’: nss_cache/nss_cache.cc:80:8: warning: ignoring return value of ‘int chown(const char*, __uid_t, __gid_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 80 | chown(kDefaultFilePath, 0, 0); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ utils/oslogin_utils.cc: In member function ‘bool oslogin_utils::NssCache::HasNextPasswd()’: utils/oslogin_utils.cc:99:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 99 | return index_ < passwd_cache_.size() && !passwd_cache_[index_].empty(); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ utils/oslogin_utils.cc: In function ‘bool oslogin_utils::ParseJsonToChallenges(const std::string&, std::vector*)’: utils/oslogin_utils.cc:548:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 548 | for (int i = 0; i < json_object_array_length(jsonChallenges); ++i) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils/oslogin_utils.cc: In function ‘bool oslogin_utils::ContinueSession(const std::string&, const std::string&, const std::string&, const Challenge&, std::string*)’: utils/oslogin_utils.cc:652:20: warning: ‘jresp’ may be used uninitialized [-Wmaybe-uninitialized] 652 | json_object_put(jresp); | ~~~~~~~~~~~~~~~^~~~~~~ utils/oslogin_utils.cc:619:30: note: ‘jresp’ was declared here 619 | struct json_object *jobj, *jresp; | ^~~~~ g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fPIC -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 -I/usr/include/json-c -shared -Wl,-soname,libnss_oslogin.so.2 -o libnss_google-compute-engine-oslogin-1.4.3.so \ nss_module/nss_oslogin.cc utils/oslogin_utils.o -lcurl -ljson-c nss_module/nss_oslogin.cc:49:24: warning: ‘cache_mutex’ defined but not used [-Wunused-variable] 49 | static pthread_mutex_t cache_mutex = PTHREAD_MUTEX_INITIALIZER; | ^~~~~~~~~~~ g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -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 -I/usr/include/json-c -shared -o pam_oslogin_login.so pam_module/pam_oslogin_login.o utils/oslogin_utils.o -lpam -lcurl -ljson-c g++ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -fPIC -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 -I/usr/include/json-c -o google_authorized_keys authorized_keys/authorized_keys.cc utils/oslogin_utils.cc -lcurl -ljson-c authorized_keys/authorized_keys.cc: In function ‘int main(int, char**)’: authorized_keys/authorized_keys.cc:74:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 74 | for (int i = 0; i < ssh_keys.size(); i++) { | ~~^~~~~~~~~~~~~~~~~ utils/oslogin_utils.cc: In member function ‘bool oslogin_utils::NssCache::HasNextPasswd()’: utils/oslogin_utils.cc:99:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 99 | return index_ < passwd_cache_.size() && !passwd_cache_[index_].empty(); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ utils/oslogin_utils.cc: In function ‘bool oslogin_utils::ParseJsonToChallenges(const std::string&, std::vector*)’: utils/oslogin_utils.cc:548:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 548 | for (int i = 0; i < json_object_array_length(jsonChallenges); ++i) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ utils/oslogin_utils.cc: In function ‘bool oslogin_utils::ContinueSession(const std::string&, const std::string&, const std::string&, const Challenge&, std::string*)’: utils/oslogin_utils.cc:652:20: warning: ‘jresp’ may be used uninitialized [-Wmaybe-uninitialized] 652 | json_object_put(jresp); | ~~~~~~~~~~~~~~~^~~~~~~ utils/oslogin_utils.cc:619:30: note: ‘jresp’ was declared here 619 | struct json_object *jobj, *jresp; | ^~~~~ + make -C policy make: Entering directory '/builddir/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50/google_compute_engine_oslogin/policy' checkmodule -M -m -o oslogin.mod oslogin.te semodule_package -o oslogin.pp -m oslogin.mod -f oslogin.fc make: Leaving directory '/builddir/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50/google_compute_engine_oslogin/policy' + popd ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.y5OaG8 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64 ++ dirname /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50/google_compute_engine_oslogin ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -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 compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + pushd google_compute_engine_oslogin + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64 'INSTALL=/usr/bin/install -p' NSS_INSTALL_PATH=/usr/lib64 PAM_INSTALL_PATH=/usr/lib64/security INSTALL_SELINUX=true mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/lib64 mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/lib64/security mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/bin mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/bin install -m 0644 libnss_cache_google-compute-engine-oslogin-1.4.3.so /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/lib64 install -m 0644 libnss_google-compute-engine-oslogin-1.4.3.so /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/lib64 install -m 0644 pam_oslogin_admin.so pam_oslogin_login.so /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/lib64/security install -m 0755 google_authorized_keys /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/bin install -m 0755 bin/google_oslogin_control /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/bin install -m 0755 google_oslogin_nss_cache /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/bin mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/share/selinux/packages install -T -m 0644 policy/oslogin.pp /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64//usr/share/selinux/packages/oslogin.pp + popd ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + bzip2 -9 /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/share/selinux/packages/oslogin.pp + chmod +x /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/lib64/libnss_cache_google-compute-engine-oslogin-1.4.3.so /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/lib64/libnss_google-compute-engine-oslogin-1.4.3.so + chmod +x /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/lib64/security/pam_oslogin_admin.so /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/lib64/security/pam_oslogin_login.so + mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/var/google-sudoers.d + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 1.4.3-13.fc40 --unique-debug-suffix -1.4.3-13.fc40.riscv64 --unique-debug-src-base google-compute-engine-oslogin-1.4.3-13.fc40.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 find-debuginfo: starting Extracting debug info from 6 files DWARF-compressing 6 files sepdebugcrcfix: Updated 6 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64 128 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/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/bin/google_oslogin_control from /bin/sh to #!/usr/bin/sh + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 + /usr/lib/rpm/redhat/brp-python-hardlink Processing files: google-compute-engine-oslogin-1.4.3-13.fc40.riscv64 error: File not found: /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/lib64/libnss_cache_oslogin.so.* error: File not found: /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/lib64/libnss_oslogin.so.* Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.i94Gpu + umask 022 + cd /builddir/build/BUILD + cd compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + DOCDIR=/builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/share/doc/google-compute-engine-oslogin + export LC_ALL= + LC_ALL= + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/share/doc/google-compute-engine-oslogin + cp -pr /builddir/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50/google_compute_engine_oslogin/README.md /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/share/doc/google-compute-engine-oslogin + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.gNunhI + umask 022 + cd /builddir/build/BUILD + cd compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + LICENSEDIR=/builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/share/licenses/google-compute-engine-oslogin + export LC_ALL= + LC_ALL= + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/share/licenses/google-compute-engine-oslogin + cp -pr /builddir/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50/LICENSE /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/share/licenses/google-compute-engine-oslogin + RPM_EC=0 ++ jobs -p + exit 0 RPM build errors: File not found: /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/lib64/libnss_cache_oslogin.so.* File not found: /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-13.fc40.riscv64/usr/lib64/libnss_oslogin.so.* Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/google-compute-engine-oslogin.spec