Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Changing the C/C++ compiler for gdb testsuite runs
@ 2002-01-10  5:46 Richard Earnshaw
  2002-01-10 17:30 ` Michael Snyder
  0 siblings, 1 reply; 12+ messages in thread
From: Richard Earnshaw @ 2002-01-10  5:46 UTC (permalink / raw)
  To: gdb; +Cc: Richard.Earnshaw


I'm not a dejagnu expert, so the answer to this may be obvious.  

Is there a way of forcing the GDB testsuite to use a particular compiler 
that hasn't yet been installed (I have a gcc-3 compiler from a build tree 
that I'd like to use to run the tests, but I don't particularly want to 
have to install it first).  I've tried running

	make check 

with both CC_FOR_TARGET and CC set to point to the compiler, but neither 
seems to work.  There doesn't appear to be anything on this in the gdb 
internals manual either.

R.


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Changing the C/C++ compiler for gdb testsuite runs
@ 2002-01-10  8:58 Michael Elizabeth Chastain
  2002-01-10 11:10 ` Kevin Buettner
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2002-01-10  8:58 UTC (permalink / raw)
  To: Richard.Earnshaw; +Cc: gdb

Richard Earnshaw writes:
> Is there a way of forcing the GDB testsuite to use a particular compiler 
> that hasn't yet been installed (I have a gcc-3 compiler from a build tree 
> that I'd like to use to run the tests, but I don't particularly want to 
> have to install it first).

I build my compilers with "prefix=/blah/blah/2002-01-10/blah ...."
and then I go ahead and install the compiler.  When I run the gdb test
suite, I set $PATH to the place where the compiler-under-test lives.

You may need to set $LD_LIBRARY_PATH as well if you build gcc with shared
libraries (libgcc and libstdc++).

If you build gcc and gdb in a unified build tree then dejagnu will find
and use the uninstalled compiler in the unified build tree, even in
preference to $PATH.  That behaviour actually got in my way so I stopped
using unified trees.

Michael C


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Changing the C/C++ compiler for gdb testsuite runs
@ 2002-01-11  8:07 Michael Elizabeth Chastain
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Elizabeth Chastain @ 2002-01-11  8:07 UTC (permalink / raw)
  To: ac131313, Richard.Earnshaw; +Cc: gdb

I built unified trees about once per week last summer.

My experience:

  + they do solve Richard's original problem, which is:
    testing a gcc without installing it

  + once I sorted out my symlink script, I had no trouble
    with libiberty or include or other shared directories.
    And they are synced even tighter today.

  - it did bother me that I was not building the packages
    in the same way that they would be released.

  - I like to test with several different versions of gcc
    so it's better for me to build in separate trees anyways.

Michael C


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

end of thread, other threads:[~2002-01-15 19:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-10  5:46 Changing the C/C++ compiler for gdb testsuite runs Richard Earnshaw
2002-01-10 17:30 ` Michael Snyder
2002-01-11  2:23   ` Richard Earnshaw
2002-01-11  7:26     ` Andrew Cagney
2002-01-11  7:38       ` Richard Earnshaw
2002-01-11  7:45         ` Andrew Cagney
2002-01-10  8:58 Michael Elizabeth Chastain
2002-01-10 11:10 ` Kevin Buettner
2002-01-10 11:30   ` Daniel Jacobowitz
2002-01-15 10:24     ` Daniel Jacobowitz
2002-01-15 11:18       ` Andrew Cagney
2002-01-11  8:07 Michael Elizabeth Chastain

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