Task
coreutils-static
GNU coreutils 9.7 is a collection of Linux utilities like ls, cp, mv, etc.
Project link: gnu.org/software/coreutils
Task: Compile and install all coreutils utilities to a specific location. Compile them statically.
Difficulties: Static linking requires correctly configuring the build.
Environment: Ubuntu 22.04 on amd64, without internet access.
Best attempt
| Model |
|
| Attempt |
0wf9zz975tfwg
|
| # of commands | 1 |
| Total time | 1m21s |
| Cost | $0.010 |
Terminal transcript >
compile-bench> set -e; export DEBIAN_FRONTEND=noninteractive; cd /home/peter; rm -rf build_coreutils; mkdir -p build_coreutils; tar -xf coreutils.tar.gz -C build_coreutils --strip-components=1; cd build_coreutils; echo "Configuring..."; ./configure --prefix=/home/peter/result --bindir=/home/peter/result/bin LDFLAGS='-static' CFLAGS='-O2 -pipe' CPPFLAGS='' --disable-nls; echo "Building..."; make -j"$(nproc)"; echo "Installing into staged prefix..."; make -j"$(nproc)" install; echo "Creating symlinks under /home/peter/result for each utility..."; mkdir -p /home/peter/result; for f in /home/peter/result/bin/*; do n=$(basename "$f"); ln -sf "bin/$n" "/home/peter/result/$n"; done; echo "Verifying static linkage..."; file /home/peter/result/bin/* | sed -n '1,5p'
Verifying static linkage...
/home/peter/result/bin/[: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=6bf2ba4b3ac37c40949f954e1ee93e82bb976a76, for GNU/Linux 3.2.0, not stripped
/home/peter/result/bin/b2sum: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=4b46b5d7015f37bea88d063042ddd235a9e5676a, for GNU/Linux 3.2.0, not stripped
/home/peter/result/bin/base32: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=ffcad848251369c89f39a429769655b9097fdb8a, for GNU/Linux 3.2.0, not stripped
/home/peter/result/bin/base64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=efe0ff8f303c9696df46d6025b96a86b4af08f92, for GNU/Linux 3.2.0, not stripped
/home/peter/result/bin/basename: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=cd7edbd85957d0c6ed059ecd70eba34eda423c9a, for GNU/Linux 3.2.0, not stripped
Model ranking
| # | Model | ||||
|---|---|---|---|---|---|
| 1 |
|
100%
|
8 (8.0x) | 1m13s (1.1x) | $0.005 (2.3x) |
| 2 |
|
100%
|
8 (8.0x) | 2m1s (1.7x) | $0.011 (5.3x) |
| 3 |
|
100%
|
8 (8.0x) | 5m46s (5.0x) | $0.194 (89.0x) |
| 4 |
|
100%
|
9 (9.0x) | 2m20s (2.0x) | $0.074 (34.2x) |
| 5 |
|
100%
|
10 (10.0x) | 1m21s (1.2x) | $0.059 (27.2x) |
| 6 |
|
100%
|
10 (10.0x) | 1m40s (1.4x) | $0.006 (3.0x) |
| 7 |
|
100%
|
10 (10.0x) | 1m46s (1.5x) | $0.049 (22.5x) |
| 8 |
|
100%
|
10 (10.0x) | 3m41s (3.2x) | $0.117 (54.0x) |
| 9 |
|
100%
|
11 (11.0x) | 3m10s (2.7x) | $0.014 (6.5x) |
| 10 |
|
100%
|
14 (14.0x) | 3m18s (2.9x) | $0.619 (284.4x) |
| 11 |
|
100%
|
16 (16.0x) | 2m39s (2.3x) | $0.161 (74.1x) |
| 12 |
|
100%
|
20 (20.0x) | 2m7s (1.8x) | $0.037 (17.1x) |
| 13 |
|
100%
|
21 (21.0x) | 2m48s (2.4x) | $0.199 (91.3x) |
| 14 |
|
100%
|
24 (24.0x) | 2m21s (2.0x) | $0.185 (85.1x) |
| 15 |
|
100%
|
28 (28.0x) | 2m29s (2.1x) | $0.227 (104.1x) |
| 16 |
|
67%
|
2 (2.0x) | 1m19s (1.1x) | $0.003 (1.3x) |
| 17 |
|
67%
|
5 (5.0x) | 1m13s (1.1x) | $0.005 (2.3x) |
| 18 |
|
67%
|
7 (7.0x) | 1m59s (1.7x) | $0.002 (1.0x) |
| 19 |
|
67%
|
8 (8.0x) | 1m33s (1.3x) | $0.021 (9.5x) |
| 20 |
|
67%
|
9 (9.0x) | 1m44s (1.5x) | $0.009 (4.0x) |
| 21 |
|
67%
|
11 (11.0x) | 1m25s (1.2x) | $0.041 (18.9x) |
| 22 |
|
33%
|
1 (1.0x) | 1m21s (1.2x) | $0.010 (4.4x) |
| 23 |
|
33%
|
3 (3.0x) | 1m10s (1.0x) | $0.008 (3.7x) |
| 24 |
|
33%
|
21 (21.0x) | 2m0s (1.7x) | $0.186 (85.5x) |
Attempts
| Model | Attempt ID | Cost | Duration | Status / Error |
|---|---|---|---|---|
|
|
2a91dvdgom3h7
|
$0.560 | 3m6s | Success |
|
|
90x3ffomvf2ec
|
$0.654 | 3m18s | Success |
|
|
zvki8ok6bwoff
|
$0.619 | 3m25s | Success |
|
|
4um0qrearp9f9
|
$0.185 | 2m21s | Success |
|
|
kj9iicz6uy1ml
|
$0.182 | 2m11s | Success |
|
|
sd0y7c4jvrg8o
|
$0.192 | 2m23s | Success |
|
|
0r24wkdxg86jb
|
$0.161 | 2m39s | Success |
|
|
mrzt7ua84k80m
|
$0.166 | 2m21s | Success |
|
|
plfws0uish2vi
|
$0.152 | 2m39s | Success |
|
|
5085o7137l1qc
|
$0.144 | 1m56s | Success |
|
|
pj3be723iad7p
|
$0.245 | 2m29s | Success |
|
|
xyr2pvg2ederi
|
$0.227 | 2m34s | Success |
|
|
139n1l9ykqmay
|
$0.170 | 2m48s | Success |
|
|
2cysws08wyagn
|
$0.199 | 2m35s | Success |
|
|
a0fptc4dmrrb0
|
$0.199 | 2m48s | Success |
|
|
3fpu8zaowgq7t
|
$0.064 | 1m40s | Failure task failed: install missing at /home/peter/result/install or not executable |
|
|
53wz2rnf6ey8j
|
$0.041 | 1m25s | Success |
|
|
ro7f09l5pwvtd
|
$0.350 | 3m10s | Success |
|
|
6b4o82saybxkb
|
$0.042 | 2m28s | Success |
|
|
p9f3knux2bi0n
|
$0.032 | 1m48s | Success |
|
|
zbv4fu0bt59h5
|
$0.037 | 2m7s | Success |
|
|
59gza3etqz54m
|
$0.028 | 4m40s | Success |
|
|
mdp47e2isfz6l
|
$0.009 | 1m44s | Success |
|
|
r3gc5tvqwi47d
|
$0.005 | 1m41s | Failure task failed: sha1sum binary does not exist |
|
|
8894aqd63cabz
|
$0.014 | 1m57s | Success |
|
|
cy7ku1xwju0xr
|
$0.009 | 2m7s | Success |
|
|
lh8iwss0pb2sj
|
$0.011 | 2m1s | Success |
|
|
i66fll9y9zbx8
|
$0.074 | 2m20s | Success |
|
|
jm302v4jei7xk
|
$0.069 | 2m18s | Success |
|
|
p5b244pg4blu1
|
$0.120 | 3m3s | Success |
|
|
3efm44y4sq42v
|
$0.063 | 1m43s | Success |
|
|
alraxhob6pahl
|
$0.021 | 1m33s | Success |
|
|
eq6wgulo4zmts
|
$0.015 | 1m26s | Failure task failed: sha1sum binary does not exist |
|
|
8clcq0b9nvnp0
|
$0.059 | 1m19s | Success |
|
|
8yecdnfh30zng
|
$0.070 | 1m21s | Success |
|
|
my44jxbuog2ej
|
$0.050 | 2m7s | Success |
|
|
i1gcm32w6y8lt
|
$0.020 | 1m28s | Failure task failed: install missing at /home/peter/result/install or not executable |
|
|
m6jory3zzv0yy
|
$0.005 | 1m25s | Success |
|
|
ny4qbms66bcj2
|
$0.005 | 1m13s | Success |
|
|
bxnffu5scelp6
|
$0.041 | 1m46s | Success |
|
|
dn62k0loubsof
|
$0.049 | 1m47s | Success |
|
|
mpl6ujuxf9ozt
|
$0.055 | 1m42s | Success |
|
|
5lo26vu9b6whp
|
$0.093 | 3m22s | Success |
|
|
q3hyeaa3pax04
|
$0.121 | 3m58s | Success |
|
|
uqkifa3980qpy
|
$0.117 | 3m41s | Success |
|
|
064sifofef33k
|
$0.020 | 3m10s | Success |
|
|
asvvlggz0atlx
|
$0.014 | 3m12s | Success |
|
|
dyhxix351i10v
|
$0.013 | 2m45s | Success |
|
|
enorhmoh6t2fw
|
$0.003 | 1m19s | Success |
|
|
lo37qtix0tzwi
|
$0.003 | 1m17s | Failure task failed: sha1sum is not statically linked |
|
|
xstto1rh4k7wp
|
$0.004 | 1m22s | Success |
|
|
0wf9zz975tfwg
|
$0.010 | 1m21s | Success |
|
|
9fdga5w8t304a
|
$0.025 | 1m42s | Failure task failed: install missing at /home/peter/result/install or not executable |
|
|
dyjf0zqepyisi
|
$0.022 | 2m33s | Failure task failed: install missing at /home/peter/result/install or not executable |
|
|
nj2lwrvw8o3ce
|
$0.004 | 1m13s | Success |
|
|
oyyb2gl4c8ot8
|
$0.008 | 1m18s | Success |
|
|
rkeiuqn6aq5na
|
$0.005 | 1m13s | Success |
|
|
nuou4bmvfyftj
|
$0.194 | 5m46s | Success |
|
|
regzv7mzp9727
|
$0.165 | 3m39s | Success |
|
|
z7ayimz2fks6a
|
$0.327 | 6m55s | Success |
|
|
9sop0p5sfu13x
|
$0.002 | 2m10s | Success |
|
|
j8h141f0u33a4
|
$0.005 | 1m59s | Success |
|
|
lierqs2hskl62
|
$0.004 | 2m1s | Failure task failed: sha1sum binary does not exist |
|
|
a23uog5dc0en8
|
$0.005 | 1m40s | Success |
|
|
g8z14y4lw1jn6
|
$0.009 | 2m13s | Success |
|
|
q4kta7ysm6iy1
|
$0.006 | 1m35s | Success |
|
|
6te6m7re2wqh9
|
$0.052 | 1m21s | Failure task failed: sha1sum binary does not exist |
|
|
rt01hrj1uetb0
|
$0.001 | 2s | Failure task failed: sha1sum binary does not exist |
|
|
w1wl60vs0iubq
|
$0.186 | 2m0s | Success |
|
|
9ms8tpezozxkk
|
$0.028 | 1m3s | Failure task failed: sha1sum is not statically linked |
|
|
g0lh92zoh2jah
|
$0.008 | 1m10s | Success |
|
|
kispd61g3r4yo
|
$0.009 | 1m1s | Failure task failed: sha1sum is not statically linked |