From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4710 invoked by alias); 2 Nov 2002 19:20:32 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 4605 invoked from network); 2 Nov 2002 19:20:30 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 2 Nov 2002 19:20:30 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 1884kQ-0005ui-00; Sat, 02 Nov 2002 14:19:58 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 1883pd-0000w0-00; Sat, 02 Nov 2002 14:21:17 -0500 Date: Sat, 02 Nov 2002 11:20:00 -0000 From: Daniel Jacobowitz To: gcc@gcc.gnu.org, gdb@sources.redhat.com Subject: HPUX `make' Message-ID: <20021102192116.GA2044@nevyn.them.org> Mail-Followup-To: gcc@gcc.gnu.org, gdb@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00016.txt.bz2 Joel, you said you'd built GDB 5.3 on HP/UX recently, right? Were you using GNU tools? I just tried to build GDB on an HP/UX (11i I think) system for the first time. It appears that /usr/bin/make can't handle at least two things in the makefiles: $(VAR): targets, and "-include". I ended up having to build GNU make. I didn't get terribly far after that, either. I'm using the installed compiler, which I believe is the ANSI rather than bundled one; at least the documentation says so and -Aa / -Ae work. With cc: cc: "../../gdb/intl/gettextP.h", line 49: error 1000: Unexpected symbol: "nls_uint32". cc: "../../gdb/intl/gettextP.h", line 50: error 1584: Inconsistent type declaration: "SWAP". Some limitation in the accepted syntax for "inline", I think. I reconfigured forcing -Aa, and it did a little better, but bombed out in libiberty not knowing how big a 'struct stat' was; some definition not getting picked up... I restarted using "cc -Aa -D_HPUX_SOURCE", based on a vague memory from this list, and got much further; it went until is included in BFD. That file apparently requires -Ae. Similar problems in GDB, which uses long long. So I ran "make CC='cc -Ae -D_HPUX_SOURCE', after configuring with -Aa, and then I got out a working GDB binary. So: how should one configure on this system to use the native tools, and can we document it? Any idea why configuring with -Ae didn't work? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer