Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/pcm.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-140996-53895/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=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/pcm.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/pcm-202107-5.0.2.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/pcm.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-140996-53895/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=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/pcm.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sLBSei + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pcm-202107 + /usr/bin/gzip -dc /builddir/build/SOURCES/pcm-202107.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pcm-202107 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gF4JnB + umask 022 + cd /builddir/build/BUILD + cd pcm-202107 + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/make -O -j4 make -C daemon/daemon/Debug make[1]: Entering directory '/builddir/build/BUILD/pcm-202107/daemon/daemon/Debug' make[1]: Leaving directory '/builddir/build/BUILD/pcm-202107/daemon/daemon/Debug' make[1]: Entering directory '/builddir/build/BUILD/pcm-202107/daemon/daemon/Debug' Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../utils.cpp -o utils.o Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../pci.cpp -o pci.o Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../msr.cpp -o msr.o Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../mmio.cpp -o mmio.o Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../bw.cpp -o bw.o Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../cpucounters.cpp -o cpucounters.o Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../topology.cpp -o topology.o Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../debug.cpp -o debug.o Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../threadpool.cpp -o threadpool.o Build PCM g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c ../../../resctrl.cpp -o resctrl.o Building file: ../daemon.cpp Invoking: C++ Compiler g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c -MMD -MP -MF"daemon.d" -MT"daemon.d" -o "daemon.o" "../daemon.cpp" make[1]: Leaving directory '/builddir/build/BUILD/pcm-202107/daemon/daemon/Debug' make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. In file included from ../../../bw.cpp:20: ../../../utils.h: In constructor 'pcm::TGLClientBW::TGLClientBW()': ../../../utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ ../../../utils.h:359:105: error: output number 2 not directly addressable ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints make[1]: [makefile:59: bw.o] Error 1 (ignored) ../../../cpucounters.cpp: In function 'void pcm::pcm_cpuid(unsigned int, unsigned int, pcm::PCM_CPUID_INFO&)': ../../../cpucounters.cpp:458:138: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf), "c" (subleaf)); ^ ../../../cpucounters.cpp:458:138: warning: asm operand 5 probably doesn't match constraints ../../../cpucounters.cpp:458:138: error: impossible constraint in 'asm' In file included from ../../../width_extender.h:25, from ../../../cpucounters.h:37, from ../../../cpucounters.cpp:32: ../../../utils.h: In member function 'bool pcm::PCM::isFixedCounterSupported(unsigned int)': ../../../utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ ../../../utils.h:359:105: error: output number 2 not directly addressable ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints ../../../utils.h: In member function 'bool pcm::PCM::isHWTMAL1Supported() const': ../../../utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ ../../../utils.h:359:105: error: output number 2 not directly addressable ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints ../../../utils.h: In member function 'void pcm::PCM::readCPUMicrocodeLevel()': ../../../utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ ../../../utils.h:359:105: error: output number 2 not directly addressable ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints ../../../utils.h: In static member function 'static std::__cxx11::string pcm::PCM::getCPUBrandString()': ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ In file included from ../../../cpucounters.cpp:32: ../../../cpucounters.h: In member function 'pcm::uint64 pcm::PCM::getTickCountRDTSCP(pcm::uint64)': ../../../cpucounters.h:2287:58: error: unknown register name '%rdx' in 'asm' "=r" (high), "=r" (low) :: "%rax", "%rcx", "%rdx"); ^ ../../../cpucounters.h:2287:58: error: unknown register name '%rcx' in 'asm' ../../../cpucounters.h:2287:58: error: unknown register name '%rax' in 'asm' In file included from ../../../width_extender.h:25, from ../../../cpucounters.h:37, from ../../../cpucounters.cpp:32: ../../../utils.h: In member function 'void pcm::PCM::readCoreCounterConfig(bool)': ../../../utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ ../../../utils.h:359:105: error: output number 2 not directly addressable ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints ../../../utils.h: In member function 'bool pcm::PCM::detectModel()': ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ ../../../utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ make[1]: [makefile:59: cpucounters.o] Error 1 (ignored) In file included from ../pcm.h:26, from ../daemon.h:24, from ../daemon.cpp:30: ../../../cpucounters.h: In member function 'void PCMDaemon::Daemon::getPCMCounters()': ../../../cpucounters.h:2264:56: error: output number 0 not directly addressable asm volatile("rdtsc" : "=a" (low), "=d" (high)); ^ ../../../cpucounters.h:2264:56: error: output number 0 not directly addressable asm volatile("rdtsc" : "=a" (low), "=d" (high)); ^ make[1]: *** [subdir.mk:25: daemon.o] Error 1 g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c msr.cpp -o msr.o g++ -MM -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread msr.cpp > msr.d g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c mmio.cpp -o mmio.o g++ -MM -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread mmio.cpp > mmio.d g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c pci.cpp -o pci.o g++ -MM -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread pci.cpp > pci.d g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c bw.cpp -o bw.o In file included from bw.cpp:20: utils.h: In constructor 'pcm::TGLClientBW::TGLClientBW()': utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ utils.h:359:105: error: output number 2 not directly addressable utils.h:359:105: warning: asm operand 4 probably doesn't match constraints make: *** [Makefile:98: bw.o] Error 1 make: *** Waiting for unfinished jobs.... g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c utils.cpp -o utils.o g++ -MM -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread utils.cpp > utils.d g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c pcm.cpp -o pcm.o g++ -MM -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread pcm.cpp > pcm.d g++ -O2 -g -Wall -g -O3 -Wno-unknown-pragmas -fPIC -std=c++11 -DPCM_USE_PERF -Wextra -pthread -c cpucounters.cpp -o cpucounters.o cpucounters.cpp: In function 'void pcm::pcm_cpuid(unsigned int, unsigned int, pcm::PCM_CPUID_INFO&)': cpucounters.cpp:458:138: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf), "c" (subleaf)); ^ cpucounters.cpp:458:138: warning: asm operand 5 probably doesn't match constraints cpucounters.cpp:458:138: error: impossible constraint in 'asm' In file included from width_extender.h:25, from cpucounters.h:37, from cpucounters.cpp:32: utils.h: In member function 'bool pcm::PCM::isFixedCounterSupported(unsigned int)': utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ utils.h:359:105: error: output number 2 not directly addressable utils.h:359:105: warning: asm operand 4 probably doesn't match constraints utils.h: In member function 'bool pcm::PCM::isHWTMAL1Supported() const': utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ utils.h:359:105: error: output number 2 not directly addressable utils.h:359:105: warning: asm operand 4 probably doesn't match constraints utils.h: In member function 'void pcm::PCM::readCPUMicrocodeLevel()': utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ utils.h:359:105: error: output number 2 not directly addressable utils.h:359:105: warning: asm operand 4 probably doesn't match constraints utils.h: In static member function 'static std::__cxx11::string pcm::PCM::getCPUBrandString()': utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ In file included from cpucounters.cpp:32: cpucounters.h: In member function 'pcm::uint64 pcm::PCM::getTickCountRDTSCP(pcm::uint64)': cpucounters.h:2287:58: error: unknown register name '%rdx' in 'asm' "=r" (high), "=r" (low) :: "%rax", "%rcx", "%rdx"); ^ cpucounters.h:2287:58: error: unknown register name '%rcx' in 'asm' cpucounters.h:2287:58: error: unknown register name '%rax' in 'asm' In file included from width_extender.h:25, from cpucounters.h:37, from cpucounters.cpp:32: utils.h: In member function 'void pcm::PCM::readCoreCounterConfig(bool)': utils.h:359:105: error: output number 0 not directly addressable "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ utils.h:359:105: error: output number 2 not directly addressable utils.h:359:105: warning: asm operand 4 probably doesn't match constraints utils.h: In member function 'bool pcm::PCM::detectModel()': utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ utils.h:359:105: warning: asm operand 4 probably doesn't match constraints "=a" (info.reg.eax), "=b" (info.reg.ebx), "=c" (info.reg.ecx), "=d" (info.reg.edx) : "a" (leaf)); ^ make: *** [Makefile:98: cpucounters.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.gF4JnB (%build) Bad exit status from /var/tmp/rpm-tmp.gF4JnB (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/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 loongarch64 --nodeps /builddir/build/SPECS/pcm.spec