This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
GAS test suit problem
- From: =?gb2312?B?uagg1LTIqg==?= <source_kong at hotmail dot com>
- To: cgen at sources dot redhat dot com
- Date: Sat, 24 Aug 2002 21:56:27 +0800
- Subject: GAS test suit problem
- Bcc:
dear Mr,
when we tried to build the GAS test suite following the CGEN manual
(http://sources.redhat.com/cgen/docs-1.0/cgen_5.html#SEC165)
1.cd to the CGEN build directory
2.make gas-test At this point two files have been created in the CGEN build
directory: `gas-allinsn.exp' and `gas-build.sh'. The `gas-build.sh' script
normally requires one command line argument: the location of your `gas'
build directory. If this argument is omitted, the script searches in
`../gas' automatically.
3.Copy `gas-allinsn.exp' to
`toplevel/gas/testsuite/gas/<arch>/allinsn.exp'.
4.sh gas-build.sh At this point directory tmpdir contains two files:
`allinsn.s' and `allinsn.d'. File `allinsn.d' usually needs a bit of
massaging.
5.Copy `tmpdir/allinsn.[sd]' to `toplevel/gas/testsuite/gas/<arch>'
6.Run make check in the `gas' build directory and massage things until
you're satisfied the files are correct.
7.Check files into CVS.
When we proceeded to the 4th step, we got the following error messages,
% sh gas-build.sh
is not a GAS build directory.
we checked the "gas-build.sh" file, in the head it said:
#/bin/sh
# Generate test result data for m32r GAS testing.
# This script is machine generated.
# It is intended to be run in the testsuite source directory.
#
# Syntax: build.sh /path/to/build/gas
BUILD=$1
if [ ! -f $BUILD/as-new ] ; then
echo "$BUILD is not a GAS build directory."
exit 1
fi
.....
.....
our problem is we couldn't find the file "as-new",we didn't know when this
file was generated? and what the function of it?
We had saw "# Syntax: build.sh /path/to/build/gas",then tried to run
following command:
%gas-build.sh /home/student/user1/cgen/gas
but the same error occured.
Then we went on checking the "gas-build.sh" file,there was a function
called gentest as following:
function gentest {
rm -f a.out
$BUILD/as-new ${1}.s -o a.out
echo "#as:" >${1}.d
echo "#objdump: -dr" >>${1}.d
echo "#name: $1" >>${1}.d
$BUILD/../binutils/objdump -dr a.out | sed -e 's/(/\\(/g' -e
's/)/\\)/g' -e 's/[+]/\\+/g' -e 's/[*]/\*/g' | sed -e 's/^.*file
format.*$/.*: +file format .*/' >>${1}.d
rm -f a.out
}
We noticed there are "$BUILD/as-new ${1}.s -o a.out" and "
$BUILD/../binutils/objdump -dr a.out |......",we couldn't find
"$BUILD/../binutils/objdump",waht the problem about this?
To sum up,our problems are
1.when these two files "as-new" and "objdump" are generated?
2.what are their functions ?
Thanks for your help!
_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/