Skip to content

Linking to iOS fails #10384

Closed
Closed
@kud1ing

Description

@kud1ing
ld: warning: ignoring file arm-apple-darwin/rt/stage2/sync/lock_and_signal.o, file was built for arm??? which is not the architecture being linked (x86_64): arm-apple-darwin/rt/stage2/sync/lock_and_signal.o
ld: warning: ignoring file arm-apple-darwin/rt/stage2/rust_builtin.o, file was built for arm??? which is not the architecture being linked (x86_64): arm-apple-darwin/rt/stage2/rust_builtin.o
ld: warning: ignoring file arm-apple-darwin/rt/stage2/rust_upcall.o, file was built for arm??? which is not the architecture being linked (x86_64): arm-apple-darwin/rt/stage2/rust_upcall.o
ld: warning: ignoring file arm-apple-darwin/rt/stage2/miniz.o, file was built for arm??? which is not the architecture being linked (x86_64): arm-apple-darwin/rt/stage2/miniz.o
ld: warning: ignoring file arm-apple-darwin/rt/stage2/rust_android_dummy.o, file was built for arm??? which is not the architecture being linked (x86_64): arm-apple-darwin/rt/stage2/rust_android_dummy.o
ld: warning: ignoring file arm-apple-darwin/rt/stage2/rust_test_helpers.o, file was built for arm??? which is not the architecture being linked (x86_64): arm-apple-darwin/rt/stage2/rust_test_helpers.o
ld: warning: ignoring file arm-apple-darwin/rt/stage2/arch/arm/_context.o, file was built for arm??? which is not the architecture being linked (x86_64): arm-apple-darwin/rt/stage2/arch/arm/_context.o
ld: warning: ignoring file arm-apple-darwin/rt/stage2/arch/arm/record_sp.o, file was built for arm??? which is not the architecture being linked (x86_64): arm-apple-darwin/rt/stage2/arch/arm/record_sp.o
Undefined symbols for architecture x86_64:
  "_get_time", referenced from:
     -exported_symbol[s_list] command line option
  "_precise_time_ns", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_begin_unwind", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_create_little_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_abi_1", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_abi_2", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_call", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_do_nothing", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_identity_TwoDoubles", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_identity_TwoU16s", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_identity_TwoU32s", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_identity_TwoU64s", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_identity_TwoU8s", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_identity_double", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_identity_u32", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_identity_u64", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_identity_u8", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_return_TwoU16s", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_return_TwoU32s", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_return_TwoU64s", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_extern_return_TwoU8s", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_lock_create", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_lock_destroy", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_lock_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_lock_signal", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_lock_unlock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_lock_wait", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_next_port", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_static_mut", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_dbg_static_mut_check_four", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_destroy_little_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_drop_dlerror_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_drop_env_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_drop_global_args_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_env_pairs", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_get_global_args_ptr", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_get_num_cpus", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_get_stderr", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_get_stdin", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_get_stdout", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_get_test_int", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_gmtime", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_initialize_rt_tls_key", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_list_dir_val", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_list_dir_wfd_fp_buf", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_list_dir_wfd_size", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_localtime", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_lock_little_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_mktime", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_opendir", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_path_exists", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_path_exists_u16", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_path_is_dir", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_path_is_dir_u16", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_readdir", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_running_on_valgrind", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_signal_little_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_take_dlerror_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_take_env_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_take_global_args_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_timegm", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_try", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_tzset", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_unlock_little_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_unset_sigprocmask", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_valgrind_stack_deregister", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_valgrind_stack_register", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_wait_little_lock", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_win32_rand_acquire", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_win32_rand_gen", referenced from:
     -exported_symbol[s_list] command line option
  "_rust_win32_rand_release", referenced from:
     -exported_symbol[s_list] command line option
  "_swap_registers", referenced from:
     -exported_symbol[s_list] command line option
  "_tdefl_compress_mem_to_heap", referenced from:
     -exported_symbol[s_list] command line option
  "_tinfl_decompress_mem_to_heap", referenced from:
     -exported_symbol[s_list] command line option
  "_upcall_reset_stack_limit", referenced from:
     -exported_symbol[s_list] command line option
  "_upcall_rust_personality", referenced from:
     -exported_symbol[s_list] command line option
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [arm-apple-darwin/rt/stage2/librustrt.dylib] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-iosOperating system: iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions