This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tcl cannot build 64bit.


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
>
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]