* Re: Re: Really cross compiling gdb.
@ 2006-01-12 0:12 James Steward
2006-01-12 0:44 ` Jim Blandy
2006-01-12 14:52 ` Daniel Jacobowitz
0 siblings, 2 replies; 4+ messages in thread
From: James Steward @ 2006-01-12 0:12 UTC (permalink / raw)
To: Simon Richter; +Cc: gdb
Hi Simon,
> Simon Richter <Simon.Richter@picotux.com> wrote:
>
> Hello,
>
> James Steward wrote:
>
> > This development board has heaps of RAM and CF disk space so I
> > thought about compiling gdb to run on the development platform but
> > alas with the --host=arm-xscale-linux-gnu and
> > --target=arm-xscale-linux-gnu and the readline workaround the gdb
> > application is still a i386 executable (the build machine).
>
> Setting both host and target should usually work, however IIRC there are
>
> a few broken configure scripts out there that set build=host if only
> host is given, later on determine that build==host, so it's obviously a
> native build and no cross compiler prefix is needed, so the host gcc is
> used.
>
> Setting "--build=`./config.guess`" or something similar worked for us,
> at least. :-)
>
> Simon
Thanks for the tip - but it doesn't seem to have worked for me :-(
My configure command now looks like this.
../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.
I configured and compiled in a fresh subdir so as not to have any old files laying around from previous attemps.
Is it worth noting that the sources are from Debians stable sources..
gdb_6.3.orig.tar.gz
gdb_6.3-6.diff.gz
Maybe do I need to set CC=arm-xscale-linux-gnu-gcc or something? I think I tried that yesterday and it wasn't helping - but maybe with the --build set as well?
I appreciate your thoughts.
Regards,
James.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: Really cross compiling gdb.
2006-01-12 0:12 Re: Really cross compiling gdb James Steward
@ 2006-01-12 0:44 ` Jim Blandy
2006-01-12 12:41 ` Dave Korn
2006-01-12 14:52 ` Daniel Jacobowitz
1 sibling, 1 reply; 4+ messages in thread
From: Jim Blandy @ 2006-01-12 0:44 UTC (permalink / raw)
To: jamessteward; +Cc: Simon Richter, gdb
On 1/11/06, James Steward <jamessteward@optusnet.com.au> wrote:
> Thanks for the tip - but it doesn't seem to have worked for me :-(
I'm not too familiar with this sort of cross-building, but I believe
that ought to work. I think you're going to have to grovel through
the configure scripts and figure out what's going wrong.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Re: Really cross compiling gdb.
2006-01-12 0:44 ` Jim Blandy
@ 2006-01-12 12:41 ` Dave Korn
0 siblings, 0 replies; 4+ messages in thread
From: Dave Korn @ 2006-01-12 12:41 UTC (permalink / raw)
To: 'Jim Blandy', jamessteward; +Cc: 'Simon Richter', gdb
Jim Blandy wrote:
> On 1/11/06, James Steward <jamessteward@optusnet.com.au> wrote:
>> Thanks for the tip - but it doesn't seem to have worked for me :-(
>
> I'm not too familiar with this sort of cross-building, but I believe
> that ought to work. I think you're going to have to grovel through
> the configure scripts and figure out what's going wrong.
I have an idea!
James Steward wrote:
> My configure command now looks like this.
>
> ../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
Perhaps this is a manifestation of the
can't-find-cross-tools-when-configuring-with-a-relative-path bug, and perhaps
using an absolute path to the configure script will sort it out?
(Or perhaps not; this is a bit of a WAG :-P)
cheers,
DaveK
--
Can't think of a witty .sigline today....
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: Really cross compiling gdb.
2006-01-12 0:12 Re: Really cross compiling gdb James Steward
2006-01-12 0:44 ` Jim Blandy
@ 2006-01-12 14:52 ` Daniel Jacobowitz
1 sibling, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2006-01-12 14:52 UTC (permalink / raw)
To: James Steward; +Cc: Simon Richter, gdb
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?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-01-12 14:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 0:12 Re: Really cross compiling gdb James Steward
2006-01-12 0:44 ` Jim Blandy
2006-01-12 12:41 ` Dave Korn
2006-01-12 14:52 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox