-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Building the neomacs-bin crate fails during the link stage with several undefined symbols related to the layout engine.
When --release is enabled, it builds but then simply fails to run, as per #22.
Fresh neomacs-display-runtime v0.0.1 (/Users/yaqub/Development/neomacs/neomacs-display-runtime)
Compiling neomacs-bin v0.0.1 (/Users/yaqub/Development/neomacs/neomacs-bin)
Running `CARGO=/Users/yaqub/.rustup/toolchains/1.93.1-aarch64-apple-darwin/bin/cargo CARGO_BIN_NAME=neomacs CARGO_CRATE_NAME=neomacs CARGO_MANIFEST_DIR=/Users/yaqub/Development/neomacs/neomacs-bin CARGO_MANIFEST_PATH=/Users/yaqub/Development/neomacs/neomacs-bin/Cargo.toml CARGO_PKG_AUTHORS='Eval Exec <execvy@gmail.com>' CARGO_PKG_DESCRIPTION='Standalone Rust binary for Neomacs (no C dependency)' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=GPL-3.0-or-later CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=neomacs-bin CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.1 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_SBOM_PATH='' DYLD_FALLBACK_LIBRARY_PATH='/Users/yaqub/Development/neomacs/target/debug/deps:/Users/yaqub/.rustup/toolchains/1.93.1-aarch64-apple-darwin/lib:/Users/yaqub/lib:/usr/local/lib:/usr/lib' /Users/yaqub/.rustup/toolchains/1.93.1-aarch64-apple-darwin/bin/rustc --crate-name neomacs --edition=2024 neomacs-bin/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=271 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "neo-term"))' -C metadata=d85dfa07f32f3baf -C extra-filename=-414059f0e41419fe --out-dir /Users/yaqub/Development/neomacs/target/debug/deps -C incremental=/Users/yaqub/Development/neomacs/target/debug/incremental -L dependency=/Users/yaqub/Development/neomacs/target/debug/deps --extern crossbeam_channel=/Users/yaqub/Development/neomacs/target/debug/deps/libcrossbeam_channel-bd77cfe6414cec13.rlib --extern libc=/Users/yaqub/Development/neomacs/target/debug/deps/liblibc-02710fed6ab9e26b.rlib --extern neomacs_display_runtime=/Users/yaqub/Development/neomacs/target/debug/deps/libneomacs_display_runtime-34ef525262d0c3c4.rlib --extern neomacs_layout_engine=/Users/yaqub/Development/neomacs/target/debug/deps/libneomacs_layout_engine-3e917f029dc61552.rlib --extern neovm_core=/Users/yaqub/Development/neomacs/target/debug/deps/libneovm_core-6c942dddc62c794f.rlib --extern tracing=/Users/yaqub/Development/neomacs/target/debug/deps/libtracing-ad64f44074f99f86.rlib --extern tracing_subscriber=/Users/yaqub/Development/neomacs/target/debug/deps/libtracing_subscriber-faf814d5199e3868.rlib -L native=/Users/yaqub/Development/neomacs/target/debug/build/network-interface-9ab9360337d71d77/out -L native=/Users/yaqub/Development/neomacs/target/debug/build/psm-cf16f0cc213a763e/out`
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "/var/folders/ym/8f4936qx4_n4gxpkc8nkk2_00000gn/T/rustcmM4K16/symbols.o" "<94 object files omitted>" "/Users/yaqub/Development/neomacs/target/debug/deps/{libneomacs_display_runtime-34ef525262d0c3c4,libtracing_subscriber-faf814d5199e3868,libsharded_slab-e0f9a16a1063f32d,libmatchers-fe1a965bea09d581,libnu_ansi_term-73425f55edfa5680,libthread_local-2a5d05ebf99599e0,libtracing_log-48aaa20ae5cf2352,libos_pipe-0363a6c215a8a81f,libneomacs_renderer_wgpu-fc07e45d613007d5,libpollster-55662d1fe0a619e1,libimage-2ca91ccf512dc3d2,libqoi-d726e41f291ca4a3,libexr-9512fbc5856c599d,libminiz_oxide-c12b1f1416fa2f80,libzune_inflate-1a0e5f27907bb748,libbit_field-93dfcf0730fb51be,liblebe-219c50f1bf8d4244,libtiff-bf4e353ef4d5cb78,libjpeg_decoder-1c9f3a81c14009a1,librayon-e8c3a83b24a04aee,librayon_core-cff4295d48125e49,libcrossbeam_deque-70e6dd117d328edc,libcrossbeam_epoch-78c5a97dc6120509,libwgpu-fe4db9948fba1223,libwgpu_core-5be9fc69a530ae16,libwgpu_hal-aa76bd7971a73344,libgpu_allocator-513d8ca6a9cd84e2,libpresser-cf6ee2ea47896819,libprofiling-b01056bf2573f985,libordered_float-e713e630a7e8caab,libgpu_descriptor-7f06362d3fa429e2,libhashbrown-353266898417265b,libfoldhash-ec20d0a0379fe55f,libgpu_descriptor_types-007de040133093ec,libash-0481a826a99e8ad0,libnaga-cfa41437b6646717,libhexf_parse-33c57b511e96c1cb,libunicode_ident-be69b2baaa981aa6,libbit_set-0d9f07f313a4bb7b,libbit_vec-73a2bd5bc1f281a8,libcodespan_reporting-b6490dff863d9757,libunicode_width-c3ffadca03fee4ce,libindexmap-ca71f80b6885dda4,libhashbrown-97c5bb521d93a74a,libequivalent-a60a29c084636afd,liballocator_api2-5e1a9299abf9b62d,libfoldhash-47c6af5778c5814c,libspirv-79eaf2673829d67f,libhalf-a4642119642ea24d,libzerocopy-9c1755c5504754bf,libparking_lot-8cfd35e38e988686,libparking_lot_core-47e6ee8d0bec63a1,liblock_api-c5f2ba75e9288b63,libscopeguard-a48a9624f45bd0c8,libmetal-04a18d3fd59fddec,libblock-7e8f1e8864f4e9c4,libcore_graphics_types-2770e4e4fa56f675,libcore_foundation-5de5dbf1ad6ca260,libobjc-29b25633ffdbfa19,libmalloc_buf-a66504b16d46922d,libwgpu_types-3da4fd9b86fd0016,libresvg-0fcb587a186af24d,libimage_webp-d827650c949ce452,libquick_error-5080a8a7aa8cfb95,libbyteorder_lite-0d55fe178226b4ed,libgif-6d50dc8bd2157f52,libcolor_quant-ed73757fa5433327,libweezl-c891174750c7d2aa,libzune_jpeg-de3190be095485b2,libzune_core-b3653039e03d03af,librgb-5770d8028d6ac875,libusvg-57dcfe375f58d6a6,libbase64-28b2171a4ff4541c,libunicode_vo-fc2a2575dc087315,libimagesize-29d15b557565784d,libdata_url-c8b79643d6c0d5e3,libxmlwriter-3d9338963dc6b667,librustybuzz-fb7010ece02b7183,libunicode_bidi_mirroring-688c36bda1d82fdb,libunicode_properties-4f70ec9325a88d87,libunicode_ccc-a1769328b6353876,libsimplecss-fc64e602180492dd,libroxmltree-8156aa49608413d3,libsvgtypes-f78d47f8162d82b0,libkurbo-2a6f7f04f92d907b,libsiphasher-1009363a57ead995,libfontdb-889d4957f002d798,libttf_parser-b34d2b24c7291a98,libtiny_skia-2083ef709a6067b6,libpng-76333f7f4598a540,libfdeflate-a3dd681562c2c898,libsimd_adler32-898fb72792798eba,libarrayvec-831ce1daf5f2099b,libtiny_skia_path-74f2a7d9c73ff392,libstrict_num-8e4e829ddd9884b5,libfloat_cmp-c0da44f72755574e,libarrayref-88e82d34bc160a8f,libneomacs_layout_engine-3e917f029dc61552,liballsorts-5f5cbb7775269cac,libbrotli_decompressor-9a5aa585239f5716,liballoc_stdlib-2d23910d230410d2,liballoc_no_stdlib-6a5e47364eb31bc6,libucd_trie-86e8704c931c5a4d,libglyph_names-18d0c6c9152a36ce,libunicode_canonical_combining_class-9e885e6fbe0ea3a7,libflate2-303584536485b0be,liblibz_sys-b347ab797f48f410,libcrc32fast-97e80915cab2f1cc,libunicode_joining_type-3778b4d31c04d8ee,libunicode_general_category-d172cbd7977febb2,libouroboros-519d9324013ea161,libstatic_assertions-24cdd12213e82c54,libaliasable-dbc5cc69e34e322f,liblazy_static-42a74c5fe1d4e165,libitertools-772154b4e8af9a37,libeither-ba8dd74c387fe579,libbyteorder-977b336560cdbe0b,libpathfinder_geometry-bfcdc9b4c486a1f4,libpathfinder_simd-898e1286cb540587,librustc_hash-c583ae485944b21a,libnum_traits-98650d887aa80a0b,libbitreader-75169cf58bb988e7,libencoding_rs-0f8060e4dacdade6,libneovm_core-6c942dddc62c794f,libpolling-0ba90b7592f324bd,libtempfile-622d499c6510fee6,libgetrandom-0dbc20a51d07db9e,libfastrand-299b323705833a50,librustix-333be6ba42b39cd4,liberrno-db2718b62d88ed99,libbincode-56c9cfb140f87d90,libstacker-5285f523e7e88678,libpsm-0f5bf216f2670896,libcrossbeam_channel-bd77cfe6414cec13,libcrossbeam_utils-01ef83446bbcc842,liblibloading-87597c0b97e735e8,libneovm_host_abi-c6114fa59f44ba5c,libnetwork_interface-ad0a0a27eb4ae1e7,libthiserror-a24f30358399446e,libdns_lookup-5bb6bd09b2334331,libsocket2-6e0c7e0862c64bf3,libsha1-f5e2f4f855e56a1c,libsha2-353be8f76d5fa838,libcfg_if-bb242b5271acb8bf,libdigest-3b941e62f2c7ba81,libblock_buffer-1bf2fb0c5969c5b1,libcrypto_common-52432fca47935803,libgeneric_array-1c801ec9af7dbf01,libtypenum-585bb1e94f33819a,libserde-d91a450bef8f5ba2,libserde_core-99faa1a928f3e8c8,libstrum-efaec55991e67df6,libregex-5c591a4a4b75e349,libregex_automata-ca5d4fd509c371da,libaho_corasick-fa4bbaaabde1e987,libmemchr-30f8187d5c15687f,libregex_syntax-6adfe6d6cb3bcdfe,libneomacs_display_protocol-a30aa98d4bb04791,libcosmic_text-6e58e5924268e7c5,librustc_hash-9f2389b1d9bdd664,libunicode_linebreak-eddc44007c2e09ac,libsys_locale-29e025c23b125ee4,libswash-951711945c199d92,libyazi-a2864dac5f9ccf09,libskrifa-164b0ee755a5a42e,libread_fonts-825489a0ad9a9eec,libfont_types-5951d65a087e555e,libzeno-01316fcf3ccdf6a1,libunicode_script-bcfd0b86d6c82064,libself_cell-c7647fe23b5e2eb4,libskrifa-0d157363b3b654d8,liblinebender_resource_handle-2f1606f4462897fc,libharfrust-0d93d715c7f2072e,libsmallvec-c38b37a4dfc8af36,libread_fonts-a26fb89ec296e203,libcore_maths-3047ea9a89a2c6f9,liblibm-4d2b304a3dfd08cc,libfont_types-f4cb4b1eb6be6e40,libbytemuck-9aeda9f706bc7bfa,libunicode_segmentation-2d3184873bc4ff21,libunicode_bidi-d104ba42862d9503,libfontdb-cd76aaceda2858c0,libmemmap2-4dddc5e31e521af2,liblog-81410f9c76ff382c,libtinyvec-4ab17b6b9bc5bfa7,libtinyvec_macros-504dc3b030c16bb8,libslotmap-2a49e1a1ef9c23af,libttf_parser-e77394e15bb478f9,libsmol_str-119150d293430df1,librangemap-bc27176f7bd1e743,libwinit-0d6d2950453b2836,libcore_graphics-7dddf15918c50a69,libcore_graphics_types-ffdf682c083dcb71,libforeign_types-c7de925e113ae661,libforeign_types_shared-f77cea09b4314f1f,libbitflags-231974ce2180e880,libcore_foundation-8aec7e23a9983304,liblibc-02710fed6ab9e26b,libcore_foundation_sys-55c5b3526b82052f,libobjc2_app_kit-fd0d263a9353cf81,libobjc2_foundation-c93c02101238f5e7,libdispatch-be3a44522162bc86,libblock2-c0124a6340fcf2b5,libobjc2-eb0a0228919ab7aa,libobjc2_encode-9d1f5ddd19e35678,libobjc_sys-66631ab3291abe49,libtracing-ad64f44074f99f86,libpin_project_lite-e37b24070348ca34,libtracing_core-5d9b692f1f71cd38,libonce_cell-8bd4518587cf53ec,libbitflags-2d6950674d442cd4,libsmol_str-60fdce58d1e20178,libcursor_icon-6eb10aca83d73c8f,libdpi-0289b9c16ca9045c,libraw_window_handle-727f68bcef332a33}.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" "-framework" "Foundation" "-framework" "QuartzCore" "-framework" "Metal" "-lSystem" "-lSystem" "-framework" "CoreGraphics" "-lobjc" "-lz" "-framework" "CoreFoundation" "-framework" "ApplicationServices" "-framework" "CoreGraphics" "-framework" "CoreVideo" "-framework" "Carbon" "-framework" "CoreGraphics" "-framework" "CoreGraphics" "-liconv" "-framework" "CoreFoundation" "-framework" "AppKit" "-framework" "Foundation" "-lc" "-lSystem" "-framework" "Foundation" "-lobjc" "-lSystem" "-lc" "-lm" "-arch" "arm64" "-mmacosx-version-min=11.0.0" "-L" "/Users/yaqub/Development/neomacs/target/debug/build/network-interface-9ab9360337d71d77/out" "-L" "/Users/yaqub/Development/neomacs/target/debug/build/psm-cf16f0cc213a763e/out" "-o" "/Users/yaqub/Development/neomacs/target/debug/deps/neomacs-414059f0e41419fe" "-Wl,-dead_strip" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: ld: warning: ignoring duplicate libraries: '-lSystem', '-lc', '-lobjc'
ld: warning: object file (/Users/yaqub/Development/neomacs/target/debug/deps/libpsm-0f5bf216f2670896.rlib[4](4f9a91766097c4c5-aarch_aapcs64.o)) was built for newer 'macOS' version (26.2) than being linked (11.0)
ld: warning: object file (/Users/yaqub/Development/neomacs/target/debug/deps/libnetwork_interface-ad0a0a27eb4ae1e7.rlib[6](eff4065450ea3029-lladdr.o)) was built for newer 'macOS' version (26.2) than being linked (11.0)
Undefined symbols for architecture arm64:
"_neomacs_layout_char_width", referenced from:
neomacs_layout_engine::engine::char_advance::h94f7828d6a5583d3 in libneomacs_layout_engine-3e917f029dc61552.rlib[84](neomacs_layout_engine-3e917f029dc61552.7otn35qty86uygbbp944jkols.0nb8p2k.rcgu.o)
"_neomacs_layout_face_by_id", referenced from:
neomacs_layout_engine::status_line::_$LT$impl$u20$neomacs_layout_engine..engine..LayoutEngine$GT$::render_status_line_spec::h0c36058bec06225b in libneomacs_layout_engine-3e917f029dc61552.rlib[84](neomacs_layout_engine-3e917f029dc61552.7otn35qty86uygbbp944jkols.0nb8p2k.rcgu.o)
"_neomacs_layout_fill_ascii_widths", referenced from:
neomacs_layout_engine::engine::char_advance::h94f7828d6a5583d3 in libneomacs_layout_engine-3e917f029dc61552.rlib[84](neomacs_layout_engine-3e917f029dc61552.7otn35qty86uygbbp944jkols.0nb8p2k.rcgu.o)
"_neomacs_layout_get_stipple_bitmap", referenced from:
neomacs_layout_engine::engine::LayoutEngine::apply_status_line_face::hcc17ce18961a9aac in libneomacs_layout_engine-3e917f029dc61552.rlib[84](neomacs_layout_engine-3e917f029dc61552.7otn35qty86uygbbp944jkols.0nb8p2k.rcgu.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: could not compile `neomacs-bin` (bin "neomacs") due to 1 previous error
Caused by:
process didn't exit successfully: `CARGO=/Users/yaqub/.rustup/toolchains/1.93.1-aarch64-apple-darwin/bin/cargo CARGO_BIN_NAME=neomacs CARGO_CRATE_NAME=neomacs CARGO_MANIFEST_DIR=/Users/yaqub/Development/neomacs/neomacs-bin CARGO_MANIFEST_PATH=/Users/yaqub/Development/neomacs/neomacs-bin/Cargo.toml CARGO_PKG_AUTHORS='Eval Exec <execvy@gmail.com>' CARGO_PKG_DESCRIPTION='Standalone Rust binary for Neomacs (no C dependency)' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=GPL-3.0-or-later CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=neomacs-bin CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.1 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=1 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_SBOM_PATH='' DYLD_FALLBACK_LIBRARY_PATH='/Users/yaqub/Development/neomacs/target/debug/deps:/Users/yaqub/.rustup/toolchains/1.93.1-aarch64-apple-darwin/lib:/Users/yaqub/lib:/usr/local/lib:/usr/lib' /Users/yaqub/.rustup/toolchains/1.93.1-aarch64-apple-darwin/bin/rustc --crate-name neomacs --edition=2024 neomacs-bin/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=271 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values("default", "neo-term"))' -C metadata=d85dfa07f32f3baf -C extra-filename=-414059f0e41419fe --out-dir /Users/yaqub/Development/neomacs/target/debug/deps -C incremental=/Users/yaqub/Development/neomacs/target/debug/incremental -L dependency=/Users/yaqub/Development/neomacs/target/debug/deps --extern crossbeam_channel=/Users/yaqub/Development/neomacs/target/debug/deps/libcrossbeam_channel-bd77cfe6414cec13.rlib --extern libc=/Users/yaqub/Development/neomacs/target/debug/deps/liblibc-02710fed6ab9e26b.rlib --extern neomacs_display_runtime=/Users/yaqub/Development/neomacs/target/debug/deps/libneomacs_display_runtime-34ef525262d0c3c4.rlib --extern neomacs_layout_engine=/Users/yaqub/Development/neomacs/target/debug/deps/libneomacs_layout_engine-3e917f029dc61552.rlib --extern neovm_core=/Users/yaqub/Development/neomacs/target/debug/deps/libneovm_core-6c942dddc62c794f.rlib --extern tracing=/Users/yaqub/Development/neomacs/target/debug/deps/libtracing-ad64f44074f99f86.rlib --extern tracing_subscriber=/Users/yaqub/Development/neomacs/target/debug/deps/libtracing_subscriber-faf814d5199e3868.rlib -L native=/Users/yaqub/Development/neomacs/target/debug/build/network-interface-9ab9360337d71d77/out -L native=/Users/yaqub/Development/neomacs/target/debug/build/psm-cf16f0cc213a763e/out` (exit status: 1)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels