Why I can't run any example on MacOS M1? #1375
Answered
by
hecrj
GeorgianBadita
asked this question in
Q&A
-
ContextHey, I am trying to use I get the following error on all the examples: Running command:
Rustflagsexport RUSTFLAGS="-Cinstrument-coverage"
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort"
export RUSTDOCFLAGS="-Cpanic=abort"
export LLVM_PROFILE_FILE="coverage.profraw"
export CARGO_INCREMENTAL=0 RustTried both:
System
Log outputerror: linking with `cc` failed: exit status: 1
|
= note: "cc" "-arch" "arm64" "/var/folders/26/xng334sn0r133wg6531dbvvh0000gn/T/rustcprrhPT/symbols.o" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/integration_opengl-01ce574d41b2aac2.integration_opengl.9a5cef4e-cgu.0.rcgu.o" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/integration_opengl-01ce574d41b2aac2.4r3lo5s0z7uyvwdg.rcgu.o" "-L" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps" "-L" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libenv_logger-c3ca6421f6b74e50.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libatty-f4b8c6a28e09ad75.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libtermcolor-638347b7ed08ac90.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libhumantime-ae7917c3349b7dfb.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libregex-6b05bb7716fb99cb.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libaho_corasick-df9250c0c429770a.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libregex_syntax-8f7d715e8085df28.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libiced_glutin-8d4a70e4b180f475.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libiced_winit-7d5e4c27810f2e7c.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libwindow_clipboard-35dbf69396b284ce.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libclipboard_macos-510933b9e3197b2f.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libobjc_foundation-85bc4ab12a8fd0ba.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libobjc_id-c813d259e48dfb52.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libraw_window_handle-9cbd30fa9e0c4693.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libglutin-dfa21fcc74ff10dc.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcgl-dea93b051a4e8270.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libwinit-bd66004449f18d1d.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libdispatch-4c4a444329c2f7cf.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcore_video_sys-132fe3a84a3cb8a3.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcore_graphics-e98a68fc7235914f.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcore_foundation-de71a90e21f85529.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcore_foundation_sys-d16b009260a549e9.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcfg_if-504e5b6598191998.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcocoa-f70cf4003be464b2.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcocoa_foundation-0daf34c610f9c875.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcore_graphics-130ddc6b5c58f6dd.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcore_graphics_types-2e141c6049806b3c.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libforeign_types-b1a73fdbd94e948a.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libforeign_types_shared-b2b813634eacbc55.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcore_foundation-8928320c492b4635.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcore_foundation_sys-a98884409e1a2efe.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libblock-54d07849328ebd85.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libinstant-bd4098f67cf644c8.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/liblazy_static-f75dab69ff4510ec.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libobjc-88a1fc1ca679e36a.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libmalloc_buf-36827c8d724d6279.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libiced_glow-b84b2526812872fb.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libglow_glyph-1e6011b04636f053.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libglyph_brush-f20eb4d4d2550a24.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libglyph_brush_layout-ef3afccb5440113a.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libxi_unicode-4859f6b2ebb85c3d.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libapprox-0204e06750b93a80.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libglyph_brush_draw_cache-c8d1a7d0e8af58c6.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/librayon-abde247a0b29e53c.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/librayon_core-e4841158cc824f1e.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libeither-128af0773842bdff.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcrossbeam_deque-64b7a246f60ad70b.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcrossbeam_epoch-b4b6b45e66dff77a.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libmemoffset-d9adb3cfcd75f234.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libscopeguard-eb1e61010332a1cf.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcrossbeam_channel-e5aa2fd0022f22e8.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcrossbeam_utils-1fe233d27e6e4ccc.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libonce_cell-45604ab3bb970631.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/librustc_hash-124e9f7433b5d102.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/liblinked_hash_map-0384c2a4039f68dc.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libab_glyph-9d97f559dfeb9e41.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libowned_ttf_parser-5bed61d251d16ca5.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libttf_parser-04d90d29bc80936d.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libab_glyph_rasterizer-0b77f0c1631f6705.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libordered_float-808eb23aca56cdfa.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libiced_graphics-15909d624e6f09d8.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libthiserror-3c94cec5565f5118.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libraw_window_handle-caedfcf27ee63d88.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcty-fd0375591ba16680.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libbytemuck-06bd9fb746ba9e0b.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libglam-65c25eb4f970c0ba.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libiced_native-c27b6616d61dc40d.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libtwox_hash-a7a7be33a84a7d37.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/librand-bbea59a0946d7bf5.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/librand_chacha-b887123fedfe26ee.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libppv_lite86-893e1fecce19d01e.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/librand_core-360d1870880abced.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libgetrandom-92958b81f9f30649.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libstatic_assertions-a06fe98c93677958.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libnum_traits-e69d2d6475830145.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libunicode_segmentation-135629050c785d5d.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libiced_style-d9e73a64a012aa8a.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libiced_core-ea5230f28692bf85.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libbitflags-295066ef4f1a08fb.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libiced_futures-f747a3bd68104bed.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/liblog-8aaf2fada90fd261.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libcfg_if-e6509c5f025d8702.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libfutures-d3848286496ed350.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libfutures_executor-2406d8495e396975.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libnum_cpus-3b913b51fe59fbf0.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/liblibc-1b5ce4b92aa38abf.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libfutures_util-50e60711640afa96.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libmemchr-44be8707d5fc22ec.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libfutures_io-54082c4b287aba99.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libslab-d61084affcbc2038.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libfutures_channel-95f825c30da3052d.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libpin_project_lite-b7768fffd0c2e379.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libfutures_sink-80aa7dea48b62c2b.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libfutures_task-2ccbd337f3a78a54.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libpin_utils-e95d96519fa19afe.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libfutures_core-141e06f8859f3923.rlib" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/libglow-4d46edd85f0bbf1e.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libprofiler_builtins-053c7571c782a420.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd-af3f3292c66eb7cc.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpanic_abort-c0afc06e7628ac8a.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libobject-5fa6d29c50391a26.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libmemchr-9f34659cc49c55cf.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libaddr2line-0ca0691d5024e0e7.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libgimli-8b09daf3a02ae894.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_demangle-c8e6e1ad4a56d084.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libstd_detect-cc5bb2a5896a5a35.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libhashbrown-ba2ca40bd5b846ac.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libminiz_oxide-eddbbfd8a1284efa.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libadler-0d5fdbc7da87a8dd.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_alloc-94febd0ddea042d3.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libunwind-9231f6f457586171.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcfg_if-3e833ccda9a92f6a.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liblibc-e2416b3132f6fa90.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/liballoc-a8cb71066dca08ca.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/librustc_std_workspace_core-95a7e52c78a3fba1.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcore-dd6de681850a671c.rlib" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libcompiler_builtins-aa21927f5da4d4a2.rlib" "-framework" "AppKit" "-framework" "Foundation" "-framework" "OpenGL" "-framework" "CoreGraphics" "-framework" "CoreFoundation" "-lSystem" "-framework" "CoreVideo" "-framework" "CoreGraphics" "-framework" "CoreFoundation" "-framework" "AppKit" "-framework" "QuartzCore" "-framework" "Foundation" "-framework" "CoreGraphics" "-framework" "CoreFoundation" "-lSystem" "-lobjc" "-liconv" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/Users/marin-georgianbadita/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib" "-o" "/Users/marin-georgianbadita/Desktop/iced/target/debug/deps/integration_opengl-01ce574d41b2aac2" "-nodefaultlibs"
= note: Undefined symbols for architecture arm64:
"_CFMutableAttributedStringGetTypeID", referenced from:
_$LT$core_foundation..attributed_string..CFMutableAttributedString$u20$as$u20$core_foundation..base..TCFType$GT$::type_id::hef5cda8c88a7a23b in libcore_foundation-de71a90e21f85529.rlib(core_foundation-de71a90e21f85529.core_foundation.0aeeaadd-cgu.0.rcgu.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation) |
Beta Was this translation helpful? Give feedback.
Answered by
hecrj
Jul 1, 2022
Replies: 1 comment 3 replies
-
What is the build command you are using? Do you have any |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
GeorgianBadita
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the build command you are using? Do you have any
RUSTFLAGS
set?