From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?0KDQsNCx0L7Rh9Cw0Y8g0J/QvtGH0YLQsA==?= Newsgroups: gmane.emacs.devel Subject: Re: Porting Emacs on new platform. Date: Thu, 16 Sep 2021 01:20:46 +0300 Message-ID: References: <831r5qcr0a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cb000c05cc103583" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13605"; mail-complaints-to="usenet@ciao.gmane.io" To: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 16 00:29:22 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mQdP7-0003MZ-TF for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Sep 2021 00:29:22 +0200 Original-Received: from localhost ([::1]:59546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQdP6-0006Sn-QM for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Sep 2021 18:29:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52024) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQdNq-00057v-OQ for emacs-devel@gnu.org; Wed, 15 Sep 2021 18:28:02 -0400 Original-Received: from mail-ua1-x935.google.com ([2607:f8b0:4864:20::935]:37483) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQdNo-0007at-4A; Wed, 15 Sep 2021 18:28:02 -0400 Original-Received: by mail-ua1-x935.google.com with SMTP id p9so2682235uak.4; Wed, 15 Sep 2021 15:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=x/nmwE+SuYMGDixkKXCpLI9wM864OUt+SlK+V7JI2yg=; b=Mi79iQeUBWu6dIWEZt2bZPvSEkedwtcoJLeYdKwLnEWun0hDhg7PRpb1h6RM8fDpgA BdvZFU+N/aT3FL6c3smCjA1nhgvqbwZHVnYVuzmpM4a1za8sawi4vJsOouF1ngZyr5Oj 6obnWdLGcEt1kaF1SfK0jCrFfWosHAZoXynSviOpd4RfMW0KGCB3uzZNzjlS4eplzHq0 e3JE8weUBdPhUxlymCZy1xqKSi7tPEAP497fGW53nHiglkztQHaw9HYzqZZvxtkyKtA7 tuF2GjJwC0hWkjBPm7S8dZJWUrgcyhYQeMwWPngAnS//SgALaXBbTTrNSpoiFTtHOPyx WWsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=x/nmwE+SuYMGDixkKXCpLI9wM864OUt+SlK+V7JI2yg=; b=4ZpHx2A22S8xnhD1kWgStVme6pWqtBh9Nj+mMO7q2s6uiYI9ys6wQjHKHjhGiovDqM Ql38N18ApK33fG9tOHYUcMYG0kct0OEcd8SPBjjdImHitANApCdDhOQq4kbNruP2QAl8 Qv5KxUIEwbnfzbb8Kfr81kmhW8OFzGuK6mJY82OzF9aX08hePZJEbBoTCafjZAXfKDb7 hpP5KA8MMGYrYnJ8oEIIwtc32rx6MBWYk/t9KWNI1oEyeSb58gVSqOjb9EAhwoMFsfda 8KVQYZqZSXc9t7R2CZIy8PE14uzgDyOKrxrEsqkGThEII3xL03Thtmh2Zed4o/9p8qx6 cx9A== X-Gm-Message-State: AOAM5307F6zYigYTh2cq22uZyM0aQNpHn22/+5Kpk0yL2WmRsN9ms2dL sN7E5BJLXUm7XrvfGajErJ7VuXy77NJeH0OrIi/DGtzfddU= X-Google-Smtp-Source: ABdhPJzRk3eDWEwIOI7frLyk9LoYlf4GAJZvs73mXEvO8anfibtB7VGnWVdNAN0L/LW3daovH+6+RxStSPAUosKeCCc= X-Received: by 2002:ab0:70d6:: with SMTP id r22mr2238027ual.139.1631744877591; Wed, 15 Sep 2021 15:27:57 -0700 (PDT) In-Reply-To: <831r5qcr0a.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::935; envelope-from=work.mail.for.me.tgg@gmail.com; helo=mail-ua1-x935.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274781 Archived-At: --000000000000cb000c05cc103583 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for answering. Thanks for pointing out where places dumper in. Yes, E2K, when Linux is installed, is a common Posix platform. No important messages around, only in/out directory and compiling. But i can send this btw, then will be working with the machine again. Could you say, how to compile emacs with debugging information? I mean proper building with scripts like this: ./autogen.sh ./configure --with-x-toolkit=3Dno --with-xpm=3Dno --with-jpeg=3Dno --with-p= ng=3Dno --with-gif=3Dno --with-tiff=3Dno make make install And how do you advise debugging Elisp code? And where to send the patches? To this mail? Thanks for helping. =D1=81=D1=80, 15 =D1=81=D0=B5=D0=BD=D1=82. 2021 =D0=B3. =D0=B2 09:06, Eli Z= aretskii : > > From: =D0=A0=D0=B0=D0=B1=D0=BE=D1=87=D0=B0=D1=8F =D0=9F=D0=BE=D1=87=D1= =82=D0=B0 > > > > Date: Wed, 15 Sep 2021 01:27:55 +0300 > > > > Could you explain how a portable dumper Emacs works > (bootstrap-emacs.pdmp) and where it is placed in > > sources? > > The portable dumper code is mainly in pdumper.c and pdumper.h. > > > I just haven't time to examine all the source code. Forgive me for that= . > > It crashes. That's okay, because I'm with my protege porting Emacs to a > new platform (e2k). > > What is special about that platform? Which OS kernel and what C > library are you using to build Emacs? Is e2k similar to any other > common Posix platforms? > > > Here are logs with errors. > > > > Wrong type argument: listp, make[1]: * [Makefile:824: > bootstrap-emacs.pdmp] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 > > =D1=81=D0=B5=D0=B3=D0=BC=D0=B5=D0=BD=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0= =B0=D0=BD=D0=B8=D1=8Fmake[1]: =D0=B2=D1=8B=D1=85=D0=BE=D0=B4 =D0=B8=D0=B7 = =D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE=D0=B3=D0=B0 ((exit from directory)) > =C2=AB/root/emacs-27.2/src=C2=BBmake: * > > [Makefile:424: src] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 ((error)) 2 > > > > Wrong type argument: listp, make[1]: *** [Makefile:824: > bootstrap-emacs.pdmp] Segmentation fault > > make[1]: =D0=B2=D1=8B=D1=85=D0=BE=D0=B4 =D0=B8=D0=B7 =D0=BA=D0=B0=D1=82= =D0=B0=D0=BB=D0=BE=D0=B3=D0=B0 ((exit from directory)) > =C2=AB/home/ddrdmakar/emacs/emacs-27.2/src=C2=BB > > make: *** [Makefile:424: src] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 ((er= ror)) 2 > > These just say Emacs segfaulted, but not much else. If there are > other messages around this one, please show them as well. > > > With --with-dumping=3Dnone it builds successfully, it works, but crashe= s > sometimes. That will be fixed by > > simple debugging. > > Regardless of whether it works with pdumper or not, the first step > towards understanding the problem is to run the failing command line > under GDB and getting the backtrace from the crash site, preferably > also understanding what was the immediate cause of the crash. Only > then it would be possible to tell whether the code in pdumper.c is > part of the issue. > > > BTW, could you send me instructions about working with your repo me to > merge changes right? I mean to > > give our changes to you properly . > > We prefer patches in "git format-patch" form, but if that's hard for > you, diffs produced by the Diff utility will also be okay. See the > file CONTRIBUTE for more about this. > > Thank you for your interest in Emacs. > --000000000000cb000c05cc103583 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=C2=A0Thanks for answering.

Th= anks for pointing out where places dumper in.
Yes, E2K, when Linux= is installed, is a common Posix platform.
No important messa= ges around, only in/out directory and compiling. But i can send this btw, t= hen will be working with the machine again.
Could you say, how to= compile emacs with debugging information? I mean proper building with scri= pts like this:
./autogen.sh
./configure --with-x-toolkit=3Dno --with-= xpm=3Dno --with-jpeg=3Dno --with-png=3Dno --with-gif=3Dno --with-tiff=3Dno<= br>make
make install

And how do you advise debugging E= lisp code?

And where to send the patches? To this mail?
Thanks for helping.

=D1=81=D1=80, 15 =D1=81=D0=B5= =D0=BD=D1=82. 2021 =D0=B3. =D0=B2 09:06, Eli Zaretskii <eliz@gnu.org>:
> From: =D0=A0=D0=B0=D0=B1=D0=BE=D1=87=D0=B0=D1=8F= =D0=9F=D0=BE=D1=87=D1=82=D0=B0
>=C2=A0 <work.mail.for.me.tgg@gmail.com>
> Date: Wed, 15 Sep 2021 01:27:55 +0300
>
> Could you explain how a portable dumper Emacs works (bootstrap-emacs.p= dmp) and where it is placed in
> sources?

The portable dumper code is mainly in pdumper.c and pdumper.h.

> I just haven't time to examine all the source code. Forgive me for= that.
> It crashes. That's okay, because I'm with my protege porting E= macs to a new platform (e2k).

What is special about that platform?=C2=A0 Which OS kernel and what C
library are you using to build Emacs?=C2=A0 Is e2k similar to any other
common Posix platforms?

> Here are logs with errors.
>
> Wrong type argument: listp, make[1]: * [Makefile:824: bootstrap-emacs.= pdmp] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0
> =D1=81=D0=B5=D0=B3=D0=BC=D0=B5=D0=BD=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0= =B0=D0=BD=D0=B8=D1=8Fmake[1]: =D0=B2=D1=8B=D1=85=D0=BE=D0=B4 =D0=B8=D0=B7 = =D0=BA=D0=B0=D1=82=D0=B0=D0=BB=D0=BE=D0=B3=D0=B0 ((exit from directory)) = =C2=AB/root/emacs-27.2/src=C2=BBmake: *
> [Makefile:424: src] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=C2=A0 ((error= )) 2
>
> Wrong type argument: listp, make[1]: *** [Makefile:824: bootstrap-emac= s.pdmp] Segmentation fault
> make[1]: =D0=B2=D1=8B=D1=85=D0=BE=D0=B4 =D0=B8=D0=B7 =D0=BA=D0=B0=D1= =82=D0=B0=D0=BB=D0=BE=D0=B3=D0=B0 ((exit from directory)) =C2=AB/home/ddrdm= akar/emacs/emacs-27.2/src=C2=BB
> make: *** [Makefile:424: src] =D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0 ((e= rror)) 2

These just say Emacs segfaulted, but not much else.=C2=A0 If there are
other messages around this one, please show them as well.

> With --with-dumping=3Dnone it builds successfully, it works, but crash= es sometimes. That will be fixed by
> simple debugging.

Regardless of whether it works with pdumper or not, the first step
towards understanding the problem is to run the failing command line
under GDB and getting the backtrace from the crash site, preferably
also understanding what was the immediate cause of the crash.=C2=A0 Only then it would be possible to tell whether the code in pdumper.c is
part of the issue.

> BTW, could you send me instructions about working with your repo me to= merge changes right? I mean to
> give our changes to you properly .

We prefer patches in "git format-patch" form, but if that's h= ard for
you, diffs produced by the Diff utility will also be okay.=C2=A0 See the file CONTRIBUTE for more about this.

Thank you for your interest in Emacs.
--000000000000cb000c05cc103583--