From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dang Allen Newsgroups: gmane.emacs.bugs Subject: bug#42486: 28.0.50; Bug of feature/native-comp branch. Error message native-compile-async: =?UTF-8?Q?Symbol=E2=80=99s?= value as variable is void: comp-native-path-postfix Date: Thu, 23 Jul 2020 15:46:25 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004fdbe805ab170ea2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11472"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42486@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 23 09:47:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jyVwb-0002kZ-Lq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jul 2020 09:47:09 +0200 Original-Received: from localhost ([::1]:41470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyVwa-0002S5-30 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Jul 2020 03:47:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyVwT-0002Ry-UP for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 03:47:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyVwT-0003KM-L2 for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 03:47:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jyVwT-0004rw-KI for bug-gnu-emacs@gnu.org; Thu, 23 Jul 2020 03:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dang Allen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Jul 2020 07:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42486 X-GNU-PR-Package: emacs Original-Received: via spool by 42486-submit@debbugs.gnu.org id=B42486.159549040818690 (code B ref 42486); Thu, 23 Jul 2020 07:47:01 +0000 Original-Received: (at 42486) by debbugs.gnu.org; 23 Jul 2020 07:46:48 +0000 Original-Received: from localhost ([127.0.0.1]:43818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyVwE-0004rI-0Q for submit@debbugs.gnu.org; Thu, 23 Jul 2020 03:46:48 -0400 Original-Received: from mail-ed1-f46.google.com ([209.85.208.46]:33351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyVwA-0004qx-5T for 42486@debbugs.gnu.org; Thu, 23 Jul 2020 03:46:44 -0400 Original-Received: by mail-ed1-f46.google.com with SMTP id h28so3806889edz.0 for <42486@debbugs.gnu.org>; Thu, 23 Jul 2020 00:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Csg/05owUwilHtg97VNLOEvWdDJ8Ak5ZNd2QXdCmarE=; b=q9P00WSF3sTrDV1uH5EYyKBb9l6rCZZRkBCfhaKFQekttkxsD5dxZb5X7ql4HIto6d 3TXH+EBO3HCI3sKGOEviYl3Z33m9k3UQnCdl72MqJegikaJyPLhjesO2WJAtnFZQIqEO Ekkh0NTbMw9FmugzA5d69pXQc0+4vSCQ/rOwwkWwrN6HE7MASu9MFzSvSSSNJNa2qEoa TaV5/9Zj+AZpCeMStFy69TPwMXvxFDBIyVkNfr7Xoni0/6WJYC3uFi671x+EF1fwmN2r I1BN8v/MSYMoZskZOLX9NjRh5S/1d32/qmVqsUeqPmXc6Xh0jxQz+FhVlQJJJd0aTO+R Ywrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Csg/05owUwilHtg97VNLOEvWdDJ8Ak5ZNd2QXdCmarE=; b=rLm+pFVazVZF9K+UAppp491TF/gAYXI2/CFR5LCXUb6/K88Bq5+uND3ghNfIyHy8+E k1kRZcE36+rUpRfnebCHZzFVM7mciRNMAI+WlkF6e9DiG9TAuKCXYiW0KcSy1G3n5Iyj MS1PreJHYOBhaUC7cDvKhL3Nu1bllSZsrAkht3HjWHUX2xiQsffVchju+eOgvGf60Fut V0stPCfX+RRZB6hkSjZl27uYKGBBfccAltnP7F8oKPQHyJX7R8H4HDCvl/lYJU1P8oUb YEiAGUjaJMMyv3JgoMDS68n6fgCIymO6c0ZNi3aoFcQczoIHj/Vqi2TuATX3ilj6IDrA sZZQ== X-Gm-Message-State: AOAM530+D3t7uPdJ2lN475APHIQnujQzyzngq16n5qZEOq+OIscev3fB A7jCoaUANMTXdu4dxXrlrasRy+OGjr3AZkXg/eM= X-Google-Smtp-Source: ABdhPJxJlZQgw7UmVR6alcCWhJQZbOzs86q37SAiPnRLT9GgPWSXuv86ucdpGjM+mgrjYRpL+EkF6DeVRX6+ESjaWlI= X-Received: by 2002:a05:6402:13d9:: with SMTP id a25mr3034275edx.325.1595490396263; Thu, 23 Jul 2020 00:46:36 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183405 Archived-At: --0000000000004fdbe805ab170ea2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable How does the compiler check whether the Emacs has native lisp compiler? Should I add libgccjit.so to CFLAG or LDFLAG? Dang Allen =E4=BA=8E2020=E5=B9=B47=E6=9C=8823=E6=97=A5= =E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=883:35=E5=86=99=E9=81=93=EF=BC=9A > Sure, here it is. > > # native-comp optimization > export PATH=3D"/usr/local/opt/gnu-sed/libexec/gnubin:${PATH}" > export LDFLAGS=3D"-L/usr/local/lib/gcc/10" > export LIBRARY_PATH=3D"/usr/local/opt/gcc/lib/gcc/10:${LIBRARY_PATH:-}" > > cd emacs || exit > > git clean -xfd > > ./autogen.sh > > CC=3D'clang' \ > ./configure \ > --disable-silent-rules \ > --with-ns \ > --disable-ns-self-contained \ > --with-cairo \ > --with-modules \ > --with-nativecomp \ > --with-xml2 \ > --with-gnutls \ > --with-json \ > --with-rsvg > > # Ensure the directory to which we will dump Emacs exists and has the > correct > # permissions set. > libexec=3D/usr/local/libexec/emacs > if [ ! -d $libexec ]; then > sudo mkdir -p $libexec > chown $USER $libexec > fi > > make distclean > make -j 4 > make install > rm -rf "/Applications/Emacs.app" > mv nextstep/Emacs.app "/Applications/" > cp -R lisp "/Applications/Emacs.app/Contents/" > > Andrea Corallo =E4=BA=8E2020=E5=B9=B47=E6=9C=8823=E6=97=A5= =E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=883:30=E5=86=99=E9=81=93=EF=BC=9A > >> I think the interesting line is: >> >> " Does Emacs have native lisp compiler? no" >> >> The output does not include the command issued. I you are running a >> script could you please run it with -x and report it again? >> >> Alternatively you can also attach the script you are using to compile if >> you wish. >> >> I'm interested in having a look at the configure invocation. >> >> Thanks >> Andrea >> > --0000000000004fdbe805ab170ea2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
How does the compiler check whether the Emacs has native l= isp compiler?
Should I add libgccjit.so to CFLAG or LDFLAG?
=
Dang A= llen <allengnr@gmail.com> = =E4=BA=8E2020=E5=B9=B47=E6=9C=8823=E6=97=A5=E5=91=A8=E5=9B=9B =E4=B8=8B=E5= =8D=883:35=E5=86=99=E9=81=93=EF=BC=9A
Sure, here it is.=C2=A0

=
# native-comp optimization
export PATH=3D"/usr/local/opt= /gnu-sed/libexec/gnubin:${PATH}"
export LDFLAGS=3D"-L/usr/loca= l/lib/gcc/10"
export LIBRARY_PATH=3D"/usr/local/opt/gcc/lib/gc= c/10:${LIBRARY_PATH:-}"

cd emacs || exit

git clean -xfd<= br>
./autogen.sh

CC=3D'clang' \
=C2=A0 =C2=A0 =C2=A0./= configure \
=C2=A0 =C2=A0 =C2=A0--disable-silent-rules \
=C2=A0 =C2= =A0 =C2=A0--with-ns \
=C2=A0 =C2=A0 =C2=A0--disable-ns-self-contained \<= br>=C2=A0 =C2=A0 =C2=A0--with-cairo \
=C2=A0 =C2=A0 =C2=A0--with-modules= \
=C2=A0 =C2=A0 =C2=A0--with-nativecomp \
=C2=A0 =C2=A0 =C2=A0--with= -xml2 \
=C2=A0 =C2=A0 =C2=A0--with-gnutls \
=C2=A0 =C2=A0 =C2=A0--wit= h-json \
=C2=A0 =C2=A0 =C2=A0--with-rsvg

# Ensure the directory t= o which we will dump Emacs exists and has the correct
# permissions set.=
libexec=3D/usr/local/libexec/emacs
if [ ! -d $libexec ]; then
=C2= =A0 sudo mkdir -p $libexec
=C2=A0 chown $USER $libexec
fi

make= distclean
make -j 4
make install
rm -rf "/Applications/Emacs= .app"
mv nextstep/Emacs.app "/Applications/"
cp -R lis= p "/Applications/Emacs.app/Contents/"

Andrea Corallo <= ;akrl@sdf.org> =E4= =BA=8E2020=E5=B9=B47=E6=9C=8823=E6=97=A5=E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D= =883:30=E5=86=99=E9=81=93=EF=BC=9A
I think the interesting line is:

"=C2=A0 Does Emacs have native lisp compiler? =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 no"

The output does not include the command issued.=C2=A0 I you are running a script could you please run it with -x and report it again?

Alternatively you can also attach the script you are using to compile if you wish.

I'm interested in having a look at the configure invocation.

Thanks
=C2=A0 Andrea
--0000000000004fdbe805ab170ea2--