| Cost | $0.014 |
| Total elapsed time | 1m18s |
| LLM inference time | 11s |
| Command execution time | 1m7s |
| Commands executed | 11 |
All details >
| Attempt ID | 9mkvm7dl9sgdq | Attempt group | run-16-09-22-05 |
| Revision | fb5c74bd2fee | AWS Instance | m8i.2xlarge |
| Start time | 2025-09-16T21:54:38.203Z | End time | 2025-09-16T21:56:03.172Z |
| Task | jq-windows2 | Environment | ubuntu-22.04-amd64-wine |
| Model | | OpenRouter slug | google/gemini-2.5-flash |
| Temperature | 1 | Explicit prompt caching | false |
| User msg after tool call | false | Max tool calls | 100 |
| Total timeout seconds | 2400 | Single command timeout | 1200 |
| Cost | $0.014 | Duration | 1m18s |
| LLM inference time | 11s | Command execution time | 1m7s |
| Final context tokens | 9,572 | Total output tokens | 1,021 |
| Output reasoning tokens | 0 | Messages | 25 |
| Assistant messages | 12 | User messages | 1 |
| System messages | 1 | Commands executed | 11 |
jq 1.8.1 is a command-line JSON utility for viewing and transforming JSON.
Project link: github.com/jqlang/jq
Task:
Compile and install jq to a specific location. Cross-compile to Windows. This task is a variant of jq-windows, without a hint to do a static build.
Difficulties:
Cross-compilation to Windows, setting up the cross-compilation toolchain (compilers, etc), making sure that there are no dynamic libraries.
Environment:
Ubuntu 22.04 on amd64, with internet access.
You are a package-building specialist operating a Ubuntu 22.04 bash shell via one tool: run_terminal_cmd.
The current working directory of every run_terminal_cmd is /home/peter.
Execution rules:
- Always pass non-interactive flags for any command that could prompt (e.g., -y, --yes, DEBIAN_FRONTEND=noninteractive).
- Don't include any newlines in the command.
- You can use sudo.
If you encounter any errors or issues while doing the user's request, you must fix them and continue the task.
At the end verify you did the user request correctly.
You are given jq v1.8.1 source code at jq.tar.gz. Please compile the jq package for amd64 Windows and install it to /home/peter/result/jq.exe. Make sure it runs correctly via the installed wine.
compile-bench> sudo apt-get update && sudo apt-get install -y mingw-w64 wine
0% [Working]
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
0% [Waiting for headers]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
0% [Waiting for headers] [2 InRelease 14.2 kB/129 kB 11%]
0% [Waiting for headers] [2 InRelease 14.2 kB/129 kB 11%]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
0% [3 InRelease 14.2 kB/128 kB 11%] [2 InRelease 14.2 kB/129 kB 11%]
0% [3 InRelease 83.7 kB/128 kB 65%]
0% [3 InRelease 110 kB/128 kB 86%]
0% [Waiting for headers]
0% [Waiting for headers] [Waiting for headers]
Get:4 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [80.3 kB]
0% [Waiting for headers] [4 Packages 2658 B/80.3 kB 3%]
Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
0% [5 InRelease 2588 B/127 kB 2%] [4 Packages 22.9 kB/80.3 kB 29%]
0% [5 InRelease 69.2 kB/127 kB 54%]
0% [4 Packages store 0 B] [5 InRelease 69.2 kB/127 kB 54%] [Waiting for headers
0% [5 InRelease 75.0 kB/127 kB 59%] [Waiting for headers]
0% [Waiting for headers]
20% [Waiting for headers] [Waiting for headers]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1274 kB]
20% [Waiting for headers] [6 Packages 2655 B/1274 kB 0%]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1581 kB]
20% [7 Packages 5551 B/1581 kB 0%] [6 Packages 54.8 kB/1274 kB 4%]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [3311 kB]
33% [7 Packages 1403 kB/1581 kB 89%] [8 Packages 4096 B/3311 kB 0%]
33% [6 Packages store 0 B] [7 Packages 1403 kB/1581 kB 89%] [8 Packages 11.3 kB
35% [6 Packages store 0 B] [Waiting for headers] [8 Packages 162 kB/3311 kB 5%]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [3626 kB]
35% [6 Packages store 0 B] [9 Packages 1018 B/3626 kB 0%] [8 Packages 162 kB/33
39% [9 Packages 410 kB/3626 kB 11%] [8 Packages 486 kB/3311 kB 15%]
39% [7 Packages store 0 B] [9 Packages 410 kB/3626 kB 11%] [8 Packages 486 kB/3
[command output truncated]
86-64 (2.38-3ubuntu1+9build1) ...
Setting up gcc-mingw-w64-base:amd64 (10.3.0-14ubuntu1+24.3) ...
Setting up gcc-mingw-w64-i686-posix-runtime (10.3.0-14ubuntu1+24.3) ...
Setting up binutils-mingw-w64-i686 (2.38-3ubuntu1+9build1) ...
Setting up gcc-mingw-w64-x86-64-win32-runtime (10.3.0-14ubuntu1+24.3) ...
Setting up gcc-mingw-w64-i686-win32-runtime (10.3.0-14ubuntu1+24.3) ...
Setting up mingw-w64-common (8.0.0-1) ...
Setting up mingw-w64-x86-64-dev (8.0.0-1) ...
Setting up gcc-mingw-w64-x86-64-posix-runtime (10.3.0-14ubuntu1+24.3) ...
Setting up gcc-mingw-w64-x86-64-posix (10.3.0-14ubuntu1+24.3) ...
update-alternatives: using /usr/bin/x86_64-w64-mingw32-gcc-posix to provide /usr/bin/x86_64-w64-mingw32-gcc (x86_64-w64-mingw32-gcc) in auto mode
Setting up gcc-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...
update-alternatives: using /usr/bin/x86_64-w64-mingw32-gcc-win32 to provide /usr/bin/x86_64-w64-mingw32-gcc (x86_64-w64-mingw32-gcc) in auto mode
Setting up gcc-mingw-w64-x86-64 (10.3.0-14ubuntu1+24.3) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/x86_64-w64-mingw32-gcc-win32 because link group x86_64-w64-mingw32-gcc is broken
update-alternatives: warning: skip creation of /usr/bin/x86_64-w64-mingw32-gcc-8 because associated file /usr/bin/x86_64-w64-mingw32-gcc-8.3-win32 (of link group x86_64-w64-mingw32-gcc) doesn't exist
Setting up mingw-w64-i686-dev (8.0.0-1) ...
Setting up gcc-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...
update-alternatives: using /usr/bin/i686-w64-mingw32-gcc-win32 to provide /usr/bin/i686-w64-mingw32-gcc (i686-w64-mingw32-gcc) in auto mode
Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ...
update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode
Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ...
update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode
Setting up gcc-mingw-w64-i686-posix (10.3.0-14ubuntu1+24.3) ...
Setting up g++-mingw-w64-x86-64-posix (10.3.0-14ubuntu1+24.3) ...
Setting up gcc-mingw-w64-i686 (10.3.0-14ubuntu1+24.3) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/i686-w64-mingw32-gcc-win32 because link group i686-w64-mingw32-gcc is broken
update-alternatives: warning: skip creation of /usr/bin/i686-w64-mingw32-gcc-8 because associated file /usr/bin/i686-w64-mingw32-gcc-8.3-win32 (of link group i686-w64-mingw32-gcc) doesn't exist
Setting up g++-mingw-w64-x86-64 (10.3.0-14ubuntu1+24.3) ...
Setting up gcc-mingw-w64 (10.3.0-14ubuntu1+24.3) ...
Setting up g++-mingw-w64-i686-posix (10.3.0-14ubuntu1+24.3) ...
Setting up g++-mingw-w64-i686 (10.3.0-14ubuntu1+24.3) ...
Setting up g++-mingw-w64 (10.3.0-14ubuntu1+24.3) ...
Setting up mingw-w64 (8.0.0-1) ...
Processing triggers for libwine:amd64 (6.0.3~repack-1) ...
↓ 47 lines
0% [Working] Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease 0% [Waiting for headers] Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB] 0% [Waiting for headers] [2 InRelease 14.2 kB/129 kB 11%] 0% [Waiting for headers] [2 InRelease 14.2 kB/129 kB 11%] Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB] 0% [3 InRelease 14.2 kB/128 kB 11%] [2 InRelease 14.2 kB/129 kB 11%] 0% [3 InRelease 83.7 kB/128 kB 65%] 0% [3 InRelease 110 kB/128 kB 86%] 0% [Waiting for headers] 0% [Waiting for headers] [Waiting for headers] Get:4 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [80.3 kB] 0% [Waiting for headers] [4 Packages 2658 B/80.3 kB 3%] Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB] 0% [5 InRelease 2588 B/127 kB 2%] [4 Packages 22.9 kB/80.3 kB 29%] 0% [5 InRelease 69.2 kB/127 kB 54%] 0% [4 Packages store 0 B] [5 InRelease 69.2 kB/127 kB 54%] [Waiting for headers 0% [5 InRelease 75.0 kB/127 kB 59%] [Waiting for headers] 0% [Waiting for headers] 20% [Waiting for headers] [Waiting for headers] Get:6 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1274 kB] 20% [Waiting for headers] [6 Packages 2655 B/1274 kB 0%] Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1581 kB] 20% [7 Packages 5551 B/1581 kB 0%] [6 Packages 54.8 kB/1274 kB 4%] Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [3311 kB] 33% [7 Packages 1403 kB/1581 kB 89%] [8 Packages 4096 B/3311 kB 0%] 33% [6 Packages store 0 B] [7 Packages 1403 kB/1581 kB 89%] [8 Packages 11.3 kB 35% [6 Packages store 0 B] [Waiting for headers] [8 Packages 162 kB/3311 kB 5%] Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [3626 kB] 35% [6 Packages store 0 B] [9 Packages 1018 B/3626 kB 0%] [8 Packages 162 kB/33 39% [9 Packages 410 kB/3626 kB 11%] [8 Packages 486 kB/3311 kB 15%] 39% [7 Packages store 0 B] [9 Packages 410 kB/3626 kB 11%] [8 Packages 486 kB/3 [command output truncated] 86-64 (2.38-3ubuntu1+9build1) ... Setting up gcc-mingw-w64-base:amd64 (10.3.0-14ubuntu1+24.3) ... Setting up gcc-mingw-w64-i686-posix-runtime (10.3.0-14ubuntu1+24.3) ... Setting up binutils-mingw-w64-i686 (2.38-3ubuntu1+9build1) ... Setting up gcc-mingw-w64-x86-64-win32-runtime (10.3.0-14ubuntu1+24.3) ... Setting up gcc-mingw-w64-i686-win32-runtime (10.3.0-14ubuntu1+24.3) ... Setting up mingw-w64-common (8.0.0-1) ... Setting up mingw-w64-x86-64-dev (8.0.0-1) ... Setting up gcc-mingw-w64-x86-64-posix-runtime (10.3.0-14ubuntu1+24.3) ... Setting up gcc-mingw-w64-x86-64-posix (10.3.0-14ubuntu1+24.3) ... update-alternatives: using /usr/bin/x86_64-w64-mingw32-gcc-posix to provide /usr/bin/x86_64-w64-mingw32-gcc (x86_64-w64-mingw32-gcc) in auto mode Setting up gcc-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ... update-alternatives: using /usr/bin/x86_64-w64-mingw32-gcc-win32 to provide /usr/bin/x86_64-w64-mingw32-gcc (x86_64-w64-mingw32-gcc) in auto mode Setting up gcc-mingw-w64-x86-64 (10.3.0-14ubuntu1+24.3) ... update-alternatives: warning: forcing reinstallation of alternative /usr/bin/x86_64-w64-mingw32-gcc-win32 because link group x86_64-w64-mingw32-gcc is broken update-alternatives: warning: skip creation of /usr/bin/x86_64-w64-mingw32-gcc-8 because associated file /usr/bin/x86_64-w64-mingw32-gcc-8.3-win32 (of link group x86_64-w64-mingw32-gcc) doesn't exist Setting up mingw-w64-i686-dev (8.0.0-1) ... Setting up gcc-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ... update-alternatives: using /usr/bin/i686-w64-mingw32-gcc-win32 to provide /usr/bin/i686-w64-mingw32-gcc (i686-w64-mingw32-gcc) in auto mode Setting up g++-mingw-w64-i686-win32 (10.3.0-14ubuntu1+24.3) ... update-alternatives: using /usr/bin/i686-w64-mingw32-g++-win32 to provide /usr/bin/i686-w64-mingw32-g++ (i686-w64-mingw32-g++) in auto mode Setting up g++-mingw-w64-x86-64-win32 (10.3.0-14ubuntu1+24.3) ... update-alternatives: using /usr/bin/x86_64-w64-mingw32-g++-win32 to provide /usr/bin/x86_64-w64-mingw32-g++ (x86_64-w64-mingw32-g++) in auto mode Setting up gcc-mingw-w64-i686-posix (10.3.0-14ubuntu1+24.3) ... Setting up g++-mingw-w64-x86-64-posix (10.3.0-14ubuntu1+24.3) ... Setting up gcc-mingw-w64-i686 (10.3.0-14ubuntu1+24.3) ... update-alternatives: warning: forcing reinstallation of alternative /usr/bin/i686-w64-mingw32-gcc-win32 because link group i686-w64-mingw32-gcc is broken update-alternatives: warning: skip creation of /usr/bin/i686-w64-mingw32-gcc-8 because associated file /usr/bin/i686-w64-mingw32-gcc-8.3-win32 (of link group i686-w64-mingw32-gcc) doesn't exist Setting up g++-mingw-w64-x86-64 (10.3.0-14ubuntu1+24.3) ... Setting up gcc-mingw-w64 (10.3.0-14ubuntu1+24.3) ... Setting up g++-mingw-w64-i686-posix (10.3.0-14ubuntu1+24.3) ... Setting up g++-mingw-w64-i686 (10.3.0-14ubuntu1+24.3) ... Setting up g++-mingw-w64 (10.3.0-14ubuntu1+24.3) ... Setting up mingw-w64 (8.0.0-1) ... Processing triggers for libwine:amd64 (6.0.3~repack-1) ...
The necessary tools have been installed. Now, let's extract the jq source code, compile it for Windows, and then verify the installation.
bash: ./configure: No such file or directory
It seems there was an error, as ./configure was not found. I made a mistake by assuming the configure script would be directly in the extracted directory. Let me list the contents to find the correct path to the jq source directory.
jq-1.8.1 jq.tar.gz
Ah, the source code is in jq-1.8.1. I will now re-run the configure and make commands from the correct directory.
compile-bench> cd jq-1.8.1 && DEBIAN_FRONTEND=noninteractive CFLAGS=-fPIC ./configure --host=x86_64-w64-mingw32 --prefix=/home/peter/result && make && make install checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-w64-mingw32-gcc accepts -g... yes
checking for x86_64-w64-mingw32-gcc option to enable C11 features... none needed
checking whether x86_64-w64-mingw32-gcc understands -c and -o together... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of x86_64-w64-mingw32-gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar
checking the archiver (x86_64-w64-mingw32-ar) interface... ar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-w64-mingw32-gcc... (cached) x86_64-w64-mingw32-gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether x86_64-w64-mingw32-gcc accepts -g... (cached) yes
checking for x86_64-w64-mingw32-gcc option to enable C11 features... (cached) none needed
checking whether x86_64-w64-mingw32-gcc understands -c and -o together... (cached) yes
checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E
checking for bison... no
checking for byacc... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-w64-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by x86_64-w64-mingw32-gcc... /usr/bin/x86_64-w64-mingw32-ld
checking if the linker (/usr/bin/x86_64-w64-mingw32-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-w64-mingw32-nm -B
checking the name lister (/usr/bin/x86_64-w64-mingw32-nm -B) interface... BSD n
[command output truncated]
ake[3]: Leaving directory '/home/peter/jq-1.8.1/vendor/oniguruma'
make[2]: Leaving directory '/home/peter/jq-1.8.1/vendor/oniguruma'
make[2]: Entering directory '/home/peter/jq-1.8.1'
mkdir -p src
GEN src/version.h
CC src/main.o
src/main.c:21:1: warning: function declaration isn't a prototype [ttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-prototypes-Wstrict-prototypes]8;;]
21 | extern void jv_tsd_dtoa_ctx_init();
| ^~~~~~
CCLD jq.exe
make[3]: Entering directory '/home/peter/jq-1.8.1'
mkdir -p src
GEN src/version.h
CC src/main.o
src/main.c:21:1: warning: function declaration isn't a prototype [ttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-prototypes-Wstrict-prototypes]8;;]
21 | extern void jv_tsd_dtoa_ctx_init();
| ^~~~~~
CCLD jq.exe
/usr/bin/mkdir -p '/home/peter/result/lib'
/bin/bash ./libtool --mode=install /usr/bin/install -c libjq.la '/home/peter/result/lib'
libtool: install: /usr/bin/install -c .libs/libjq.dll.a /home/peter/result/lib/libjq.dll.a
libtool: install: base_file=`basename libjq.la`
libtool: install: dlpath=`/bin/bash 2>&1 -c '. .libs/'libjq.la'i; echo libjq-1.dll'`
libtool: install: dldir=/home/peter/result/lib/`dirname ../bin/libjq-1.dll`
libtool: install: test -d /home/peter/result/lib/../bin || mkdir -p /home/peter/result/lib/../bin
libtool: install: /usr/bin/install -c .libs/libjq-1.dll /home/peter/result/lib/../bin/libjq-1.dll
libtool: install: chmod a+x /home/peter/result/lib/../bin/libjq-1.dll
libtool: install: if test -n '' && test -n 'x86_64-w64-mingw32-strip --strip-unneeded'; then eval 'x86_64-w64-mingw32-strip --strip-unneeded /home/peter/result/lib/../bin/libjq-1.dll' || exit 0; fi
libtool: install: /usr/bin/install -c .libs/libjq.lai /home/peter/result/lib/libjq.la
libtool: install: /usr/bin/install -c .libs/libjq.a /home/peter/result/lib/libjq.a
libtool: install: chmod 644 /home/peter/result/lib/libjq.a
libtool: install: x86_64-w64-mingw32-ranlib /home/peter/result/lib/libjq.a
/usr/bin/mkdir -p '/home/peter/result/bin'
/bin/bash ./libtool --mode=install /usr/bin/install -c jq.exe '/home/peter/result/bin'
libtool: install: /usr/bin/install -c .libs/jq.exe /home/peter/result/bin/jq.exe
/usr/bin/mkdir -p '/home/peter/result/share/doc/jq'
/usr/bin/install -c -m 644 README.md NEWS.md COPYING AUTHORS '/home/peter/result/share/doc/jq'
/usr/bin/mkdir -p '/home/peter/result/include'
/usr/bin/install -c -m 644 src/jv.h src/jq.h '/home/peter/result/include'
/usr/bin/mkdir -p '/home/peter/result/share/man/man1'
/usr/bin/install -c -m 644 jq.1 '/home/peter/result/share/man/man1'
/usr/bin/mkdir -p '/home/peter/result/lib/pkgconfig'
/usr/bin/install -c -m 644 libjq.pc '/home/peter/result/lib/pkgconfig'
make[3]: Leaving directory '/home/peter/jq-1.8.1'
make[2]: Leaving directory '/home/peter/jq-1.8.1'
make[1]: Leaving directory '/home/peter/jq-1.8.1'
↓ 104 lines
checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether x86_64-w64-mingw32-gcc accepts -g... yes
checking for x86_64-w64-mingw32-gcc option to enable C11 features... none needed
checking whether x86_64-w64-mingw32-gcc understands -c and -o together... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-w64-mingw32-strip... x86_64-w64-mingw32-strip
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of x86_64-w64-mingw32-gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for x86_64-w64-mingw32-ar... x86_64-w64-mingw32-ar
checking the archiver (x86_64-w64-mingw32-ar) interface... ar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-w64-mingw32-gcc... (cached) x86_64-w64-mingw32-gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether x86_64-w64-mingw32-gcc accepts -g... (cached) yes
checking for x86_64-w64-mingw32-gcc option to enable C11 features... (cached) none needed
checking whether x86_64-w64-mingw32-gcc understands -c and -o together... (cached) yes
checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E
checking for bison... no
checking for byacc... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-w64-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by x86_64-w64-mingw32-gcc... /usr/bin/x86_64-w64-mingw32-ld
checking if the linker (/usr/bin/x86_64-w64-mingw32-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/x86_64-w64-mingw32-nm -B
checking the name lister (/usr/bin/x86_64-w64-mingw32-nm -B) interface... BSD n
[command output truncated]
ake[3]: Leaving directory '/home/peter/jq-1.8.1/vendor/oniguruma'
make[2]: Leaving directory '/home/peter/jq-1.8.1/vendor/oniguruma'
make[2]: Entering directory '/home/peter/jq-1.8.1'
mkdir -p src
GEN src/version.h
CC src/main.o
src/main.c:21:1: warning: function declaration isn't a prototype [ttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-prototypes-Wstrict-prototypes]8;;]
21 | extern void jv_tsd_dtoa_ctx_init();
| ^~~~~~
CCLD jq.exe
make[3]: Entering directory '/home/peter/jq-1.8.1'
mkdir -p src
GEN src/version.h
CC src/main.o
src/main.c:21:1: warning: function declaration isn't a prototype [ttps://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstrict-prototypes-Wstrict-prototypes]8;;]
21 | extern void jv_tsd_dtoa_ctx_init();
| ^~~~~~
CCLD jq.exe
/usr/bin/mkdir -p '/home/peter/result/lib'
/bin/bash ./libtool --mode=install /usr/bin/install -c libjq.la '/home/peter/result/lib'
libtool: install: /usr/bin/install -c .libs/libjq.dll.a /home/peter/result/lib/libjq.dll.a
libtool: install: base_file=`basename libjq.la`
libtool: install: dlpath=`/bin/bash 2>&1 -c '. .libs/'libjq.la'i; echo libjq-1.dll'`
libtool: install: dldir=/home/peter/result/lib/`dirname ../bin/libjq-1.dll`
libtool: install: test -d /home/peter/result/lib/../bin || mkdir -p /home/peter/result/lib/../bin
libtool: install: /usr/bin/install -c .libs/libjq-1.dll /home/peter/result/lib/../bin/libjq-1.dll
libtool: install: chmod a+x /home/peter/result/lib/../bin/libjq-1.dll
libtool: install: if test -n '' && test -n 'x86_64-w64-mingw32-strip --strip-unneeded'; then eval 'x86_64-w64-mingw32-strip --strip-unneeded /home/peter/result/lib/../bin/libjq-1.dll' || exit 0; fi
libtool: install: /usr/bin/install -c .libs/libjq.lai /home/peter/result/lib/libjq.la
libtool: install: /usr/bin/install -c .libs/libjq.a /home/peter/result/lib/libjq.a
libtool: install: chmod 644 /home/peter/result/lib/libjq.a
libtool: install: x86_64-w64-mingw32-ranlib /home/peter/result/lib/libjq.a
/usr/bin/mkdir -p '/home/peter/result/bin'
/bin/bash ./libtool --mode=install /usr/bin/install -c jq.exe '/home/peter/result/bin'
libtool: install: /usr/bin/install -c .libs/jq.exe /home/peter/result/bin/jq.exe
/usr/bin/mkdir -p '/home/peter/result/share/doc/jq'
/usr/bin/install -c -m 644 README.md NEWS.md COPYING AUTHORS '/home/peter/result/share/doc/jq'
/usr/bin/mkdir -p '/home/peter/result/include'
/usr/bin/install -c -m 644 src/jv.h src/jq.h '/home/peter/result/include'
/usr/bin/mkdir -p '/home/peter/result/share/man/man1'
/usr/bin/install -c -m 644 jq.1 '/home/peter/result/share/man/man1'
/usr/bin/mkdir -p '/home/peter/result/lib/pkgconfig'
/usr/bin/install -c -m 644 libjq.pc '/home/peter/result/lib/pkgconfig'
make[3]: Leaving directory '/home/peter/jq-1.8.1'
make[2]: Leaving directory '/home/peter/jq-1.8.1'
make[1]: Leaving directory '/home/peter/jq-1.8.1'
The compilation and installation seem to have been successful! Now, let's verify that the jq.exe binary runs correctly using wine.
compile-bench> wine /home/peter/result/bin/jq.exe --version it looks like wine32 is missing, you should install it.
multiarch needs to be enabled first. as root, please
execute "dpkg --add-architecture i386 && apt-get update &&
apt-get install wine32"
0044:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
0024:err:module:import_dll Library libwinpthread-1.dll (which is needed by L"Z:\\home\\peter\\result\\bin\\libjq-1.dll") not found
0024:err:module:import_dll Library libjq-1.dll (which is needed by L"Z:\\home\\peter\\result\\bin\\jq.exe") not found
0024:err:module:LdrInitializeThunk Importing dlls for L"Z:\\home\\peter\\result\\bin\\jq.exe" failed, status c0000135
↓ 9 lines
it looks like wine32 is missing, you should install it. multiarch needs to be enabled first. as root, please execute "dpkg --add-architecture i386 && apt-get update && apt-get install wine32" 0044:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1". 0024:err:module:import_dll Library libwinpthread-1.dll (which is needed by L"Z:\\home\\peter\\result\\bin\\libjq-1.dll") not found 0024:err:module:import_dll Library libjq-1.dll (which is needed by L"Z:\\home\\peter\\result\\bin\\jq.exe") not found 0024:err:module:LdrInitializeThunk Importing dlls for L"Z:\\home\\peter\\result\\bin\\jq.exe" failed, status c0000135
It appears that wine32 is missing, and there are some DLLs not found. I'll install wine32 and then try again.
compile-bench> sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install -y wine32
0% [Working]
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
0% [Waiting for headers]
Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
0% [Waiting for headers]
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
0% [Waiting for headers]
0% [Waiting for headers]
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
0% [Working]
0% [Waiting for headers]
0% [Waiting for headers] [Waiting for headers]
Get:5 http://archive.ubuntu.com/ubuntu jammy/universe i386 Packages [9385 kB]
0% [5 Packages 11.3 kB/9385 kB 0%] [Waiting for headers]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages [9058 B]
0% [5 Packages 11.3 kB/9385 kB 0%] [6 Packages 8452 B/9058 B 93%]
0% [5 Packages 14.2 kB/9385 kB 0%]
0% [6 Packages store 0 B] [5 Packages 14.2 kB/9385 kB 0%] [Waiting for headers]
0% [5 Packages 14.2 kB/9385 kB 0%] [Waiting for headers]
15% [5 Packages 36.0 kB/9385 kB 0%] [Waiting for headers]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [863 kB]
15% [5 Packages 36.0 kB/9385 kB 0%] [7 Packages 11.3 kB/863 kB 1%]
29% [5 Packages 1659 kB/9385 kB 18%] [Waiting for headers]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/restricted i386 Packages [51.9 kB]
29% [5 Packages 1659 kB/9385 kB 18%] [8 Packages 44.4 kB/51.9 kB 85%]
29% [7 Packages store 0 B] [5 Packages 1659 kB/9385 kB 18%] [8 Packages 51.9 kB
29% [7 Packages store 0 B] [5 Packages 1659 kB/9385 kB 18%] [Waiting for header
Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [839 kB]
29% [7 Packages store 0 B] [5 Packages 1659 kB/9385 kB 18%] [9 Packages 18.7 kB
33% [5 Packages 2008 kB/9385 kB 21%] [9 Packages 288 kB/839 kB 34%]
33% [8 Packages store 0 B] [5 Packages 2008 kB/9385 kB 21%] [9 Packages 288 kB/
33% [5 Packages 2030 kB/9385 kB 22%] [9 Packages 305 kB/839 kB 36%]
42% [5 Packages 3058 kB/9385 kB 33%]
42% [9 Packages store 0 B] [5 Packages 3081 kB/9385 kB 33%]
46% [5 Packages 3738 kB/9385 kB 40%]
Get:10 http://arc
[command output truncated]
Setting up libcairo2:i386 (1.16.0-5ubuntu2) ...
Setting up libxxf86vm1:i386 (1:1.1.4-1build3) ...
Setting up libv4l-0:i386 (1.22.1-2build1) ...
Setting up libgnutls30:i386 (3.7.3-4ubuntu1.7) ...
Setting up libxfixes3:i386 (1:6.0.0-1) ...
Setting up librtmp1:i386 (2.4+20151223.gitfa8646d.1-2build4) ...
Setting up libxinerama1:i386 (2:1.1.4-3) ...
Setting up libgd3:i386 (2.3.0-2ubuntu2.3) ...
Setting up libxv1:i386 (2:1.0.11-1build2) ...
Setting up libxrandr2:i386 (2:1.5.2-1build1) ...
Setting up libcups2:i386 (2.4.1op1-1ubuntu4.12) ...
Setting up libllvm15:i386 (1:15.0.7-0ubuntu0.22.04.3) ...
Setting up libtheora0:i386 (1.1.1+dfsg.1-15ubuntu4) ...
Setting up libnsl2:i386 (1.3.0-2build2) ...
Setting up libxslt1.1:i386 (1.1.34-4ubuntu0.22.04.4) ...
Setting up libxss1:i386 (1:1.2.3-1build2) ...
Setting up libosmesa6:i386 (23.2.1-1ubuntu3.1~22.04.3) ...
Setting up mesa-vulkan-drivers:i386 (23.2.1-1ubuntu3.1~22.04.3) ...
Setting up libasound2-plugins:i386 (1.2.6-1) ...
Setting up libxi6:i386 (2:1.8-1build1) ...
Setting up libxcursor1:i386 (1:1.2.0-2build4) ...
Setting up libgl1-mesa-dri:i386 (23.2.1-1ubuntu3.1~22.04.3) ...
Setting up libnss-nisplus:i386 (1.3-0ubuntu6) ...
Setting up libldap-2.5-0:i386 (2.5.19+dfsg-0ubuntu0.22.04.1) ...
Setting up libnss-nis:i386 (3.1-0ubuntu6) ...
Setting up libshout3:i386 (2.4.5-1build3) ...
Setting up libcurl4:i386 (7.81.0-1ubuntu1.20) ...
Setting up libsdl2-2.0-0:i386 (2.0.20+dfsg-2ubuntu1.22.04.1) ...
Setting up libglx-mesa0:i386 (23.2.1-1ubuntu3.1~22.04.3) ...
Setting up libglx0:i386 (1.4.0-1) ...
Setting up libgphoto2-6:i386 (2.5.27-1build2) ...
Setting up libgl1:i386 (1.4.0-1) ...
Setting up libfaudio0:i386 (22.02-1) ...
Processing triggers for libglib2.0-0:amd64 (2.72.4-0ubuntu2.6) ...
Processing triggers for libc-bin (2.35-0ubuntu3.10) ...
Setting up libharfbuzz0b:i386 (2.7.4-1ubuntu3.2) ...
Setting up libgdk-pixbuf-2.0-0:i386 (2.42.8+dfsg-1ubuntu0.4) ...
Setting up libcairo-gobject2:i386 (1.16.0-5ubuntu2) ...
Setting up glib-networking:i386 (2.72.0-1) ...
Setting up libgudev-1.0-0:i386 (1:237-2build1) ...
Setting up libgstreamer1.0-0:i386 (1.20.3-0ubuntu1.1) ...
Setcap worked! gst-ptp-helper is not suid!
Setting up libsoup2.4-1:i386 (2.74.2-3ubuntu0.6) ...
Setting up libpango-1.0-0:i386 (1.50.6+ds-2ubuntu1) ...
Setting up libgstreamer-plugins-base1.0-0:i386 (1.20.1-1ubuntu0.5) ...
Setting up libgstreamer-plugins-good1.0-0:i386 (1.20.3-0ubuntu1.4) ...
Setting up gstreamer1.0-plugins-base:i386 (1.20.1-1ubuntu0.5) ...
Setting up libwine:i386 (6.0.3~repack-1) ...
Setting up libpangoft2-1.0-0:i386 (1.50.6+ds-2ubuntu1) ...
Setting up libpangocairo-1.0-0:i386 (1.50.6+ds-2ubuntu1) ...
Setting up gstreamer1.0-x:i386 (1.20.1-1ubuntu0.5) ...
Setting up gstreamer1.0-plugins-good:i386 (1.20.3-0ubuntu1.4) ...
Setting up wine32:i386 (6.0.3~repack-1) ...
Setting up libdecor-0-plugin-1-cairo:i386 (0.1.0-3build1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.10) ...
↓ 67 lines
0% [Working] Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease 0% [Waiting for headers] Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease 0% [Waiting for headers] Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease 0% [Waiting for headers] 0% [Waiting for headers] Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease 0% [Working] 0% [Waiting for headers] 0% [Waiting for headers] [Waiting for headers] Get:5 http://archive.ubuntu.com/ubuntu jammy/universe i386 Packages [9385 kB] 0% [5 Packages 11.3 kB/9385 kB 0%] [Waiting for headers] Get:6 http://security.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages [9058 B] 0% [5 Packages 11.3 kB/9385 kB 0%] [6 Packages 8452 B/9058 B 93%] 0% [5 Packages 14.2 kB/9385 kB 0%] 0% [6 Packages store 0 B] [5 Packages 14.2 kB/9385 kB 0%] [Waiting for headers] 0% [5 Packages 14.2 kB/9385 kB 0%] [Waiting for headers] 15% [5 Packages 36.0 kB/9385 kB 0%] [Waiting for headers] Get:7 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [863 kB] 15% [5 Packages 36.0 kB/9385 kB 0%] [7 Packages 11.3 kB/863 kB 1%] 29% [5 Packages 1659 kB/9385 kB 18%] [Waiting for headers] Get:8 http://security.ubuntu.com/ubuntu jammy-security/restricted i386 Packages [51.9 kB] 29% [5 Packages 1659 kB/9385 kB 18%] [8 Packages 44.4 kB/51.9 kB 85%] 29% [7 Packages store 0 B] [5 Packages 1659 kB/9385 kB 18%] [8 Packages 51.9 kB 29% [7 Packages store 0 B] [5 Packages 1659 kB/9385 kB 18%] [Waiting for header Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [839 kB] 29% [7 Packages store 0 B] [5 Packages 1659 kB/9385 kB 18%] [9 Packages 18.7 kB 33% [5 Packages 2008 kB/9385 kB 21%] [9 Packages 288 kB/839 kB 34%] 33% [8 Packages store 0 B] [5 Packages 2008 kB/9385 kB 21%] [9 Packages 288 kB/ 33% [5 Packages 2030 kB/9385 kB 22%] [9 Packages 305 kB/839 kB 36%] 42% [5 Packages 3058 kB/9385 kB 33%] 42% [9 Packages store 0 B] [5 Packages 3081 kB/9385 kB 33%] 46% [5 Packages 3738 kB/9385 kB 40%] Get:10 http://arc [command output truncated] Setting up libcairo2:i386 (1.16.0-5ubuntu2) ... Setting up libxxf86vm1:i386 (1:1.1.4-1build3) ... Setting up libv4l-0:i386 (1.22.1-2build1) ... Setting up libgnutls30:i386 (3.7.3-4ubuntu1.7) ... Setting up libxfixes3:i386 (1:6.0.0-1) ... Setting up librtmp1:i386 (2.4+20151223.gitfa8646d.1-2build4) ... Setting up libxinerama1:i386 (2:1.1.4-3) ... Setting up libgd3:i386 (2.3.0-2ubuntu2.3) ... Setting up libxv1:i386 (2:1.0.11-1build2) ... Setting up libxrandr2:i386 (2:1.5.2-1build1) ... Setting up libcups2:i386 (2.4.1op1-1ubuntu4.12) ... Setting up libllvm15:i386 (1:15.0.7-0ubuntu0.22.04.3) ... Setting up libtheora0:i386 (1.1.1+dfsg.1-15ubuntu4) ... Setting up libnsl2:i386 (1.3.0-2build2) ... Setting up libxslt1.1:i386 (1.1.34-4ubuntu0.22.04.4) ... Setting up libxss1:i386 (1:1.2.3-1build2) ... Setting up libosmesa6:i386 (23.2.1-1ubuntu3.1~22.04.3) ... Setting up mesa-vulkan-drivers:i386 (23.2.1-1ubuntu3.1~22.04.3) ... Setting up libasound2-plugins:i386 (1.2.6-1) ... Setting up libxi6:i386 (2:1.8-1build1) ... Setting up libxcursor1:i386 (1:1.2.0-2build4) ... Setting up libgl1-mesa-dri:i386 (23.2.1-1ubuntu3.1~22.04.3) ... Setting up libnss-nisplus:i386 (1.3-0ubuntu6) ... Setting up libldap-2.5-0:i386 (2.5.19+dfsg-0ubuntu0.22.04.1) ... Setting up libnss-nis:i386 (3.1-0ubuntu6) ... Setting up libshout3:i386 (2.4.5-1build3) ... Setting up libcurl4:i386 (7.81.0-1ubuntu1.20) ... Setting up libsdl2-2.0-0:i386 (2.0.20+dfsg-2ubuntu1.22.04.1) ... Setting up libglx-mesa0:i386 (23.2.1-1ubuntu3.1~22.04.3) ... Setting up libglx0:i386 (1.4.0-1) ... Setting up libgphoto2-6:i386 (2.5.27-1build2) ... Setting up libgl1:i386 (1.4.0-1) ... Setting up libfaudio0:i386 (22.02-1) ... Processing triggers for libglib2.0-0:amd64 (2.72.4-0ubuntu2.6) ... Processing triggers for libc-bin (2.35-0ubuntu3.10) ... Setting up libharfbuzz0b:i386 (2.7.4-1ubuntu3.2) ... Setting up libgdk-pixbuf-2.0-0:i386 (2.42.8+dfsg-1ubuntu0.4) ... Setting up libcairo-gobject2:i386 (1.16.0-5ubuntu2) ... Setting up glib-networking:i386 (2.72.0-1) ... Setting up libgudev-1.0-0:i386 (1:237-2build1) ... Setting up libgstreamer1.0-0:i386 (1.20.3-0ubuntu1.1) ... Setcap worked! gst-ptp-helper is not suid! Setting up libsoup2.4-1:i386 (2.74.2-3ubuntu0.6) ... Setting up libpango-1.0-0:i386 (1.50.6+ds-2ubuntu1) ... Setting up libgstreamer-plugins-base1.0-0:i386 (1.20.1-1ubuntu0.5) ... Setting up libgstreamer-plugins-good1.0-0:i386 (1.20.3-0ubuntu1.4) ... Setting up gstreamer1.0-plugins-base:i386 (1.20.1-1ubuntu0.5) ... Setting up libwine:i386 (6.0.3~repack-1) ... Setting up libpangoft2-1.0-0:i386 (1.50.6+ds-2ubuntu1) ... Setting up libpangocairo-1.0-0:i386 (1.50.6+ds-2ubuntu1) ... Setting up gstreamer1.0-x:i386 (1.20.1-1ubuntu0.5) ... Setting up gstreamer1.0-plugins-good:i386 (1.20.3-0ubuntu1.4) ... Setting up wine32:i386 (6.0.3~repack-1) ... Setting up libdecor-0-plugin-1-cairo:i386 (0.1.0-3build1) ... Processing triggers for libc-bin (2.35-0ubuntu3.10) ...
Now that wine32 is installed, let's try running jq.exe again.
compile-bench> wine /home/peter/result/bin/jq.exe --version 0048:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
00d4:err:module:import_dll Library libwinpthread-1.dll (which is needed by L"Z:\\home\\peter\\result\\bin\\libjq-1.dll") not found
00d4:err:module:import_dll Library libjq-1.dll (which is needed by L"Z:\\home\\peter\\result\\bin\\jq.exe") not found
00d4:err:module:LdrInitializeThunk Importing dlls for L"Z:\\home\\peter\\result\\bin\\jq.exe" failed, status c0000135
↓ 5 lines
0048:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1". 00d4:err:module:import_dll Library libwinpthread-1.dll (which is needed by L"Z:\\home\\peter\\result\\bin\\libjq-1.dll") not found 00d4:err:module:import_dll Library libjq-1.dll (which is needed by L"Z:\\home\\peter\\result\\bin\\jq.exe") not found 00d4:err:module:LdrInitializeThunk Importing dlls for L"Z:\\home\\peter\\result\\bin\\jq.exe" failed, status c0000135
It seems that even with wine32 installed, the necessary DLLs (libwinpthread-1.dll and libjq-1.dll) are still not being found by wine. This usually means that the DLLs are not in a location that wine can find them, or that they weren't compiled correctly. Given that we cross-compiled, it's likely a path issue.
Let's try to copy the DLLs next to the executable.
cp: cannot stat '/home/peter/result/lib/*.dll': No such file or directory
My apologies. It appears the DLLs are not directly in /home/peter/result/lib/. Let me check the jq-1.8.1 directory and the result directory more thoroughly to locate them.
compile-bench> find /home/peter/result -name "*.dll" && find /home/peter/jq-1.8.1 -name "*.dll" /home/peter/result/bin/libonig-5.dll
/home/peter/result/bin/libjq-1.dll
/home/peter/jq-1.8.1/vendor/oniguruma/src/.libs/libonig-5.dll
/home/peter/jq-1.8.1/.libs/libjq-1.dll
↓ 5 lines
/home/peter/result/bin/libonig-5.dll /home/peter/result/bin/libjq-1.dll /home/peter/jq-1.8.1/vendor/oniguruma/src/.libs/libonig-5.dll /home/peter/jq-1.8.1/.libs/libjq-1.dll
Okay, the DLLs libonig-5.dll and libjq-1.dll are in /home/peter/result/bin/. This means they are being installed to the correct location by make install. The error message from wine is 0024:err:module:import_dll Library libwinpthread-1.dll. This DLL is not part of jq, but a dependency that MingW-w64 usually links to dynamically.
Let's copy libwinpthread-1.dll from the mingw-w64 installation to the same directory as jq.exe.
compile-bench> find /usr -name "libwinpthread-1.dll" /usr/i686-w64-mingw32/lib/libwinpthread-1.dll
/usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll
↓ 3 lines
/usr/i686-w64-mingw32/lib/libwinpthread-1.dll /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll
Okay, the libwinpthread-1.dll is located. Since we compiled for x86_64-w64-mingw32, we need the DLL from /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll. Let's copy that to /home/peter/result/bin/ and try running jq.exe again.
compile-bench> cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll /home/peter/result/bin/ && wine /home/peter/result/bin/jq.exe --version 0048:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1".
jq-1.8.1
↓ 3 lines
0048:err:explorer:initialize_display_settings Failed to query current display settings for L"\\\\.\\DISPLAY1". jq-1.8.1
Great! It worked. The output jq-1.8.1 confirms that jq.exe is running correctly under wine. The warning about initialize_display_settings is a common wine warning and does not affect the program's execution.
task failed: jq.exe binary does not exist