Skip to content

Instantly share code, notes, and snippets.

@slyphon
Created November 26, 2018 17:16
Show Gist options
  • Save slyphon/11ace882f006b3c24e0ff9f57733ce04 to your computer and use it in GitHub Desktop.
Save slyphon/11ace882f006b3c24e0ff9f57733ce04 to your computer and use it in GitHub Desktop.
failed build on macos - clang compiler
out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks/Security.framework/Security.tbd and library file /System/Library/Frameworks/Security.framework/Security are out of sync. Falling back to library file for linking.
Undefined symbols for architecture x86_64:
"___rust_alloc_zeroed", referenced from:
alloc::alloc::alloc_zeroed::h3a1f22bc4c6ddd5f in libbacktrace-9790369d577f04eb.rlib(backtrace-9790369d577f04eb.backtrace.d4gljdrp-cgu.10.rcgu.o)
alloc::alloc::alloc_zeroed::h9befe99d753639af in libtermcolor-a32fe53cd2fd2dcb.rlib(termcolor-a32fe53cd2fd2dcb.termcolor.8h6oext7-cgu.15.rcgu.o)
alloc::alloc::alloc_zeroed::h15153dfe2ca517b7 in libregex-a2d2ae3d5151aa2a.rlib(regex-a2d2ae3d5151aa2a.regex.2w9usw49-cgu.3.rcgu.o)
alloc::alloc::alloc_zeroed::h9d09b01d11874866 in libccommon_rs.rlib(ccommon_rs.228dvcpmrvtp0bay.rcgu.o)
alloc::alloc::alloc_zeroed::h390999f6bf51f33f in libenv_logger-30da33f6fce0c173.rlib(env_logger-30da33f6fce0c173.env_logger.a91khb6n-cgu.11.rcgu.o)
alloc::alloc::alloc_zeroed::hd93d5e2100dd333e in libregex_syntax-585c74fb6c088fcf.rlib(regex_syntax-585c74fb6c088fcf.regex_syntax.c21uuzzl-cgu.9.rcgu.o)
"___rust_realloc", referenced from:
std::sys::unix::os::getcwd::h6cf846dffc2943da in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
std::ffi::c_str::CString::from_vec_unchecked::h13b06c4cc3ac9268 in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.7.rcgu.o)
alloc::alloc::realloc::h60ddc01b151ab15f in libbacktrace-9790369d577f04eb.rlib(backtrace-9790369d577f04eb.backtrace.d4gljdrp-cgu.10.rcgu.o)
alloc::alloc::realloc::hf16f2d0ed6f977a2 in libtermcolor-a32fe53cd2fd2dcb.rlib(termcolor-a32fe53cd2fd2dcb.termcolor.8h6oext7-cgu.15.rcgu.o)
_$LT$alloc..raw_vec..RawVec$LT$T$C$$u20$A$GT$$GT$::reserve_internal::heb20974ba1136277 (.llvm.7405833835213194410) in liballoc-d6545438808205eb.rlib(alloc-d6545438808205eb.alloc.1nd5ekgk-cgu.1.rcgu.o)
std::sys::unix::backtrace::gnu::get_executable_filename::hb865640f449b04c2 in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.12.rcgu.o)
alloc::alloc::realloc::h4b3ca045d66f6622 in libregex-a2d2ae3d5151aa2a.rlib(regex-a2d2ae3d5151aa2a.regex.2w9usw49-cgu.3.rcgu.o)
...
"___rust_dealloc", referenced from:
alloc::alloc::dealloc::h7031ed55a587b5be in cdb_rs.ep7zs5du65m7s0y.rcgu.o
core::ptr::drop_in_place::h0e26209d17424fa6 (.llvm.10966614908400817038) in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
core::ptr::drop_in_place::h2d2dd354ccfd3744 (.llvm.10966614908400817038) in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
core::ptr::drop_in_place::hd4b420a92018b25b (.llvm.10966614908400817038) in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
alloc::alloc::box_free::h2eccfba5301e8685 (.llvm.10966614908400817038) in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
alloc::alloc::box_free::hf2bb9f116558cf39 (.llvm.10966614908400817038) in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
std::sys::unix::os::getcwd::h6cf846dffc2943da in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
...
"___rust_alloc", referenced from:
alloc::alloc::alloc::h51be2d969fac69b6 in cdb_rs.ep7zs5du65m7s0y.rcgu.o
std::sys::unix::os::getcwd::h6cf846dffc2943da in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
std::sys::unix::os::current_exe::h09f2c73f9ed12cc2 in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
std::sys::unix::os::getenv::h183cd939b943e48e in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.9.rcgu.o)
std::ffi::c_str::_$LT$impl$u20$core..convert..From$LT$std..ffi..c_str..NulError$GT$$u20$for$u20$std..io..error..Error$GT$::from::h51692684528dedeb in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.10.rcgu.o)
std::io::error::Error::new::h42fc1b69e6244b5f in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.10.rcgu.o)
std::io::error::Error::_new::h9ce5e5204b3695be in libstd-a5984f6fc2a4870f.rlib(std-a5984f6fc2a4870f.std.80t7pvia-cgu.10.rcgu.o)
...
ld: symbol(s) not found for architecture x86_64
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