From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Porting Emacs on new platform. Date: Wed, 15 Sep 2021 09:05:57 +0300 Message-ID: <831r5qcr0a.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27136"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?B?0KDQsNCx0L7Rh9Cw0Y8g0J/QvtGH0YLQsA==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 15 08:07:11 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 1mQO4c-0006nt-2r for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Sep 2021 08:07:10 +0200 Original-Received: from localhost ([::1]:46352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQO4a-0003NZ-4D for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Sep 2021 02:07:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQO3Y-0002YL-KJ for emacs-devel@gnu.org; Wed, 15 Sep 2021 02:06:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53906) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQO3W-0004pi-Uu; Wed, 15 Sep 2021 02:06:03 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1425 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQO3W-0007uj-I6; Wed, 15 Sep 2021 02:06:02 -0400 In-Reply-To: (work.mail.for.me.tgg@gmail.com) 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:274726 Archived-At: > From: Рабочая Почта > > 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] Ошибка > сегментированияmake[1]: выход из каталога ((exit from directory)) «/root/emacs-27.2/src»make: * > [Makefile:424: src] Ошибка ((error)) 2 > > Wrong type argument: listp, make[1]: *** [Makefile:824: bootstrap-emacs.pdmp] Segmentation fault > make[1]: выход из каталога ((exit from directory)) «/home/ddrdmakar/emacs/emacs-27.2/src» > make: *** [Makefile:424: src] Ошибка ((error)) 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=none it builds successfully, it works, but crashes 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.