This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mips-elf can't create executables for libstdc++ testsuite


At 18 Nov 2002 17:06:33 -0800, Eric Christopher wrote:
> OK. I took a look at it. The problem, for some reason, is that the g++
> tests are using -Wl,-Tidt.ld for the linker script. -Tidt.ld (without
> the -Wl,) works just fine. This is probably a problem in the dejagnu
> board description file.

I don't think I had that problem... for mips-elf started yesterday
afternoon i got:

                === g++ Summary ===

# of expected passes            7534
# of unexpected failures        109
# of expected failures          131
# of unresolved testcases       35
# of untested testcases         29
# of unsupported tests          19

(only a couple of the unresolved ones were execution tests, and none
of the execution tests other than those which were XFAILed did not
pass.  8-)

in case it's interesting to anybody, the script that I use to
build/check is below.  I typically run it on x86-linux.


chris
=======================================================================
#!/bin/sh

topdir=`pwd`

build_jflag=

rebuild=

usage()
{
	echo "usage: $0 [-r] target tag" 1>&2
	echo "	-r:	rebuild; don't remove build tree or reconfigure" 1>&2
	exit 1
}

set -- `getopt r $*`
if [ $? != 0 ]; then
	usage
	exit 1
fi
while [ "$#" -ne 0 ]; do
	arg="$1"
	case "$arg" in
	-r)	shift
		rebuild=t
		;;
	--)	shift
		break
		;;
	*)	break
		;;
     esac
done
if [ "$#" -ne 2 ]; then
	usage
fi
target="$1"
tag="$2"

workdir="$topdir/work"
blddir="$workdir/$target.build"
instdir="$workdir/$target.install"
logfile="$workdir/$target.LOG.$tag"
savelogdir="$workdir/$target.SAVE.$tag"

case "$target" in
native)
	target=""
	target_board=""
	;;
mips-elf | mipsel-elf)
	target_board=mips-sim
	;;
mips64-elf | mips64-elf)
	target_board=mips64-sim
	;;
mipsisa32-elf | mipsisa32-elf)
	target_board=mips-sim-idt32
	;;
mipsisa64-elf | mipsisa64-elf | \
mipsisa64sb1-elf | mipsisa64sb1el-elf | \
sb1-elf | sb1el-elf )
	target_board=mips-sim-idt64
	;;
*)
	echo "$0: unsupported target \"$target\"" 1>&2
	usage
	;;
esac

case "`uname -s`" in
SunOS ) 
	PATH=/usr/xpg4/bin:$PATH
	export PATH
        working_shell=/bin/ksh
	;;
* )
	working_shell=/bin/sh
	;;
esac
SHELL=$working_shell
export SHELL

bailcode=10
bail()
{
	echo -n "*** EXIT $1 at "; date
	exit $bailcode
}

mkdir -p $workdir
[ "$?" -eq 0 ] || bail
exec > $logfile 2>&1 

echo -n "*** CLEAN at " ; date
	bailcode=10

	if [ "$rebuild" = "" ]; then
		echo "** Removing $blddir"
		rm -rf $blddir
		[ "$?" -eq 0 ] || bail
	fi

	echo "** Removing $instdir"
	rm -rf $instdir
	[ "$?" -eq 0 ] || bail

	echo "** Removing $savelogdir"
	rm -rf $instdir
	[ "$?" -eq 0 ] || bail

	echo "** Making $blddir and $instdir"
	mkdir -p $instdir $blddir
	[ "$?" -eq 0 ] || bail


if [ "$rebuild" = "" ]; then
    echo -n "*** CONFIGURE at " ; date
	bailcode=11

	cd $blddir
	[ "$?" -eq 0 ] || bail

	target_arg=
	if [ "x$target" != "x" ]; then
		target_arg="--target=$target"
	fi
	echo "** Running: $SHELL $topdir/combined/configure $target_arg --prefix=$instdir"
	$SHELL $topdir/combined/configure $target_arg --prefix=$instdir
	[ "$?" -eq 0 ] || bail
fi


echo -n "*** MAKE at " ; date
	bailcode=12

	cd $blddir
	[ "$?" -eq 0 ] || bail

	echo "** Running: gmake"
	gmake $build_jflag
	[ "$?" -eq 0 ] || bail


echo -n "*** INSTALL at " ; date
	bailcode=12

	cd $blddir
	[ "$?" -eq 0 ] || bail

	echo "** Running: gmake install"
	gmake install
	[ "$?" -eq 0 ] || bail


echo -n "*** CHECK at " ; date
	bailcode=13

	check_targets="check-gcc check-gas check-sim check-gdb check-target-newlib"

	runtestflags=
	if [ "x$target_board" != "x" ]; then
		runtestflags="--target_board=$target_board"
	fi
	echo "** Running: gmake -k RUNTESTFLAGS=\"$runtestflags\" $check_targets"
	gmake -k RUNTESTFLAGS="$runtestflags" $check_targets
	# [ "$?" -eq 0 ] || bail


echo -n "*** SAVING at " ; date
	bailcode=14

	mkdir $savelogdir
	for summary in `cd $blddir && find . -name "*.sum"`; do
	        base=`echo $summary | sed -e 's,^\./,,' -e 's,\.sum$,,'`
		under=`echo $base | sed -e 's,/,_,g'`

		for suffix in log sum; do
			cp $blddir/$base.$suffix $savelogdir/$under.$suffix
			[ "$?" -eq 0 ] || echo "** Copy of $blddir/$base.$suffix to $savelogdir/$under.$suffix FAILED" 1>&2
		done
	done


bailcode=0
bail


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]