[Openmcl-devel] build clozure cl from git repo

Taoufik Dachraoui dachraoui.taoufik at gmail.com
Sun Apr 12 03:57:22 PDT 2020


Hi

I am trying to build ccl on my new MacBook Mac OS X 10.15.4,

$ cd ccl/lisp-kernel/darwinx8664
$ make clean & make

...

cc -mmacosx-version-min=10.9 -arch x86_64 \

-Wl,-no_pie,-pagezero_size,0x11000,-seg1addr,0x11000 \

-o ../../dx86cl64 x86-spjump64.o x86-spentry64.o x86-subprims64.o  imports.o
pmcl-kernel.o gc-common.o x86-gc.o bits.o  x86-exceptions.o x86-utils.o
thread_manager.o lisp-debug.o image.o memory.o unix-calls.o mach-o-image.o
x86-asmutils64.o mach_exc_server.o lispdcmd.o plprint.o plsym.o xlbt.o
x86_print.o

Undefined symbols for architecture x86_64:

  "_atomic_and", referenced from:

      _signal_handler in x86-exceptions.o

      _catch_mach_exception_raise_state in x86-exceptions.o

  "_atomic_ior", referenced from:

      _pc_luser_xp in x86-exceptions.o

      _signal_handler in x86-exceptions.o

      _get_tcr in thread_manager.o

      _suspend_resume_handler in thread_manager.o

      _lisp_thread_entry in thread_manager.o

      _cooperative_thread_startup in thread_manager.o

      _mach_suspend_tcr in thread_manager.o

      ...

  "_atomic_swap", referenced from:

      _get_spin_lock in thread_manager.o

      _lock_recursive_lock in thread_manager.o

      _unlock_recursive_lock in thread_manager.o

      _recursive_lock_trylock in thread_manager.o

      _rwlock_rlock in thread_manager.o

      _rwlock_wlock in thread_manager.o

      _rwlock_try_wlock in thread_manager.o

      ...

  "_cpuid", referenced from:

      _check_x86_cpu in pmcl-kernel.o

  "_current_stack_pointer", referenced from:

      _main in pmcl-kernel.o

      _rmark in x86-gc.o

      _arbstack_signal_handler in x86-exceptions.o

      _arbstack_interrupt_handler in x86-exceptions.o

      _arbstack_thread_kill_handler in x86-exceptions.o

  "_darwin_sigreturn", referenced from:

      _user_signal_handler in pmcl-kernel.o

      _interrupt_handler in x86-exceptions.o

      _suspend_resume_handler in thread_manager.o

  "_egc_gvset", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_rplaca", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_rplacd", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_set_hash_key", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_set_hash_key_conditional", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_set_hash_key_conditional_retry", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_set_hash_key_conditional_success_test", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_store_node_conditional", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_store_node_conditional_retry", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_store_node_conditional_success_end", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_store_node_conditional_success_test", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_write_barrier_end", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_egc_write_barrier_start", referenced from:

      _pc_luser_xp in x86-exceptions.o

  "_get_mxcsr", referenced from:

      _check_bogus_fp_exceptions in pmcl-kernel.o

      _main in pmcl-kernel.o

      _lisp_allocation_failure in x86-exceptions.o

      _callback_to_lisp in x86-exceptions.o

      _callback_for_gc_notification in x86-exceptions.o

      _allocate_list in x86-exceptions.o

      _handle_alloc_trap in x86-exceptions.o

      ...

  "_import_ptrs_base", referenced from:

      _main in pmcl-kernel.o

  "_nvalret", referenced from:

      _main in pmcl-kernel.o

  "_popj", referenced from:

      _main in pmcl-kernel.o

  "_pseudo_sigreturn", referenced from:

      _setup_signal_frame in x86-exceptions.o

      _catch_mach_exception_raise_state in x86-exceptions.o

     (maybe you meant: _do_pseudo_sigreturn)

  "_ret1valn", referenced from:

      _main in pmcl-kernel.o

  "_set_mxcsr", referenced from:

      _check_bogus_fp_exceptions in pmcl-kernel.o

      _main in pmcl-kernel.o

      _lisp_allocation_failure in x86-exceptions.o

      _callback_to_lisp in x86-exceptions.o

      _callback_for_gc_notification in x86-exceptions.o

      _allocate_list in x86-exceptions.o

      _handle_alloc_trap in x86-exceptions.o

      ...

  "_spentry_end", referenced from:

      _create_exception_callback_frame in x86-exceptions.o

  "_spentry_start", referenced from:

      _create_exception_callback_frame in x86-exceptions.o

  "_spjump_start", referenced from:

      _remap_spjump in pmcl-kernel.o

      _main in pmcl-kernel.o

  "_start_lisp", referenced from:

      _main in pmcl-kernel.o

      _lisp_thread_entry in thread_manager.o

      _cooperative_thread_startup in thread_manager.o

  "_store_conditional", referenced from:

      _atomic_incf_by in thread_manager.o

      _atomic_incf in thread_manager.o

      _atomic_decf in thread_manager.o

      _recursive_lock_trylock in thread_manager.o

      _suspend_tcr in thread_manager.o

      _lisp_suspend_tcr in thread_manager.o

      _resume_tcr in thread_manager.o

      ...

  "_switch_to_foreign_stack", referenced from:

      _handle_signal_on_foreign_stack in x86-exceptions.o

      _arbstack_signal_handler in x86-exceptions.o

      _arbstack_interrupt_handler in x86-exceptions.o

      _arbstack_thread_kill_handler in x86-exceptions.o

  "_zero_dnodes", referenced from:

      _new_heap_segment in gc-common.o

ld: symbol(s) not found for architecture x86_64

clang: *error: *linker command failed with exit code 1 (use -v to see
invocation)

make: *** [../../dx86cl64] Error 1

Kind regards
-- 
Taoufik Dachraoui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20200412/d7651dc9/attachment.htm>


More information about the Openmcl-devel mailing list