From: Timothy Wall <twall@oculustech.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb@sources.redhat.com
Subject: Re: Using a compiler for testsuite that's not GCC?
Date: Mon, 29 Oct 2001 09:05:00 -0000 [thread overview]
Message-ID: <3BDD8BE8.E41E695A@oculustech.com> (raw)
In-Reply-To: <3BDD819A.4010603@cygnus.com>
Hi Andrew,
I'm talking to a gdbserver which controls my target board.
I'm not yet attuned to the role of each of these configs (could sure use a README in these dirs...), but so far I have the following:
dejagnu/config/tic54x.exp - simply loads gdbserver config
dejagnu/baseboards/tic54x.exp - most config stuff is here, including cflags/ldflags
gdb/testsuite/config/tic54x.exp - loads gdbserver config
Even though I've set cflags, some tests throw in additional options:
Running ../../../gdb/gdb/testsuite/gdb.base/all-bin.exp ...
gdb compile failed, >> WARNING: invalid option -w (ignored)
>> WARNING: invalid option -l (ignored)
>> WARNING: invalid option -m (ignored)
[all-types.c]
[all-types]
Fatal error: could not open source file "/nfs/dev-users/twall/build-gdb/gdb/test
suite/gdb.base/all-types"
1 fatal error detected in the compilation of "/nfs/dev-users/twall/build-gdb/gdb
/testsuite/gdb.base/all-types".
Compilation terminated.
WARNING: Testcase compile failed, so all tests in this file will automatically f
ail.
This looks like "-lm" is tacked on, as well as "-w". The "-w" in the test is explicit. I
should be able to override "-lm" if it's in a variable somewhere.
Andrew Cagney wrote:
> > What's the best way to go about this? It seems a lot of the tests assume gcc and so throw gcc-specific options at the compiler. It seems the approach with least effort would be to point dejagnu at a wrapper which translates gcc options into ones the other compiler understands...
>
> Can you expand a little. The testsuite should work with any C compiler.
>
> Andrew
next prev parent reply other threads:[~2001-10-29 9:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-29 6:13 Timothy Wall
2001-10-29 8:21 ` Andrew Cagney
2001-10-29 9:05 ` Timothy Wall [this message]
2001-10-29 9:15 ` Timothy Wall
2001-10-29 9:44 ` Stan Shebs
2001-10-29 10:04 ` Timothy Wall
2001-10-29 20:04 Timothy Wall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3BDD8BE8.E41E695A@oculustech.com \
--to=twall@oculustech.com \
--cc=ac131313@cygnus.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox