[Openmcl-devel] build clozure cl from git repo

Taoufik Dachraoui dachraoui.taoufik at gmail.com
Sun Apr 12 12:45:16 UTC 2020


Hi

I managed to create a lisp kernel (I had to use m4 instead of gm4)

But now I do not know how to build a lisp image, please help me with
detailed description

fetchoo-2:ccl mazeboard$ ls -l

total 784

-rw-r--r--    1 mazeboard  wheel   11357 Apr  6 10:18 LICENSE

-rw-r--r--    1 mazeboard  wheel    1989 Apr 12 12:46 README.md

drwxr-xr-x   48 mazeboard  wheel    1536 Apr 12 12:46 cocoa-ide

drwxr-xr-x   24 mazeboard  wheel     768 Apr 12 12:46 compiler

drwxr-xr-x    8 mazeboard  wheel     256 Apr 12 12:46 doc

*-rwxr-xr-x    1 mazeboard  wheel  381400 Apr 12 14:33 dx86cl64*

drwxr-xr-x   16 mazeboard  wheel     512 Apr  6 10:18 examples

drwxr-xr-x   24 mazeboard  wheel     768 Apr 12 12:46 level-0

drwxr-xr-x   52 mazeboard  wheel    1664 Apr 12 12:46 level-1

drwxr-xr-x   75 mazeboard  wheel    2400 Apr 12 12:46 lib

drwxr-xr-x   32 mazeboard  wheel    1024 Apr 12 12:46 library

drwxr-xr-x  132 mazeboard  wheel    4224 Apr 12 12:46 lisp-kernel

drwxr-xr-x    9 mazeboard  wheel     288 Apr  6 10:18 mac-ui

drwxr-xr-x   10 mazeboard  wheel     320 Apr  6 10:18 objc-bridge

drwxr-xr-x   11 mazeboard  wheel     352 Apr 12 12:46 scripts

drwxr-xr-x    6 mazeboard  wheel     192 Apr  6 10:18 tools

drwxr-xr-x   10 mazeboard  wheel     320 Apr  6 10:18 xdump


fetchoo-2:ccl mazeboard$ ccl

Couldn't load lisp heap image from
/usr/local/src/ccl/../Resources/ccl/dx86cl64.image: No such file or
directory

Kind regards
Taoufik

On Sun, Apr 12, 2020 at 12:57 PM Taoufik Dachraoui <
dachraoui.taoufik at gmail.com> wrote:

> 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
>
>

-- 
Taoufik Dachraoui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20200412/a23cc050/attachment-0001.html>


More information about the Openmcl-devel mailing list