From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7387: 23.2; Emacs port to HP-UX ia64 Date: Fri, 12 Nov 2010 16:28:16 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289861079 31976 80.91.229.12 (15 Nov 2010 22:44:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Nov 2010 22:44:39 +0000 (UTC) Cc: 7387@debbugs.gnu.org To: "Maguire\, Andrew \(GE Energy\)" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 15 23:44:35 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PI7ms-0001O8-7F for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Nov 2010 23:44:34 +0100 Original-Received: from localhost ([127.0.0.1]:47481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI7mr-0002Vy-LK for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Nov 2010 17:44:33 -0500 Original-Received: from [140.186.70.92] (port=45668 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PI7mX-0002Jm-Jg for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2010 17:44:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PI7mU-0000Ei-Qo for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2010 17:44:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43767) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PI7mU-0000EZ-PK for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2010 17:44:10 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PI7OA-0004Jy-1Y; Mon, 15 Nov 2010 17:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Nov 2010 22:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7387-submit@debbugs.gnu.org id=B7387.128985951216599 (code B ref 7387); Mon, 15 Nov 2010 22:19:02 +0000 Original-Received: (at 7387) by debbugs.gnu.org; 15 Nov 2010 22:18:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI7Nf-0004Jd-6G for submit@debbugs.gnu.org; Mon, 15 Nov 2010 17:18:31 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PI7Ne-0004JS-A6 for 7387@debbugs.gnu.org; Mon, 15 Nov 2010 17:18:30 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQHABdC4UxFpY76/2dsb2JhbAChXX1ywQqFSgSEWo1f X-IronPort-AV: E=Sophos;i="4.59,202,1288584000"; d="scan'208";a="82628058" Original-Received: from 69-165-142-250.dsl.teksavvy.com (HELO ceviche.home) ([69.165.142.250]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 15 Nov 2010 17:23:26 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 488216638A; Fri, 12 Nov 2010 16:28:16 -0500 (EST) In-Reply-To: (Andrew Maguire's message of "Fri, 12 Nov 2010 18:07:17 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 15 Nov 2010 17:19:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:41656 Archived-At: > I have been attempting a port to Itanium HP-UX 11.23. The configuration files for different OSes and hardware have been changed significantly (tho not completely) in the trunk (to become Emacs-24), so you may want to work directly in that version instead (otherwise someone may additionally have to figure out how to port the patch you come up with for Emacs-23) > I have managed to change the configure etc. to successfully produce a > seemingly > valid bootstrap-emacs executable. > However, when it runs it immediately returns the error: > emacs: Invalid function: run-hooks Placing a breakpoint on Fsignal may help you figure out what's going on. [ Oh, I saw later that GDB is not functional for you. Hmm... ] > This at a guess implies it is running the low level C functions but > appears to be > failing to find the Lisp function binding. Everything's possible, but run-hooks is a C function, not a Lisp function; and some C code runs Frun_hooks via an indirection through the "run-hooks" symbol itself found via the Vrun_hooks C-only variable. So it's quite possible (my gut says "likely") that it's still a C-level problem. IOW I think the issue is that for some reason Vrun_hooks was set to the "run-hooks" symbol before the Frun_hooks function was defined (via the defsubr call in syms_of_eval). As it turns out Vrun_hooks is also set in syms_of_eval. So that would imply that the above error would happen some time between the Vrun_hooks = intern_c_string ("run-hooks"); and defsubr (&Srun_hooks); in syms_of_eval. Nothing there jumps at me as a likely culprit, so maybe the issue is that Vrun_hooks gets set elsewhere, or that DEFUN+defsubr don't actually do their job as expected. E.g. maybe the data section that holds the Lisp_Subr structures gets wiped by the dump? > I noticed that XEmacs has a portable dump feature, which essentially > avoids rewriting an executable file but instead stores the Lisp data > to an xemacs.dmp file next to the executable. Yes, quite handy, isn't it? > I managed to build XEmacs 21.4.22 using it on the machine, but I want > FSF Emacs! Of course, don't we all? Stefan