Applying ./patches/010-bitbang.patch using plaintext: patching file meson.build patching file meson_options.txt Applying ./patches/020-raw-access.patch using plaintext: patching file meson.build Applying ./patches/030-ppc.patch using plaintext: patching file hwaccess.c Applying ./patches/040-uclibc.patch using plaintext: patching file meson.build The Meson build system Version: 0.61.5 Source dir: /builder/shared-workdir/build/sdk/build_dir/target-riscv64_riscv64_musl/flashrom-pci/flashrom-v1.2.1 Build dir: /builder/shared-workdir/build/sdk/build_dir/target-riscv64_riscv64_musl/flashrom-pci/flashrom-v1.2.1/openwrt-build Build type: cross build WARNING: You should add the boolean check kwarg to the run_command call. It currently defaults to false, but it will default to true in future releases of meson. See also: https://github.com/mesonbuild/meson/issues/9300 Project name: flashromutils Project version: v1.2.1 C compiler for the host machine: riscv64-openwrt-linux-musl-gcc (gcc 12.3.0 "riscv64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23670-9cf5769636) 12.3.0") C linker for the host machine: riscv64-openwrt-linux-musl-gcc ld.bfd 2.40.0 C compiler for the build machine: gcc (gcc 10.2.1 "gcc (Debian 10.2.1-6) 10.2.1 20210110") C linker for the build machine: gcc ld.bfd 2.35.2 Build machine cpu family: x86_64 Build machine cpu: x86_64 Host machine cpu family: riscv64 Host machine cpu: generic Target machine cpu family: riscv64 Target machine cpu: generic Compiler for C supports arguments -Wwrite-strings: YES Compiler for C supports arguments -Wno-unused-parameter: YES Compiler for C supports arguments -Wno-address-of-packed-member: YES Compiler for C supports arguments -Wno-enum-conversion: YES Compiler for C supports arguments -Wno-missing-braces: YES Checking for function "clock_gettime" : YES Checking for function "strnlen" : YES Check usable header "sys/utsname.h" : YES Found pkg-config: /builder/shared-workdir/build/sdk/staging_dir/host/bin/pkg-config (1.9.5) Run-time dependency libpci found: YES 3.10.0 Build targets in project: 3 flashromutils v1.2.1 User defined options Cross files : /builder/shared-workdir/build/sdk/build_dir/target-riscv64_riscv64_musl/flashrom-pci/flashrom-v1.2.1/openwrt-cross.txt Native files : /builder/shared-workdir/build/sdk/build_dir/target-riscv64_riscv64_musl/flashrom-pci/flashrom-v1.2.1/openwrt-native.txt buildtype : plain config_atahpt : false config_atapromise : false config_atavia : true config_bitbang_spi : false config_buspirate_spi : false config_ch341a_spi : false config_dediprog : false config_developerbox_spi: false config_digilent_spi : false config_drkaiser : true config_dummy : true config_ft2232_spi : false config_gfxnvidia : true config_internal : true config_internal_dmi : true config_it8212 : true config_linux_mtd : true config_linux_spi : true config_mstarddc_spi : true config_nic3com : false config_nicintel : true config_nicintel_eeprom : true config_nicintel_spi : true config_nicnatsemi : false config_nicrealtek : false config_ogp_spi : true config_pickit2_spi : false config_pony_spi : false config_rayer_spi : false config_satamv : false config_satasii : true config_serprog : false config_stlinkv3_spi : false config_usbblaster_spi : false pciutils : true usb : false Found ninja-1.11.1 at /builder/shared-workdir/build/sdk/staging_dir/host/bin/ninja ninja: Entering directory `/builder/shared-workdir/build/sdk/build_dir/target-riscv64_riscv64_musl/flashrom-pci/flashrom-v1.2.1/openwrt-build' [1/106] Compiling C object libflashrom.so.1.0.0.p/pcidev.c.o FAILED: libflashrom.so.1.0.0.p/pcidev.c.o riscv64-openwrt-linux-musl-gcc -Ilibflashrom.so.1.0.0.p -I. -I.. -I/builder/shared-workdir/build/sdk/staging_dir/target-riscv64_riscv64_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-riscv64_riscv64_gcc-12.3.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-riscv64_riscv64_gcc-12.3.0_musl/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-riscv64_riscv64_gcc-12.3.0_musl/include -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -Wwrite-strings -Wno-unused-parameter -Wno-address-of-packed-member -Wno-enum-conversion -Wno-missing-braces -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE '-DFLASHROM_VERSION="v1.2.1"' -DHAVE_CLOCK_GETTIME=1 -DHAVE_STRNLEN=1 -DHAVE_UTSNAME=1 -Os -pipe -mabi=lp64d -march=rv64imafdc -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-riscv64_riscv64_musl/flashrom-pci/flashrom-v1.2.1=flashrom-v1.2.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -fPIC -DNEED_PCI=1 -DCONFIG_ATAVIA=1 -DCONFIG_DRKAISER=1 -DCONFIG_DUMMY=1 -DCONFIG_GFXNVIDIA=1 -DCONFIG_INTERNAL=1 -DCONFIG_INTERNAL_DMI=1 -DCONFIG_IT8212=1 -DCONFIG_LINUX_MTD=1 -DCONFIG_LINUX_SPI=1 -DCONFIG_MSTARDDC_SPI=1 -DCONFIG_NICINTEL=1 -DCONFIG_NICINTEL_EEPROM=1 -DCONFIG_NICINTEL_SPI=1 -DCONFIG_OGP_SPI=1 -DCONFIG_SATASII=1 -DCONFIG_BITBANG_SPI=1 -DNEED_RAW_ACCESS=1 -MD -MQ libflashrom.so.1.0.0.p/pcidev.c.o -MF libflashrom.so.1.0.0.p/pcidev.c.o.d -o libflashrom.so.1.0.0.p/pcidev.c.o -c ../pcidev.c In file included from ../pcidev.c:22: ../hwaccess.h:300:2: error: #error Unknown architecture, please check if it supports PCI port IO. 300 | #error Unknown architecture, please check if it supports PCI port IO. | ^~~~~ ninja: build stopped: subcommand failed. make[3]: *** [Makefile:100: /builder/shared-workdir/build/sdk/build_dir/target-riscv64_riscv64_musl/flashrom-pci/flashrom-v1.2.1/.built] Error 1 time: package/feeds/packages/flashrom/pci/compile#3.62#0.88#8.81