Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/ttmkfdir.spec'], chrootPath='/var/lib/mock/dist-oc9-build-45346-14591/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/ttmkfdir.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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/ttmkfdir-3.0.9-3.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ttmkfdir.spec'], chrootPath='/var/lib/mock/dist-oc9-build-45346-14591/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ttmkfdir.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.BSAT3F + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ttmkfdir-3.0.9 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/ttmkfdir-3.0.9.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ttmkfdir-3.0.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-cpp.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-zlib.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-fix-freetype217.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-namespace.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-fix-crash.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-warnings.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-segfaults.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-encoding-dir.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-font-scale.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-bug434301.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-freetype-header-fix2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-fedora-ldflags.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/ttmkfdir-3.0.9-tag.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Q7oB0V + umask 022 + cd /builddir/build/BUILD + cd ttmkfdir-3.0.9 + /usr/bin/make -O -j32 V=1 VERBOSE=1 'OPTFLAGS=-O2 -g' 'RPM_LD_FLAGS= -pie' flex -i -8 -oparser.cpp encoding.l libtool --tag=CC --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -o directory.o -c directory.cpp libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c directory.cpp -fPIC -DPIC -o .libs/directory.o libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c directory.cpp -o directory.o >/dev/null 2>&1 libtool --tag=CC --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -o builtin.o -c builtin.cpp libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c builtin.cpp -fPIC -DPIC -o .libs/builtin.o libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c builtin.cpp -o builtin.o >/dev/null 2>&1 libtool --tag=CC --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -o ttmkfdir.o -c ttmkfdir.cpp libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c ttmkfdir.cpp -fPIC -DPIC -o .libs/ttmkfdir.o libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c ttmkfdir.cpp -o ttmkfdir.o >/dev/null 2>&1 libtool --tag=CC --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -o encoding.o -c encoding.cpp libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c encoding.cpp -fPIC -DPIC -o .libs/encoding.o libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c encoding.cpp -o encoding.o >/dev/null 2>&1 encoding.cpp: In function 'FILE* {anonymous}::NextFile(FILE*, char*)': encoding.cpp:41:13: warning: variable 'rvalue' set but not used [-Wunused-but-set-variable] 41 | int rvalue, tmpfd; | ^~~~~~ In function 'const char* {anonymous}::EncodingBase()', inlined from 'FILE* {anonymous}::NextFile(FILE*, char*)' at encoding.cpp:50:10: encoding.cpp:20:21: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 4096 equals destination size [-Wstringop-truncation] 20 | strncpy (base, string(cmdline::instance()->option ("encoding")).c_str (), sizeof (base)); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libtool --tag=CC --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -o commandline.o -c commandline.cpp libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c commandline.cpp -fPIC -DPIC -o .libs/commandline.o libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c commandline.cpp -o commandline.o >/dev/null 2>&1 libtool --tag=CC --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -o parser.o -c parser.cpp libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c parser.cpp -fPIC -DPIC -o .libs/parser.o libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c parser.cpp -o parser.o >/dev/null 2>&1 parser.cpp:1479:17: warning: 'void yyunput(int, char*)' defined but not used [-Wunused-function] 1479 | | ^ libtool --tag=CC --mode=compile g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -o ttf.o -c ttf.cpp libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c ttf.cpp -fPIC -DPIC -o .libs/ttf.o libtool: compile: g++ -Wall -pedantic -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -ggdb -O2 -g -c ttf.cpp -o ttf.o >/dev/null 2>&1 ttf.cpp: In member function 'bool ttf::Face::MappingPresent(int, NumericMapping*, int, int, bool)': ttf.cpp:67:42: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 67 | return ((100 * missing/enc_size) <= int (cmdline::instance()->option ("max-missing-percentage")) & enc_comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ttf.cpp: In member function 'const char* ttf::Face::PanoseWeight() const': ttf.cpp:496:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 496 | "any", | ^~~~~ ttf.cpp:497:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 497 | "no fit", | ^~~~~~~~ ttf.cpp:498:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 498 | "very light", | ^~~~~~~~~~~~ ttf.cpp:499:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 499 | "light", | ^~~~~~~ ttf.cpp:500:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 500 | "thin", | ^~~~~~ ttf.cpp:501:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 501 | "book", | ^~~~~~ ttf.cpp:502:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 502 | "medium", | ^~~~~~~~ ttf.cpp:503:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 503 | "demi", | ^~~~~~ ttf.cpp:504:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 504 | "bold", | ^~~~~~ ttf.cpp:505:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 505 | "heavy", | ^~~~~~~ ttf.cpp:506:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 506 | "black", | ^~~~~~~ ttf.cpp:507:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 507 | "extra black", | ^~~~~~~~~~~~~ ttf.cpp: In member function 'const char* ttf::Face::PanoseWidth() const': ttf.cpp:561:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 561 | "any", | ^~~~~ ttf.cpp:562:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 562 | "no fit", | ^~~~~~~~ ttf.cpp:563:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 563 | "old style", | ^~~~~~~~~~~ ttf.cpp:564:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 564 | "modern", | ^~~~~~~~ ttf.cpp:565:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 565 | "even width", | ^~~~~~~~~~~~ ttf.cpp:566:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 566 | "extended", | ^~~~~~~~~~ ttf.cpp:567:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 567 | "condensed", | ^~~~~~~~~~~ ttf.cpp:568:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 568 | "very extended", | ^~~~~~~~~~~~~~~ ttf.cpp:569:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 569 | "very condensed", | ^~~~~~~~~~~~~~~~ ttf.cpp:570:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 570 | "monospaced", | ^~~~~~~~~~~~ ttf.cpp:574:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 574 | "any", | ^~~~~ ttf.cpp:575:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 575 | "no fit", | ^~~~~~~~ ttf.cpp:576:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 576 | "super condensed", | ^~~~~~~~~~~~~~~~~ ttf.cpp:577:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 577 | "very condensed", | ^~~~~~~~~~~~~~~~ ttf.cpp:578:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 578 | "condensed", | ^~~~~~~~~~~ ttf.cpp:579:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 579 | "normal", | ^~~~~~~~ ttf.cpp:580:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 580 | "extended", | ^~~~~~~~~~ ttf.cpp:581:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 581 | "very extended", | ^~~~~~~~~~~~~~~ ttf.cpp:582:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 582 | "super extended", | ^~~~~~~~~~~~~~~~ ttf.cpp:583:9: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 583 | "monospaced", | ^~~~~~~~~~~~ libtool --tag=CC --mode=link g++ -o ttmkfdir ttmkfdir.o directory.o commandline.o ttf.o encoding.o parser.o builtin.o -lfreetype -ggdb -lz -pie libtool: link: g++ -o ttmkfdir ttmkfdir.o directory.o commandline.o ttf.o encoding.o parser.o builtin.o -ggdb -pie -lfreetype -lz /usr/bin/ld: ttmkfdir.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status make: *** [Makefile:46: ttmkfdir] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Q7oB0V (%build) Bad exit status from /var/tmp/rpm-tmp.Q7oB0V (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ttmkfdir.spec\n', 1)] 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 597, 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 --noclean --target x86_64 --nodeps /builddir/build/SPECS/ttmkfdir.spec