Since clang package is updated to LLVM 22, building this package will fail while linking probably because of some breaking change inside clang:
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/home/onion27/.cache/paru/clone/emmylua-analyzer-rust-git/src/emmylua-analyzer-rust/target/release/deps/rustcRJYTpq/symbols.o" "<17 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/onion27/.cache/paru/clone/emmylua-analyzer-rust-git/src/emmylua-analyzer-rust/target/release/deps/{libmimalloc-add8fb1e617198c0,liblibmimalloc_sys-4970f575f901a414,liblibc-9ae183ffaa0736fe,libsimilar-d95ff38cd3e91aea,libemmylua_formatter-5a8cb63f4e653f34,libserde_yml-5ac336ddb8f5502c,liblibyml-c50416d789e51ef3,libglob-a8be9bf84c7cf765,libsmol_str-bbf431b3af35adc9,libemmylua_parser-8e144b6cfd5150a9,librowan-4f7b83e78bf46795,libtext_size-a5d02ea1e0db01a1,librustc_hash-c32312ff91a9d7e4,libhashbrown-769f8b7834522965,libcountme-3926c8310a9787c9,librust_i18n-c269ee803b77008c,libsmallvec-5092ae672f3189f2,librust_i18n_support-7ffe2da58bf676cc,libserde_yaml-a5932387d328101d,libunsafe_libyaml-68ad1923c8094134,libglobwalk-ffec7ec7fb9f9315,libbitflags-9cbde7ae8d4354ce,libignore-879e25f44abe98af,libwalkdir-9bbb7b20063b2da4,libsame_file-86cca7881b00e7a9,libcrossbeam_deque-451617bd2941746d,libcrossbeam_epoch-be82f52bc0242b5c,libcrossbeam_utils-abc9f8520e480f64,libglobset-ced31eb5e8dc8c02,liblog-9b02f50c06d07f7f,libregex_automata-fb21fa9c68666b53,libregex_syntax-fb2973c94ec731eb,libbstr-6a70bf5b7e43b082,libaho_corasick-de7d965552ad1fd2,libserde_json-11afc9e972ad212a,libmemchr-887c669900fb3476,libitoa-b64b548033939254,libryu-f658a6d6d1e3423e,libbase62-97d1a15e32e8f391,libtoml-966fdf835101b3d1,libtoml_edit-73beec006a592aae,libserde_spanned-32f4d57b949837ec,libindexmap-528c96f2d582555c,libhashbrown-f966675698a5ec6b,libfoldhash-aee2431c258b4368,libequivalent-0ecbef56045480b9,liballocator_api2-b37add61c0df0fb3,libwinnow-b63f5c7c6831f02d,libtoml_write-493718456d6fcda4,libtoml_datetime-7fc1cba0c67792db,libsiphasher-b7252444f1a192d5,libitertools-89cbfd0415811bfc,libeither-cca0e3d8a2b2518a,libtriomphe-a82a964c3c3c54b8,libstable_deref_trait-e23096988dbfdc31,libserde-54214ab2034ce9fe,libserde_core-0d1f92652e276ddb,libarc_swap-3dbc7bfab97e812a,libnormpath-3f846258451e2d57,libonce_cell-adbb56bf8142d125,libclap-92f8d8dc161bfb37,libclap_builder-e22743f90e010b76,libterminal_size-8b7a0e68e9818f74,librustix-df9737ad4de34b05,libbitflags-3ca68a369980c753,liblinux_raw_sys-c93f35a916104700,libstrsim-cc6107b0b285f0d7,libanstream-bc706e78c0b3f386,libanstyle_query-40bf4cf76d40b4c3,libis_terminal_polyfill-2626b98e54ab6225,libcolorchoice-b5f82b106916867d,libanstyle_parse-075d34a633d80eba,libutf8parse-291bcfb01992f468,libclap_lex-a93ae38219671170,libanstyle-4bdb56d2c5964caa}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/home/onion27/.cache/paru/clone/emmylua-analyzer-rust-git/src/emmylua-analyzer-rust/target/release/deps/rustcRJYTpq/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/onion27/.cache/paru/clone/emmylua-analyzer-rust-git/src/emmylua-analyzer-rust/target/release/build/libmimalloc-sys-11e85de3b7f39641/out" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/onion27/.cache/paru/clone/emmylua-analyzer-rust-git/src/emmylua-analyzer-rust/target/release/deps/luafmt-e0133e3505b14533" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: rust-lld: error: /home/onion27/.cache/paru/clone/emmylua-analyzer-rust-git/src/emmylua-analyzer-rust/target/release/deps/liblibmimalloc_sys-4970f575f901a414.rlib(3623ac3857f1c925-static.o): Unknown attribute kind (105) (Producer: 'LLVM22.1.2' Reader: 'LLVM 21.1.8-rust-1.94.1-stable')
collect2: error: ld returned 1 exit status
error: could not compile `emmylua_formatter` (bin "luafmt") due to 1 previous error
Weirdly though, building the package with modified PKGBUILD that doesn't set CC and CXX still failed with bunch of undefined symbols from mimalloc, but directly build from the repository seems to be fine.
Pinned Comments
ninchan commented on 2026-01-24 13:10 (UTC)
Installing this package will always automatically pull the latest source code, compile, and install it. It is only necessary to update this package if the upstream dependencies have changed.
安装这个包总是会自动拉取最新的源码并编译并安装。除非上游更新了依赖,我才有必要更新这个包。