From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15926 invoked by alias); 26 Nov 2007 18:27:08 -0000 Received: (qmail 15915 invoked by uid 22791); 26 Nov 2007 18:27:06 -0000 X-Spam-Check-By: sourceware.org Received: from hugo.fen-net.de (HELO hugo.fen-net.de) (212.204.115.10) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Nov 2007 18:27:00 +0000 Received: from boru (p57AF7F67.dip.t-dialin.net [87.175.127.103]) (authenticated bits=0) by hugo.fen-net.de (8.12.11/8.12.11) with ESMTP id lAQIOgt6029189 for ; Mon, 26 Nov 2007 19:24:43 +0100 (MET) Received: by boru (Postfix, from userid 1001) id 4625D1719; Mon, 26 Nov 2007 19:26:57 +0100 (CET) Date: Mon, 26 Nov 2007 18:27:00 -0000 From: David Haworth To: insight@sourceware.org Subject: Compiling on amd64 (ubuntu 7.10) Message-ID: <20071126182657.GA5859@fen-net.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-Virus-Status: Clean X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00027.txt.bz2 Hi, I'm having trouble compiling insight 6.7.1 for an amd64 host (ubuntu 7.10). Target is arm-elf, but I don't think this is anything to do with the problem. Configure works fine (or appears to): ./configure --prefix=/usr/local/xgcc/broken --target=arm-elf but then make ends with an error (after a lot of warnings). The warnings are mostly of the form: warning: passing argument 2 of 'foo' with different width due to prototype and the error is: cc1: warnings being treated as errors .././gdb/gdbtk/generic/gdbtk-register.c:348: warning: cast from pointer to integer of different size After "fixing" this one using typecasts the compilation then proceeds to the next error: .././gdb/gdbtk/generic/gdbtk-stack.c:298: warning: cast from pointer to integer of different size and (after fixing this one): .././gdb/gdbtk/generic/gdbtk-wrapper.c:158: warning: cast to pointer from integer of different size (and lots more of a similar nature). After fixing these, the compilation completes without further errors, but the resulting binary doesn't work poperly. The pure gdb binary appears tos be OK, but the GUI version (arm-elf-insight or arm-elf-gdb -w) doesn't. It starts up, but doesn't show a source window - instead, a window with title "top" is shown. Other things fail too. The target settings window doesn't show at all, and Run->Connct to target gives an error message "Error: can't read "_status": no such variable. The fixes that I made, although hacks I admit, should work OK since they are mostly casting from into to pointer via long, and then back again from pointer to int via long. However, the warnings look a lot more suspicious. Has anyone got any experience in getting insight to compile for a 32-bit target on a 64-bit host? Any help gratefully accepted. Dave -- David Haworth, Germany. PS. I can supply the complete set of warnings & errors if anyone wants them - they seem a bit to spost to the list. Please mail me off -list if they will help.