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/f38-build-698323-86973/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=1674086400 Wrote: /builddir/build/SRPMS/google-compute-engine-oslogin-1.4.3-12.fc38.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/f38-build-698323-86973/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=1674086400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.c15VgJ + 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 + /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.39jWek + 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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + 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++ ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50/google_compute_engine_oslogin ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + export CXX + cd compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + pushd google_compute_engine_oslogin + export 'CC=gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer' + CC='gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer' + export 'CXX=g++ -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer' + CXX='g++ -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer' + /usr/bin/make -O -j4 V=1 VERBOSE=1 'LIBS=-lcurl -ljson-c' gcc -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 -fasynchronous-unwind-tables -fstack-clash-protection -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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -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: '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: '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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -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 -fasynchronous-unwind-tables -fstack-clash-protection -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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -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 -fasynchronous-unwind-tables -fstack-clash-protection -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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -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 -fasynchronous-unwind-tables -fstack-clash-protection -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 'oslogin_utils::ContinueSession(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, oslogin_utils::Challenge const&, std::__cxx11::basic_string, std::allocator >*)': 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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -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 -fasynchronous-unwind-tables -fstack-clash-protection -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 'oslogin_utils::ContinueSession(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, oslogin_utils::Challenge const&, std::__cxx11::basic_string, std::allocator >*)': 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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -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 -fasynchronous-unwind-tables -fstack-clash-protection -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 'oslogin_utils::ContinueSession(std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, std::__cxx11::basic_string, std::allocator > const&, oslogin_utils::Challenge const&, std::__cxx11::basic_string, std::allocator >*)': 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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -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 -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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -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 -fasynchronous-unwind-tables -fstack-clash-protection -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; | ^~~~~~~~~~~ + 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.XaDfNe + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64 ++ dirname /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64 + 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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-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 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + 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 ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50/google_compute_engine_oslogin ~/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + pushd google_compute_engine_oslogin + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.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-12.fc38.riscv64//usr/lib64 mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64//usr/lib64/security mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64//usr/bin mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.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-12.fc38.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-12.fc38.riscv64//usr/lib64 install -m 0644 pam_oslogin_admin.so pam_oslogin_login.so /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64//usr/lib64/security install -m 0755 google_authorized_keys /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64//usr/bin install -m 0755 bin/google_oslogin_control /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64//usr/bin install -m 0755 google_oslogin_nss_cache /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64//usr/bin mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64//usr/share/selinux/packages install -T -m 0644 policy/oslogin.pp /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.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-12.fc38.riscv64/usr/share/selinux/packages/oslogin.pp + chmod +x /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/libnss_cache_google-compute-engine-oslogin-1.4.3.so /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/libnss_google-compute-engine-oslogin-1.4.3.so + chmod +x /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/security/pam_oslogin_admin.so /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/security/pam_oslogin_login.so + mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/var/google-sudoers.d + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 1.4.3-12.fc38 --unique-debug-suffix -1.4.3-12.fc38.riscv64 --unique-debug-src-base google-compute-engine-oslogin-1.4.3-12.fc38.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 extracting debug info from /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/bin/google_oslogin_nss_cache extracting debug info from /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/bin/google_authorized_keys extracting debug info from /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/libnss_cache_google-compute-engine-oslogin-1.4.3.so extracting debug info from /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/libnss_google-compute-engine-oslogin-1.4.3.so extracting debug info from /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/security/pam_oslogin_admin.so extracting debug info from /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/security/pam_oslogin_login.so original debug info size: 20040kB, size after compression: 16208kB /usr/bin/sepdebugcrcfix: Updated 6 CRC32s, 0 CRC32s did match. 128 blocks + /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-12.fc38.riscv64 error: File not found: /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/libnss_cache_oslogin.so.* error: File not found: /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/lib64/libnss_oslogin.so.* Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.C4bJOJ + umask 022 + cd /builddir/build/BUILD + cd compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + DOCDIR=/builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/share/doc/google-compute-engine-oslogin + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/share/doc/google-compute-engine-oslogin + cp -pr google_compute_engine_oslogin/README.md /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/share/doc/google-compute-engine-oslogin + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.gi7inI + umask 022 + cd /builddir/build/BUILD + cd compute-image-packages-3178e68b004eea38dada580de4193994f45dfc50 + LICENSEDIR=/builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/share/licenses/google-compute-engine-oslogin + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.riscv64/usr/share/licenses/google-compute-engine-oslogin + cp -pr LICENSE /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.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-12.fc38.riscv64/usr/lib64/libnss_cache_oslogin.so.* File not found: /builddir/build/BUILDROOT/google-compute-engine-oslogin-1.4.3-12.fc38.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