From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5979 invoked by alias); 10 Mar 2004 05:46:52 -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 5964 invoked from network); 10 Mar 2004 05:46:51 -0000 Received: from unknown (HELO e35.co.us.ibm.com) (32.97.110.133) by sources.redhat.com with SMTP; 10 Mar 2004 05:46:51 -0000 Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32]) by e35.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i2A5keF4566240; Wed, 10 Mar 2004 00:46:40 -0500 Received: from austin.ibm.com (d03av02.boulder.ibm.com [9.17.193.82]) by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i2A5kd50133478; Tue, 9 Mar 2004 22:46:39 -0700 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 i2A5kcvE044754; Tue, 9 Mar 2004 23:46:38 -0600 Date: Wed, 10 Mar 2004 05:46:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: Andrew Cagney cc: Andreas Schwab , gdb@sources.redhat.com Subject: Re: tcl cannot build 64bit. In-Reply-To: <404E70B2.4010607@gnu.org> Message-ID: References: <404E3539.8010005@gnu.org> <404E44B8.8050605@gnu.org> <404E70B2.4010607@gnu.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-03/txt/msg00087.txt.bz2 Andrew, Well the problem is in the Makefile.in file in the tcl/unix directory. tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE} ${CC} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} \ ${CC_SEARCH_FLAGS} -o tclsh add ${CFLAGS} to the above fixes the unresolved symbols problem, and tclsh builds like a charm :-) so the code should look like this... src/tcl/unix/Makefile.in:479 tclsh: ${TCLSH_OBJS} ${TCL_LIB_FILE} ${CC} ${CFLAGS} ${LDFLAGS} ${TCLSH_OBJS} @TCL_BUILD_LIB_SPEC@ ${LIBS} ${CC_SEARCH_FLAGS} -o tclsh since I am building using CFLAGS="$CFLAGS -m64", the -m64 is not passed to this step, and the linker tries to link 32bit & 64bit binaries to gether and the build fails. Sorry I dont have a FSF approval currently to submit this as a patch. But I will be getting one sometime this month. I can send you the patch then or you can patch this for me :-) Thanks Manoj Iyer On Tue, 9 Mar 2004, Andrew Cagney wrote: > >>Er, no, here's my link line: > >>> > >>> /usr/pkg/bin/ccache gcc -g -O -o gdbtui tui-main.o libgdb.a > >>> ../sim/ppc/libsim.a ../bfd/libbfd.a ../readline/libreadline.a > >>> ../opcodes/libopcodes.a ./../intl/libintl.a ../libiberty/libiberty.a -lm > >>> -lcurses ../libiberty/libiberty.a > > > > > > Ok, it's not gdb itself, but there is the gdbtk subdirectory. > > Sounds like you did the dreaded `cvs update -d`. Just remove the > directory, it isn't needed. > > Andrew > > >