Task
jq-windows
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, link it statically.
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.
Best attempt
| Model |
|
| Attempt |
g1f6oaf2f2n9w
|
| # of commands | 3 |
| Total time | 55s |
| Cost | $0.018 |
Terminal transcript >
compile-bench> sudo apt-get update -y && sudo apt-get install -y gcc-mingw-w64 autoconf automake libtool make 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 libltdl-dev:amd64 (2.4.6-15build2) ... Setting up gcc-mingw-w64 (10.3.0-14ubuntu1+24.3) ... Processing triggers for libc-bin (2.35-0ubuntu3.10) ... Processing triggers for libwine:amd64 (6.0.3~repack-1) ... compile-bench> mkdir -p /home/peter/jq-build && tar -xzf jq.tar.gz -C /home/peter/jq-build --strip-components=1 compile-bench> cd /home/peter/jq-build && CC=x86_64-w64-mingw32-gcc ./configure --host=x86_64-w64-mingw32 --enable-static --disable-shared && make LDFLAGS="-all-static" && mkdir -p /home/peter/result && cp jq.exe /home/peter/result/ CC src/lexer.lo CC src/parser.lo CCLD libjq.la CCLD jq.exe make[2]: Leaving directory '/home/peter/jq-build' make[1]: Leaving directory '/home/peter/jq-build'
Model ranking
| # | Model | ||||
|---|---|---|---|---|---|
| 1 |
|
100%
|
13 (4.3x) | 1m20s (1.5x) | $0.052 (7.5x) |
| 2 |
|
100%
|
14 (4.7x) | 3m7s (3.6x) | $0.091 (13.1x) |
| 3 |
|
100%
|
21 (7.0x) | 2m30s (2.9x) | $0.194 (27.9x) |
| 4 |
|
100%
|
23 (7.7x) | 2m33s (3.0x) | $0.234 (33.7x) |
| 5 |
|
100%
|
24 (8.0x) | 1m36s (1.9x) | $0.190 (27.4x) |
| 6 |
|
100%
|
36 (12.0x) | 4m46s (5.5x) | $0.347 (49.9x) |
| 7 |
|
67%
|
3 (1.0x) | 3m5s (3.6x) | $0.155 (22.3x) |
| 8 |
|
67%
|
13 (4.3x) | 1m5s (1.3x) | $0.043 (6.2x) |
| 9 |
|
67%
|
18 (6.0x) | 4m16s (5.0x) | $0.038 (5.5x) |
| 10 |
|
67%
|
21 (7.0x) | 1m38s (1.9x) | $0.151 (21.8x) |
| 11 |
|
67%
|
22 (7.3x) | 1m20s (1.6x) | $0.178 (25.6x) |
| 12 |
|
33%
|
3 (1.0x) | 55s (1.1x) | $0.018 (2.6x) |
| 13 |
|
33%
|
8 (2.7x) | 52s (1.0x) | $0.007 (1.0x) |
| 14 |
|
33%
|
8 (2.7x) | 1m46s (2.1x) | $0.429 (61.8x) |
| 15 |
|
33%
|
9 (3.0x) | 59s (1.1x) | $0.056 (8.1x) |
| 16 |
|
33%
|
18 (6.0x) | 1m47s (2.1x) | $0.091 (13.1x) |
| 17 |
|
0%
|
|||
| 18 |
|
0%
|
|||
| 19 |
|
0%
|
|||
| 20 |
|
0%
|
|||
| 21 |
|
0%
|
|||
| 22 |
|
0%
|
|||
| 23 |
|
0%
|
|||
| 24 |
|
0%
|
Attempts
| Model | Attempt ID | Cost | Duration | Status / Error |
|---|---|---|---|---|
|
|
9szb1799obgp9
|
$0.386 | 1m40s | Failure task failed: jq help does not contain expected string |
|
|
kgao0a35zjyl8
|
$0.429 | 1m46s | Success |
|
|
m6tlj075qy136
|
$1.204 | 3m42s | Failure task failed: jq help does not contain expected string |
|
|
ie93is5e4q63u
|
$0.151 | 1m38s | Success |
|
|
tyxzw6d28m2ey
|
$0.310 | 2m14s | Success |
|
|
yj23ymqtolx5b
|
$0.281 | 2m15s | Failure task failed: jq help does not contain expected string |
|
|
02yg8eybegzct
|
$0.210 | 2m30s | Success |
|
|
c1vjkhc3qbr46
|
$0.181 | 2m26s | Success |
|
|
d6qedwsxw9d4x
|
$0.194 | 2m36s | Success |
|
|
icnyrfluogvz1
|
$0.319 | 2m5s | Success |
|
|
jwp37nr7zmqx0
|
$0.174 | 1m36s | Success |
|
|
zipovvz179fi7
|
$0.190 | 1m22s | Success |
|
|
2pkd860lbu62w
|
$0.187 | 2m25s | Success |
|
|
f3wxq4z29zmz1
|
$0.298 | 2m52s | Success |
|
|
l6iv436dh7v3p
|
$0.234 | 2m33s | Success |
|
|
dmnrof6aygbdp
|
$0.051 | 1m5s | Success |
|
|
elirmlwrefz65
|
$0.039 | 1m13s | Failure task failed: jq help does not contain expected string |
|
|
z0sqcui9bxpol
|
$0.043 | 1m37s | Success |
|
|
4zsgsxy3mr526
|
$0.247 | 5m20s | Failure task failed: jq help does not contain expected string |
|
|
7b64txxdd5lxw
|
$0.055 | 2m13s | Failure task failed: jq help does not contain expected string |
|
|
7i5x6amv4yesw
|
$0.028 | 1m24s | Failure task failed: jq help does not contain expected string |
|
|
73915yy8omgpv
|
$0.006 | 53s | Failure task failed: jq help does not contain expected string |
|
|
8esapvv1f77uf
|
$0.007 | 30s | Failure task failed: jq.exe binary does not exist |
|
|
xdmf0z7301opk
|
$0.013 | 54s | Failure task failed: jq.exe binary does not exist |
|
|
88vh2uc0rk21g
|
$0.011 | 55s | Failure task failed: jq.exe binary does not exist |
|
|
962o3wdtyixry
|
$0.015 | 1m17s | Failure task failed: jq help does not contain expected string |
|
|
ulm2adrozbvpo
|
$0.014 | 1m3s | Failure task failed: jq help does not contain expected string |
|
|
hb4es9008gd3h
|
$0.056 | 59s | Success |
|
|
jc35jfibzsjlp
|
$0.052 | 1m14s | Failure task failed: jq help does not contain expected string |
|
|
tdoiqqd9tnvg7
|
$0.037 | 59s | Failure task failed: jq.exe binary does not exist |
|
|
3pnuob6n5ebjf
|
$0.092 | 1m51s | Failure task failed: jq help does not contain expected string |
|
|
auhbtigd3c03n
|
$0.024 | 1m10s | Failure task failed: jq help does not contain expected string |
|
|
g3gktvoafpz5u
|
$0.091 | 1m47s | Success |
|
|
dyzgubb5rdzk3
|
$0.103 | 1m13s | Failure task failed: jq help does not contain expected string |
|
|
hrxpw50se31vi
|
$0.082 | 1m2s | Failure task failed: jq help does not contain expected string |
|
|
wdtj2fr8uf0t5
|
$0.051 | 1m2s | Failure task failed: jq help does not contain expected string |
|
|
da2b7m8uzzkrc
|
$0.007 | 52s | Success |
|
|
fc9g3soaojv2j
|
$0.009 | 54s | Failure task failed: jq help does not contain expected string |
|
|
p4h15s794y3xh
|
$0.005 | 54s | Failure task failed: jq help does not contain expected string |
|
|
bucvq7hcm8qyu
|
$0.347 | 4m46s | Success |
|
|
hwijgk2fy8ee0
|
$0.351 | 4m49s | Success |
|
|
n86tcjx3e6n8f
|
$0.250 | 4m35s | Success |
|
|
d8dlng4urmp14
|
$0.083 | 3m7s | Success |
|
|
egdr3smjmsgek
|
$0.091 | 3m17s | Success |
|
|
sktvqvlo13bbc
|
$0.094 | 2m44s | Success |
|
|
k81fptysyo1p3
|
$0.026 | 3m30s | Failure task failed: jq help does not contain expected string |
|
|
vtsxqiuasvrdm
|
$0.038 | 4m59s | Success |
|
|
z1kklm6lnxh44
|
$0.041 | 4m16s | Success |
|
|
kpkn5xcvmfvi7
|
$0.003 | 1m2s | Failure task failed: jq help does not contain expected string |
|
|
t8t8p0rm0ql8a
|
$0.004 | 1m0s | Failure task failed: jq help does not contain expected string |
|
|
ygrlg46vj3qyo
|
$0.007 | 1m4s | Failure task failed: jq help does not contain expected string |
|
|
0xgj1oh2bi9aj
|
$0.031 | 1m7s | Success |
|
|
iyek3wml8lvmo
|
$0.053 | 1m53s | Success |
|
|
lvw52wwt1vo0j
|
$0.052 | 1m20s | Success |
|
|
6ok022s5c4eo4
|
$0.007 | 55s | Failure task failed: jq help does not contain expected string |
|
|
fgbdqj729zi4o
|
$0.011 | 52s | Failure task failed: jq help does not contain expected string |
|
|
tniw46aj4o6so
|
$0.012 | 1m9s | Failure task failed: jq help does not contain expected string |
|
|
7xywc270dfxvt
|
$0.155 | 3m23s | Success |
|
|
jhiphmji70f2h
|
$0.105 | 2m5s | Failure task failed: jq help does not contain expected string |
|
|
wakd5ievn14m3
|
$0.164 | 3m5s | Success |
|
|
1ev321diq1rcq
|
$0.013 | 3m5s | Failure task failed: jq help does not contain expected string |
|
|
4f7y80tefm3m8
|
$0.030 | 3m39s | Failure task failed: jq help does not contain expected string |
|
|
8lh06x05kbj4n
|
$0.070 | 7m6s | Failure task failed: jq help does not contain expected string |
|
|
8l0l6iejvfuun
|
$0.008 | 1m20s | Failure task failed: jq help does not contain expected string |
|
|
k2mhp31bg0hj0
|
$0.019 | 1m31s | Failure task failed: jq help does not contain expected string |
|
|
mhv520mpw4k7e
|
$0.013 | 2m6s | Failure task failed: jq help does not contain expected string |
|
|
150v5u32xja29
|
$0.181 | 1m29s | Failure task failed: jq help does not contain expected string |
|
|
y0if40lgozu4r
|
$0.200 | 1m20s | Success |
|
|
zwr8ct9r1ina2
|
$0.178 | 3m59s | Success |
|
|
bvwauvargxapl
|
$0.024 | 52s | Failure task failed: jq help does not contain expected string |
|
|
g1f6oaf2f2n9w
|
$0.018 | 55s | Success |
|
|
j08r5we4vww3h
|
$0.026 | 54s | Failure task failed: jq help does not contain expected string |