Hi list
I was testing the tag for v1.3.0-rc1 on my asus p2b recently and
decided to try the meson build, which ended up failing. It built and
functioned like usual with make though.
It appears to halt the build because of a warning and Werror and I've
attached the console log from the build process in a debian sid 686
chroot. It also fails the same way on the raspberrypi 1b.
I'm not sure that there is much I can do besides reporting on it, but
for now I'm fine staying with make.
Branden
scruffy@workstation:~/flashrom$ meson builddir
The Meson build system
Version: 1.0.0
Source dir: /home/scruffy/flashrom
Build dir: /home/scruffy/flashrom/builddir
Build type: native build
Project name: flashromutils
Project version: v1.2-1148-gc1fb4bd9
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the host machine: cc ld.bfd 2.39.90.20230110
Host machine cpu family: x86
Host machine cpu: i686
Compiler for C supports arguments -Wshadow: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
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: /usr/bin/pkg-config (1.8.0)
Run-time dependency libpci found: YES 3.9.0
Found CMake: /usr/bin/cmake (3.25.1)
Run-time dependency libusb-1.0 found: NO (tried pkgconfig and cmake)
Run-time dependency libftdi1 found: NO (tried pkgconfig and cmake)
Run-time dependency libjaylink found: NO (tried pkgconfig and cmake)
Has header "linux/i2c.h" : YES
Has header "linux/i2c-dev.h" : YES
Has header "mtd/mtd-user.h" : YES
Has header "linux/spi/spidev.h" : YES
Configuring flashrom.8 using configuration
Run-time dependency cmocka found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency cmocka
Executing subproject cmocka
cmocka| Project name: cmocka
cmocka| Project version: 1.1.5
cmocka| C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
cmocka| C linker for the host machine: cc ld.bfd 2.39.90.20230110
cmocka| Compiler for C supports arguments -Wshadow: YES (cached)
cmocka| Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
cmocka| Compiler for C supports arguments -Wcast-align: YES
cmocka| Compiler for C supports arguments -Werror=address: YES
cmocka| Compiler for C supports arguments -Werror=strict-prototypes: YES
cmocka| Compiler for C supports arguments -Werror=write-strings: YES
cmocka| Compiler for C supports arguments -Werror=implicit-function-declaration: YES
cmocka| Compiler for C supports arguments -Werror=pointer-arith: YES
cmocka| Compiler for C supports arguments -Werror=declaration-after-statement: YES
cmocka| Compiler for C supports arguments -Werror=return-type: YES
cmocka| Compiler for C supports arguments -Werror=uninitialized: YES
cmocka| Compiler for C supports arguments -Wimplicit-fallthrough: YES
cmocka| Compiler for C supports arguments -Werror=strict-overflow: YES
cmocka| Compiler for C supports arguments -Wstrict-overflow=2: YES
cmocka| Compiler for C supports arguments -Wno-format-zero-length: YES
cmocka| Compiler for C supports arguments -Wformat: YES
cmocka| Compiler for C supports arguments -Werror=format-security: NO
cmocka| Compiler for C supports arguments -Wno-gnu-zero-variadic-macro-arguments: NO
cmocka| Compiler for C supports arguments -fno-common: YES
cmocka| Check usable header "assert.h" : YES
cmocka| Check usable header "inttypes.h" : YES
cmocka| Check usable header "io.h" : NO
cmocka| Check usable header "malloc.h" : YES
cmocka| Check usable header "memory.h" : YES
cmocka| Check usable header "setjmp.h" : YES
cmocka| Check usable header "signal.h" : YES
cmocka| Check usable header "stdarg.h" : YES
cmocka| Check usable header "stddef.h" : YES
cmocka| Check usable header "stdint.h" : YES
cmocka| Check usable header "stdio.h" : YES
cmocka| Check usable header "stdlib.h" : YES
cmocka| Check usable header "string.h" : YES
cmocka| Check usable header "strings.h" : YES
cmocka| Check usable header "sys/stat.h" : YES
cmocka| Check usable header "sys/types.h" : YES
cmocka| Check usable header "time.h" : YES
cmocka| Check usable header "unistd.h" : YES
cmocka| Checking whether type "struct timespec" has member "tv_sec" : NO
cmocka| Checking for function "calloc" : YES
cmocka| Checking for function "exit" : YES
cmocka| Checking for function "fprintf" : YES
cmocka| Checking for function "free" : YES
cmocka| Checking for function "longjmp" : YES
cmocka| Checking for function "siglongjmp" : YES
cmocka| Checking for function "malloc" : YES
cmocka| Checking for function "memcpy" : YES
cmocka| Checking for function "memset" : YES
cmocka| Checking for function "printf" : YES
cmocka| Checking for function "setjmp" : YES
cmocka| Checking for function "signal" : YES
cmocka| Checking for function "strsignal" : YES
cmocka| Checking for function "strcmp" : YES
cmocka| Checking for function "clock_gettime" : YES (cached)
cmocka| Checking for function "snprintf" : YES
cmocka| Checking for function "vsnprintf" : YES
cmocka| Checking if "Thread Local Storage" compiles: YES
cmocka| Checking for size of "void *" : 4
cmocka| Configuring config.h using configuration
cmocka| Compiler for C supports arguments -Wshadow: YES (cached)
cmocka| Compiler for C supports arguments -Wmissing-prototypes: YES (cached)
cmocka| Compiler for C supports arguments -Wcast-align: YES (cached)
cmocka| Compiler for C supports arguments -Werror=address: YES (cached)
cmocka| Compiler for C supports arguments -Werror=strict-prototypes: YES (cached)
cmocka| Compiler for C supports arguments -Werror=write-strings: YES (cached)
cmocka| Compiler for C supports arguments -Werror=implicit-function-declaration: YES (cached)
cmocka| Compiler for C supports arguments -Werror=pointer-arith: YES (cached)
cmocka| Compiler for C supports arguments -Werror=declaration-after-statement: YES (cached)
cmocka| Compiler for C supports arguments -Werror=return-type: YES (cached)
cmocka| Compiler for C supports arguments -Werror=uninitialized: YES (cached)
cmocka| Compiler for C supports arguments -Wimplicit-fallthrough: YES (cached)
cmocka| Compiler for C supports arguments -Werror=strict-overflow: YES (cached)
cmocka| Compiler for C supports arguments -Wstrict-overflow=2: YES (cached)
cmocka| Compiler for C supports arguments -Wno-format-zero-length: YES (cached)
cmocka| Compiler for C supports arguments -Wformat: YES (cached)
cmocka| Compiler for C supports arguments -Werror=format-security: NO (cached)
cmocka| Compiler for C supports arguments -Wno-gnu-zero-variadic-macro-arguments: NO (cached)
cmocka| Compiler for C supports arguments -fno-common: YES (cached)
cmocka| Check usable header "assert.h" : YES (cached)
cmocka| Check usable header "inttypes.h" : YES (cached)
cmocka| Check usable header "io.h" : NO (cached)
cmocka| Check usable header "malloc.h" : YES (cached)
cmocka| Check usable header "memory.h" : YES (cached)
cmocka| Check usable header "setjmp.h" : YES (cached)
cmocka| Check usable header "signal.h" : YES (cached)
cmocka| Check usable header "stdarg.h" : YES (cached)
cmocka| Check usable header "stddef.h" : YES (cached)
cmocka| Check usable header "stdint.h" : YES (cached)
cmocka| Check usable header "stdio.h" : YES (cached)
cmocka| Check usable header "stdlib.h" : YES (cached)
cmocka| Check usable header "string.h" : YES (cached)
cmocka| Check usable header "strings.h" : YES (cached)
cmocka| Check usable header "sys/stat.h" : YES (cached)
cmocka| Check usable header "sys/types.h" : YES (cached)
cmocka| Check usable header "time.h" : YES (cached)
cmocka| Check usable header "unistd.h" : YES (cached)
cmocka| Checking whether type "struct timespec" has member "tv_sec" : NO (cached)
cmocka| Checking for function "calloc" : YES (cached)
cmocka| Checking for function "exit" : YES (cached)
cmocka| Checking for function "fprintf" : YES (cached)
cmocka| Checking for function "free" : YES (cached)
cmocka| Checking for function "longjmp" : YES (cached)
cmocka| Checking for function "siglongjmp" : YES (cached)
cmocka| Checking for function "malloc" : YES (cached)
cmocka| Checking for function "memcpy" : YES (cached)
cmocka| Checking for function "memset" : YES (cached)
cmocka| Checking for function "printf" : YES (cached)
cmocka| Checking for function "setjmp" : YES (cached)
cmocka| Checking for function "signal" : YES (cached)
cmocka| Checking for function "strsignal" : YES (cached)
cmocka| Checking for function "strcmp" : YES (cached)
cmocka| Checking for function "clock_gettime" : YES (cached)
cmocka| Checking for function "snprintf" : YES (cached)
cmocka| Checking for function "vsnprintf" : YES (cached)
cmocka| Checking if "Thread Local Storage" compiles: YES (cached)
cmocka| Checking for size of "void *" : 4
cmocka| Configuring config.h using configuration
cmocka| Build targets in project: 6
cmocka| Subproject cmocka finished.
Dependency cmocka from subproject subprojects/cmocka-1.1.5 found: YES 1.1.5
Build targets in project: 7
flashromutils v1.2-1148-gc1fb4bd9
Programmer
active : atavia
buspirate_spi
drkaiser
dummy
gfxnvidia
internal
it8212
linux_mtd
linux_spi
nic3com
nicintel
nicintel_eeprom
nicintel_spi
nicrealtek
ogp_spi
pony_spi
rayer_spi
satamv
satasii
serprog
non active: atahpt (not selected)
atapromise (not selected)
ch341a_spi (dependency libusb-1.0 not found)
dediprog (dependency libusb-1.0 not found)
developerbox_spi (dependency libusb-1.0 not found)
digilent_spi (dependency libusb-1.0 not found)
dirtyjtag_spi (dependency libusb-1.0 not found)
ft2232_spi (dependency libftdi1 not found)
jlink_spi (not selected)
parade_lspcon (not selected)
mediatek_i2c_spi (not selected)
mstarddc_spi (not selected)
nicnatsemi (not selected)
pickit2_spi (dependency libusb-1.0 not found)
raiden_debug_spi (dependency libusb-1.0 not found)
realtek_mst_i2c_spi (not selected)
stlinkv3_spi (dependency libusb-1.0 not found)
usbblaster_spi (dependency libftdi1 not found)
Subprojects
cmocka : YES
Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
scruffy@workstation:~/flashrom$ ninja -C builddir
ninja: Entering directory `builddir'
[99/185] Compiling C object tests/flashrom_unit_tests.p/linux_spi.c.o
FAILED: tests/flashrom_unit_tests.p/linux_spi.c.o
cc -Itests/flashrom_unit_tests.p -Itests -I../tests -I../subprojects/cmocka-1.1.5/include -I../include -I/usr/include/i386-linux-gnu -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c99 -Os -Wshadow -Wmissing-prototypes -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 -D__BSD_VISIBLE -D__XSI_VISIBLE -D_NETBSD_SOURCE -D_DARWIN_C_SOURCE '-DFLASHROM_VERSION="v1.2-1148-gc1fb4bd9"' -DHAVE_CLOCK_GETTIME=1 -DHAVE_STRNLEN=1 -DHAVE_UTSNAME=1 -DIS_WINDOWS=0 -D__FLASHROM_LITTLE_ENDIAN__=1 -includestdlib.h -includeunittest_env.h -DCONFIG_ATAVIA=1 -DCONFIG_BUSPIRATE_SPI=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_NIC3COM=1 -DCONFIG_NICINTEL=1 -DCONFIG_NICINTEL_EEPROM=1 -DCONFIG_NICINTEL_SPI=1 -DCONFIG_NICREALTEK=1 -DCONFIG_OGP_SPI=1 -DCONFIG_PONY_SPI=1 -DCONFIG_RAYER_SPI=1 -DCONFIG_SATAMV=1 -DCONFIG_SATASII=1 -DCONFIG_SERPROG=1 -DCONFIG_DEFAULT_PROGRAMMER_NAME=NULL '-DCONFIG_DEFAULT_PROGRAMMER_ARGS=""' -ffunction-sections -fdata-sections -U_FORTIFY_SOURCE -MD -MQ tests/flashrom_unit_tests.p/linux_spi.c.o -MF tests/flashrom_unit_tests.p/linux_spi.c.o.d -o tests/flashrom_unit_tests.p/linux_spi.c.o -c ../tests/linux_spi.c
../tests/linux_spi.c: In function ‘linux_spi_ioctl’:
../tests/linux_spi.c:26:43: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
26 | unsigned char *writearr = (unsigned char *)msg[0].tx_buf;
| ^
../tests/linux_spi.c:33:50: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
33 | unsigned char *readarr = (unsigned char *)msg[1].rx_buf;
| ^
cc1: all warnings being treated as errors
[108/185] Compiling C object subprojects/cmocka-1.1.5/src/libcmocka.so.0.5.0.p/cmocka.c.o
ninja: build stopped: subcommand failed.
_______________________________________________
flashrom mailing list -- [email protected]
To unsubscribe send an email to [email protected]