This is the mail archive of the gdb@sourceware.org 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: Re: Re: Really cross compiling gdb.


> Daniel Jacobowitz <drow@false.org> wrote:
> 
> On Fri, Jan 13, 2006 at 09:35:47AM +1100, James Steward wrote:
> > > Daniel Jacobowitz <drow@false.org> wrote:
> > > 
> > > On Thu, Jan 12, 2006 at 09:00:15AM +1100, James Steward wrote:
> > > > ../configure  
> > > 
> --prefix=/usr/local/arm-linux/gcc-3.4.4-glibc-2.3.5/arm-xscale-linux-gnu/
> 
> > >  --program-prefix=arm-xscale-linux-gnu- --build=`../config.guess` 
> > > --target=arm-xscale-linux-gnu --host=arm-xscale-linux-gnu
> > > > 
> > > > Still the i386 gcc is used rather than the cross 
> > > arm-xscale-linux-gnu-gcc, and of course file gdb/gdb says ;
> > > > gdb/gdb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), 
> for 
> > > GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped
> > > > When I was hoping for an ARM executable.
> > > 
> > > What does the output of configure look like?
> > > 
> > Hi Daniel.
> > 
> > It looks pretty much how I'd expect - but eh, I'm certainly no 
> expert..
> > 
> > I've attached the config.status and make.out from make 2>&1 | tee 
> make.out
> 
> Is CC=gcc set in your environment, or something similar?  Find out why
> configure is checking for arm-xscale-linux-gnu-gcc and using 'gcc'.
> 

Ah ha!  I think I may have cracked it.  I now have a gdb that is built to run
on an ARM.

gdb/gdb: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, dynamically linked (uses shared libs), not stripped

I don't think CC was set to anything - but maybe, then the only difference 
between this and previous attempts was to change from
../configure blah blah --host=arm-xscale-linux-gnu
to
../configure blah blah arm-xscale-linux-gnu

Which is kinda what the ../configure --help says to do anyway :-)
Usage: configure [options] [host]

So the entire configure command line is now;
../configure  --prefix=/usr/local/arm-linux/gcc-3.4.4-glibc-2.3.5/arm-xscale-linux-gnu/ --program-prefix=arm-xscale-linux-gnu- --build=i686-pc-linux-gnu --target=arm-xscale-linux-gnu arm-xscale-linux-gnu

Also needs the; 
export bash_cv_have_mbstate_t=yes

Some LDFLAGS= and additional include for my ncurses installation.

Regards,
James.

Damn this email editor that keeps adding a "Re: "


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