==> Building on fennekin ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list created directory packages/libemf ./ PKGBUILD 861 100% 0.00kB/s 0:00:00 861 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=1/3) libemf-1.0.13-2.log 241 100% 235.35kB/s 0:00:00 241 100% 235.35kB/s 0:00:00 (xfr#2, to-chk=0/3) sent 852 bytes received 95 bytes 631.33 bytes/sec total size is 1,056 speedup is 1.12 ==> Patching arch to riscv64... ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root0 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Package (2) Old Version New Version Net Change Download Size core/util-linux 2.39-9 2.39-10 0.00 MiB 2.71 MiB core/util-linux-libs 2.39-9 2.39-10 0.00 MiB 0.47 MiB Total Download Size: 3.18 MiB Total Installed Size: 13.86 MiB Net Upgrade Size: 0.00 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... util-linux-2.39-10-riscv64 downloading... util-linux-libs-2.39-10-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... upgrading util-linux-libs... upgrading util-linux... [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [root0]...done ==> Making package: libemf 1.0.13-2 (Wed Jun 21 06:08:31 2023) ==> Retrieving sources...  -> Downloading libemf-1.0.13.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 748 0 748 0 0 287 0 --:--:-- 0:00:02 --:--:-- 290 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 100 764 0 764 0 0 262 0 --:--:-- 0:00:02 --:--:-- 2829 100 1011 0 1011 0 0 314 0 --:--:-- 0:00:03 --:--:-- 314 0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0 100 363 100 363 0 0 83 0 0:00:04 0:00:04 --:--:-- 860 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0 7 1284k 7 98062 0 0 14801 0 0:01:28 0:00:06 0:01:22 51260 74 1284k 74 959k 0 0 125k 0 0:00:10 0:00:07 0:00:03 325k 100 1284k 100 1284k 0 0 164k 0 0:00:07 0:00:07 --:--:-- 416k ==> Validating source files with sha256sums... libemf-1.0.13.tar.gz ... Passed ==> Making package: libemf 1.0.13-2 (Wed Jun 21 06:12:26 2023) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources...  -> Found libemf-1.0.13.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting libemf-1.0.13.tar.gz with bsdtar ==> Starting build()... checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /build/libemf/src/libemf-1.0.13/config/missing: Unknown `--is-lightweight' option Try `/build/libemf/src/libemf-1.0.13/config/missing --help' for more information configure: WARNING: 'missing' script is too old or missing checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking whether make sets $(MAKE)... (cached) yes checking build system type... riscv64-unknown-linux-gnu checking host system type... riscv64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-unknown-linux-gnu file names to riscv64-unknown-linux-gnu format... func_convert_file_noop checking how to convert riscv64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for ANSI C header files... (cached) yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for size_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for ceil in -lm... yes checking for floor... yes checking for memset... yes checking for select... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_create in -lpthread... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating include/Makefile config.status: creating libemf/Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating tests/Makefile config.status: creating config/config.h config.status: executing depfiles commands config.status: executing libtool commands Making all in include make[1]: Entering directory '/build/libemf/src/libemf-1.0.13/include' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/build/libemf/src/libemf-1.0.13/include' Making all in libemf make[1]: Entering directory '/build/libemf/src/libemf-1.0.13/libemf' /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../config -I../include -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/libemf/src=/usr/src/debug/libemf -flto=auto -D_REENTRANT -DPTHREADS -MT libemf.lo -MD -MP -MF .deps/libemf.Tpo -c -o libemf.lo libemf.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../config -I../include -march=rv64gc -mabi=lp64d -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/libemf/src=/usr/src/debug/libemf -flto=auto -D_REENTRANT -DPTHREADS -MT libemf.lo -MD -MP -MF .deps/libemf.Tpo -c libemf.cpp -fPIC -DPIC -o .libs/libemf.o In file included from ../include/libEMF/wine/windef.h:16, from ../include/libEMF/emf.h:27, from libemf.h:33, from libemf.cpp:24: ../include/libEMF/wine/winnt.h:73:3: error: #error Unknown CPU architecture! 73 | # error Unknown CPU architecture! | ^~~~~ ../include/libEMF/wine/winnt.h:1586:2: error: #error You need to define a CONTEXT for your CPU 1586 | #error You need to define a CONTEXT for your CPU | ^~~~~ ../include/libEMF/wine/winnt.h:1589:9: error: ‘CONTEXT’ does not name a type; did you mean ‘CONTEXT86’? 1589 | typedef CONTEXT *PCONTEXT; | ^~~~~~~ | CONTEXT86 ../include/libEMF/wine/winnt.h:2856:3: error: ‘PCONTEXT’ does not name a type; did you mean ‘CONTEXT86’? 2856 | PCONTEXT ContextRecord; | ^~~~~~~~ | CONTEXT86 ../include/libEMF/wine/winnt.h:2869:37: error: ‘PCONTEXT’ has not been declared 2869 | PCONTEXT,struct __EXCEPTION_FRAME **); | ^~~~~~~~ In file included from ../include/libEMF/emf.h:28: ../include/libEMF/wine/winbase.h:120:9: error: ‘PCONTEXT’ does not name a type; did you mean ‘CONTEXT86’? 120 | typedef PCONTEXT LPCONTEXT; | ^~~~~~~~ | CONTEXT86 ../include/libEMF/wine/winbase.h:1243:44: error: ‘CONTEXT’ has not been declared 1243 | BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *); | ^~~~~~~ ../include/libEMF/wine/winbase.h:1377:50: error: ‘CONTEXT’ does not name a type; did you mean ‘CONTEXT86’? 1377 | BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *); | ^~~~~~~ | CONTEXT86 libemf.cpp: In function ‘HENHMETAFILE CloseEnhMetaFile(HDC)’: libemf.cpp:883:48: warning: ‘std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = bool; _Tp = EMF::METARECORD; _Arg = EMF::DATASTREAM]’ is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 883 | std::bind2nd( std::mem_fun( &EMF::METARECORD::serialize ), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.1.1/string:49, from /usr/include/c++/13.1.1/bits/locale_classes.h:40, from /usr/include/c++/13.1.1/bits/ios_base.h:41, from /usr/include/c++/13.1.1/ios:44, from /usr/include/c++/13.1.1/ostream:40, from /usr/include/c++/13.1.1/iostream:41, from libemf.cpp:21: /usr/include/c++/13.1.1/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ libemf.cpp:883:34: warning: ‘std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = EMF::DATASTREAM]’ is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 883 | std::bind2nd( std::mem_fun( &EMF::METARECORD::serialize ), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 884 | dc->ds ) ); | ~~~~~~~~ In file included from /usr/include/c++/13.1.1/bits/stl_function.h:1438: /usr/include/c++/13.1.1/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libemf.cpp: In function ‘HENHMETAFILE CloseEnhMetaFileWithFILE(HDC)’: libemf.cpp:930:48: warning: ‘std::mem_fun1_t<_Ret, _Tp, _Arg> std::mem_fun(_Ret (_Tp::*)(_Arg)) [with _Ret = bool; _Tp = EMF::METARECORD; _Arg = EMF::DATASTREAM]’ is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 930 | std::bind2nd( std::mem_fun( &EMF::METARECORD::serialize ), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.1.1/bits/stl_function.h:1395:5: note: declared here 1395 | mem_fun(_Ret (_Tp::*__f)(_Arg)) | ^~~~~~~ libemf.cpp:930:34: warning: ‘std::binder2nd<_Operation> std::bind2nd(const _Operation&, const _Tp&) [with _Operation = mem_fun1_t; _Tp = EMF::DATASTREAM]’ is deprecated: use 'std::bind' instead [-Wdeprecated-declarations] 930 | std::bind2nd( std::mem_fun( &EMF::METARECORD::serialize ), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 931 | dc->ds ) ); | ~~~~~~~~ /usr/include/c++/13.1.1/backward/binders.h:172:5: note: declared here 172 | bind2nd(const _Operation& __fn, const _Tp& __x) | ^~~~~~~ libemf.cpp: In function ‘void EditEnhMetaFile(HENHMETAFILE)’: libemf.cpp:1195:32: warning: ‘std::const_mem_fun_t<_Ret, _Tp> std::mem_fun(_Ret (_Tp::*)() const) [with _Ret = void; _Tp = EMF::METARECORD]’ is deprecated: use 'std::mem_fn' instead [-Wdeprecated-declarations] 1195 | std::mem_fun( &EMF::METARECORD::edit ) ); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.1.1/bits/stl_function.h:1377:5: note: declared here 1377 | mem_fun(_Ret (_Tp::*__f)() const) | ^~~~~~~ make[1]: *** [Makefile:442: libemf.lo] Error 1 make[1]: Leaving directory '/build/libemf/src/libemf-1.0.13/libemf' make: *** [Makefile:401: all-recursive] Error 1 ==> ERROR: A failure occurred in build().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root0/build receiving incremental file list libemf-1.0.13-2-riscv64-build.log sent 43 bytes received 3,332 bytes 2,250.00 bytes/sec total size is 13,050 speedup is 3.87