From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21716 invoked by alias); 24 Aug 2002 14:01:12 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 20856 invoked from network); 24 Aug 2002 13:57:27 -0000 Received: from unknown (HELO hotmail.com) (64.4.37.190) by 209.249.29.67 with SMTP; 24 Aug 2002 13:57:27 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 24 Aug 2002 06:56:27 -0700 Received: from 61.175.193.50 by pv2fd.pav2.hotmail.msn.com with HTTP; Sat, 24 Aug 2002 13:56:27 GMT X-Originating-IP: [61.175.193.50] From: =?gb2312?B?uagg1LTIqg==?= To: cgen@sources.redhat.com Bcc: Subject: GAS test suit problem Date: Sat, 24 Aug 2002 07:01:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 24 Aug 2002 13:56:27.0841 (UTC) FILETIME=[0AC08B10:01C24B76] X-SW-Source: 2002-q3/txt/msg00015.txt.bz2 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//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/' 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/