1 -DHAVE_MEMCMP=1 -DUSE_PNG=1 -DUSE_XFT2=1 -DHAVE_ICONV=1 -DHAVE_FONTCONFIG_FONTCONFIG_H=1 -DUSE_GIF=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -DUUDECODE=\"/usr/bin/uudecode\" -DGUNZIP=\"/usr/bin/gunzip\" -DUSE_SETLOCALE -I/usr/include/libpng16 -I/usr/include window.c rm -f png.o gcc -c -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -Wno-pointer-sign -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function -D_DEFAULT_SOURCE -I/usr/include -Dlinux -D__riscv -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_STDARG_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_LOCALE_H=1 -DTIME_WITH_SYS_TIME=1 -DRETSIGTYPE=void -DHAVE_POLL=1 -DHAVE_STRSTR=1 -DHAVE_USLEEP=1 -DHAVE_STRSEP=1 -DHAVE_STRDUP=1 -DHAVE_MKSTEMP=1 -DHAVE_SNPRINTF=1 -DHAVE_MEMCMP=1 -DUSE_PNG=1 -DUSE_XFT2=1 -DHAVE_ICONV=1 -DHAVE_FONTCONFIG_FONTCONFIG_H=1 -DUSE_GIF=1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libxml2 -DUUDECODE=\"/usr/bin/uudecode\" -DGUNZIP=\"/usr/bin/gunzip\" -DUSE_SETLOCALE -I/usr/include/libpng16 -I/usr/include png.c rm -f libmgpimage.a ar clq libmgpimage.a imagetypes.o gif.o send.o zio.o zoom.o new.o compress.o reduce.o value.o misc.o rotate.o rle.o rlelib.o smooth.o halftone.o clip.o dither.o xbitmap.o xpixmap.o pbm.o pcx.o xwd.o mac.o jpeg.o g3.o path.o sunraster.o mcidas.o fbm.o faces.o cmuwmraster.o bright.o img.o mc_tables.o window.o png.o ranlib libmgpimage.a make[1]: Leaving directory '/builddir/build/BUILD/magicpoint-1.13a/image' rm -f mgp gcc -o mgp -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -Wno-pointer-sign -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function -D_DEFAULT_SOURCE -L/usr/lib64 mgp.o draw.o parse.o plist.o globals.o x11.o font.o background.o scanner.o grammar.o postscript.o tfont.o embed.o unimap.o mng.o m17n.o strlcpy.o strlcat.o -L./image -lmgpimage -lm -lpng16 -lz -L/usr/lib64 -lXft -lgif -lXext -lX11 /usr/bin/ld: grammar.o: in function `.LANCHOR0': /builddir/build/BUILD/magicpoint-1.13a/./grammar.y:76: multiple definition of `yylineno'; scanner.o:scanner.c:(.data+0x0): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:1063: mgp] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.36D1jN (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.36D1jN (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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/MagicPoint.spec