On Mon, Jul 12 2021, Charlene Wendling <juliana...@posteo.jp> wrote:
> Hi,
>
> This is the first bulk with base libexecinfo.
>
>> https://bin.charlenew.xyz/emacs_bulk_failure.log
>
> The last port commit brought libexecinfo support to emacs, and leads to
> segfault during the build on macppc. I attach the backtrace of a simple
> 'temacs' invocation, showing that it may not be emacs' fault.
>
> I can't fix the libexecinfo issue.
>
> But the build works fine with the below diff [0] [1] [2]. It reverts
> the latest commit on macppc, while leaving the other arches as it
> is currently. As such no REVISION bump is needed.
>
> Comments/feedback are welcome,

ok jca@ for this diff but please amend the comment unless you're sure
the problem comes from Lisp code.  AFAIK the emacs C code calls
backtrace() early.  I'd suggest

  # backtrace() crashes at build time on powerpc

I'm slightly worried regarding libunwind status on powerpc.  What does
regress/gnu/lib/libexecinfo say?

> Charlène.
>
> [0] https://bin.charlenew.xyz/emacs.log
> [1] https://bin.charlenew.xyz/emacs.gtk2.log
> [2] https://bin.charlenew.xyz/emacs.no_x11.log
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/editors/emacs/Makefile,v
> retrieving revision 1.99
> diff -u -p -u -p -r1.99 Makefile
> --- Makefile  12 Jun 2021 23:17:50 -0000      1.99
> +++ Makefile  12 Jul 2021 18:59:58 -0000
> @@ -15,7 +15,7 @@ MAINTAINER=         Jeremie Courreges-Anglas <j
>  # GPLv3+
>  PERMIT_PACKAGE=              Yes
>  
> -WANTLIB =            c curses execinfo jansson gmp gnutls m pthread xml2 z
> +WANTLIB =            c curses jansson gmp gnutls m pthread xml2 z
>  
>  MASTER_SITES=                ${MASTER_SITE_GNU:=emacs/}
>  EXTRACT_SUFX=                .tar.xz
> @@ -98,6 +98,13 @@ WANTLIB += xcb
>  . else
>  ERRORS+=             "Fatal: Conflicting flavor: ${FLAVOR}"
>  . endif
> +.endif
> +
> +# lisp code breaks the build with libexecinfo support
> +.if ${MACHINE_ARCH} == "powerpc"
> +CONFIGURE_ENV +=     ac_cv_header_execinfo_h=no
> +.else
> +WANTLIB +=           execinfo
>  .endif
>  
>  post-install:
>
>

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to