From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21296 invoked by alias); 5 May 2004 19:44:16 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21264 invoked from network); 5 May 2004 19:44:15 -0000 Received: from unknown (HELO e32.co.us.ibm.com) (32.97.110.130) by sources.redhat.com with SMTP; 5 May 2004 19:44:15 -0000 Received: from westrelay03.boulder.ibm.com (westrelay03.boulder.ibm.com [9.17.195.12]) by e32.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i45Ji7nU683036; Wed, 5 May 2004 15:44:07 -0400 Received: from austin.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by westrelay03.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i45Ji6Wn494788; Wed, 5 May 2004 13:44:06 -0600 Received: from lazy.austin.ibm.com (lazy.austin.ibm.com [9.53.94.97]) by austin.ibm.com (8.12.10/8.12.10) with ESMTP id i45G8lJk051346; Wed, 5 May 2004 11:08:47 -0500 Date: Wed, 05 May 2004 19:44:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: gdb-patches@sources.redhat.com cc: kevinb@redhat.com Subject: [RFC] GDB64 on PPC64 - tclsh does not compile 64bit Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1613630129-1083772223=:11085" Content-ID: X-SW-Source: 2004-05/txt/msg00145.txt.bz2 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --8323328-1613630129-1083772223=:11085 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-ID: Content-length: 1718 I have this problem for a while with GDB 6.1 CVS (Same patch is applicable to mainline GDB as well), and I used to hand patch it while building GDB64 on PPC64. tclsh does not build 64bit because of a missing CFLAGS on the compile line, a patch is attached. Problem: --------- (NOTE: I am using a different toolchain, but the problem is independent of that) /cc tclAppInit.o -L/home/manjo/GDB/src/tcl/uni x -ltcl8.4 -ldl -lieee -lm \ -Wl,-rpath,/usr/local/lib -o tclsh /opt/biarch/2.6/20040420_nptl/bin/ld: skipping incompatible /home/manjo/GDB/src/ tcl/unix/libtcl8.4.a when searching for -ltcl8.4 /opt/biarch/2.6/20040420_nptl/bin/ld: warning: powerpc:common64 architecture of input file `tclAppInit.o' is incompatible with powerpc:common output tclAppInit.o(.text+0x32): In function `.main': : relocation truncated to fit: R_PPC64_TOC16_DS .toc tclAppInit.o(.text+0x34): In function `.main': : undefined reference to `.Tcl_Main' tclAppInit.o(.text+0x80): In function `.Tcl_AppInit': : undefined reference to `.Tcl_Init' tclAppInit.o(.text+0xa6): In function `.Tcl_AppInit': : relocation truncated to fit: R_PPC64_TOC16_DS .toc tclAppInit.o(.text+0xaa): In function `.Tcl_AppInit': : relocation truncated to fit: R_PPC64_TOC16_DS .toc tclAppInit.o(.text+0xb0): In function `.Tcl_AppInit': : undefined reference to `.Tcl_SetVar' collect2: ld returned 1 exit status make[2]: *** [tclsh] Error 1 make[2]: Leaving directory `/home/manjo/GDB/src/tcl/unix' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/manjo/GDB/src/tcl' make: *** [all-tcl] Error 2 manjo@venus:~/GDB/src> I set CFLAGS=-m64 LDFLAGS=-m64 ./configure .... while configuring. The above patch fixes this problem. Thanks Manoj Iyer --8323328-1613630129-1083772223=:11085 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="gdb6.1_tclsh.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: TCLSH 64bit patch Content-Disposition: ATTACHMENT; FILENAME="gdb6.1_tclsh.patch" Content-length: 708 ZGlmZiAtTmF1cmQgLi9vbGQvc3JjL3RjbC91bml4L01ha2VmaWxlLmluIC4v bmV3L3NyYy90Y2wvdW5peC9NYWtlZmlsZS5pbg0KLS0tIC4vb2xkL3NyYy90 Y2wvdW5peC9NYWtlZmlsZS5pbgkyMDAzLTAxLTIxIDExOjQwOjE4LjAwMDAw MDAwMCAtMDgwMA0KKysrIC4vbmV3L3NyYy90Y2wvdW5peC9NYWtlZmlsZS5p bgkyMDA0LTA1LTA1IDA5OjAyOjIwLjMyMzA4MjQzMiAtMDcwMA0KQEAgLTQ3 Nyw3ICs0NzcsNyBAQA0KIA0KIA0KIHRjbHNoOiAke1RDTFNIX09CSlN9ICR7 VENMX0xJQl9GSUxFfQ0KLQkke0NDfSAke0xERkxBR1N9ICR7VENMU0hfT0JK U30gQFRDTF9CVUlMRF9MSUJfU1BFQ0AgJHtMSUJTfSBcDQorCSR7Q0N9ICR7 TERGTEFHU30gJHtDRkxBR1N9ICR7VENMU0hfT0JKU30gQFRDTF9CVUlMRF9M SUJfU1BFQ0AgJHtMSUJTfSBcDQogCQkke0NDX1NFQVJDSF9GTEFHU30gLW8g dGNsc2gNCiANCiAjIFJlc2V0dGluZyB0aGUgTElCX1JVTlRJTUVfRElSIGJl bG93IGlzIHJlcXVpcmVkIHNvIHRoYXQNCg== --8323328-1613630129-1083772223=:11085--