Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

UndefinedSymbolReference when cross compile to macos #2

Open
cstkingkey opened this issue Feb 26, 2022 · 5 comments
Open

UndefinedSymbolReference when cross compile to macos #2

cstkingkey opened this issue Feb 26, 2022 · 5 comments

Comments

@cstkingkey
Copy link

= note: warning: unsupported linker arg: -dead_strip
warning(link): directory not found for '-L/media/dev/cal-rs/target/x86_64-apple-darwin/debug/build/fltk-sys-b79c45a43c27c1ef/out/build/Release'
warning(link): directory not found for '-L/media/dev/cal-rs/target/x86_64-apple-darwin/debug/build/fltk-sys-b79c45a43c27c1ef/out/lib64'
warning(link): directory not found for '-L/media/dev/cal-rs/target/x86_64-apple-darwin/debug/build/fltk-sys-b79c45a43c27c1ef/out/lib/Release'
warning(link): directory not found for '-L/media/dev/cal-rs/target/x86_64-apple-darwin/debug/build/fltk-sys-b79c45a43c27c1ef/out/lib64/Release'
error(link): undefined reference to symbol '_get_selectedContentBackgroundColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_controlColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemRedColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_alternateSelectedControlTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemGrayColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_linkColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_scrubberTexturedBackgroundColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemPinkColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_shadowColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemOrangeColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_secondaryLabelColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_unemphasizedSelectedTextBackgroundColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemBlueColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_gridColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_controlAccentColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_quaternaryLabelColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_separatorColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_headerTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_disabledControlTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_underPageBackgroundColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedMenuItemTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_highlightColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemIndigoColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_findHighlightColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_windowBackgroundColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemGreenColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_controlTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_windowFrameTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemTealColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_textColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemYellowColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedTextBackgroundColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_unemphasizedSelectedTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_textBackgroundColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_unemphasizedSelectedContentBackgroundColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedControlTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemPurpleColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_tertiaryLabelColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_controlBackgroundColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_keyboardFocusIndicatorColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_labelColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_placeholderTextColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedControlColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error(link): undefined reference to symbol '_get_systemBrownColor'
error(link): first referenced in '/media/dev/cal-rs/target/x86_64-apple-darwin/debug/deps/libfltk_theme-7276b8a3e102c139.rlib(fltk_theme-7276b8a3e102c139.fltk_theme.34fadcf5-cgu.12.rcgu.o)'
error: UndefinedSymbolReference

where do these symbols defined?

@MoAlyousef
Copy link
Contributor

MoAlyousef commented Feb 26, 2022

https://github.com/MoAlyousef/cocoa-colors/blob/main/src/cocoa_colors.m

Cocoa-colors uses the cc crate (not cmake) to build. It shouldn’t require a toolchain file.

@cstkingkey
Copy link
Author

release profile don't have the problem. but debug do.

@MoAlyousef
Copy link
Contributor

That is strange. Nothing in fltk-theme nor cocoa-colors is profile dependent. Can you try running cargo clean then rerunning the debug build?

@cstkingkey
Copy link
Author

build fltk-theme example:

error: linking with cc-macos-x64 failed: exit status: 1
|
= note: "cc-macos-x64" "-m64" "-arch" "x86_64" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.0.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.1.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.10.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.2.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.3.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.4.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.5.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.6.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.7.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.8.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.fluent_dark.d8c5556d-cgu.9.rcgu.o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac.4184f2wpqj6662vs.rcgu.o" "-L" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps" "-L" "/media/dev/fltk-theme/target/release/deps" "-L" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/build" "-L" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/build/Release" "-L" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/lib" "-L" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/lib64" "-L" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/lib/Release" "-L" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/lib64/Release" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libcolor_maps-1fbc30fc437916ba.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libcocoa_colors-487509426862d5ae.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk-f7d81e5d0f42b20b.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libttf_parser-59ca92c6aa897d6e.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libcrossbeam_channel-3e115f67ebd84757.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libcrossbeam_utils-1eaa39add43ecb0c.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/liblazy_static-43dc9a1f59b384e5.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libcfg_if-c27fbc15a4767a8c.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libbitflags-4a655073d941ad2c.rlib" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_sys-325707fe30b35637.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libstd-056ec5f8da85a5c6.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-0eca8ccbb05d41e8.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libobject-f3df534d6cb2a8a3.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libmemchr-7508553746157663.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libaddr2line-41b3db98dcc27d51.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libgimli-bbd7b7eecf756628.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libstd_detect-b5576df482f2a799.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-02015773483edf96.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libhashbrown-dda3dbde44c7a624.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_alloc-7573f724261122d0.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libunwind-b003af69f65f627c.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcfg_if-02094c1160da984c.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/liblibc-57149dc33cede4d9.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/liballoc-b2c83b0f0fa46c61.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-0d9d5d19faea087e.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcore-2e4fa6ee072e39d5.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-340138346aaa8364.rlib" "-framework" "Carbon" "-framework" "Cocoa" "-framework" "ApplicationServices" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/media/dev/fltk-theme/target/x86_64-apple-darwin/release/examples/fluent_dark-98703d91eda239ac" "-Wl,-dead_strip" "-nodefaultlibs"
= note: warning: unsupported linker arg: -dead_strip
warning(link): directory not found for '-L/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/build/Release'
warning(link): directory not found for '-L/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/lib64'
warning(link): directory not found for '-L/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/lib/Release'
warning(link): directory not found for '-L/media/dev/fltk-theme/target/x86_64-apple-darwin/release/build/fltk-sys-2129be0c413dce9a/out/lib64/Release'
warning(link): found dylib is incompatible with the required minimum version
warning(link): dylib: /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
warning(link): required minimum version: 65536
warning(link): dylib version: 0
warning(link): unable to resolve dependency /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
error(link): undefined reference to symbol '_get_windowFrameTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_tertiaryLabelColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemYellowColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemRedColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemPurpleColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemGreenColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemGrayColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemBrownColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemBlueColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_separatorColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedTextBackgroundColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedMenuItemTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedContentBackgroundColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_secondaryLabelColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_labelColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_disabledControlTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_gridColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_headerTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_alternateSelectedControlTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_controlBackgroundColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_controlColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_controlAccentColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_controlTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_findHighlightColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_scrubberTexturedBackgroundColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_highlightColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_keyboardFocusIndicatorColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemPinkColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemIndigoColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedControlTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_linkColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_placeholderTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_quaternaryLabelColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_selectedControlColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_shadowColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemOrangeColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_systemTealColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_textBackgroundColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_textColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_unemphasizedSelectedTextBackgroundColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_underPageBackgroundColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_unemphasizedSelectedContentBackgroundColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_unemphasizedSelectedTextColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error(link): undefined reference to symbol '_get_windowBackgroundColor'
error(link): first referenced in '/media/dev/fltk-theme/target/x86_64-apple-darwin/release/deps/libfltk_theme-32cdab29bca316f5.rlib(fltk_theme-32cdab29bca316f5.fltk_theme.f5aec462-cgu.0.rcgu.o)'
error: UndefinedSymbolReference

= help: some extern functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the -l flag to specify native libraries to link
= note: use the cargo:rustc-link-lib directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

maybe related to the linker

@MoAlyousef
Copy link
Contributor

MoAlyousef commented Feb 26, 2022

It could be. It seems to be related to these issues:
LiveSplit/livesplit-core#121
rust-lang/rust#50007
rust-lang/rust#47384

The fix is still not merged:
rust-lang/rust#93791

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants