Skip to content

Instantly share code, notes, and snippets.

@aaronj1335
Created January 22, 2026 16:35
Show Gist options
  • Select an option

  • Save aaronj1335/43e521260eaeb679616cbe96af2f1873 to your computer and use it in GitHub Desktop.

Select an option

Save aaronj1335/43e521260eaeb679616cbe96af2f1873 to your computer and use it in GitHub Desktop.
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "/var/folders/v6/xj83gjjd35z0pdkkh83r3wrw00b37y/T/rustczTpfzS/symbols.o" "<6 object files omitted>" "/Users/aaronstacy/code/rustledger/target/debug/deps/{librustledger-da4569711b57bd17,libdirs-17ce5479891a2405,libdirs_sys-0ac9535028c6b1ba,liboption_ext-4e1415f131ffe053,libureq-489e58b37d1b4c7a,libwebpki_roots-df279c0adaf207ca,librustls-7dee7ef35cc83045,libsubtle-992040e6156593c1,libwebpki-44414ef5fe22226c,libring-7287f87b7c6a57af,libgetrandom-525a9db2019a875a,libuntrusted-52b082ce9f9b3324,librustls_pki_types-869e0a1cbf967204,libzeroize-aefd52c8cf89f7b5,libpercent_encoding-31200e79ef16e85c,libflate2-96d70899d2ce1713,libminiz_oxide-1e57833460511f91,libsimd_adler32-b84f675a18a4fa8f,libcrc32fast-35b570390ffac662,libutf8-7ac31d0e1e46fa74,libureq_proto-37fea422c2bcc646,libhttparse-24a24632d0cc9473,libbase64-1ef6edecf50cebc1,libhttp-8a54d078258a9585,libbytes-94b1994afcc5d1ce,libserde_json-a3c5f34f7c0044db,libzmij-b2e7113fe3807185,libariadne-d19a3e29e082673f,libyansi-a5b01d3baf3d380c,librustyline-9d937782945e3192,libnix-c10cf4e6c51c4010,libunicode_width-95a61642aa41599b,libfd_lock-7bd73cb82d5ff09f,librustix-3a184c371ab8f364,libbitflags-fdf7b24724f5dbfb,liberrno-1e3510206b8bad77,libhome-305a9ab35a96c2a3,libradix_trie-89c4ee86abd82738,libnibble_vec-7153f9fb941a1d52,libendian_type-41f2bc73be3ff6c4,librustledger_query-f2525d156875f2ce,libregex-c1f4b6e0c9142779,librustledger_importer-02883c18860e68bb,libofxy-80f1fcb5b8080186,libisolang-ad6ea6c1ec2f4671,libphf-0d563bdc66b0ea63,libphf_shared-73f809ee7c6a6243,libsiphasher-9f600a63d9460f74,libsgmlish-6a590ba3d47aebf0,libthiserror-43091fc12aad362b,libnom-c80b5e3ff0fc7fed,libcsv-52adddeb79b0ea49,libryu-2a98967235a3c7ec,libitoa-a540da1e909968ec,libcsv_core-24c69e0598c755a2,libclap_complete-f6bb3f3b7bd4b08d,libtracing_subscriber-bc6c0d2f67228665,libsmallvec-a12cab7ff455a880,libsharded_slab-25ee569c46520e44,liblazy_static-ab560afe2643fa18,libmatchers-a36e35abc4dc9555,libregex_automata-a9403b50a2f11338,libaho_corasick-3c24226b462b9acd,libmemchr-d7f1d5255bfd2ce5,libregex_syntax-663f14ee7a4fa835,libnu_ansi_term-c006e783fe5f33bf,libthread_local-10a8558f3f8aaa76,libtracing_log-9362d7dd501c5bc5,liblog-e897e9921866e8f1,libtracing-819e941e8d08243d,libpin_project_lite-542652da76a02055,libtracing_core-8c28bf22558fb52b,libonce_cell-39aaedba10848009,librustledger_validate-696218315cf2d8d1,librustledger_plugin-f1a64d39fcc8f09a,librustledger_loader-5309a712a25390cf,libsha2-c12de6e6cf4b3cb2,libdigest-efcc0392661156f7,libblock_buffer-e58e7d94508262dc,libcrypto_common-f141efd56e295a0b,libgeneric_array-1e247df41663fd5c,libtypenum-4030d1947aaf035c,librustledger_parser-db89703827a9f2dd,libchumsky-1f2fa8be7a0fc921,libunicode_ident-611f006b9de8571e,libstacker-9148319853e21af3,libpsm-011dfb007c7c925b,liblibc-a6144bf4ec6a9366,libcfg_if-cbf7455ed13bc67f,libunicode_segmentation-a67954049d5515d8,libhashbrown-ee8330f2c672cd6f,libfoldhash-0063cf9a3c5a6981,libequivalent-11b36d5d71cb8358,liballocator_api2-63da2d3502f4f660,liblogos-595329e4a570a6b2,librustledger_booking-45331f55b2ff6f86,libthiserror-daee267b7684f0be,librustledger_core-7e7eccebf9eae146,librkyv-46e694e4359f206d,libhashbrown-23bb5f45e50ad67a,librend-265edbdf0ecb1161,libmunge-3a5d4062e671b035,libbytecheck-ef02f904898a4831,libsimdutf8-c089baa7ca332b88,librancor-211e5253e8024236,libptr_meta-43fb3b69be65cddb,librust_decimal-17bbe1514dcd1adb,libarrayvec-8960c08ae1c67a9d,librayon-65783e1a67bc1291,librayon_core-df08127e81cd0164,libcrossbeam_deque-2f8ea242fbd570cf,libcrossbeam_epoch-42cd25dd81fa47aa,libcrossbeam_utils-1e21493617c8cefc,libeither-ac6b92513dd55a77,libclap-6a225b2fca6982e1,libclap_builder-d6836ebc3bb12238,libstrsim-3a909182891ee47a,libanstream-b3305a6b456576f3,libanstyle_query-ecb857f3f2d44eaa,libis_terminal_polyfill-43f420ba7783fe2e,libcolorchoice-d1584e2f71c0d206,libanstyle_parse-18221abe79f29769,libutf8parse-8da47e3146d21bc1,libclap_lex-f6b82acfb9bae9a5,libanstyle-553a3dd09f4a70d6,libchrono-419352604c3001e8,libiana_time_zone-86bcdb446a7bce78,libcore_foundation_sys-d79f9d76f8ada460,libnum_traits-c0753caada8d802b,libserde-0fbf6d788f40365c,libserde_core-e791962d746078ef,libanyhow-960b2e73cc533c48}.rlib" "<sysroot>/lib/rustlib/aarch64-apple-darwin/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" "-liconv" "-framework" "CoreFoundation" "-lSystem" "-lc" "-lm" "-arch" "arm64" "-mmacosx-version-min=11.0.0" "-L" "/Users/aaronstacy/code/rustledger/target/debug/build/psm-d3c9a345bc44d90e/out" "-L" "/Users/aaronstacy/code/rustledger/target/debug/build/ring-1160c5791ca4fd6b/out" "-o" "/Users/aaronstacy/code/rustledger/target/debug/deps/rledger_query-d770f51192148520" "-Wl,-dead_strip" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: 0 0x104c14194 __assert_rtn + 72
1 0x104b6ea8c ld::DynamicAtomFile::makeNamedAtom(std::__1::basic_string_view<char, std::__1::char_traits<char>>, ld::file_format::Scope, bool) + 464
2 0x104b39eac ___ZNK2ld10InputFiles11SliceParser15parseObjectFileEPKN6mach_o6HeaderE_block_invoke.57 + 228
3 0x104b1d44c ld::AtomPlacement::atomFromSymbolIndex(unsigned int, ld::Atom const*&) const + 92
4 0x104b1e858 ld::FixupFromRelocs::arm64_ptr64(relocation_info const&) const + 224
5 0x104b37098 ld::InputFiles::SliceParser::parseObjectFile(mach_o::Header const*) const + 5852
6 0x104b4288c ld::InputFiles::SliceParser::parse() const + 696
7 0x104b45dc4 ld::InputFiles::parseAllFiles(void (ld::AtomFile const*) block_pointer)::$_0::operator()(unsigned long, ld::FileInfo const&) const + 984
8 0x19e199874 _dispatch_client_callout2 + 16
9 0x19e194610 _dispatch_apply_invoke3 + 336
10 0x19e19985c _dispatch_client_callout + 16
11 0x19e182a28 _dispatch_once_callout + 32
12 0x19e194cb8 _dispatch_apply_invoke_and_wait + 372
13 0x19e193dac _dispatch_apply_with_attr_f + 1312
14 0x19e193f34 dispatch_apply + 96
15 0x104be0ae8 ld::AtomFileConsolidator::parseFiles(bool) + 392
16 0x104bdaf8c ld::Linker::run() + 8000
17 0x104b6a0f4 main + 1924
ld: Assertion failed: (name.size() <= maxLength), function makeSymbolStringInPlace, file SymbolString.cpp, line 74.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment