gistfile1.txt
· 6.3 KiB · Text
Raw
swee@Fudge:~/Git/dataurlify$ rustup target add x86_64-unknown-linux-musl
info: downloading component 'rust-std' for 'x86_64-unknown-linux-musl'
info: installing component 'rust-std' for 'x86_64-unknown-linux-musl'
36.9 MiB / 36.9 MiB (100 %) 16.1 MiB/s in 2s ETA: 0s
swee@Fudge:~/Git/dataurlify$ uname -m
aarch64
swee@Fudge:~/Git/dataurlify$ unset RUSTFLAGS
swee@Fudge:~/Git/dataurlify$ cargo build --target x86_64-unknown-linux-musl
Compiling proc-macro2 v1.0.105
Compiling unicode-ident v1.0.22
Compiling quote v1.0.43
Compiling utf8parse v0.2.2
Compiling once_cell v1.21.3
Compiling libc v0.2.180
Compiling colorchoice v1.0.4
Compiling is_terminal_polyfill v1.70.2
Compiling anstyle-parse v0.2.7
Compiling anstyle v1.0.13
Compiling anstyle-query v1.1.5
Compiling unicase v2.9.0
Compiling portable-atomic v1.13.0
Compiling clap_lex v0.7.7
Compiling heck v0.5.0
Compiling anstream v0.6.21
Compiling mime_guess v2.0.5
Compiling strsim v0.11.1
Compiling unicode-width v0.2.2
Compiling clap_builder v4.5.54
Compiling path-dedot v3.1.1
Compiling unit-prefix v0.5.2
Compiling mime v0.3.17
Compiling path-absolutize v3.1.1
Compiling base64 v0.22.1
Compiling current_locale v0.1.1
Compiling syn v2.0.114
Compiling console v0.16.2
Compiling indicatif v0.18.3
Compiling clap_derive v4.5.49
Compiling clap v4.5.54
Compiling dataurlify v2.0.0 (/home/swee/Git/dataurlify)
warning: unused variable: `filename`
--> src/main.rs:37:13
|
37 | let filename = file.absolutize().unwrap().file_name().unwrap().to_string_lossy();
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/home/swee/Git/dataurlify/target/x86_64-unknown-linux-musl/debug/deps/rustcaZbmgR/symbols.o" "<85 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/swee/Git/dataurlify/target/x86_64-unknown-linux-musl/debug/deps/{libmime_guess-e67f23e66ae3b9ec,libunicase-e60a6fbb88c1af7a,libmime-325a10941a420cc8,libpath_absolutize-b2a34fded5e442d0,libpath_dedot-819bf6808bd1bf25,libclap-a2eeb7b2ee750ebe,libclap_builder-3f143e7e11afca0d,libstrsim-25af77cda592f047,libanstream-090fb76d52bb8833,libanstyle_query-d18081fae882f4c9,libis_terminal_polyfill-2e2523a7a4b280cf,libcolorchoice-9a45516dc3c2f95d,libanstyle_parse-9d36f2f7e127dae2,libutf8parse-957978a55453c6c5,libclap_lex-5313e669d5c6b928,libanstyle-8f072b6aaac59c39,libbase64-584d5921decd4a7e,libindicatif-7f8bed3be263bbc2,libportable_atomic-5f66d655a657acff,libunit_prefix-a295dd2aca568405,libconsole-b0b84f92f5ba5106,liblibc-adca1634e33b4c32,libunicode_width-0076f3f2b3ba629b,libonce_cell-d7b9c6ad51cb652b}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-*.rlib" "-lc" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/home/swee/Git/dataurlify/target/x86_64-unknown-linux-musl/debug/deps/rustcaZbmgR/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/home/swee/Git/dataurlify/target/x86_64-unknown-linux-musl/debug/deps/dataurlify-1883765b8eba77c5" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: cc: error: unrecognized command-line option '-m64'
warning: `dataurlify` (bin "dataurlify") generated 1 warning
error: could not compile `dataurlify` (bin "dataurlify") due to 1 previous error; 1 warning emitted
swee@Fudge:~/Git/dataurlify$ source ~/.bashrc
swee@Fudge:~/Git/dataurlify$ echo $RUSTFLAGS
-C linker=rust-lld
swee@Fudge:~/Git/dataurlify$ cargo build --target x86_64-unknown-linux-musl
Compiling once_cell v1.21.3
Compiling utf8parse v0.2.2
Compiling anstyle-query v1.1.5
Compiling libc v0.2.180
Compiling anstyle v1.0.13
Compiling colorchoice v1.0.4
Compiling is_terminal_polyfill v1.70.2
Compiling portable-atomic v1.13.0
Compiling clap_lex v0.7.7
Compiling anstyle-parse v0.2.7
Compiling strsim v0.11.1
Compiling unicode-width v0.2.2
Compiling mime_guess v2.0.5
Compiling anstream v0.6.21
Compiling path-dedot v3.1.1
Compiling unit-prefix v0.5.2
Compiling mime v0.3.17
Compiling unicase v2.9.0
Compiling path-absolutize v3.1.1
Compiling current_locale v0.1.1
Compiling base64 v0.22.1
Compiling clap_builder v4.5.54
Compiling console v0.16.2
Compiling indicatif v0.18.3
Compiling clap v4.5.54
Compiling dataurlify v2.0.0 (/home/swee/Git/dataurlify)
warning: unused variable: `filename`
--> src/main.rs:37:13
|
37 | let filename = file.absolutize().unwrap().file_name().unwrap().to_string_lossy();
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: `dataurlify` (bin "dataurlify") generated 1 warning (run `cargo fix --bin "dataurlify" -p dataurlify` to apply 1 suggestion)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.53s
swee@Fudge:~/Git/dataurlify$ ldd ./target/x86_64-unknown-linux-musl/debug/dataurlify
not a dynamic executable
swee@Fudge:~/Git/dataurlify$ ./target/x86_64-unknown-linux-musl/debug/dataurlify
error: the following required arguments were not provided:
<FILES>...
Usage: dataurlify <FILES>...
For more information, try '--help'.
| 1 | swee@Fudge:~/Git/dataurlify$ rustup target add x86_64-unknown-linux-musl |
| 2 | info: downloading component 'rust-std' for 'x86_64-unknown-linux-musl' |
| 3 | info: installing component 'rust-std' for 'x86_64-unknown-linux-musl' |
| 4 | 36.9 MiB / 36.9 MiB (100 %) 16.1 MiB/s in 2s ETA: 0s |
| 5 | swee@Fudge:~/Git/dataurlify$ uname -m |
| 6 | aarch64 |
| 7 | swee@Fudge:~/Git/dataurlify$ unset RUSTFLAGS |
| 8 | swee@Fudge:~/Git/dataurlify$ cargo build --target x86_64-unknown-linux-musl |
| 9 | Compiling proc-macro2 v1.0.105 |
| 10 | Compiling unicode-ident v1.0.22 |
| 11 | Compiling quote v1.0.43 |
| 12 | Compiling utf8parse v0.2.2 |
| 13 | Compiling once_cell v1.21.3 |
| 14 | Compiling libc v0.2.180 |
| 15 | Compiling colorchoice v1.0.4 |
| 16 | Compiling is_terminal_polyfill v1.70.2 |
| 17 | Compiling anstyle-parse v0.2.7 |
| 18 | Compiling anstyle v1.0.13 |
| 19 | Compiling anstyle-query v1.1.5 |
| 20 | Compiling unicase v2.9.0 |
| 21 | Compiling portable-atomic v1.13.0 |
| 22 | Compiling clap_lex v0.7.7 |
| 23 | Compiling heck v0.5.0 |
| 24 | Compiling anstream v0.6.21 |
| 25 | Compiling mime_guess v2.0.5 |
| 26 | Compiling strsim v0.11.1 |
| 27 | Compiling unicode-width v0.2.2 |
| 28 | Compiling clap_builder v4.5.54 |
| 29 | Compiling path-dedot v3.1.1 |
| 30 | Compiling unit-prefix v0.5.2 |
| 31 | Compiling mime v0.3.17 |
| 32 | Compiling path-absolutize v3.1.1 |
| 33 | Compiling base64 v0.22.1 |
| 34 | Compiling current_locale v0.1.1 |
| 35 | Compiling syn v2.0.114 |
| 36 | Compiling console v0.16.2 |
| 37 | Compiling indicatif v0.18.3 |
| 38 | Compiling clap_derive v4.5.49 |
| 39 | Compiling clap v4.5.54 |
| 40 | Compiling dataurlify v2.0.0 (/home/swee/Git/dataurlify) |
| 41 | warning: unused variable: `filename` |
| 42 | --> src/main.rs:37:13 |
| 43 | | |
| 44 | 37 | let filename = file.absolutize().unwrap().file_name().unwrap().to_string_lossy(); |
| 45 | | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` |
| 46 | | |
| 47 | = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default |
| 48 | |
| 49 | error: linking with `cc` failed: exit status: 1 |
| 50 | | |
| 51 | = note: "cc" "-m64" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/home/swee/Git/dataurlify/target/x86_64-unknown-linux-musl/debug/deps/rustcaZbmgR/symbols.o" "<85 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/swee/Git/dataurlify/target/x86_64-unknown-linux-musl/debug/deps/{libmime_guess-e67f23e66ae3b9ec,libunicase-e60a6fbb88c1af7a,libmime-325a10941a420cc8,libpath_absolutize-b2a34fded5e442d0,libpath_dedot-819bf6808bd1bf25,libclap-a2eeb7b2ee750ebe,libclap_builder-3f143e7e11afca0d,libstrsim-25af77cda592f047,libanstream-090fb76d52bb8833,libanstyle_query-d18081fae882f4c9,libis_terminal_polyfill-2e2523a7a4b280cf,libcolorchoice-9a45516dc3c2f95d,libanstyle_parse-9d36f2f7e127dae2,libutf8parse-957978a55453c6c5,libclap_lex-5313e669d5c6b928,libanstyle-8f072b6aaac59c39,libbase64-584d5921decd4a7e,libindicatif-7f8bed3be263bbc2,libportable_atomic-5f66d655a657acff,libunit_prefix-a295dd2aca568405,libconsole-b0b84f92f5ba5106,liblibc-adca1634e33b4c32,libunicode_width-0076f3f2b3ba629b,libonce_cell-d7b9c6ad51cb652b}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-*.rlib" "-lc" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/home/swee/Git/dataurlify/target/x86_64-unknown-linux-musl/debug/deps/rustcaZbmgR/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/home/swee/Git/dataurlify/target/x86_64-unknown-linux-musl/debug/deps/dataurlify-1883765b8eba77c5" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "<sysroot>/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" |
| 52 | = note: some arguments are omitted. use `--verbose` to show all linker arguments |
| 53 | = note: cc: error: unrecognized command-line option '-m64' |
| 54 | |
| 55 | |
| 56 | warning: `dataurlify` (bin "dataurlify") generated 1 warning |
| 57 | error: could not compile `dataurlify` (bin "dataurlify") due to 1 previous error; 1 warning emitted |
| 58 | swee@Fudge:~/Git/dataurlify$ source ~/.bashrc |
| 59 | swee@Fudge:~/Git/dataurlify$ echo $RUSTFLAGS |
| 60 | -C linker=rust-lld |
| 61 | swee@Fudge:~/Git/dataurlify$ cargo build --target x86_64-unknown-linux-musl |
| 62 | Compiling once_cell v1.21.3 |
| 63 | Compiling utf8parse v0.2.2 |
| 64 | Compiling anstyle-query v1.1.5 |
| 65 | Compiling libc v0.2.180 |
| 66 | Compiling anstyle v1.0.13 |
| 67 | Compiling colorchoice v1.0.4 |
| 68 | Compiling is_terminal_polyfill v1.70.2 |
| 69 | Compiling portable-atomic v1.13.0 |
| 70 | Compiling clap_lex v0.7.7 |
| 71 | Compiling anstyle-parse v0.2.7 |
| 72 | Compiling strsim v0.11.1 |
| 73 | Compiling unicode-width v0.2.2 |
| 74 | Compiling mime_guess v2.0.5 |
| 75 | Compiling anstream v0.6.21 |
| 76 | Compiling path-dedot v3.1.1 |
| 77 | Compiling unit-prefix v0.5.2 |
| 78 | Compiling mime v0.3.17 |
| 79 | Compiling unicase v2.9.0 |
| 80 | Compiling path-absolutize v3.1.1 |
| 81 | Compiling current_locale v0.1.1 |
| 82 | Compiling base64 v0.22.1 |
| 83 | Compiling clap_builder v4.5.54 |
| 84 | Compiling console v0.16.2 |
| 85 | Compiling indicatif v0.18.3 |
| 86 | Compiling clap v4.5.54 |
| 87 | Compiling dataurlify v2.0.0 (/home/swee/Git/dataurlify) |
| 88 | warning: unused variable: `filename` |
| 89 | --> src/main.rs:37:13 |
| 90 | | |
| 91 | 37 | let filename = file.absolutize().unwrap().file_name().unwrap().to_string_lossy(); |
| 92 | | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` |
| 93 | | |
| 94 | = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default |
| 95 | |
| 96 | warning: `dataurlify` (bin "dataurlify") generated 1 warning (run `cargo fix --bin "dataurlify" -p dataurlify` to apply 1 suggestion) |
| 97 | Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.53s |
| 98 | swee@Fudge:~/Git/dataurlify$ ldd ./target/x86_64-unknown-linux-musl/debug/dataurlify |
| 99 | not a dynamic executable |
| 100 | swee@Fudge:~/Git/dataurlify$ ./target/x86_64-unknown-linux-musl/debug/dataurlify |
| 101 | error: the following required arguments were not provided: |
| 102 | <FILES>... |
| 103 | |
| 104 | Usage: dataurlify <FILES>... |
| 105 | |
| 106 | For more information, try '--help'. |