From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Yeske Newsgroups: gmane.emacs.devel Subject: Re: 22.0.98 build problem Date: Thu, 26 Apr 2007 02:01:43 -0700 (PDT) Message-ID: <20070426090143.95CA2142E4@owie.localdomain> References: <20070422191903.730AC142B0@owie.localdomain> <20070423194047.BE12630136@Psilocybe.Update.UU.SE> <20070426041606.25742142E4@owie.localdomain> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1177578158 23781 80.91.229.12 (26 Apr 2007 09:02:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2007 09:02:38 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 26 11:02:36 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hgzs3-0006Ot-JF for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 11:02:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hgzxl-0004Jj-L7 for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 05:08:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HgzxO-0004FE-HQ for emacs-devel@gnu.org; Thu, 26 Apr 2007 05:08:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HgzxM-0004Ex-UE for emacs-devel@gnu.org; Thu, 26 Apr 2007 05:08:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgzxM-0004Es-LE for emacs-devel@gnu.org; Thu, 26 Apr 2007 05:08:04 -0400 Original-Received: from shawmail.shawcable.com ([64.59.128.220] helo=bpd2mo2no.prod.shawcable.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HgzrZ-0004qX-KG; Thu, 26 Apr 2007 05:02:05 -0400 Original-Received: from bpd2mi3no.prod.shawcable.com (bpd2mi3no-qfe3.prod.shawcable.com [10.0.184.122]) by bpd2mo2no.prod.shawcable.com (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JH300CK2L3HUP10@bpd2mo2no.prod.shawcable.com>; Thu, 26 Apr 2007 03:02:05 -0600 (MDT) Original-Received: from mail.emmett.ca ([68.146.204.233]) by bpd2mi3no.prod.shawcable.com (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JH300BJIL3HLA30@bpd2mi3no.prod.shawcable.com>; Thu, 26 Apr 2007 03:02:05 -0600 (MDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.emmett.ca (Postfix) with ESMTP id 4C282417A8; Thu, 26 Apr 2007 03:02:04 -0600 (MDT) Original-Received: from mail.emmett.ca ([127.0.0.1]) by localhost (sputnik.emmett.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32645-05; Thu, 26 Apr 2007 03:02:00 -0600 (MDT) Original-Received: from owie.localdomain (unknown [10.18.1.1]) by mail.emmett.ca (Postfix) with ESMTP id AB13D41754; Thu, 26 Apr 2007 03:02:00 -0600 (MDT) Original-Received: by owie.localdomain (Postfix, from userid 1000) id 95CA2142E4; Thu, 26 Apr 2007 02:01:43 -0700 (PDT) In-reply-to: X-Virus-Scanned: by amavisd-new (clamav) at mail.emmett.ca X-detected-kernel: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:70169 Archived-At: I ran "configure --build=powerpc-unknown-openbsd4.0", which is probably not a totally faithful simulation of what you are doing, but configure correctly picked up the definition of LINKER from s/netbsd.h and used this to set LD=$(CC) -nostartfiles in src/Makefile.in. This is apparently equivalent to -nostdlib on your platform. So the relevant question might be, why did this not happen for you? Maybe the code in m/macppc.h: #if defined(__OpenBSD__) #define ORDINARY_LINK #endif defines ORDINARY_LINK, which looks like it would cause Makefile.in to set LD = $(CC). This could all be total junk, so don't invest too much time on the basis of this. Does it work if you delete those lines from macppc.h? Up to 7 years ago (!) ORDINARY_LINK was also defined for NetBSD. Maybe it should no longer be defined on OpenBSD either. Hand-wave, hand-wave. Thanks for the useful pointers here. Yes, when I remove those lines it does link. Here is exactly what I did: *** macppc.h 02 Mar 2007 16:02:17 -0800 1.15 --- macppc.h 26 Apr 2007 01:07:18 -0700 *************** *** 66,75 **** /* #define NO_SOCK_SIGIO */ - #if defined(__OpenBSD__) - #define ORDINARY_LINK - #endif - #define UNEXEC unexelf.o #define NO_TERMIO --- 66,71 ---- Unfortunatly, I get a segfault in the next step. Any idea how to go about debugging this issue? ./temacs --batch --load loadup bootstrap Loading loadup.el (source)... Using load-path (/home/rcyeske/emacs/lisp /home/rcyeske/emacs/lisp/emacs-lisp /home/rcyeske/emacs/lisp/language /home/rcyeske/emacs/lisp/international /home/rcyeske/emacs/lisp/textmodes) Loading emacs-lisp/byte-run (source)... Loading emacs-lisp/backquote (source)... Loading subr (source)... Loading version.el (source)... Loading widget (source)... Loading custom (source)... Loading emacs-lisp/map-ynp (source)... Loading env (source)... Loading cus-start (source)... Loading international/mule (source)... Loading international/mule-conf.el (source)... Loading format (source)... Loading bindings (source)... Loading /home/rcyeske/emacs/lisp/files.el (source)... *** Signal 11 Stop in /home/rcyeske/emacs/src (line 270 of Makefile). *** Error code 1 Stop in /home/rcyeske/emacs (line 792 of Makefile). *** Error code 1 Stop in /home/rcyeske/emacs (line 786 of Makefile). Compilation exited abnormally with code 1 at Thu Apr 26 01:05:18