Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To adopt PR #1264 approach of using Readline replacement for MinGW build (Low Priority) #1271

Closed
mcuee opened this issue Jan 7, 2023 · 32 comments
Assignees
Labels
enhancement New feature or request

Comments

@mcuee
Copy link
Collaborator

mcuee commented Jan 7, 2023

PR #1264 has been merged and it performs much better than using GNU Readline under Windows. It is good to adopt the same approach for MinGW.

@mcuee mcuee added the enhancement New feature or request label Jan 7, 2023
@mcuee mcuee added this to the AVRDUDE 7.2 milestone Jan 7, 2023
@mcuee
Copy link
Collaborator Author

mcuee commented Jan 7, 2023

@mariusgreuel
When you got time, please help to take a look at this issue. Thanks.

@mcuee
Copy link
Collaborator Author

mcuee commented Mar 27, 2023

@mariusgreuel

I add this as part of the AVRDUDE 7.2 milestone. But you can remove this if you feel that this is of lower priority. Thanks.

@mcuee
Copy link
Collaborator Author

mcuee commented Oct 26, 2023

PR #1513 (Add GNU Readline to mingw github action) brings in undesired dependency of libwinpthread-1.dll to the mingw32/mingw64 binaries. I have to revert the PR.

It is very strange that there is no such side effect under my own MSYS2 ming64 build.

Anyway, I think it is better to use the approach used by @mariusgreuel for MSVC to the MinGW build as well since GNU Readline is not that good under Windows.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 1, 2023

Since @mariusgreuel is busy, I will try to see if I can do something about this one.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 1, 2023

@stefanrueger

Need your help here as I am stuck at this error. I have zero knowledge on flex/bison.
https://github.com/mcuee/avrdude/actions/runs/6719800195/job/18262102949

[ 90%] Building C object src/CMakeFiles/libavrdude.dir/__/lexer.c.obj
lexer.l:31:10: fatal error: avrdude.h: No such file or directory
compilation terminated.
make[2]: *** [src/CMakeFiles/libavrdude.dir/build.make:941: src/CMakeFiles/libavrdude.dir/__/lexer.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:128: src/CMakeFiles/libavrdude.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Error: Process completed with exit code 2.

I believe my changes are quite similar to PR#1264 (note: error in term.c was fixed in the next commit).
mcuee@a79daf7

@stefanrueger
Copy link
Collaborator

It's a mystery why make/the compiler does not find avrdude.h for lexer.c (that will have been generated from lexer.l by flex). Virtually all other .c sources require avrdude.h too. Maybe sprinkle in a -Isrc or -Isrc/CMakeFiles/libavrdude.dir/all or similar?

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

The complete verbose build log for reference.

MINGW64 /c/work/avr/avrdude_test/avrdude_issue1271
$ diff -u build.sh build_verbose.sh
--- build.sh    2023-11-01 20:23:34.098124700 +0800
+++ build_verbose.sh    2023-11-02 08:00:42.764442800 +0800
@@ -37,7 +37,7 @@

 ostype=$(uname | tr '[A-Z]' '[a-z]')

-build_flags=""
+build_flags="-D CMAKE_VERBOSE_MAKEFILE=1 -D DEBUG_CMAKE=1"

 while getopts :hf: OPT; do
   case "$OPT" in
verbose build log
$ ./build_verbose.sh
-- Configuration summary:
-- ----------------------
-- CMAKE_HOST_SYSTEM: Windows-10.0.22621
-- CMAKE_SYSTEM: Windows-10.0.22621
-- CMAKE_FIND_ROOT_PATH:
-- CMAKE_C_COMPILER: C:/msys64/mingw64/bin/cc.exe
-- CONFIG_DIR: C:/Program Files (x86)/avrdude/etc
-- AVRDUDE_FULL_VERSION: 7.2-20231101 (1ecc5e3e)
-- USE_EXTERNAL_LIBS: OFF
-- USE_LIBUSBWIN32: OFF
-- HAVE_LIBELF: C:/msys64/mingw64/lib/libelf.a
-- HAVE_LIBUSB: C:/msys64/mingw64/lib/libusb.a
-- HAVE_LIBUSB_1_0: C:/msys64/mingw64/lib/libusb-1.0.a
-- HAVE_LIBUSB_WIN32: C:/msys64/mingw64/lib/libusb0.dll.a
-- HAVE_LIBHIDAPI: C:/msys64/mingw64/lib/libhidapi.a
-- HAVE_LIBFTDI: HAVE_LIBFTDI-NOTFOUND
-- HAVE_LIBFTDI1: C:/msys64/mingw64/lib/libftdi1.a
-- HAVE_LIBREADLINE: C:/msys64/mingw64/lib/libreadline.a
-- HAVE_LIBSERIALPORT: 1
-- HAVE_LIBELF_H: 1
-- HAVE_LIBELF_LIBELF_H: 1
-- HAVE_USB_H: 1
-- HAVE_LUSB0_USB_H: 1
-- HAVE_LIBUSB_H:
-- HAVE_LIBUSB_1_0_LIBUSB_H: 1
-- HAVE_HIDAPI_HIDAPI_H: 1
-- LIBUSB_COMPAT_DIR: C:/msys64/mingw64/include/libusb-compat
-- HAVE_LIBGPIOD:
-- ----------------------
-- DO HAVE    libelf
-- DO HAVE    libusb
-- DO HAVE    libusb_1_0
-- DO HAVE    libhidapi
-- DON'T HAVE libftdi
-- DO HAVE    libftdi1
-- DO HAVE    libreadline
-- DO HAVE    libserialport
-- DISABLED   doc
-- DISABLED   parport
-- DISABLED   linuxgpio
-- DISABLED   linuxspi
-- ----------------------
-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621
Change Dir: 'C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621'

Run Build Command(s): C:/msys64/mingw64/bin/ninja.exe -v
[1/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\src && C:\msys64\usr\bin\flex.exe -oC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/lexer.c lexer.l"
[2/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\build_mingw64_nt-10.0-22621\src && C:\msys64\mingw64\bin\cmake.exe -E copy C:/work/avr/avrdude_test/avrdude_issue1271/src/avrdude.conf.in avrdude.conf.in && C:\msys64\mingw64\bin\cmake.exe -D "AVRDUDE_FULL_VERSION=7.2-20231101 (1ecc5e3e)" -D HAVE_PARPORT=0 -D HAVE_LINUXSPI=0 -D HAVE_LINUXGPIO=0 -D DEFAULT_PAR_PORT=lpt1 -D DEFAULT_SER_PORT=com1 -D DEFAULT_LINUXGPIO_PORT=unknown -P C:/work/avr/avrdude_test/avrdude_issue1271/src/configure.cmake"
[3/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\build_mingw64_nt-10.0-22621\src && C:\msys64\usr\bin\bison.exe --defines=C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.h -o C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.c C:/work/avr/avrdude_test/avrdude_issue1271/src/config_gram.y"
[4/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/arduino.c.obj -MF src\CMakeFiles\libavrdude.dir\arduino.c.obj.d -o src/CMakeFiles/libavrdude.dir/arduino.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/arduino.c
[5/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrintel.c.obj -MF src\CMakeFiles\libavrdude.dir\avrintel.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrintel.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrintel.c
[6/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr910.c.obj -MF src\CMakeFiles\libavrdude.dir\avr910.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr910.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avr910.c
[7/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrcache.c.obj -MF src\CMakeFiles\libavrdude.dir\avrcache.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrcache.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrcache.c
[8/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrpart.c.obj -MF src\CMakeFiles\libavrdude.dir\avrpart.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrpart.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrpart.c
[9/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/buspirate.c.obj -MF src\CMakeFiles\libavrdude.dir\buspirate.c.obj.d -o src/CMakeFiles/libavrdude.dir/buspirate.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/buspirate.c
[10/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/butterfly.c.obj -MF src\CMakeFiles\libavrdude.dir\butterfly.c.obj.d -o src/CMakeFiles/libavrdude.dir/butterfly.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/butterfly.c
[11/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/bitbang.c.obj -MF src\CMakeFiles\libavrdude.dir\bitbang.c.obj.d -o src/CMakeFiles/libavrdude.dir/bitbang.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/bitbang.c
[12/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/crc16.c.obj -MF src\CMakeFiles\libavrdude.dir\crc16.c.obj.d -o src/CMakeFiles/libavrdude.dir/crc16.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/crc16.c
[13/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr.c.obj -MF src\CMakeFiles\libavrdude.dir\avr.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avr.c
[14/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi_tpi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrftdi_tpi.c
[15/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/config.c.obj -MF src\CMakeFiles\libavrdude.dir\config.c.obj.d -o src/CMakeFiles/libavrdude.dir/config.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/config.c
[16/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/confwin.c.obj -MF src\CMakeFiles\libavrdude.dir\confwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/confwin.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/confwin.c
[17/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dryrun.c.obj -MF src\CMakeFiles\libavrdude.dir\dryrun.c.obj.d -o src/CMakeFiles/libavrdude.dir/dryrun.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/dryrun.c
[18/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip1.c.obj -MF src\CMakeFiles\libavrdude.dir\flip1.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip1.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/flip1.c
[19/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip2.c.obj -MF src\CMakeFiles\libavrdude.dir\flip2.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/flip2.c
[20/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dfu.c.obj -MF src\CMakeFiles\libavrdude.dir\dfu.c.obj.d -o src/CMakeFiles/libavrdude.dir/dfu.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/dfu.c
[21/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxgpio.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/linuxgpio.c
[22/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxspi.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/linuxspi.c
[23/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ch341a.c.obj -MF src\CMakeFiles\libavrdude.dir\ch341a.c.obj.d -o src/CMakeFiles/libavrdude.dir/ch341a.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ch341a.c
[24/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrftdi.c
[25/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkI.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtagmkI.c
[26/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/fileio.c.obj -MF src\CMakeFiles\libavrdude.dir\fileio.c.obj.d -o src/CMakeFiles/libavrdude.dir/fileio.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/fileio.c
[27/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/par.c.obj -MF src\CMakeFiles\libavrdude.dir\par.c.obj.d -o src/CMakeFiles/libavrdude.dir/par.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/par.c
[28/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/lists.c.obj -MF src\CMakeFiles\libavrdude.dir\lists.c.obj.d -o src/CMakeFiles/libavrdude.dir/lists.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/lists.c
[29/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm_type.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pgm_type.c
[30/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -MF src\CMakeFiles\libavrdude.dir\micronucleus.c.obj.d -o src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/micronucleus.c
[31/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/leds.c.obj -MF src\CMakeFiles\libavrdude.dir\leds.c.obj.d -o src/CMakeFiles/libavrdude.dir/leds.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/leds.c
[32/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pgm.c
[33/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -MF src\CMakeFiles\libavrdude.dir\ppiwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ppiwin.c
[34/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppi.c.obj -MF src\CMakeFiles\libavrdude.dir\ppi.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ppi.c
[35/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serbb_posix.c
[36/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_posix.c
[37/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pindefs.c.obj -MF src\CMakeFiles\libavrdude.dir\pindefs.c.obj.d -o src/CMakeFiles/libavrdude.dir/pindefs.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pindefs.c
[38/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_avrdoper.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_avrdoper.c
[39/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -MF src\CMakeFiles\libavrdude.dir\serialadapter.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serialadapter.c
[40/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pickit2.c.obj -MF src\CMakeFiles\libavrdude.dir\pickit2.c.obj.d -o src/CMakeFiles/libavrdude.dir/pickit2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pickit2.c
[41/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ft245r.c.obj -MF src\CMakeFiles\libavrdude.dir\ft245r.c.obj.d -o src/CMakeFiles/libavrdude.dir/ft245r.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ft245r.c
[42/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtag3.c.obj -MF src\CMakeFiles\libavrdude.dir\jtag3.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtag3.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtag3.c
[43/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500generic.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500generic.c
[44/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serbb_win32.c
[45/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -MF src\CMakeFiles\libavrdude.dir\serialupdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serialupdi.c
[46/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkII.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtagmkII.c
[47/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_readwrite.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_readwrite.c
[48/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_state.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_state.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_state.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_state.c
[49/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500.c
[50/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/teensy.c.obj -MF src\CMakeFiles\libavrdude.dir\teensy.c.obj.d -o src/CMakeFiles/libavrdude.dir/teensy.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/teensy.c
[51/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_link.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_link.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_link.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_link.c
[52/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/strutil.c.obj -MF src\CMakeFiles\libavrdude.dir\strutil.c.obj.d -o src/CMakeFiles/libavrdude.dir/strutil.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/strutil.c
[53/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_hidapi.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usb_hidapi.c
[54/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_nvm.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_nvm.c
[55/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/wiring.c.obj -MF src\CMakeFiles\libavrdude.dir\wiring.c.obj.d -o src/CMakeFiles/libavrdude.dir/wiring.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/wiring.c
[56/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_win32.c
[57/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -MF src\CMakeFiles\libavrdude.dir\__\lexer.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/lexer.c
FAILED: src/CMakeFiles/libavrdude.dir/__/lexer.c.obj
C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -MF src\CMakeFiles\libavrdude.dir\__\lexer.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/lexer.c
lexer.l:31:10: fatal error: avrdude.h: No such file or directory
compilation terminated.
[58/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -MF src\CMakeFiles\libavrdude.dir\__\config_gram.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.c
FAILED: src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj
C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -MF src\CMakeFiles\libavrdude.dir\__\config_gram.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.c
C:/work/avr/avrdude_test/avrdude_issue1271/src/config_gram.y:30:10: fatal error: avrdude.h: No such file or directory
   30 | #include "avrdude.h"
      |          ^~~~~~~~~~~
compilation terminated.
[59/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_libusb.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usb_libusb.c
[60/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -MF src\CMakeFiles\libavrdude.dir\usbtiny.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usbtiny.c
[61/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/update.c.obj -MF src\CMakeFiles\libavrdude.dir\update.c.obj.d -o src/CMakeFiles/libavrdude.dir/update.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/update.c
[62/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/xbee.c.obj -MF src\CMakeFiles\libavrdude.dir\xbee.c.obj.d -o src/CMakeFiles/libavrdude.dir/xbee.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/xbee.c
[63/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbasp.c.obj -MF src\CMakeFiles\libavrdude.dir\usbasp.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbasp.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usbasp.c
[64/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500v2.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500v2.c
[65/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/urclock.c.obj -MF src\CMakeFiles\libavrdude.dir\urclock.c.obj.d -o src/CMakeFiles/libavrdude.dir/urclock.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/urclock.c
[66/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/term.c.obj -MF src\CMakeFiles\libavrdude.dir\term.c.obj.d -o src/CMakeFiles/libavrdude.dir/term.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c
ninja: build stopped: subcommand failed.

Build failed.

@stefanrueger
Copy link
Collaborator

stefanrueger commented Nov 2, 2023

Compilation of lexer.c misses -IC:/work/avr/avrdude_test/avrdude_issue1271/src/
The same for compilation of config_gram.c

These .c files are created by flex and bison and written to a different directory than the one where all other sources are. Hence, on inclusion of "avrdude.h" the compiler won't find its location.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

git main verbose build log for comparison.

git main verbose build log
MINGW64 /c/work/avr/avrdude_test/avrdude_main
$ ./build_verbose.sh
-- Building for: Ninja
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.42.0")
-- Found FLEX: C:/msys64/usr/bin/flex.exe (found version "2.6.4")
-- Found BISON: C:/msys64/usr/bin/bison.exe (found version "3.8.2")
-- Looking for libelf.h
-- Looking for libelf.h - found
-- Looking for libelf/libelf.h
-- Looking for libelf/libelf.h - found
-- Looking for usb.h
-- Looking for usb.h - not found
-- Looking for lusb0_usb.h
-- Looking for lusb0_usb.h - found
-- Looking for libusb.h
-- Looking for libusb.h - not found
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - found
-- Looking for hidapi/hidapi.h
-- Looking for hidapi/hidapi.h - found
-- Looking for ftdi_tcioflush
-- Looking for ftdi_tcioflush - found
-- Configuration summary:
-- ----------------------
-- CMAKE_HOST_SYSTEM: Windows-10.0.22621
-- CMAKE_SYSTEM: Windows-10.0.22621
-- CMAKE_FIND_ROOT_PATH:
-- CMAKE_C_COMPILER: C:/msys64/mingw64/bin/cc.exe
-- CONFIG_DIR: C:/Program Files (x86)/avrdude/etc
-- AVRDUDE_FULL_VERSION: 7.2-20231030 (2bb36b9b)
-- USE_EXTERNAL_LIBS: OFF
-- USE_LIBUSBWIN32: OFF
-- HAVE_LIBELF: C:/msys64/mingw64/lib/libelf.a
-- HAVE_LIBUSB: C:/msys64/mingw64/lib/libusb.a
-- HAVE_LIBUSB_1_0: C:/msys64/mingw64/lib/libusb-1.0.a
-- HAVE_LIBUSB_WIN32: C:/msys64/mingw64/lib/libusb0.dll.a
-- HAVE_LIBHIDAPI: C:/msys64/mingw64/lib/libhidapi.a
-- HAVE_LIBFTDI: HAVE_LIBFTDI-NOTFOUND
-- HAVE_LIBFTDI1: C:/msys64/mingw64/lib/libftdi1.a
-- HAVE_LIBREADLINE: C:/msys64/mingw64/lib/libreadline.a
-- HAVE_LIBSERIALPORT: 1
-- HAVE_LIBELF_H: 1
-- HAVE_LIBELF_LIBELF_H: 1
-- HAVE_USB_H: 1
-- HAVE_LUSB0_USB_H: 1
-- HAVE_LIBUSB_H:
-- HAVE_LIBUSB_1_0_LIBUSB_H: 1
-- HAVE_HIDAPI_HIDAPI_H: 1
-- LIBUSB_COMPAT_DIR: C:/msys64/mingw64/include/libusb-compat
-- HAVE_LIBGPIOD:
-- ----------------------
-- DO HAVE    libelf
-- DO HAVE    libusb
-- DO HAVE    libusb_1_0
-- DO HAVE    libhidapi
-- DON'T HAVE libftdi
-- DO HAVE    libftdi1
-- DO HAVE    libreadline
-- DO HAVE    libserialport
-- DISABLED   doc
-- DISABLED   parport
-- DISABLED   linuxgpio
-- DISABLED   linuxspi
-- ----------------------
-- Configuring done (5.6s)
-- Generating done (0.0s)
-- Build files have been written to: C:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621
Change Dir: 'C:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621'

Run Build Command(s): C:/msys64/mingw64/bin/ninja.exe -v
[1/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_main\src && C:\msys64\usr\bin\flex.exe -oC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/lexer.c lexer.l"
[2/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_main\build_mingw64_nt-10.0-22621\src && C:\msys64\mingw64\bin\cmake.exe -E copy C:/work/avr/avrdude_test/avrdude_main/src/avrdude.conf.in avrdude.conf.in && C:\msys64\mingw64\bin\cmake.exe -D "AVRDUDE_FULL_VERSION=7.2-20231030 (2bb36b9b)" -D HAVE_PARPORT=0 -D HAVE_LINUXSPI=0 -D HAVE_LINUXGPIO=0 -D DEFAULT_PAR_PORT=lpt1 -D DEFAULT_SER_PORT=com1 -D DEFAULT_LINUXGPIO_PORT=unknown -P C:/work/avr/avrdude_test/avrdude_main/src/configure.cmake"
[3/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_main\build_mingw64_nt-10.0-22621\src && C:\msys64\usr\bin\bison.exe --defines=C:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/config_gram.h -o C:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/config_gram.c C:/work/avr/avrdude_test/avrdude_main/src/config_gram.y"
[4/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrintel.c.obj -MF src\CMakeFiles\libavrdude.dir\avrintel.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrintel.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/avrintel.c
[5/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/arduino.c.obj -MF src\CMakeFiles\libavrdude.dir\arduino.c.obj.d -o src/CMakeFiles/libavrdude.dir/arduino.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/arduino.c
[6/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrpart.c.obj -MF src\CMakeFiles\libavrdude.dir\avrpart.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrpart.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/avrpart.c
[7/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/buspirate.c.obj -MF src\CMakeFiles\libavrdude.dir\buspirate.c.obj.d -o src/CMakeFiles/libavrdude.dir/buspirate.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/buspirate.c
[8/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/butterfly.c.obj -MF src\CMakeFiles\libavrdude.dir\butterfly.c.obj.d -o src/CMakeFiles/libavrdude.dir/butterfly.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/butterfly.c
[9/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr.c.obj -MF src\CMakeFiles\libavrdude.dir\avr.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/avr.c
[10/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr910.c.obj -MF src\CMakeFiles\libavrdude.dir\avr910.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr910.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/avr910.c
[11/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/crc16.c.obj -MF src\CMakeFiles\libavrdude.dir\crc16.c.obj.d -o src/CMakeFiles/libavrdude.dir/crc16.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/crc16.c
[12/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrcache.c.obj -MF src\CMakeFiles\libavrdude.dir\avrcache.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrcache.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/avrcache.c
[13/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi_tpi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/avrftdi_tpi.c
[14/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/bitbang.c.obj -MF src\CMakeFiles\libavrdude.dir\bitbang.c.obj.d -o src/CMakeFiles/libavrdude.dir/bitbang.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/bitbang.c
[15/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dfu.c.obj -MF src\CMakeFiles\libavrdude.dir\dfu.c.obj.d -o src/CMakeFiles/libavrdude.dir/dfu.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/dfu.c
[16/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/config.c.obj -MF src\CMakeFiles\libavrdude.dir\config.c.obj.d -o src/CMakeFiles/libavrdude.dir/config.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/config.c
[17/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/confwin.c.obj -MF src\CMakeFiles\libavrdude.dir\confwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/confwin.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/confwin.c
[18/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ch341a.c.obj -MF src\CMakeFiles\libavrdude.dir\ch341a.c.obj.d -o src/CMakeFiles/libavrdude.dir/ch341a.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/ch341a.c
[19/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip1.c.obj -MF src\CMakeFiles\libavrdude.dir\flip1.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip1.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/flip1.c
[20/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dryrun.c.obj -MF src\CMakeFiles\libavrdude.dir\dryrun.c.obj.d -o src/CMakeFiles/libavrdude.dir/dryrun.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/dryrun.c
[21/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip2.c.obj -MF src\CMakeFiles\libavrdude.dir\flip2.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip2.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/flip2.c
[22/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxgpio.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/linuxgpio.c
[23/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxspi.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/linuxspi.c
[24/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/leds.c.obj -MF src\CMakeFiles\libavrdude.dir\leds.c.obj.d -o src/CMakeFiles/libavrdude.dir/leds.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/leds.c
[25/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/fileio.c.obj -MF src\CMakeFiles\libavrdude.dir\fileio.c.obj.d -o src/CMakeFiles/libavrdude.dir/fileio.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/fileio.c
[26/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/avrftdi.c
[27/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkI.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/jtagmkI.c
[28/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/pgm.c
[29/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/par.c.obj -MF src\CMakeFiles\libavrdude.dir\par.c.obj.d -o src/CMakeFiles/libavrdude.dir/par.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/par.c
[30/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm_type.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/pgm_type.c
[31/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -MF src\CMakeFiles\libavrdude.dir\micronucleus.c.obj.d -o src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/micronucleus.c
[32/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppi.c.obj -MF src\CMakeFiles\libavrdude.dir\ppi.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppi.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/ppi.c
[33/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/lists.c.obj -MF src\CMakeFiles\libavrdude.dir\lists.c.obj.d -o src/CMakeFiles/libavrdude.dir/lists.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/lists.c
[34/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/serbb_posix.c
[35/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pindefs.c.obj -MF src\CMakeFiles\libavrdude.dir\pindefs.c.obj.d -o src/CMakeFiles/libavrdude.dir/pindefs.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/pindefs.c
[36/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/ser_posix.c
[37/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_avrdoper.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/ser_avrdoper.c
[38/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ft245r.c.obj -MF src\CMakeFiles\libavrdude.dir\ft245r.c.obj.d -o src/CMakeFiles/libavrdude.dir/ft245r.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/ft245r.c
[39/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -MF src\CMakeFiles\libavrdude.dir\serialadapter.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/serialadapter.c
[40/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -MF src\CMakeFiles\libavrdude.dir\serialupdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/serialupdi.c
[41/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500generic.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/stk500generic.c
[42/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pickit2.c.obj -MF src\CMakeFiles\libavrdude.dir\pickit2.c.obj.d -o src/CMakeFiles/libavrdude.dir/pickit2.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/pickit2.c
[43/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/serbb_win32.c
[44/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/ser_win32.c
[45/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -MF src\CMakeFiles\libavrdude.dir\ppiwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/ppiwin.c
[46/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkII.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/jtagmkII.c
[47/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_state.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_state.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_state.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/updi_state.c
[48/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/stk500.c
[49/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_readwrite.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/updi_readwrite.c
[50/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/teensy.c.obj -MF src\CMakeFiles\libavrdude.dir\teensy.c.obj.d -o src/CMakeFiles/libavrdude.dir/teensy.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/teensy.c
[51/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_link.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_link.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_link.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/updi_link.c
[52/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/strutil.c.obj -MF src\CMakeFiles\libavrdude.dir\strutil.c.obj.d -o src/CMakeFiles/libavrdude.dir/strutil.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/strutil.c
[53/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtag3.c.obj -MF src\CMakeFiles\libavrdude.dir\jtag3.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtag3.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/jtag3.c
[54/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_hidapi.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/usb_hidapi.c
[55/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_libusb.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/usb_libusb.c
[56/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/update.c.obj -MF src\CMakeFiles\libavrdude.dir\update.c.obj.d -o src/CMakeFiles/libavrdude.dir/update.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/update.c
[57/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -MF src\CMakeFiles\libavrdude.dir\usbtiny.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/usbtiny.c
[58/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_nvm.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/updi_nvm.c
[59/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/xbee.c.obj -MF src\CMakeFiles\libavrdude.dir\xbee.c.obj.d -o src/CMakeFiles/libavrdude.dir/xbee.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/xbee.c
[60/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -MF src\CMakeFiles\libavrdude.dir\__\lexer.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -c C:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/lexer.c
[61/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -MF src\CMakeFiles\libavrdude.dir\__\config_gram.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -c C:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/config_gram.c
[62/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbasp.c.obj -MF src\CMakeFiles\libavrdude.dir\usbasp.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbasp.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/usbasp.c
[63/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/wiring.c.obj -MF src\CMakeFiles\libavrdude.dir\wiring.c.obj.d -o src/CMakeFiles/libavrdude.dir/wiring.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/wiring.c
[64/72] C:\msys64\mingw64\bin\windres.exe -O coff -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -I C:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -I C:/work/avr/avrdude_test/avrdude_main -I C:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -I C:/msys64/mingw64/include/libusb-compat -I C:/work/avr/avrdude_test/avrdude_main/src  C:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src/windows.rc src/CMakeFiles/avrdude.dir/windows.rc.obj
[65/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/urclock.c.obj -MF src\CMakeFiles\libavrdude.dir\urclock.c.obj.d -o src/CMakeFiles/libavrdude.dir/urclock.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/urclock.c
[66/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500v2.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/stk500v2.c
[67/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/main.c.obj -MF src\CMakeFiles\avrdude.dir\main.c.obj.d -o src/CMakeFiles/avrdude.dir/main.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/main.c
[68/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/term.c.obj -MF src\CMakeFiles\libavrdude.dir\term.c.obj.d -o src/CMakeFiles/libavrdude.dir/term.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/term.c
[69/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/whereami.c.obj -MF src\CMakeFiles\avrdude.dir\whereami.c.obj.d -o src/CMakeFiles/avrdude.dir/whereami.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/whereami.c
[70/72] cmd.exe /C "cd . && C:\msys64\mingw64\bin\cmake.exe -E rm -f src\libavrdude.a && C:\msys64\mingw64\bin\ar.exe qc src\libavrdude.a  src/CMakeFiles/libavrdude.dir/arduino.c.obj src/CMakeFiles/libavrdude.dir/avr.c.obj src/CMakeFiles/libavrdude.dir/avr910.c.obj src/CMakeFiles/libavrdude.dir/avrcache.c.obj src/CMakeFiles/libavrdude.dir/avrftdi.c.obj src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj src/CMakeFiles/libavrdude.dir/avrintel.c.obj src/CMakeFiles/libavrdude.dir/avrpart.c.obj src/CMakeFiles/libavrdude.dir/bitbang.c.obj src/CMakeFiles/libavrdude.dir/buspirate.c.obj src/CMakeFiles/libavrdude.dir/butterfly.c.obj src/CMakeFiles/libavrdude.dir/ch341a.c.obj src/CMakeFiles/libavrdude.dir/config.c.obj src/CMakeFiles/libavrdude.dir/confwin.c.obj src/CMakeFiles/libavrdude.dir/crc16.c.obj src/CMakeFiles/libavrdude.dir/dfu.c.obj src/CMakeFiles/libavrdude.dir/dryrun.c.obj src/CMakeFiles/libavrdude.dir/fileio.c.obj src/CMakeFiles/libavrdude.dir/flip1.c.obj src/CMakeFiles/libavrdude.dir/flip2.c.obj src/CMakeFiles/libavrdude.dir/ft245r.c.obj src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj src/CMakeFiles/libavrdude.dir/jtag3.c.obj src/CMakeFiles/libavrdude.dir/leds.c.obj src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj src/CMakeFiles/libavrdude.dir/linuxspi.c.obj src/CMakeFiles/libavrdude.dir/lists.c.obj src/CMakeFiles/libavrdude.dir/micronucleus.c.obj src/CMakeFiles/libavrdude.dir/par.c.obj src/CMakeFiles/libavrdude.dir/pgm.c.obj src/CMakeFiles/libavrdude.dir/pgm_type.c.obj src/CMakeFiles/libavrdude.dir/pickit2.c.obj src/CMakeFiles/libavrdude.dir/pindefs.c.obj src/CMakeFiles/libavrdude.dir/ppi.c.obj src/CMakeFiles/libavrdude.dir/ppiwin.c.obj src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj src/CMakeFiles/libavrdude.dir/ser_posix.c.obj src/CMakeFiles/libavrdude.dir/ser_win32.c.obj src/CMakeFiles/libavrdude.dir/serialadapter.c.obj src/CMakeFiles/libavrdude.dir/serialupdi.c.obj src/CMakeFiles/libavrdude.dir/stk500.c.obj src/CMakeFiles/libavrdude.dir/stk500v2.c.obj src/CMakeFiles/libavrdude.dir/stk500generic.c.obj src/CMakeFiles/libavrdude.dir/strutil.c.obj src/CMakeFiles/libavrdude.dir/teensy.c.obj src/CMakeFiles/libavrdude.dir/term.c.obj src/CMakeFiles/libavrdude.dir/updi_link.c.obj src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj src/CMakeFiles/libavrdude.dir/updi_state.c.obj src/CMakeFiles/libavrdude.dir/urclock.c.obj src/CMakeFiles/libavrdude.dir/usbasp.c.obj src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj src/CMakeFiles/libavrdude.dir/usbtiny.c.obj src/CMakeFiles/libavrdude.dir/update.c.obj src/CMakeFiles/libavrdude.dir/wiring.c.obj src/CMakeFiles/libavrdude.dir/xbee.c.obj src/CMakeFiles/libavrdude.dir/__/lexer.c.obj src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj && C:\msys64\mingw64\bin\ranlib.exe src\libavrdude.a && cd ."
[71/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_main -IC:/work/avr/avrdude_test/avrdude_main/build_mingw64_nt-10.0-22621 -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_main/src -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/developer_opts.c.obj -MF src\CMakeFiles\avrdude.dir\developer_opts.c.obj.d -o src/CMakeFiles/avrdude.dir/developer_opts.c.obj -c C:/work/avr/avrdude_test/avrdude_main/src/developer_opts.c
[72/72] cmd.exe /C "cd . && C:\msys64\mingw64\bin\cc.exe -O2 -g -DNDEBUG  src/CMakeFiles/avrdude.dir/main.c.obj src/CMakeFiles/avrdude.dir/developer_opts.c.obj src/CMakeFiles/avrdude.dir/whereami.c.obj src/CMakeFiles/avrdude.dir/windows.rc.obj -o src\avrdude.exe -Wl,--out-implib,src\libavrdude.dll.a -Wl,--major-image-version,0,--minor-image-version,0  src/libavrdude.a  -lm  C:/msys64/mingw64/lib/libelf.a  C:/msys64/mingw64/lib/libusb.a  C:/msys64/mingw64/lib/libusb-1.0.a  C:/msys64/mingw64/lib/libhidapi.a  C:/msys64/mingw64/lib/libftdi1.a  C:/msys64/mingw64/lib/libreadline.a  C:/msys64/mingw64/lib/libserialport.a  C:/msys64/mingw64/lib/libncurses.a  -lsetupapi  -lhid  -lws2_32  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."


Build succeeded.

Run

sudo cmake --build build_mingw64_nt-10.0-22621 --target install

to install.

@stefanrueger
Copy link
Collaborator

Yes, git main has the needed -IC:/work/avr/avrdude_test/avrdude_main/src (and it works)

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

Yes, git main has the needed -IC:/work/avr/avrdude_test/avrdude_main/src (and it works)

Thanks for finding the root cause. Now I need to see how to fix it. Probably the CMake scripts need to be updated.

Unfortunately my CMake knowledge is very limited.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

@Youw

I am sorry to disturb you again. It seems that my CMake files changes are causing this issue.
mcuee@a79daf7

I modeled the change from PR #1264. But PR #1264 does not touch MinGW build.

@Youw
Copy link
Contributor

Youw commented Nov 2, 2023

Short description "why" (why it doesn't work):
avrdude CMake scripts is a a mess :) (ok, maybe a little mess to my taste)
It works in main by accident.

Full description:

The target uses "${EXTRA_WINDOWS_INCLUDES}" (with quotes) as part of its include directories, and by default (in main) it resolves to "" which is an empty string and a separate argument to the target_include_directories function which is later resolved by CMake as "${CMAKE_CURRENT_SOURCE_DIR}" (effectively).

Otherwise "${CMAKE_CURRENT_SOURCE_DIR}" (the <root>/src) is not added to include path explicitly, so when EXTRA_WINDOWS_INCLUDES is set to anything non-empty - <root>/src is no longer used.


@mcuee if you grant me write permission to your fork - I'll push the fix directly into your branch, I already have it locally and don't want to create another fork of my own.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

@Youw

Thanks a lot. I have added you as a collabortor for my avrdude fork. You should be able to push to my fork once you accept the invitation.
https://github.com/mcuee/avrdude

@Youw
Copy link
Contributor

Youw commented Nov 2, 2023

So the missing includes issue is fixed but now we have another one :)

I don't have mingw locally to try/debug this.
@mcuee can you run it with CMake verbosity and show the output?

UPD: and add in src/CMakeLists.txt after line 91:
message("MINGW: '${MINGW}'")
message("EXTRA_WINDOWS_SOURCES: '${EXTRA_WINDOWS_SOURCES}'")

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

@Youw

Your change is good on my local MSYS2 mingw installation.

local build log
MINGW64 /c/work/avr/avrdude_test/avrdude_issue1271
$ ./build_verbose.sh
-- Building for: Ninja
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.42.0")
-- Found FLEX: C:/msys64/usr/bin/flex.exe (found version "2.6.4")
-- Found BISON: C:/msys64/usr/bin/bison.exe (found version "3.8.2")
-- Looking for libelf.h
-- Looking for libelf.h - found
-- Looking for libelf/libelf.h
-- Looking for libelf/libelf.h - found
-- Looking for usb.h
-- Looking for usb.h - not found
-- Looking for lusb0_usb.h
-- Looking for lusb0_usb.h - found
-- Looking for libusb.h
-- Looking for libusb.h - not found
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - found
-- Looking for hidapi/hidapi.h
-- Looking for hidapi/hidapi.h - found
-- Looking for ftdi_tcioflush
-- Looking for ftdi_tcioflush - found
-- Configuration summary:
-- ----------------------
-- CMAKE_HOST_SYSTEM: Windows-10.0.22621
-- CMAKE_SYSTEM: Windows-10.0.22621
-- CMAKE_FIND_ROOT_PATH:
-- CMAKE_C_COMPILER: C:/msys64/mingw64/bin/cc.exe
-- CONFIG_DIR: C:/Program Files (x86)/avrdude/etc
-- AVRDUDE_FULL_VERSION: 7.2-20231102 (6ec6a7b4)
-- USE_EXTERNAL_LIBS: OFF
-- USE_LIBUSBWIN32: OFF
-- HAVE_LIBELF: C:/msys64/mingw64/lib/libelf.a
-- HAVE_LIBUSB: C:/msys64/mingw64/lib/libusb.a
-- HAVE_LIBUSB_1_0: C:/msys64/mingw64/lib/libusb-1.0.a
-- HAVE_LIBUSB_WIN32: C:/msys64/mingw64/lib/libusb0.dll.a
-- HAVE_LIBHIDAPI: C:/msys64/mingw64/lib/libhidapi.a
-- HAVE_LIBFTDI: HAVE_LIBFTDI-NOTFOUND
-- HAVE_LIBFTDI1: C:/msys64/mingw64/lib/libftdi1.a
-- HAVE_LIBREADLINE: C:/msys64/mingw64/lib/libreadline.a
-- HAVE_LIBSERIALPORT: 1
-- HAVE_LIBELF_H: 1
-- HAVE_LIBELF_LIBELF_H: 1
-- HAVE_USB_H: 1
-- HAVE_LUSB0_USB_H: 1
-- HAVE_LIBUSB_H:
-- HAVE_LIBUSB_1_0_LIBUSB_H: 1
-- HAVE_HIDAPI_HIDAPI_H: 1
-- LIBUSB_COMPAT_DIR: C:/msys64/mingw64/include/libusb-compat
-- HAVE_LIBGPIOD:
-- ----------------------
-- DO HAVE    libelf
-- DO HAVE    libusb
-- DO HAVE    libusb_1_0
-- DO HAVE    libhidapi
-- DON'T HAVE libftdi
-- DO HAVE    libftdi1
-- DO HAVE    libreadline
-- DO HAVE    libserialport
-- DISABLED   doc
-- DISABLED   parport
-- DISABLED   linuxgpio
-- DISABLED   linuxspi
-- ----------------------
-- Configuring done (5.4s)
-- Generating done (0.0s)
-- Build files have been written to: C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621
Change Dir: 'C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621'

Run Build Command(s): C:/msys64/mingw64/bin/ninja.exe -v
[1/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\src && C:\msys64\usr\bin\flex.exe -oC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/lexer.c lexer.l"
[2/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\build_mingw64_nt-10.0-22621\src && C:\msys64\mingw64\bin\cmake.exe -E copy C:/work/avr/avrdude_test/avrdude_issue1271/src/avrdude.conf.in avrdude.conf.in && C:\msys64\mingw64\bin\cmake.exe -D "AVRDUDE_FULL_VERSION=7.2-20231102 (6ec6a7b4)" -D HAVE_PARPORT=0 -D HAVE_LINUXSPI=0 -D HAVE_LINUXGPIO=0 -D DEFAULT_PAR_PORT=lpt1 -D DEFAULT_SER_PORT=com1 -D DEFAULT_LINUXGPIO_PORT=unknown -P C:/work/avr/avrdude_test/avrdude_issue1271/src/configure.cmake"
[3/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\build_mingw64_nt-10.0-22621\src && C:\msys64\usr\bin\bison.exe --defines=C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.h -o C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.c C:/work/avr/avrdude_test/avrdude_issue1271/src/config_gram.y"
[4/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/arduino.c.obj -MF src\CMakeFiles\libavrdude.dir\arduino.c.obj.d -o src/CMakeFiles/libavrdude.dir/arduino.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/arduino.c
[5/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrintel.c.obj -MF src\CMakeFiles\libavrdude.dir\avrintel.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrintel.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrintel.c
[6/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrcache.c.obj -MF src\CMakeFiles\libavrdude.dir\avrcache.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrcache.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrcache.c
[7/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr910.c.obj -MF src\CMakeFiles\libavrdude.dir\avr910.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr910.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avr910.c
[8/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr.c.obj -MF src\CMakeFiles\libavrdude.dir\avr.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avr.c
[9/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrpart.c.obj -MF src\CMakeFiles\libavrdude.dir\avrpart.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrpart.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrpart.c
[10/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/bitbang.c.obj -MF src\CMakeFiles\libavrdude.dir\bitbang.c.obj.d -o src/CMakeFiles/libavrdude.dir/bitbang.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/bitbang.c
[11/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/crc16.c.obj -MF src\CMakeFiles\libavrdude.dir\crc16.c.obj.d -o src/CMakeFiles/libavrdude.dir/crc16.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/crc16.c
[12/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi_tpi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrftdi_tpi.c
[13/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/buspirate.c.obj -MF src\CMakeFiles\libavrdude.dir\buspirate.c.obj.d -o src/CMakeFiles/libavrdude.dir/buspirate.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/buspirate.c
[14/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/config.c.obj -MF src\CMakeFiles\libavrdude.dir\config.c.obj.d -o src/CMakeFiles/libavrdude.dir/config.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/config.c
[15/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/confwin.c.obj -MF src\CMakeFiles\libavrdude.dir\confwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/confwin.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/confwin.c
[16/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dfu.c.obj -MF src\CMakeFiles\libavrdude.dir\dfu.c.obj.d -o src/CMakeFiles/libavrdude.dir/dfu.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/dfu.c
[17/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dryrun.c.obj -MF src\CMakeFiles\libavrdude.dir\dryrun.c.obj.d -o src/CMakeFiles/libavrdude.dir/dryrun.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/dryrun.c
[18/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ch341a.c.obj -MF src\CMakeFiles\libavrdude.dir\ch341a.c.obj.d -o src/CMakeFiles/libavrdude.dir/ch341a.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ch341a.c
[19/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/butterfly.c.obj -MF src\CMakeFiles\libavrdude.dir\butterfly.c.obj.d -o src/CMakeFiles/libavrdude.dir/butterfly.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/butterfly.c
[20/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip2.c.obj -MF src\CMakeFiles\libavrdude.dir\flip2.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/flip2.c
[21/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip1.c.obj -MF src\CMakeFiles\libavrdude.dir\flip1.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip1.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/flip1.c
[22/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxspi.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/linuxspi.c
[23/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxgpio.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/linuxgpio.c
[24/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/leds.c.obj -MF src\CMakeFiles\libavrdude.dir\leds.c.obj.d -o src/CMakeFiles/libavrdude.dir/leds.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/leds.c
[25/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkI.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtagmkI.c
[26/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/fileio.c.obj -MF src\CMakeFiles\libavrdude.dir\fileio.c.obj.d -o src/CMakeFiles/libavrdude.dir/fileio.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/fileio.c
[27/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm_type.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pgm_type.c
[28/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/lists.c.obj -MF src\CMakeFiles\libavrdude.dir\lists.c.obj.d -o src/CMakeFiles/libavrdude.dir/lists.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/lists.c
[29/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/par.c.obj -MF src\CMakeFiles\libavrdude.dir\par.c.obj.d -o src/CMakeFiles/libavrdude.dir/par.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/par.c
[30/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrftdi.c
[31/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -MF src\CMakeFiles\libavrdude.dir\ppiwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ppiwin.c
[32/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serbb_posix.c
[33/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pgm.c
[34/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppi.c.obj -MF src\CMakeFiles\libavrdude.dir\ppi.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ppi.c
[35/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_posix.c
[36/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -MF src\CMakeFiles\libavrdude.dir\micronucleus.c.obj.d -o src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/micronucleus.c
[37/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pindefs.c.obj -MF src\CMakeFiles\libavrdude.dir\pindefs.c.obj.d -o src/CMakeFiles/libavrdude.dir/pindefs.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pindefs.c
[38/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_avrdoper.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_avrdoper.c
[39/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ft245r.c.obj -MF src\CMakeFiles\libavrdude.dir\ft245r.c.obj.d -o src/CMakeFiles/libavrdude.dir/ft245r.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ft245r.c
[40/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -MF src\CMakeFiles\libavrdude.dir\serialadapter.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serialadapter.c
[41/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serbb_win32.c
[42/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -MF src\CMakeFiles\libavrdude.dir\serialupdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serialupdi.c
[43/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pickit2.c.obj -MF src\CMakeFiles\libavrdude.dir\pickit2.c.obj.d -o src/CMakeFiles/libavrdude.dir/pickit2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pickit2.c
[44/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_win32.c
[45/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkII.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtagmkII.c
[46/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500generic.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500generic.c
[47/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500.c
[48/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_state.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_state.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_state.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_state.c
[49/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_readwrite.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_readwrite.c
[50/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtag3.c.obj -MF src\CMakeFiles\libavrdude.dir\jtag3.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtag3.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtag3.c
[51/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/strutil.c.obj -MF src\CMakeFiles\libavrdude.dir\strutil.c.obj.d -o src/CMakeFiles/libavrdude.dir/strutil.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/strutil.c
[52/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/teensy.c.obj -MF src\CMakeFiles\libavrdude.dir\teensy.c.obj.d -o src/CMakeFiles/libavrdude.dir/teensy.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/teensy.c
[53/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_link.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_link.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_link.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_link.c
[54/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_hidapi.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usb_hidapi.c
[55/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_nvm.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_nvm.c
[56/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/update.c.obj -MF src\CMakeFiles\libavrdude.dir\update.c.obj.d -o src/CMakeFiles/libavrdude.dir/update.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/update.c
[57/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -MF src\CMakeFiles\libavrdude.dir\usbtiny.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usbtiny.c
[58/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/wiring.c.obj -MF src\CMakeFiles\libavrdude.dir\wiring.c.obj.d -o src/CMakeFiles/libavrdude.dir/wiring.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/wiring.c
[59/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_libusb.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usb_libusb.c
[60/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/xbee.c.obj -MF src\CMakeFiles\libavrdude.dir\xbee.c.obj.d -o src/CMakeFiles/libavrdude.dir/xbee.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/xbee.c
[61/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbasp.c.obj -MF src\CMakeFiles\libavrdude.dir\usbasp.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbasp.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usbasp.c
[62/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -MF src\CMakeFiles\libavrdude.dir\__\config_gram.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.c
[63/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/urclock.c.obj -MF src\CMakeFiles\libavrdude.dir\urclock.c.obj.d -o src/CMakeFiles/libavrdude.dir/urclock.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/urclock.c
[64/72] C:\msys64\mingw64\bin\windres.exe -O coff -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -I C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -I C:/work/avr/avrdude_test/avrdude_issue1271 -I C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -I C:/work/avr/avrdude_test/avrdude_issue1271/src -I C:/msys64/mingw64/include/libusb-compat -I C:/work/avr/avrdude_test/avrdude_issue1271/src/mingw  C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src/windows.rc src/CMakeFiles/avrdude.dir/windows.rc.obj
[65/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/whereami.c.obj -MF src\CMakeFiles\avrdude.dir\whereami.c.obj.d -o src/CMakeFiles/avrdude.dir/whereami.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/whereami.c
[66/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/main.c.obj -MF src\CMakeFiles\avrdude.dir\main.c.obj.d -o src/CMakeFiles/avrdude.dir/main.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/main.c
[67/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500v2.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500v2.c
[68/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -MF src\CMakeFiles\libavrdude.dir\__\lexer.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/lexer.c
[69/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/term.c.obj -MF src\CMakeFiles\libavrdude.dir\term.c.obj.d -o src/CMakeFiles/libavrdude.dir/term.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c
[70/72] cmd.exe /C "cd . && C:\msys64\mingw64\bin\cmake.exe -E rm -f src\libavrdude.a && C:\msys64\mingw64\bin\ar.exe qc src\libavrdude.a  src/CMakeFiles/libavrdude.dir/arduino.c.obj src/CMakeFiles/libavrdude.dir/avr.c.obj src/CMakeFiles/libavrdude.dir/avr910.c.obj src/CMakeFiles/libavrdude.dir/avrcache.c.obj src/CMakeFiles/libavrdude.dir/avrftdi.c.obj src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj src/CMakeFiles/libavrdude.dir/avrintel.c.obj src/CMakeFiles/libavrdude.dir/avrpart.c.obj src/CMakeFiles/libavrdude.dir/bitbang.c.obj src/CMakeFiles/libavrdude.dir/buspirate.c.obj src/CMakeFiles/libavrdude.dir/butterfly.c.obj src/CMakeFiles/libavrdude.dir/ch341a.c.obj src/CMakeFiles/libavrdude.dir/config.c.obj src/CMakeFiles/libavrdude.dir/confwin.c.obj src/CMakeFiles/libavrdude.dir/crc16.c.obj src/CMakeFiles/libavrdude.dir/dfu.c.obj src/CMakeFiles/libavrdude.dir/dryrun.c.obj src/CMakeFiles/libavrdude.dir/fileio.c.obj src/CMakeFiles/libavrdude.dir/flip1.c.obj src/CMakeFiles/libavrdude.dir/flip2.c.obj src/CMakeFiles/libavrdude.dir/ft245r.c.obj src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj src/CMakeFiles/libavrdude.dir/jtag3.c.obj src/CMakeFiles/libavrdude.dir/leds.c.obj src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj src/CMakeFiles/libavrdude.dir/linuxspi.c.obj src/CMakeFiles/libavrdude.dir/lists.c.obj src/CMakeFiles/libavrdude.dir/micronucleus.c.obj src/CMakeFiles/libavrdude.dir/par.c.obj src/CMakeFiles/libavrdude.dir/pgm.c.obj src/CMakeFiles/libavrdude.dir/pgm_type.c.obj src/CMakeFiles/libavrdude.dir/pickit2.c.obj src/CMakeFiles/libavrdude.dir/pindefs.c.obj src/CMakeFiles/libavrdude.dir/ppi.c.obj src/CMakeFiles/libavrdude.dir/ppiwin.c.obj src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj src/CMakeFiles/libavrdude.dir/ser_posix.c.obj src/CMakeFiles/libavrdude.dir/ser_win32.c.obj src/CMakeFiles/libavrdude.dir/serialadapter.c.obj src/CMakeFiles/libavrdude.dir/serialupdi.c.obj src/CMakeFiles/libavrdude.dir/stk500.c.obj src/CMakeFiles/libavrdude.dir/stk500v2.c.obj src/CMakeFiles/libavrdude.dir/stk500generic.c.obj src/CMakeFiles/libavrdude.dir/strutil.c.obj src/CMakeFiles/libavrdude.dir/teensy.c.obj src/CMakeFiles/libavrdude.dir/term.c.obj src/CMakeFiles/libavrdude.dir/updi_link.c.obj src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj src/CMakeFiles/libavrdude.dir/updi_state.c.obj src/CMakeFiles/libavrdude.dir/urclock.c.obj src/CMakeFiles/libavrdude.dir/usbasp.c.obj src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj src/CMakeFiles/libavrdude.dir/usbtiny.c.obj src/CMakeFiles/libavrdude.dir/update.c.obj src/CMakeFiles/libavrdude.dir/wiring.c.obj src/CMakeFiles/libavrdude.dir/xbee.c.obj src/CMakeFiles/libavrdude.dir/__/lexer.c.obj src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj && C:\msys64\mingw64\bin\ranlib.exe src\libavrdude.a && cd ."
[71/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/developer_opts.c.obj -MF src\CMakeFiles\avrdude.dir\developer_opts.c.obj.d -o src/CMakeFiles/avrdude.dir/developer_opts.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/developer_opts.c
[72/72] cmd.exe /C "cd . && C:\msys64\mingw64\bin\cc.exe -O2 -g -DNDEBUG  src/CMakeFiles/avrdude.dir/main.c.obj src/CMakeFiles/avrdude.dir/developer_opts.c.obj src/CMakeFiles/avrdude.dir/whereami.c.obj src/CMakeFiles/avrdude.dir/windows.rc.obj -o src\avrdude.exe -Wl,--out-implib,src\libavrdude.dll.a -Wl,--major-image-version,0,--minor-image-version,0  src/libavrdude.a  -lm  C:/msys64/mingw64/lib/libelf.a  C:/msys64/mingw64/lib/libusb.a  C:/msys64/mingw64/lib/libusb-1.0.a  C:/msys64/mingw64/lib/libhidapi.a  C:/msys64/mingw64/lib/libftdi1.a  C:/msys64/mingw64/lib/libreadline.a  C:/msys64/mingw64/lib/libserialport.a  C:/msys64/mingw64/lib/libncurses.a  -lsetupapi  -lhid  -lws2_32  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."


Build succeeded.

Run

sudo cmake --build build_mingw64_nt-10.0-22621 --target install

to install.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

@Youw
But my build links to C:/msys64/mingw64/lib/libreadline.a which is not intended for this PR. let me remove libreadline on my local machine and try again.

@Youw
Copy link
Contributor

Youw commented Nov 2, 2023

Do you even want the possibility to long against system-provided libreadline?
Maybe use only embedded msvc/mingw implementation for corresponding systems?

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

Do you even want the possibility to long against system-provided libreadline? Maybe use only embedded msvc/mingw implementation for corresponding systems?

We still want to use GNU Readline for Linux/FreeBSD/etc and libedit for macOS (readline is a keg for Homebrew under macOS).

But GNU Readline is not so good under Windows. So we do not want it for MSVC/MinGW.

@Youw
Copy link
Contributor

Youw commented Nov 2, 2023

Let me push the suggested update to enforce that.
UPD: done.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

Here is the verbose log.

failed build log
MINGW64 /c/work/avr/avrdude_test/avrdude_issue1271
$ ./build_verbose.sh
-- Building for: Ninja
-- The C compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.42.0")
-- Found FLEX: C:/msys64/usr/bin/flex.exe (found version "2.6.4")
-- Found BISON: C:/msys64/usr/bin/bison.exe (found version "3.8.2")
-- Looking for libelf.h
-- Looking for libelf.h - found
-- Looking for libelf/libelf.h
-- Looking for libelf/libelf.h - found
-- Looking for usb.h
-- Looking for usb.h - not found
-- Looking for lusb0_usb.h
-- Looking for lusb0_usb.h - found
-- Looking for libusb.h
-- Looking for libusb.h - not found
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - found
-- Looking for hidapi/hidapi.h
-- Looking for hidapi/hidapi.h - found
-- Looking for ftdi_tcioflush
-- Looking for ftdi_tcioflush - found
-- Configuration summary:
-- ----------------------
-- CMAKE_HOST_SYSTEM: Windows-10.0.22621
-- CMAKE_SYSTEM: Windows-10.0.22621
-- CMAKE_FIND_ROOT_PATH:
-- CMAKE_C_COMPILER: C:/msys64/mingw64/bin/cc.exe
-- CONFIG_DIR: C:/Program Files (x86)/avrdude/etc
-- AVRDUDE_FULL_VERSION: 7.2-20231102 (1c5898dd)
-- USE_EXTERNAL_LIBS: OFF
-- USE_LIBUSBWIN32: OFF
-- HAVE_LIBELF: C:/msys64/mingw64/lib/libelf.a
-- HAVE_LIBUSB: C:/msys64/mingw64/lib/libusb.a
-- HAVE_LIBUSB_1_0: C:/msys64/mingw64/lib/libusb-1.0.a
-- HAVE_LIBUSB_WIN32: C:/msys64/mingw64/lib/libusb0.dll.a
-- HAVE_LIBHIDAPI: C:/msys64/mingw64/lib/libhidapi.a
-- HAVE_LIBFTDI: HAVE_LIBFTDI-NOTFOUND
-- HAVE_LIBFTDI1: C:/msys64/mingw64/lib/libftdi1.a
-- HAVE_LIBREADLINE: Embedded MINGW
-- HAVE_LIBSERIALPORT: 1
-- HAVE_LIBELF_H: 1
-- HAVE_LIBELF_LIBELF_H: 1
-- HAVE_USB_H: 1
-- HAVE_LUSB0_USB_H: 1
-- HAVE_LIBUSB_H:
-- HAVE_LIBUSB_1_0_LIBUSB_H: 1
-- HAVE_HIDAPI_HIDAPI_H: 1
-- LIBUSB_COMPAT_DIR: C:/msys64/mingw64/include/libusb-compat
-- HAVE_LIBGPIOD:
-- ----------------------
-- DO HAVE    libelf
-- DO HAVE    libusb
-- DO HAVE    libusb_1_0
-- DO HAVE    libhidapi
-- DON'T HAVE libftdi
-- DO HAVE    libftdi1
-- DO HAVE    libreadline
-- DO HAVE    libserialport
-- DISABLED   doc
-- DISABLED   parport
-- DISABLED   linuxgpio
-- DISABLED   linuxspi
-- ----------------------
-- Configuring done (5.6s)
-- Generating done (0.0s)
-- Build files have been written to: C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621
Change Dir: 'C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621'

Run Build Command(s): C:/msys64/mingw64/bin/ninja.exe -v
[1/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\src && C:\msys64\usr\bin\flex.exe -oC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/lexer.c lexer.l"
[2/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\build_mingw64_nt-10.0-22621\src && C:\msys64\mingw64\bin\cmake.exe -E copy C:/work/avr/avrdude_test/avrdude_issue1271/src/avrdude.conf.in avrdude.conf.in && C:\msys64\mingw64\bin\cmake.exe -D "AVRDUDE_FULL_VERSION=7.2-20231102 (1c5898dd)" -D HAVE_PARPORT=0 -D HAVE_LINUXSPI=0 -D HAVE_LINUXGPIO=0 -D DEFAULT_PAR_PORT=lpt1 -D DEFAULT_SER_PORT=com1 -D DEFAULT_LINUXGPIO_PORT=unknown -P C:/work/avr/avrdude_test/avrdude_issue1271/src/configure.cmake"
[3/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\build_mingw64_nt-10.0-22621\src && C:\msys64\usr\bin\bison.exe --defines=C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.h -o C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.c C:/work/avr/avrdude_test/avrdude_issue1271/src/config_gram.y"
[4/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/arduino.c.obj -MF src\CMakeFiles\libavrdude.dir\arduino.c.obj.d -o src/CMakeFiles/libavrdude.dir/arduino.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/arduino.c
[5/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrintel.c.obj -MF src\CMakeFiles\libavrdude.dir\avrintel.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrintel.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrintel.c
[6/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrcache.c.obj -MF src\CMakeFiles\libavrdude.dir\avrcache.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrcache.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrcache.c
[7/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr910.c.obj -MF src\CMakeFiles\libavrdude.dir\avr910.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr910.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avr910.c
[8/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/butterfly.c.obj -MF src\CMakeFiles\libavrdude.dir\butterfly.c.obj.d -o src/CMakeFiles/libavrdude.dir/butterfly.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/butterfly.c
[9/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrpart.c.obj -MF src\CMakeFiles\libavrdude.dir\avrpart.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrpart.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrpart.c
[10/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/buspirate.c.obj -MF src\CMakeFiles\libavrdude.dir\buspirate.c.obj.d -o src/CMakeFiles/libavrdude.dir/buspirate.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/buspirate.c
[11/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/crc16.c.obj -MF src\CMakeFiles\libavrdude.dir\crc16.c.obj.d -o src/CMakeFiles/libavrdude.dir/crc16.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/crc16.c
[12/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/bitbang.c.obj -MF src\CMakeFiles\libavrdude.dir\bitbang.c.obj.d -o src/CMakeFiles/libavrdude.dir/bitbang.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/bitbang.c
[13/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi_tpi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrftdi_tpi.c
[14/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dfu.c.obj -MF src\CMakeFiles\libavrdude.dir\dfu.c.obj.d -o src/CMakeFiles/libavrdude.dir/dfu.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/dfu.c
[15/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/config.c.obj -MF src\CMakeFiles\libavrdude.dir\config.c.obj.d -o src/CMakeFiles/libavrdude.dir/config.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/config.c
[16/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip1.c.obj -MF src\CMakeFiles\libavrdude.dir\flip1.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip1.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/flip1.c
[17/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/confwin.c.obj -MF src\CMakeFiles\libavrdude.dir\confwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/confwin.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/confwin.c
[18/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dryrun.c.obj -MF src\CMakeFiles\libavrdude.dir\dryrun.c.obj.d -o src/CMakeFiles/libavrdude.dir/dryrun.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/dryrun.c
[19/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr.c.obj -MF src\CMakeFiles\libavrdude.dir\avr.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avr.c
[20/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/fileio.c.obj -MF src\CMakeFiles\libavrdude.dir\fileio.c.obj.d -o src/CMakeFiles/libavrdude.dir/fileio.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/fileio.c
[21/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkI.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtagmkI.c
[22/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ch341a.c.obj -MF src\CMakeFiles\libavrdude.dir\ch341a.c.obj.d -o src/CMakeFiles/libavrdude.dir/ch341a.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ch341a.c
[23/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxgpio.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/linuxgpio.c
[24/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip2.c.obj -MF src\CMakeFiles\libavrdude.dir\flip2.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/flip2.c
[25/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxspi.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/linuxspi.c
[26/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/par.c.obj -MF src\CMakeFiles\libavrdude.dir\par.c.obj.d -o src/CMakeFiles/libavrdude.dir/par.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/par.c
[27/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrftdi.c
[28/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/leds.c.obj -MF src\CMakeFiles\libavrdude.dir\leds.c.obj.d -o src/CMakeFiles/libavrdude.dir/leds.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/leds.c
[29/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm_type.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pgm_type.c
[30/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/lists.c.obj -MF src\CMakeFiles\libavrdude.dir\lists.c.obj.d -o src/CMakeFiles/libavrdude.dir/lists.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/lists.c
[31/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppi.c.obj -MF src\CMakeFiles\libavrdude.dir\ppi.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ppi.c
[32/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serbb_posix.c
[33/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -MF src\CMakeFiles\libavrdude.dir\micronucleus.c.obj.d -o src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/micronucleus.c
[34/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -MF src\CMakeFiles\libavrdude.dir\ppiwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ppiwin.c
[35/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_posix.c
[36/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pgm.c
[37/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_avrdoper.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_avrdoper.c
[38/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pindefs.c.obj -MF src\CMakeFiles\libavrdude.dir\pindefs.c.obj.d -o src/CMakeFiles/libavrdude.dir/pindefs.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pindefs.c
[39/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ft245r.c.obj -MF src\CMakeFiles\libavrdude.dir\ft245r.c.obj.d -o src/CMakeFiles/libavrdude.dir/ft245r.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ft245r.c
[40/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtag3.c.obj -MF src\CMakeFiles\libavrdude.dir\jtag3.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtag3.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtag3.c
[41/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500generic.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500generic.c
[42/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pickit2.c.obj -MF src\CMakeFiles\libavrdude.dir\pickit2.c.obj.d -o src/CMakeFiles/libavrdude.dir/pickit2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pickit2.c
[43/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkII.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtagmkII.c
[44/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -MF src\CMakeFiles\libavrdude.dir\serialadapter.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serialadapter.c
[45/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serbb_win32.c
[46/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -MF src\CMakeFiles\libavrdude.dir\serialupdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serialupdi.c
[47/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_win32.c
[48/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/teensy.c.obj -MF src\CMakeFiles\libavrdude.dir\teensy.c.obj.d -o src/CMakeFiles/libavrdude.dir/teensy.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/teensy.c
[49/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500.c
[50/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_state.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_state.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_state.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_state.c
[51/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_link.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_link.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_link.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_link.c
[52/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_readwrite.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_readwrite.c
[53/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_hidapi.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usb_hidapi.c
[54/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/strutil.c.obj -MF src\CMakeFiles\libavrdude.dir\strutil.c.obj.d -o src/CMakeFiles/libavrdude.dir/strutil.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/strutil.c
[55/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_nvm.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_nvm.c
[56/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/wiring.c.obj -MF src\CMakeFiles\libavrdude.dir\wiring.c.obj.d -o src/CMakeFiles/libavrdude.dir/wiring.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/wiring.c
[57/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/update.c.obj -MF src\CMakeFiles\libavrdude.dir\update.c.obj.d -o src/CMakeFiles/libavrdude.dir/update.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/update.c
[58/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -MF src\CMakeFiles\libavrdude.dir\usbtiny.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usbtiny.c
[59/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/xbee.c.obj -MF src\CMakeFiles\libavrdude.dir\xbee.c.obj.d -o src/CMakeFiles/libavrdude.dir/xbee.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/xbee.c
[60/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -MF src\CMakeFiles\libavrdude.dir\__\lexer.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/lexer.c
[61/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500v2.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500v2.c
[62/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbasp.c.obj -MF src\CMakeFiles\libavrdude.dir\usbasp.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbasp.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usbasp.c
[63/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -MF src\CMakeFiles\libavrdude.dir\__\config_gram.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.c
[64/72] C:\msys64\mingw64\bin\windres.exe -O coff -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -I C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -I C:/work/avr/avrdude_test/avrdude_issue1271 -I C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -I C:/work/avr/avrdude_test/avrdude_issue1271/src -I C:/msys64/mingw64/include/libusb-compat -I C:/work/avr/avrdude_test/avrdude_issue1271/src/mingw  C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src/windows.rc src/CMakeFiles/avrdude.dir/windows.rc.obj
[65/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_libusb.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usb_libusb.c
[66/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/main.c.obj -MF src\CMakeFiles\avrdude.dir\main.c.obj.d -o src/CMakeFiles/avrdude.dir/main.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/main.c
[67/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/urclock.c.obj -MF src\CMakeFiles\libavrdude.dir\urclock.c.obj.d -o src/CMakeFiles/libavrdude.dir/urclock.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/urclock.c
[68/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/whereami.c.obj -MF src\CMakeFiles\avrdude.dir\whereami.c.obj.d -o src/CMakeFiles/avrdude.dir/whereami.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/whereami.c
[69/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/term.c.obj -MF src\CMakeFiles\libavrdude.dir\term.c.obj.d -o src/CMakeFiles/libavrdude.dir/term.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c
[70/72] cmd.exe /C "cd . && C:\msys64\mingw64\bin\cmake.exe -E rm -f src\libavrdude.a && C:\msys64\mingw64\bin\ar.exe qc src\libavrdude.a  src/CMakeFiles/libavrdude.dir/arduino.c.obj src/CMakeFiles/libavrdude.dir/avr.c.obj src/CMakeFiles/libavrdude.dir/avr910.c.obj src/CMakeFiles/libavrdude.dir/avrcache.c.obj src/CMakeFiles/libavrdude.dir/avrftdi.c.obj src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj src/CMakeFiles/libavrdude.dir/avrintel.c.obj src/CMakeFiles/libavrdude.dir/avrpart.c.obj src/CMakeFiles/libavrdude.dir/bitbang.c.obj src/CMakeFiles/libavrdude.dir/buspirate.c.obj src/CMakeFiles/libavrdude.dir/butterfly.c.obj src/CMakeFiles/libavrdude.dir/ch341a.c.obj src/CMakeFiles/libavrdude.dir/config.c.obj src/CMakeFiles/libavrdude.dir/confwin.c.obj src/CMakeFiles/libavrdude.dir/crc16.c.obj src/CMakeFiles/libavrdude.dir/dfu.c.obj src/CMakeFiles/libavrdude.dir/dryrun.c.obj src/CMakeFiles/libavrdude.dir/fileio.c.obj src/CMakeFiles/libavrdude.dir/flip1.c.obj src/CMakeFiles/libavrdude.dir/flip2.c.obj src/CMakeFiles/libavrdude.dir/ft245r.c.obj src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj src/CMakeFiles/libavrdude.dir/jtag3.c.obj src/CMakeFiles/libavrdude.dir/leds.c.obj src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj src/CMakeFiles/libavrdude.dir/linuxspi.c.obj src/CMakeFiles/libavrdude.dir/lists.c.obj src/CMakeFiles/libavrdude.dir/micronucleus.c.obj src/CMakeFiles/libavrdude.dir/par.c.obj src/CMakeFiles/libavrdude.dir/pgm.c.obj src/CMakeFiles/libavrdude.dir/pgm_type.c.obj src/CMakeFiles/libavrdude.dir/pickit2.c.obj src/CMakeFiles/libavrdude.dir/pindefs.c.obj src/CMakeFiles/libavrdude.dir/ppi.c.obj src/CMakeFiles/libavrdude.dir/ppiwin.c.obj src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj src/CMakeFiles/libavrdude.dir/ser_posix.c.obj src/CMakeFiles/libavrdude.dir/ser_win32.c.obj src/CMakeFiles/libavrdude.dir/serialadapter.c.obj src/CMakeFiles/libavrdude.dir/serialupdi.c.obj src/CMakeFiles/libavrdude.dir/stk500.c.obj src/CMakeFiles/libavrdude.dir/stk500v2.c.obj src/CMakeFiles/libavrdude.dir/stk500generic.c.obj src/CMakeFiles/libavrdude.dir/strutil.c.obj src/CMakeFiles/libavrdude.dir/teensy.c.obj src/CMakeFiles/libavrdude.dir/term.c.obj src/CMakeFiles/libavrdude.dir/updi_link.c.obj src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj src/CMakeFiles/libavrdude.dir/updi_state.c.obj src/CMakeFiles/libavrdude.dir/urclock.c.obj src/CMakeFiles/libavrdude.dir/usbasp.c.obj src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj src/CMakeFiles/libavrdude.dir/usbtiny.c.obj src/CMakeFiles/libavrdude.dir/update.c.obj src/CMakeFiles/libavrdude.dir/wiring.c.obj src/CMakeFiles/libavrdude.dir/xbee.c.obj src/CMakeFiles/libavrdude.dir/__/lexer.c.obj src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj && C:\msys64\mingw64\bin\ranlib.exe src\libavrdude.a && cd ."
[71/72] C:\msys64\mingw64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/mingw64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/developer_opts.c.obj -MF src\CMakeFiles\avrdude.dir\developer_opts.c.obj.d -o src/CMakeFiles/avrdude.dir/developer_opts.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/developer_opts.c
[72/72] cmd.exe /C "cd . && C:\msys64\mingw64\bin\cc.exe -O2 -g -DNDEBUG  src/CMakeFiles/avrdude.dir/main.c.obj src/CMakeFiles/avrdude.dir/developer_opts.c.obj src/CMakeFiles/avrdude.dir/whereami.c.obj src/CMakeFiles/avrdude.dir/windows.rc.obj -o src\avrdude.exe -Wl,--out-implib,src\libavrdude.dll.a -Wl,--major-image-version,0,--minor-image-version,0  src/libavrdude.a  -lm  C:/msys64/mingw64/lib/libelf.a  C:/msys64/mingw64/lib/libusb.a  C:/msys64/mingw64/lib/libusb-1.0.a  C:/msys64/mingw64/lib/libhidapi.a  C:/msys64/mingw64/lib/libftdi1.a  C:/msys64/mingw64/lib/libserialport.a  -lsetupapi  -lhid  -lws2_32  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
FAILED: src/avrdude.exe
cmd.exe /C "cd . && C:\msys64\mingw64\bin\cc.exe -O2 -g -DNDEBUG  src/CMakeFiles/avrdude.dir/main.c.obj src/CMakeFiles/avrdude.dir/developer_opts.c.obj src/CMakeFiles/avrdude.dir/whereami.c.obj src/CMakeFiles/avrdude.dir/windows.rc.obj -o src\avrdude.exe -Wl,--out-implib,src\libavrdude.dll.a -Wl,--major-image-version,0,--minor-image-version,0  src/libavrdude.a  -lm  C:/msys64/mingw64/lib/libelf.a  C:/msys64/mingw64/lib/libusb.a  C:/msys64/mingw64/lib/libusb-1.0.a  C:/msys64/mingw64/lib/libhidapi.a  C:/msys64/mingw64/lib/libftdi1.a  C:/msys64/mingw64/lib/libserialport.a  -lsetupapi  -lhid  -lws2_32  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/libavrdude.a(term.c.obj): in function `term_gotline':
C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2153:(.text+0x7a99): undefined reference to `rl_callback_handler_remove'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2154:(.text+0x7aac): undefined reference to `rl_callback_handler_install'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2139:(.text+0x7ac9): undefined reference to `add_history'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/libavrdude.a(term.c.obj): in function `terminal_mode_interactive':
C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2171:(.text+0x7deb): undefined reference to `rl_callback_handler_install'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2182:(.text+0x7fc9): undefined reference to `rl_callback_read_char'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/libavrdude.a(term.c.obj): in function `term_gotline':
C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2163:(.text+0x7a90): undefined reference to `rl_callback_handler_remove'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2163:(.text+0x7b01): undefined reference to `rl_callback_handler_remove'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2163:(.text+0x7b65): undefined reference to `rl_callback_handler_remove'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/libavrdude.a(term.c.obj):term.c:(.rdata$.refptr.rl_readline_version[.refptr.rl_readline_version]+0x0): undefined reference to `rl_readline_version'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Build failed.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

I tend to think that we are almost there. I think we may need to change some ifdefs in the file term.c, or maybe some linking things in CMake.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

Just one more verbose log for reference (MSYS2 clang64 build)

verbose build log for MSYS2 clang64
CLANG64 /c/work/avr/avrdude_test/avrdude_issue1271
$ ./build_verbose.sh
-- Building for: Ninja
-- The C compiler identification is Clang 17.0.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/clang64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.42.0")
-- Found FLEX: C:/msys64/usr/bin/flex.exe (found version "2.6.4")
-- Found BISON: C:/msys64/usr/bin/bison.exe (found version "3.8.2")
-- Looking for libelf.h
-- Looking for libelf.h - found
-- Looking for libelf/libelf.h
-- Looking for libelf/libelf.h - found
-- Looking for usb.h
-- Looking for usb.h - not found
-- Looking for lusb0_usb.h
-- Looking for lusb0_usb.h - found
-- Looking for libusb.h
-- Looking for libusb.h - not found
-- Looking for libusb-1.0/libusb.h
-- Looking for libusb-1.0/libusb.h - found
-- Looking for hidapi/hidapi.h
-- Looking for hidapi/hidapi.h - found
-- Looking for ftdi_tcioflush
-- Looking for ftdi_tcioflush - found
-- Configuration summary:
-- ----------------------
-- CMAKE_HOST_SYSTEM: Windows-6.2.9200
-- CMAKE_SYSTEM: Windows-6.2.9200
-- CMAKE_FIND_ROOT_PATH:
-- CMAKE_C_COMPILER: C:/msys64/clang64/bin/cc.exe
-- CONFIG_DIR: C:/Program Files (x86)/avrdude/etc
-- AVRDUDE_FULL_VERSION: 7.2-20231102 (1c5898dd)
-- USE_EXTERNAL_LIBS: OFF
-- USE_LIBUSBWIN32: OFF
-- HAVE_LIBELF: C:/msys64/clang64/lib/libelf.a
-- HAVE_LIBUSB: C:/msys64/clang64/lib/libusb.a
-- HAVE_LIBUSB_1_0: C:/msys64/clang64/lib/libusb-1.0.a
-- HAVE_LIBUSB_WIN32: C:/msys64/clang64/lib/libusb0.dll.a
-- HAVE_LIBHIDAPI: C:/msys64/clang64/lib/libhidapi.a
-- HAVE_LIBFTDI: HAVE_LIBFTDI-NOTFOUND
-- HAVE_LIBFTDI1: C:/msys64/clang64/lib/libftdi1.a
-- HAVE_LIBREADLINE: Embedded MINGW
-- HAVE_LIBSERIALPORT: 1
-- HAVE_LIBELF_H: 1
-- HAVE_LIBELF_LIBELF_H: 1
-- HAVE_USB_H: 1
-- HAVE_LUSB0_USB_H: 1
-- HAVE_LIBUSB_H:
-- HAVE_LIBUSB_1_0_LIBUSB_H: 1
-- HAVE_HIDAPI_HIDAPI_H: 1
-- LIBUSB_COMPAT_DIR: C:/msys64/clang64/include/libusb-compat
-- HAVE_LIBGPIOD:
-- ----------------------
-- DO HAVE    libelf
-- DO HAVE    libusb
-- DO HAVE    libusb_1_0
-- DO HAVE    libhidapi
-- DON'T HAVE libftdi
-- DO HAVE    libftdi1
-- DO HAVE    libreadline
-- DO HAVE    libserialport
-- DISABLED   doc
-- DISABLED   parport
-- DISABLED   linuxgpio
-- DISABLED   linuxspi
-- ----------------------
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621
Change Dir: 'C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621'

Run Build Command(s): C:/msys64/clang64/bin/ninja.exe -v
[1/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\src && C:\msys64\usr\bin\flex.exe -oC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/lexer.c lexer.l"
[2/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\build_mingw64_nt-10.0-22621\src && C:\msys64\clang64\bin\cmake.exe -E copy C:/work/avr/avrdude_test/avrdude_issue1271/src/avrdude.conf.in avrdude.conf.in && C:\msys64\clang64\bin\cmake.exe -D "AVRDUDE_FULL_VERSION=7.2-20231102 (1c5898dd)" -D HAVE_PARPORT=0 -D HAVE_LINUXSPI=0 -D HAVE_LINUXGPIO=0 -D DEFAULT_PAR_PORT=lpt1 -D DEFAULT_SER_PORT=com1 -D DEFAULT_LINUXGPIO_PORT=unknown -P C:/work/avr/avrdude_test/avrdude_issue1271/src/configure.cmake"
[3/72] cmd.exe /C "cd /D C:\work\avr\avrdude_test\avrdude_issue1271\build_mingw64_nt-10.0-22621\src && C:\msys64\usr\bin\bison.exe --defines=C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.h -o C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.c C:/work/avr/avrdude_test/avrdude_issue1271/src/config_gram.y"
[4/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/arduino.c.obj -MF src\CMakeFiles\libavrdude.dir\arduino.c.obj.d -o src/CMakeFiles/libavrdude.dir/arduino.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/arduino.c
[5/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrintel.c.obj -MF src\CMakeFiles\libavrdude.dir\avrintel.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrintel.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrintel.c
[6/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr910.c.obj -MF src\CMakeFiles\libavrdude.dir\avr910.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr910.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avr910.c
[7/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrpart.c.obj -MF src\CMakeFiles\libavrdude.dir\avrpart.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrpart.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrpart.c
[8/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrcache.c.obj -MF src\CMakeFiles\libavrdude.dir\avrcache.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrcache.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrcache.c
[9/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/buspirate.c.obj -MF src\CMakeFiles\libavrdude.dir\buspirate.c.obj.d -o src/CMakeFiles/libavrdude.dir/buspirate.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/buspirate.c
[10/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avr.c.obj -MF src\CMakeFiles\libavrdude.dir\avr.c.obj.d -o src/CMakeFiles/libavrdude.dir/avr.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avr.c
[11/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/crc16.c.obj -MF src\CMakeFiles\libavrdude.dir\crc16.c.obj.d -o src/CMakeFiles/libavrdude.dir/crc16.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/crc16.c
[12/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/butterfly.c.obj -MF src\CMakeFiles\libavrdude.dir\butterfly.c.obj.d -o src/CMakeFiles/libavrdude.dir/butterfly.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/butterfly.c
[13/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/bitbang.c.obj -MF src\CMakeFiles\libavrdude.dir\bitbang.c.obj.d -o src/CMakeFiles/libavrdude.dir/bitbang.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/bitbang.c
[14/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/config.c.obj -MF src\CMakeFiles\libavrdude.dir\config.c.obj.d -o src/CMakeFiles/libavrdude.dir/config.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/config.c
[15/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dfu.c.obj -MF src\CMakeFiles\libavrdude.dir\dfu.c.obj.d -o src/CMakeFiles/libavrdude.dir/dfu.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/dfu.c
[16/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi_tpi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrftdi_tpi.c
[17/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/confwin.c.obj -MF src\CMakeFiles\libavrdude.dir\confwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/confwin.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/confwin.c
[18/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/dryrun.c.obj -MF src\CMakeFiles\libavrdude.dir\dryrun.c.obj.d -o src/CMakeFiles/libavrdude.dir/dryrun.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/dryrun.c
[19/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip1.c.obj -MF src\CMakeFiles\libavrdude.dir\flip1.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip1.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/flip1.c
[20/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/flip2.c.obj -MF src\CMakeFiles\libavrdude.dir\flip2.c.obj.d -o src/CMakeFiles/libavrdude.dir/flip2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/flip2.c
[21/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/leds.c.obj -MF src\CMakeFiles\libavrdude.dir\leds.c.obj.d -o src/CMakeFiles/libavrdude.dir/leds.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/leds.c
[22/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -MF src\CMakeFiles\libavrdude.dir\avrftdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/avrftdi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/avrftdi.c
[23/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ch341a.c.obj -MF src\CMakeFiles\libavrdude.dir\ch341a.c.obj.d -o src/CMakeFiles/libavrdude.dir/ch341a.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ch341a.c
[24/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxgpio.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/linuxgpio.c
[25/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -MF src\CMakeFiles\libavrdude.dir\linuxspi.c.obj.d -o src/CMakeFiles/libavrdude.dir/linuxspi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/linuxspi.c
[26/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/fileio.c.obj -MF src\CMakeFiles\libavrdude.dir\fileio.c.obj.d -o src/CMakeFiles/libavrdude.dir/fileio.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/fileio.c
[27/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/par.c.obj -MF src\CMakeFiles\libavrdude.dir\par.c.obj.d -o src/CMakeFiles/libavrdude.dir/par.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/par.c
[28/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkI.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtagmkI.c
[29/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/lists.c.obj -MF src\CMakeFiles\libavrdude.dir\lists.c.obj.d -o src/CMakeFiles/libavrdude.dir/lists.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/lists.c
[30/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pgm.c
[31/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -MF src\CMakeFiles\libavrdude.dir\micronucleus.c.obj.d -o src/CMakeFiles/libavrdude.dir/micronucleus.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/micronucleus.c
[32/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -MF src\CMakeFiles\libavrdude.dir\pgm_type.c.obj.d -o src/CMakeFiles/libavrdude.dir/pgm_type.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pgm_type.c
[33/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppi.c.obj -MF src\CMakeFiles\libavrdude.dir\ppi.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ppi.c
[34/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serbb_posix.c
[35/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -MF src\CMakeFiles\libavrdude.dir\ppiwin.c.obj.d -o src/CMakeFiles/libavrdude.dir/ppiwin.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ppiwin.c
[36/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pindefs.c.obj -MF src\CMakeFiles\libavrdude.dir\pindefs.c.obj.d -o src/CMakeFiles/libavrdude.dir/pindefs.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pindefs.c
[37/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_posix.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_posix.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_posix.c
[38/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -MF src\CMakeFiles\libavrdude.dir\jtagmkII.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtagmkII.c
[39/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_avrdoper.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_avrdoper.c
[40/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/jtag3.c.obj -MF src\CMakeFiles\libavrdude.dir\jtag3.c.obj.d -o src/CMakeFiles/libavrdude.dir/jtag3.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/jtag3.c
[41/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ft245r.c.obj -MF src\CMakeFiles\libavrdude.dir\ft245r.c.obj.d -o src/CMakeFiles/libavrdude.dir/ft245r.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ft245r.c
[42/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -MF src\CMakeFiles\libavrdude.dir\serialadapter.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialadapter.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serialadapter.c
[43/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500generic.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500generic.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500generic.c
[44/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -MF src\CMakeFiles\libavrdude.dir\serialupdi.c.obj.d -o src/CMakeFiles/libavrdude.dir/serialupdi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serialupdi.c
[45/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\serbb_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/serbb_win32.c
[46/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/teensy.c.obj -MF src\CMakeFiles\libavrdude.dir\teensy.c.obj.d -o src/CMakeFiles/libavrdude.dir/teensy.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/teensy.c
[47/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500.c
[48/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/pickit2.c.obj -MF src\CMakeFiles\libavrdude.dir\pickit2.c.obj.d -o src/CMakeFiles/libavrdude.dir/pickit2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/pickit2.c
[49/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/strutil.c.obj -MF src\CMakeFiles\libavrdude.dir\strutil.c.obj.d -o src/CMakeFiles/libavrdude.dir/strutil.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/strutil.c
[50/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_readwrite.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_readwrite.c
[51/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_state.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_state.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_state.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_state.c
[52/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_link.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_link.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_link.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_link.c
[53/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -MF src\CMakeFiles\libavrdude.dir\ser_win32.c.obj.d -o src/CMakeFiles/libavrdude.dir/ser_win32.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_win32.c
C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_win32.c:484:3: warning: comparison of integers of different signs: 'SOCKET' (aka 'unsigned long long') and 'const int' [-Wsign-compare]
  484 |                 FD_SET(fd->ifd, &rfds);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
C:/msys64/clang64/include/psdk_inc/_fd_types.h:77:40: note: expanded from macro 'FD_SET'
   77 |                 if (((fd_set *)(set))->fd_array[__i] == (fd)) {         \
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~
C:/work/avr/avrdude_test/avrdude_issue1271/src/ser_win32.c:643:3: warning: comparison of integers of different signs: 'SOCKET' (aka 'unsigned long long') and 'const int' [-Wsign-compare]
  643 |                 FD_SET(fd->ifd, &rfds);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
C:/msys64/clang64/include/psdk_inc/_fd_types.h:77:40: note: expanded from macro 'FD_SET'
   77 |                 if (((fd_set *)(set))->fd_array[__i] == (fd)) {         \
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^   ~~
2 warnings generated.
[54/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -MF src\CMakeFiles\libavrdude.dir\updi_nvm.c.obj.d -o src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/updi_nvm.c
[55/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_hidapi.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usb_hidapi.c
[56/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -MF src\CMakeFiles\libavrdude.dir\usb_libusb.c.obj.d -o src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usb_libusb.c
[57/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/wiring.c.obj -MF src\CMakeFiles\libavrdude.dir\wiring.c.obj.d -o src/CMakeFiles/libavrdude.dir/wiring.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/wiring.c
[58/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/update.c.obj -MF src\CMakeFiles\libavrdude.dir\update.c.obj.d -o src/CMakeFiles/libavrdude.dir/update.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/update.c
[59/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -MF src\CMakeFiles\libavrdude.dir\usbtiny.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbtiny.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usbtiny.c
[60/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -MF src\CMakeFiles\libavrdude.dir\stk500v2.c.obj.d -o src/CMakeFiles/libavrdude.dir/stk500v2.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/stk500v2.c
[61/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/xbee.c.obj -MF src\CMakeFiles\libavrdude.dir\xbee.c.obj.d -o src/CMakeFiles/libavrdude.dir/xbee.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/xbee.c
[62/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -MF src\CMakeFiles\libavrdude.dir\__\config_gram.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/config_gram.c
[63/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -MF src\CMakeFiles\libavrdude.dir\__\lexer.c.obj.d -o src/CMakeFiles/libavrdude.dir/__/lexer.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/lexer.c
[64/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/main.c.obj -MF src\CMakeFiles\avrdude.dir\main.c.obj.d -o src/CMakeFiles/avrdude.dir/main.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/main.c
[65/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/urclock.c.obj -MF src\CMakeFiles\libavrdude.dir\urclock.c.obj.d -o src/CMakeFiles/libavrdude.dir/urclock.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/urclock.c
[66/72] C:\msys64\clang64\bin\windres.exe -O coff -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -I C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -I C:/work/avr/avrdude_test/avrdude_issue1271 -I C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -I C:/work/avr/avrdude_test/avrdude_issue1271/src -I C:/msys64/clang64/include/libusb-compat -I C:/work/avr/avrdude_test/avrdude_issue1271/src/mingw  C:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src/windows.rc src/CMakeFiles/avrdude.dir/windows.rc.obj
[67/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/usbasp.c.obj -MF src\CMakeFiles\libavrdude.dir\usbasp.c.obj.d -o src/CMakeFiles/libavrdude.dir/usbasp.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/usbasp.c
[68/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/libavrdude.dir/term.c.obj -MF src\CMakeFiles\libavrdude.dir\term.c.obj.d -o src/CMakeFiles/libavrdude.dir/term.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c
[69/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/whereami.c.obj -MF src\CMakeFiles\avrdude.dir\whereami.c.obj.d -o src/CMakeFiles/avrdude.dir/whereami.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/whereami.c
[70/72] C:\msys64\clang64\bin\cc.exe -DCONFIG_DIR="\"C:/Program Files (x86)/avrdude/etc\"" -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621/src -IC:/work/avr/avrdude_test/avrdude_issue1271 -IC:/work/avr/avrdude_test/avrdude_issue1271/build_mingw64_nt-10.0-22621 -IC:/work/avr/avrdude_test/avrdude_issue1271/src -IC:/msys64/clang64/include/libusb-compat -IC:/work/avr/avrdude_test/avrdude_issue1271/src/mingw -O2 -g -DNDEBUG -std=gnu11 -Wall -Wextra -Wno-unused-parameter -MD -MT src/CMakeFiles/avrdude.dir/developer_opts.c.obj -MF src\CMakeFiles\avrdude.dir\developer_opts.c.obj.d -o src/CMakeFiles/avrdude.dir/developer_opts.c.obj -c C:/work/avr/avrdude_test/avrdude_issue1271/src/developer_opts.c
[71/72] cmd.exe /C "cd . && C:\msys64\clang64\bin\cmake.exe -E rm -f src\libavrdude.a && C:\msys64\clang64\bin\llvm-ar.exe qc src\libavrdude.a  src/CMakeFiles/libavrdude.dir/arduino.c.obj src/CMakeFiles/libavrdude.dir/avr.c.obj src/CMakeFiles/libavrdude.dir/avr910.c.obj src/CMakeFiles/libavrdude.dir/avrcache.c.obj src/CMakeFiles/libavrdude.dir/avrftdi.c.obj src/CMakeFiles/libavrdude.dir/avrftdi_tpi.c.obj src/CMakeFiles/libavrdude.dir/avrintel.c.obj src/CMakeFiles/libavrdude.dir/avrpart.c.obj src/CMakeFiles/libavrdude.dir/bitbang.c.obj src/CMakeFiles/libavrdude.dir/buspirate.c.obj src/CMakeFiles/libavrdude.dir/butterfly.c.obj src/CMakeFiles/libavrdude.dir/ch341a.c.obj src/CMakeFiles/libavrdude.dir/config.c.obj src/CMakeFiles/libavrdude.dir/confwin.c.obj src/CMakeFiles/libavrdude.dir/crc16.c.obj src/CMakeFiles/libavrdude.dir/dfu.c.obj src/CMakeFiles/libavrdude.dir/dryrun.c.obj src/CMakeFiles/libavrdude.dir/fileio.c.obj src/CMakeFiles/libavrdude.dir/flip1.c.obj src/CMakeFiles/libavrdude.dir/flip2.c.obj src/CMakeFiles/libavrdude.dir/ft245r.c.obj src/CMakeFiles/libavrdude.dir/jtagmkI.c.obj src/CMakeFiles/libavrdude.dir/jtagmkII.c.obj src/CMakeFiles/libavrdude.dir/jtag3.c.obj src/CMakeFiles/libavrdude.dir/leds.c.obj src/CMakeFiles/libavrdude.dir/linuxgpio.c.obj src/CMakeFiles/libavrdude.dir/linuxspi.c.obj src/CMakeFiles/libavrdude.dir/lists.c.obj src/CMakeFiles/libavrdude.dir/micronucleus.c.obj src/CMakeFiles/libavrdude.dir/par.c.obj src/CMakeFiles/libavrdude.dir/pgm.c.obj src/CMakeFiles/libavrdude.dir/pgm_type.c.obj src/CMakeFiles/libavrdude.dir/pickit2.c.obj src/CMakeFiles/libavrdude.dir/pindefs.c.obj src/CMakeFiles/libavrdude.dir/ppi.c.obj src/CMakeFiles/libavrdude.dir/ppiwin.c.obj src/CMakeFiles/libavrdude.dir/serbb_posix.c.obj src/CMakeFiles/libavrdude.dir/serbb_win32.c.obj src/CMakeFiles/libavrdude.dir/ser_avrdoper.c.obj src/CMakeFiles/libavrdude.dir/ser_posix.c.obj src/CMakeFiles/libavrdude.dir/ser_win32.c.obj src/CMakeFiles/libavrdude.dir/serialadapter.c.obj src/CMakeFiles/libavrdude.dir/serialupdi.c.obj src/CMakeFiles/libavrdude.dir/stk500.c.obj src/CMakeFiles/libavrdude.dir/stk500v2.c.obj src/CMakeFiles/libavrdude.dir/stk500generic.c.obj src/CMakeFiles/libavrdude.dir/strutil.c.obj src/CMakeFiles/libavrdude.dir/teensy.c.obj src/CMakeFiles/libavrdude.dir/term.c.obj src/CMakeFiles/libavrdude.dir/updi_link.c.obj src/CMakeFiles/libavrdude.dir/updi_nvm.c.obj src/CMakeFiles/libavrdude.dir/updi_readwrite.c.obj src/CMakeFiles/libavrdude.dir/updi_state.c.obj src/CMakeFiles/libavrdude.dir/urclock.c.obj src/CMakeFiles/libavrdude.dir/usbasp.c.obj src/CMakeFiles/libavrdude.dir/usb_hidapi.c.obj src/CMakeFiles/libavrdude.dir/usb_libusb.c.obj src/CMakeFiles/libavrdude.dir/usbtiny.c.obj src/CMakeFiles/libavrdude.dir/update.c.obj src/CMakeFiles/libavrdude.dir/wiring.c.obj src/CMakeFiles/libavrdude.dir/xbee.c.obj src/CMakeFiles/libavrdude.dir/__/lexer.c.obj src/CMakeFiles/libavrdude.dir/__/config_gram.c.obj && C:\msys64\clang64\bin\llvm-ranlib.exe src\libavrdude.a && cd ."
[72/72] cmd.exe /C "cd . && C:\msys64\clang64\bin\cc.exe -O2 -g -DNDEBUG  src/CMakeFiles/avrdude.dir/main.c.obj src/CMakeFiles/avrdude.dir/developer_opts.c.obj src/CMakeFiles/avrdude.dir/whereami.c.obj src/CMakeFiles/avrdude.dir/windows.rc.obj -o src\avrdude.exe -Wl,--out-implib,src\libavrdude.dll.a -Wl,--major-image-version,0,--minor-image-version,0  src/libavrdude.a  -lm  C:/msys64/clang64/lib/libelf.a  C:/msys64/clang64/lib/libusb.a  C:/msys64/clang64/lib/libusb-1.0.a  C:/msys64/clang64/lib/libhidapi.a  C:/msys64/clang64/lib/libftdi1.a  C:/msys64/clang64/lib/libserialport.a  -lsetupapi  -lhid  -lws2_32  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
FAILED: src/avrdude.exe
cmd.exe /C "cd . && C:\msys64\clang64\bin\cc.exe -O2 -g -DNDEBUG  src/CMakeFiles/avrdude.dir/main.c.obj src/CMakeFiles/avrdude.dir/developer_opts.c.obj src/CMakeFiles/avrdude.dir/whereami.c.obj src/CMakeFiles/avrdude.dir/windows.rc.obj -o src\avrdude.exe -Wl,--out-implib,src\libavrdude.dll.a -Wl,--major-image-version,0,--minor-image-version,0  src/libavrdude.a  -lm  C:/msys64/clang64/lib/libelf.a  C:/msys64/clang64/lib/libusb.a  C:/msys64/clang64/lib/libusb-1.0.a  C:/msys64/clang64/lib/libhidapi.a  C:/msys64/clang64/lib/libftdi1.a  C:/msys64/clang64/lib/libserialport.a  -lsetupapi  -lhid  -lws2_32  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
ld.lld: error: undefined symbol: rl_callback_handler_install
>>> referenced by C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2171
>>>               libavrdude.a(term.c.obj):(terminal_mode)
>>> referenced by C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2154
>>>               libavrdude.a(term.c.obj):(term_gotline)

ld.lld: error: undefined symbol: rl_callback_read_char
>>> referenced by C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2182
>>>               libavrdude.a(term.c.obj):(terminal_mode)

ld.lld: error: undefined symbol: add_history
>>> referenced by C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2139
>>>               libavrdude.a(term.c.obj):(term_gotline)

ld.lld: error: undefined symbol: rl_callback_handler_remove
>>> referenced by C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2153
>>>               libavrdude.a(term.c.obj):(term_gotline)
>>> referenced by C:/work/avr/avrdude_test/avrdude_issue1271/src/term.c:2163
>>>               libavrdude.a(term.c.obj):(term_gotline)

ld.lld: error: undefined symbol: rl_readline_version
>>> referenced by libavrdude.a(term.c.obj):(.refptr.rl_readline_version)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Build failed.

@Youw
Copy link
Contributor

Youw commented Nov 2, 2023

I think we may need to change some ifdefs in the file term.c

No, not that.
mingw/readline.cpp wasn't built at all. I was woudering why...

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 2, 2023

I think we may need to change some ifdefs in the file term.c

No, not that. mingw/readline.cpp wasn't built at all. I was woudering why...

Wonderful. Now it is a success.

@Youw
Copy link
Contributor

Youw commented Nov 2, 2023

I'l unsubscribing from this conversation now.
If anything - tag me explicitly again.

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 3, 2023

@stefanrueger and @Youw

One potential side effect of using tje C++ readline.cpp is that this may bring more dependancies (GCC C++ related run time files) to MinGW build. It is not a real problem for MSVC build but it may be not so desired with MinGW.

Just wondering how difficult it is to rewrite readline.cpp to readline.c. I am for sure not up to the task but I think maybe you can sort it out fast.

MINGW64 /c/work/avr/avrdude_test/avrdude_bin/github_bin/pr1553/avrdude-mingw-x86_64
$ ldd avrdude.exe
        ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ff8f8590000)
        KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ff8f62f0000)
        KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7ff8f5ec0000)
        ADVAPI32.dll => /c/WINDOWS/System32/ADVAPI32.dll (0x7ff8f68e0000)
        msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7ff8f69b0000)
        sechost.dll => /c/WINDOWS/System32/sechost.dll (0x7ff8f7f60000)
        RPCRT4.dll => /c/WINDOWS/System32/RPCRT4.dll (0x7ff8f8430000)
        SETUPAPI.dll => /c/WINDOWS/System32/SETUPAPI.dll (0x7ff8f77f0000)
        WS2_32.dll => /c/WINDOWS/System32/WS2_32.dll (0x7ff8f6850000)
        HID.DLL => /c/WINDOWS/SYSTEM32/HID.DLL (0x7ff8f4120000)
        libgcc_s_seh-1.dll => /mingw64/bin/libgcc_s_seh-1.dll (0x7ff8dd950000)
        libwinpthread-1.dll => /mingw64/bin/libwinpthread-1.dll (0x1b97c320000)
        libwinpthread-1.dll => /mingw64/bin/libwinpthread-1.dll (0x7ff8dd930000)
        libstdc++-6.dll => /mingw64/bin/libstdc++-6.dll (0x7ff87e500000)
        cfgmgr32.DLL => /c/WINDOWS/SYSTEM32/cfgmgr32.DLL (0x7ff8f5580000)
        ucrtbase.dll => /c/WINDOWS/System32/ucrtbase.dll (0x7ff8f5da0000)

https://github.com/avrdudes/avrdude/blob/35f735c3124dc6aa7631323e6f79892c8a399bb1/src/mingw/readline.cpp

//
// readline.cpp
// Copyright (C) 2022 Marius Greuel
// SPDX-License-Identifier: GPL-2.0-or-later
//

#include <string.h>
#include <iostream>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
#include "readline/readline.h"
#include "readline/history.h"

int rl_readline_version = 0x0502;

static rl_vcpfunc_t* rl_handler;
static std::unique_ptr<std::thread> rl_thread;
static std::mutex rl_mutex;
static std::string rl_line;
static bool rl_has_line = false;

static void get_line_thread()
{
    std::string line;
    std::getline(std::cin, line);

    const std::lock_guard<std::mutex> lock(rl_mutex);
    rl_line = line;
    rl_has_line = true;
}

static void call_handler(const char* string)
{
    if (rl_thread)
    {
        rl_thread->join();
        rl_thread = nullptr;
    }

    if (rl_handler != nullptr)
    {
        if (string == nullptr)
        {
            rl_handler(nullptr);
        }
        else
        {
            rl_handler(_strdup(string));
        }
    }
}

int rl_input_available(void)
{
    return 1;
}

void rl_callback_read_char(void)
{
    if (std::cin.eof())
    {
        call_handler(nullptr);
    }
    else if (!rl_thread)
    {
        rl_thread = std::make_unique<std::thread>(get_line_thread);
    }
    else
    {
        const std::lock_guard<std::mutex> lock(rl_mutex);
        if (rl_has_line)
        {
            rl_has_line = false;
            call_handler(rl_line.c_str());
        }
    }
}

void rl_callback_handler_install(char* prompt, rl_vcpfunc_t* handler)
{
    rl_handler = handler;

    std::cout << prompt;
}

void rl_callback_handler_remove(void)
{
    rl_handler = nullptr;
}

void add_history(const char*)
{
}

@Youw
Copy link
Contributor

Youw commented Nov 3, 2023

Lets discuss this as part fo #1553

@mcuee
Copy link
Collaborator Author

mcuee commented Nov 14, 2023

Unfortunately readline.cpp does not work under MinGW. I have abondoned PR #1553.

@mariusgreuel
When you got some time, please take a look at this issue again. Thanks.

@mcuee mcuee changed the title To adopt PR #1264 approach of using Readline replacement for MinGW build To adopt PR #1264 approach of using Readline replacement for MinGW build (Low Priority) Jan 29, 2024
@mcuee
Copy link
Collaborator Author

mcuee commented Jan 29, 2024

After the merging of #1576, this issue becomes less important since GNU Readline will work in most cases for the MinGW build. It is still nice to have but can be of lower priority.

@mcuee
Copy link
Collaborator Author

mcuee commented Mar 3, 2024

Close this one as not planned until someone is actibely working on this issue.

This issue is also linked here.
#1710

@mcuee mcuee closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants