gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: posix_spawn


From: Camm Maguire
Subject: Re: posix_spawn
Date: Sun, 24 Dec 2023 09:17:18 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Greetings!

"Kirill A. Korinsky" <kirill@korins.ky> 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                                        camm@maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]