Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: error building gcc , (simulators and targets...)
@ 2003-01-15 16:50 Michael Elizabeth Chastain
  2003-01-15 16:59 ` Andrew Cagney
  0 siblings, 1 reply; 17+ messages in thread
From: Michael Elizabeth Chastain @ 2003-01-15 16:50 UTC (permalink / raw)
  To: ac131313; +Cc: drow, gdb

I agree with Andrew C, I think our doco needs an upgrade.  I volunteer
to write a doco patch.  Of course, whether it's good or not is up to
the approvers.

Michael C


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-15 16:50 error building gcc , (simulators and targets...) Michael Elizabeth Chastain
@ 2003-01-15 16:59 ` Andrew Cagney
  2003-01-15 17:11   ` msarasa
  0 siblings, 1 reply; 17+ messages in thread
From: Andrew Cagney @ 2003-01-15 16:59 UTC (permalink / raw)
  To: Michael Elizabeth Chastain; +Cc: drow, gdb

> I agree with Andrew C, I think our doco needs an upgrade.  I volunteer
> to write a doco patch.  Of course, whether it's good or not is up to
> the approvers.

I've a feeling that, for this specific case, it isn't GDB's doco, but 
someone elses :-(

Andrew



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-15 16:59 ` Andrew Cagney
@ 2003-01-15 17:11   ` msarasa
  0 siblings, 0 replies; 17+ messages in thread
From: msarasa @ 2003-01-15 17:11 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: Michael Elizabeth Chastain, drow, gdb

Thank you very much for all your support.
As I've said , I'm just a begginner that's why I've probably made a stupid 
error ;-)
Now I finish my day, but as soon as I can I'll tell you more about where 
exactly I've got that FAQ.
Thanks again!
P.S.
What about doc's telling exactly how could I configure, build ... step by step 
, gnu for a specific simulator?? (That could save my ass!! :-D )

Miguel



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
@ 2003-01-16 17:02 Michael Elizabeth Chastain
  0 siblings, 0 replies; 17+ messages in thread
From: Michael Elizabeth Chastain @ 2003-01-16 17:02 UTC (permalink / raw)
  To: msarasa; +Cc: ac131313, drow, gdb

That cross-gcc FAQ is dated 1999-12-03!  It's the latest cross-gcc FAQ
that I've ever found.  I don't think anyone is actively maintaining it.

Michael C


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-16 14:31         ` Daniel Jacobowitz
@ 2003-01-16 15:20           ` msarasa
  0 siblings, 0 replies; 17+ messages in thread
From: msarasa @ 2003-01-16 15:20 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: Michael Elizabeth Chastain, ac131313, gdb

Zitat von Daniel Jacobowitz <drow@mvista.com>:

> On Thu, Jan 16, 2003 at 03:18:15PM +0100, msarasa@fh-konstanz.de wrote:
> > Zitat von Daniel Jacobowitz <drow@mvista.com>:
> > 
> > > On Thu, Jan 16, 2003 at 01:55:02PM +0100, msarasa@fh-konstanz.de wrote:
> > > > I made four directories for building Binutils , GCC , Newlib and Gdb ,
> in
> > > this 
> > > > order.
> > > > They're called:
> > > > build-gcc
> > > > build-binutils
> > > > build-newlib
> > > > build-gdb
> > > > 
> > > > I made also a folder h8300-elf-gnu to install there.
> > > > 
> > > > Sources are contained in miguel/gnu
> > > > 
> > > > I made
> > > > cd build-newlib
> > > > ../gnu/binutils/configure --prefix=/h8300-elf-gnu --target=h8300-elf
> > > > 
> > > > There's no error message with this , but then I do 
> > > 
> > > Same problem.  Try
> > > 
> > >  ../gnu/configure --prefix=/h8300-elf-gnu --target=h8300-elf
> > > 
> > 
> > this wouldn't configure not only binutils but the whole gnu? I've made that
> , 
> > and seems like the configuration for all the stuff... 
> > Or , should I do this instead of one configure than one make for binutils ,
> 
> > that for gcc... Is this the way to configure and Install gnu in one step?
> 
> Yes, you configure everything at once.  Then you can just say "make".
> 
> -- 
> Daniel Jacobowitz
> MontaVista Software                         Debian GNU/Linux Developer
> 
I've just made that , but:
I didn't get an executable looking like h8300-elf-gdb
I ran gdb, but I still have no success with "target sim" command , even though 
this processor should have a built-in simulator.

Thanks again!




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-16 14:18       ` msarasa
@ 2003-01-16 14:31         ` Daniel Jacobowitz
  2003-01-16 15:20           ` msarasa
  0 siblings, 1 reply; 17+ messages in thread
From: Daniel Jacobowitz @ 2003-01-16 14:31 UTC (permalink / raw)
  To: msarasa; +Cc: Michael Elizabeth Chastain, ac131313, gdb

On Thu, Jan 16, 2003 at 03:18:15PM +0100, msarasa@fh-konstanz.de wrote:
> Zitat von Daniel Jacobowitz <drow@mvista.com>:
> 
> > On Thu, Jan 16, 2003 at 01:55:02PM +0100, msarasa@fh-konstanz.de wrote:
> > > I made four directories for building Binutils , GCC , Newlib and Gdb , in
> > this 
> > > order.
> > > They're called:
> > > build-gcc
> > > build-binutils
> > > build-newlib
> > > build-gdb
> > > 
> > > I made also a folder h8300-elf-gnu to install there.
> > > 
> > > Sources are contained in miguel/gnu
> > > 
> > > I made
> > > cd build-newlib
> > > ../gnu/binutils/configure --prefix=/h8300-elf-gnu --target=h8300-elf
> > > 
> > > There's no error message with this , but then I do 
> > 
> > Same problem.  Try
> > 
> >  ../gnu/configure --prefix=/h8300-elf-gnu --target=h8300-elf
> > 
> 
> this wouldn't configure not only binutils but the whole gnu? I've made that , 
> and seems like the configuration for all the stuff... 
> Or , should I do this instead of one configure than one make for binutils , 
> that for gcc... Is this the way to configure and Install gnu in one step?

Yes, you configure everything at once.  Then you can just say "make".

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-16 13:50     ` Daniel Jacobowitz
@ 2003-01-16 14:18       ` msarasa
  2003-01-16 14:31         ` Daniel Jacobowitz
  0 siblings, 1 reply; 17+ messages in thread
From: msarasa @ 2003-01-16 14:18 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: Michael Elizabeth Chastain, ac131313, gdb

Zitat von Daniel Jacobowitz <drow@mvista.com>:

> On Thu, Jan 16, 2003 at 01:55:02PM +0100, msarasa@fh-konstanz.de wrote:
> > I made four directories for building Binutils , GCC , Newlib and Gdb , in
> this 
> > order.
> > They're called:
> > build-gcc
> > build-binutils
> > build-newlib
> > build-gdb
> > 
> > I made also a folder h8300-elf-gnu to install there.
> > 
> > Sources are contained in miguel/gnu
> > 
> > I made
> > cd build-newlib
> > ../gnu/binutils/configure --prefix=/h8300-elf-gnu --target=h8300-elf
> > 
> > There's no error message with this , but then I do 
> 
> Same problem.  Try
> 
>  ../gnu/configure --prefix=/h8300-elf-gnu --target=h8300-elf
> 

this wouldn't configure not only binutils but the whole gnu? I've made that , 
and seems like the configuration for all the stuff... 
Or , should I do this instead of one configure than one make for binutils , 
that for gcc... Is this the way to configure and Install gnu in one step?

Thanks!!



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-16 12:54   ` msarasa
@ 2003-01-16 13:50     ` Daniel Jacobowitz
  2003-01-16 14:18       ` msarasa
  0 siblings, 1 reply; 17+ messages in thread
From: Daniel Jacobowitz @ 2003-01-16 13:50 UTC (permalink / raw)
  To: msarasa; +Cc: Michael Elizabeth Chastain, ac131313, gdb

On Thu, Jan 16, 2003 at 01:55:02PM +0100, msarasa@fh-konstanz.de wrote:
> I made four directories for building Binutils , GCC , Newlib and Gdb , in this 
> order.
> They're called:
> build-gcc
> build-binutils
> build-newlib
> build-gdb
> 
> I made also a folder h8300-elf-gnu to install there.
> 
> Sources are contained in miguel/gnu
> 
> I made
> cd build-newlib
> ../gnu/binutils/configure --prefix=/h8300-elf-gnu --target=h8300-elf
> 
> There's no error message with this , but then I do 

Same problem.  Try

 ../gnu/configure --prefix=/h8300-elf-gnu --target=h8300-elf



-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-16  9:58 ` msarasa
@ 2003-01-16 12:54   ` msarasa
  2003-01-16 13:50     ` Daniel Jacobowitz
  0 siblings, 1 reply; 17+ messages in thread
From: msarasa @ 2003-01-16 12:54 UTC (permalink / raw)
  To: msarasa; +Cc: Michael Elizabeth Chastain, ac131313, drow, gdb

I made four directories for building Binutils , GCC , Newlib and Gdb , in this 
order.
They're called:
build-gcc
build-binutils
build-newlib
build-gdb

I made also a folder h8300-elf-gnu to install there.

Sources are contained in miguel/gnu

I made
cd build-newlib
../gnu/binutils/configure --prefix=/h8300-elf-gnu --target=h8300-elf

There's no error message with this , but then I do 

make all

and comes:

miguel@stefan:~/build-binutils > make all
make  all-recursive
make[1]: Entering directory `/home/miguel/build-binutils'
Making all in doc
make[2]: Entering directory `/home/miguel/build-binutils/doc'
if test -f cxxfilt.man; then \
  man=cxxfilt.man; \
else \
  man=../../gnu/binutils/doc/cxxfilt.man; \
fi; \
sed -e 's/@PROGRAM@/c++filt/' \
    -e 's/cxxfilt/c++filt/' < $man \
        > c++filt.1
make[2]: Leaving directory `/home/miguel/build-binutils/doc'
Making all in po
make[2]: Entering directory `/home/miguel/build-binutils/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/miguel/build-binutils/po'
make[2]: Entering directory `/home/miguel/build-binutils'
make[2]: *** No rule to make target `../bfd/bfd.h', needed by `size.o'.  Stop.
make[2]: Leaving directory `/home/miguel/build-binutils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/miguel/build-binutils'
make: *** [all-recursive-am] Error 2


What I'm doing wrong?? Why don't I have these headers? should I get other 
fonts?

Thank you!


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-15 17:13 Michael Elizabeth Chastain
@ 2003-01-16  9:58 ` msarasa
  2003-01-16 12:54   ` msarasa
  0 siblings, 1 reply; 17+ messages in thread
From: msarasa @ 2003-01-16  9:58 UTC (permalink / raw)
  To: Michael Elizabeth Chastain; +Cc: ac131313, drow, gdb

This is what I've used.

http://www.sthoward.com/CrossGCC/FAQ-4.html

I feel that all the docs I've read tell me good stuff, but they don't tell 
things "step by step" , like I need , because I'm a real begginner, and I 
can't overcome easily each problem I find.

Thank you!




^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
@ 2003-01-15 17:13 Michael Elizabeth Chastain
  2003-01-16  9:58 ` msarasa
  0 siblings, 1 reply; 17+ messages in thread
From: Michael Elizabeth Chastain @ 2003-01-15 17:13 UTC (permalink / raw)
  To: ac131313; +Cc: drow, gdb

It is happening to multiple people.  It also happened to Johan Vermeire
as well (PR gdb/915).  Johan also got stuck because his MS Win2K + IE
6.0 browser couldn't file a bug report, and then nobody looked at his
mail to gdb-bug@gnu.org.

Preventing PR's with better doco is a good thing, both for the users
and for us.

Better doco will help our direct users, and then our channel partners,
partners, the cross-gcc FAQ people, can uptake our new doco or refer to
it in their doco.  That part won't happen overnight.  The most recent
cross-gcc FAQ I've seen is from 1999!

(Honestly, I think gdb could benefit from lots of re-engineering for
our customer-facing business processes, I'm reading a Patricia Seybold
book and all this goobledygook actually does apply to the gdb project,
in my mind at least).

So I'll write that doco and submit it soon.

Michael C


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
@ 2003-01-15 16:50 Daniel Jacobowitz
  0 siblings, 0 replies; 17+ messages in thread
From: Daniel Jacobowitz @ 2003-01-15 16:50 UTC (permalink / raw)
  To: msarasa, gdb

Forwarded by request.  Hmm, sounds like the CrossGCC FAQ....

----- Forwarded message from msarasa@fh-konstanz.de -----

Date: Wed, 15 Jan 2003 17:46:08 +0100
From: msarasa@fh-konstanz.de
Subject: Re: error building gcc , (simulators and targets...)
To: Daniel Jacobowitz <drow@mvista.com>

I follow the instructions given in a FAQ that says
"How to configure , build and install GCC as a Cross-compiler"
Right now , I must search where exactly is that, because I've a true mess with 
all the FAQs Howtos and docs, sorry.

What I tried to do is to configure gcc to use with a simulator. 
First I tried to build Binutils, GCC, Newlib and Gdb in a separate path. 
In this FAQ it's said that I must build these four things in four different 
folders, and in the order I've said. 

Any ideas? Gnu docs don't help me too much...

Thank You!!!
Miguel



----- End forwarded message -----

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
@ 2003-01-15 16:48 Michael Elizabeth Chastain
  0 siblings, 0 replies; 17+ messages in thread
From: Michael Elizabeth Chastain @ 2003-01-15 16:48 UTC (permalink / raw)
  To: gdb, msarasa

Hi Miguel,

What is the configuration command that you used to configure gdb?

Make sure that it is something like this:

  bash% /berman/migchain/source/gdb-5.3/configure --target=m68k-elf

And not this:

  bash% /berman/migchain/source/gdb-5.3/gdb/configure --target=m68k-elf
                                ^^^^^^^^^^^

If there are two 'gdb' names in your configure command, then you are
configuring only the 'gdb' subdirectory, and not the whole 'gdb-5.3'
package.  This results in a problem like the problem you are seeing.

Michael C


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-15 16:13   ` Andrew Cagney
@ 2003-01-15 16:15     ` Daniel Jacobowitz
  0 siblings, 0 replies; 17+ messages in thread
From: Daniel Jacobowitz @ 2003-01-15 16:15 UTC (permalink / raw)
  To: gdb

On Wed, Jan 15, 2003 at 11:12:59AM -0500, Andrew Cagney wrote:
> >make[2]: Entering directory `/home/miguel/gcc_sim/build-binutils'
> >>make[2]: *** No rule to make target `../bfd/bfd.h', needed by `size.o'.  
> >>Stop.
> >>make[2]: Leaving directory `/home/miguel/gcc_sim/build-binutils'
> >>make[1]: *** [all-recursive] Error 1
> >>make[1]: Leaving directory `/home/miguel/gcc_sim/build-binutils'
> >>make: *** [all-recursive-am] Error 2
> >>
> >>What should I do? I'm really a begginer!
> >
> >
> >I think you ran the wrong configure script.  You need to run the one in
> >the top level, not the one under gdb/ or binutils/.
> 
> Yep.
> 
> Too many posts like this are showing up :-(  This suggests a doco 
> problem somewhere?
> 
> Miguel,  which documentation were you following when doing this?

My bet is, just guessing.  Should we make configure check for a
Makefile in the directory above?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-15 13:21 ` Daniel Jacobowitz
@ 2003-01-15 16:13   ` Andrew Cagney
  2003-01-15 16:15     ` Daniel Jacobowitz
  0 siblings, 1 reply; 17+ messages in thread
From: Andrew Cagney @ 2003-01-15 16:13 UTC (permalink / raw)
  To: msarasa; +Cc: Daniel Jacobowitz, gdb

> make[2]: Entering directory `/home/miguel/gcc_sim/build-binutils'
>> make[2]: *** No rule to make target `../bfd/bfd.h', needed by `size.o'.  Stop.
>> make[2]: Leaving directory `/home/miguel/gcc_sim/build-binutils'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/miguel/gcc_sim/build-binutils'
>> make: *** [all-recursive-am] Error 2
>> 
>> What should I do? I'm really a begginer!
> 
> 
> I think you ran the wrong configure script.  You need to run the one in
> the top level, not the one under gdb/ or binutils/.

Yep.

Too many posts like this are showing up :-(  This suggests a doco 
problem somewhere?

Miguel,  which documentation were you following when doing this?

Andrew



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: error building gcc , (simulators and targets...)
  2003-01-15 10:13 msarasa
@ 2003-01-15 13:21 ` Daniel Jacobowitz
  2003-01-15 16:13   ` Andrew Cagney
  0 siblings, 1 reply; 17+ messages in thread
From: Daniel Jacobowitz @ 2003-01-15 13:21 UTC (permalink / raw)
  To: msarasa; +Cc: gdb

On Wed, Jan 15, 2003 at 11:13:34AM +0100, msarasa@fh-konstanz.de wrote:
> 
> I'm trying to build gcc for a specific target : m68k for example
> as I do:
> make all
> I get this error message:
> 
> miguel@stefan:~/gcc_sim/build-binutils > make all
> make  all-recursive
> make[1]: Entering directory `/home/miguel/gcc_sim/build-binutils'
> Making all in doc
> make[2]: Entering directory `/home/miguel/gcc_sim/build-binutils/doc'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/miguel/gcc_sim/build-binutils/doc'
> Making all in po
> make[2]: Entering directory `/home/miguel/gcc_sim/build-binutils/po'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/miguel/gcc_sim/build-binutils/po'
> make[2]: Entering directory `/home/miguel/gcc_sim/build-binutils'
> make[2]: *** No rule to make target `../bfd/bfd.h', needed by `size.o'.  Stop.
> make[2]: Leaving directory `/home/miguel/gcc_sim/build-binutils'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/miguel/gcc_sim/build-binutils'
> make: *** [all-recursive-am] Error 2
> 
> What should I do? I'm really a begginer!

I think you ran the wrong configure script.  You need to run the one in
the top level, not the one under gdb/ or binutils/.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


^ permalink raw reply	[flat|nested] 17+ messages in thread

* error building gcc , (simulators and targets...)
@ 2003-01-15 10:13 msarasa
  2003-01-15 13:21 ` Daniel Jacobowitz
  0 siblings, 1 reply; 17+ messages in thread
From: msarasa @ 2003-01-15 10:13 UTC (permalink / raw)
  To: gdb


I'm trying to build gcc for a specific target : m68k for example
as I do:
make all
I get this error message:

miguel@stefan:~/gcc_sim/build-binutils > make all
make  all-recursive
make[1]: Entering directory `/home/miguel/gcc_sim/build-binutils'
Making all in doc
make[2]: Entering directory `/home/miguel/gcc_sim/build-binutils/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/miguel/gcc_sim/build-binutils/doc'
Making all in po
make[2]: Entering directory `/home/miguel/gcc_sim/build-binutils/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/miguel/gcc_sim/build-binutils/po'
make[2]: Entering directory `/home/miguel/gcc_sim/build-binutils'
make[2]: *** No rule to make target `../bfd/bfd.h', needed by `size.o'.  Stop.
make[2]: Leaving directory `/home/miguel/gcc_sim/build-binutils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/miguel/gcc_sim/build-binutils'
make: *** [all-recursive-am] Error 2

What should I do? I'm really a begginer!
The goal of my efforts is to configure gdb to its use with a simulator, in 
order to see what should I do to configure my own undefined simulator for a 
new , not defined processor.
Any ideas would be really wellcomed
What could I read? Or analyze?
Thank you very much.
Miguel



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2003-01-16 17:02 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-15 16:50 error building gcc , (simulators and targets...) Michael Elizabeth Chastain
2003-01-15 16:59 ` Andrew Cagney
2003-01-15 17:11   ` msarasa
  -- strict thread matches above, loose matches on Subject: below --
2003-01-16 17:02 Michael Elizabeth Chastain
2003-01-15 17:13 Michael Elizabeth Chastain
2003-01-16  9:58 ` msarasa
2003-01-16 12:54   ` msarasa
2003-01-16 13:50     ` Daniel Jacobowitz
2003-01-16 14:18       ` msarasa
2003-01-16 14:31         ` Daniel Jacobowitz
2003-01-16 15:20           ` msarasa
2003-01-15 16:50 Daniel Jacobowitz
2003-01-15 16:48 Michael Elizabeth Chastain
2003-01-15 10:13 msarasa
2003-01-15 13:21 ` Daniel Jacobowitz
2003-01-15 16:13   ` Andrew Cagney
2003-01-15 16:15     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox