Re: posix_spawn

Camm Maguire <[email protected]>
Newsgroups gmane.lisp.gcl.devel
Message-ID <[email protected]>
Greetings!

"Kirill A. Korinsky" <[email protected]> writes:

> This build was made with local root 
>
> It contains patches in addition to posix_spawn which allows to build it on macOS 13 arm64 under rosetta:
>
> --- unixport/makefile
> +++ unixport/makefile
> @@ -68,7 +68,7 @@ $(LSPDIR)/auto_new.lsp: $(LSPDIR)/auto.lsp
>  echo "(AUTOLOAD 'init-readline '|readline|)" >>$@
>  
>  libboot.so: ../o/boot.o
> - $(CC) -shared -Wl,-undefined -Wl,dynamic_lookup $< -o $@
> + $(CC) $(CFLAGS) -shared -Wl,-undefined -Wl,dynamic_lookup $< -o $@
>  
>  init_raw.lsp: init_raw.lsp.in
>
> @@ -84,7 +84,7 @@ boot.h: boot.ini
>  rm $*.c
>  
>  $(DPP): ../bin/dpp.c
> - ${CC} ${DEFS} -o $@ $<
> + ${CC} ${CFLAGS} ${DEFS} -o $@ $<
>  
>  new_init.c: ${INI_FILES}
>  echo '#include "make-init.h"' > $@
>
> Can you consider to add it to the upstream?
>

This is going in for you shortly.

> Thus, additionaly I've added patch below to catch the real place where it crashes:
>
> --- o/main.c
> +++ o/main.c
> @@ -665,10 +665,10 @@ main(int argc, char **argv, char **envp) {
>  /* catch certain signals */
>  void install_segmentation_catcher(void)
>  {
> -  unblock_signals(SIGSEGV,SIGSEGV);
> -  unblock_signals(SIGBUS,SIGBUS);
> -  (void) gcl_signal(SIGSEGV,segmentation_catcher);
> -  (void) gcl_signal(SIGBUS,segmentation_catcher);
> +/*   unblock_signals(SIGSEGV,SIGSEGV); */
> +/*   unblock_signals(SIGBUS,SIGBUS); */
> +/*   (void) gcl_signal(SIGSEGV,segmentation_catcher); */
> +/*   (void) gcl_signal(SIGBUS,segmentation_catcher); */
>  }
>

A new issue specific to arm?  Where does it fail without this?

Take care,
-- 
Camm Maguire			     		    [email protected]
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.