public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* GAS test suit problem
@ 2002-08-24  7:01 龚 源泉
  2002-08-24 11:48 ` Ben Elliston
  0 siblings, 1 reply; 2+ messages in thread
From: 龚 源泉 @ 2002-08-24  7:01 UTC (permalink / raw)
  To: cgen

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 2639 bytes --]

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/

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

* Re: GAS test suit problem
  2002-08-24  7:01 GAS test suit problem 龚 源泉
@ 2002-08-24 11:48 ` Ben Elliston
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Elliston @ 2002-08-24 11:48 UTC (permalink / raw)
  To: 龚 源泉; +Cc: cgen

>>>>> "source" == source kong <gb2312> writes:

  source> To sum up,our problems are
  source> 1.when these two files "as-new" and "objdump" are generated?

These are programs built as part of the gas and binutils packages.  In
the case of `as-new', it is named this when built, but renamed
appropriately when it is installed with `make install'.

  source> 2.what are their functions ?

To assemble to object code and to dump object files, respectively.

It sounds like your problem is that you've not built the gas and
binutils directories.  As you've noted, they are required to generate
testsuites.

Hope this helps.

Ben

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

end of thread, other threads:[~2002-08-24 18:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-24  7:01 GAS test suit problem 龚 源泉
2002-08-24 11:48 ` Ben Elliston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).