This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

Binutils failures on cygwin: what about .exe?


I just came to think of the failures of binutils we're seeing on
cygwin, see for example
http://sources.redhat.com/ml/binutils/2003-02/msg00149.html, in some
may be related to the fact that executables have .exe added to them.

For example, looking at
src/binutils/testsuite/binutils-all/objcopy.exp, lines 465 and
forward:

proc copy_executable { prog flags test1 test2 } {

    if [is_remote host] {
	set testfile [remote_download host tmpdir/testprog];
	set testcopy copyprog
    } else {
	set testfile tmpdir/testprog
	set testcopy tmpdir/copyprog
    }
    remote_file host delete $testcopy;

    set exec_output [binutils_run $prog "$flags $testfile $testcopy"]

Could we either have the binutils testsuite always producing .exe
endings for executables (yeah, shouldn't be needed, but makes the
testsuite more portable perhaps) or could we fix the testsuite so that
any system producing .exe endings by default for their executables
also checks for such things, not endingless...

The idea came up looking at the objcopy failures (built 2003-02-28):

Test Run By chj on Fri Feb 28 10:42:55 2003
Native configuration is i686-pc-cygwin

		=== binutils tests ===

<snip>

Executing on host: /usr/local/src/gcc-binutils/trunk/objdir/gcc/xgcc -B/usr/local/src/gcc-binutils/trunk/objdir/gcc/  -c  -o testglue.o /usr/share/dejagnu/testglue.c    (timeout = 300)
spawn /usr/local/src/gcc-binutils/trunk/objdir/gcc/xgcc -B/usr/local/src/gcc-binutils/trunk/objdir/gcc/ -c -o testglue.o /usr/share/dejagnu/testglue.c 

Executing on host: /usr/local/src/gcc-binutils/trunk/objdir/gcc/xgcc -B/usr/local/src/gcc-binutils/trunk/objdir/gcc/ /usr/local/src/gcc-binutils/trunk/src/binutils/testsuite/binutils-all/testprog.c testglue.o  -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -g     -o tmpdir/testprog    (timeout = 300)
spawn /usr/local/src/gcc-binutils/trunk/objdir/gcc/xgcc -B/usr/local/src/gcc-binutils/trunk/objdir/gcc/ /usr/local/src/gcc-binutils/trunk/src/binutils/testsuite/binutils-all/testprog.c testglue.o -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -g -o tmpdir/testprog 

spawn [open ...]


*** EXIT code 0
ok
/usr/local/src/gcc-binutils/trunk/objdir/binutils/objcopy  tmpdir/testprog tmpdir/copyprog
Executing on host: /usr/local/src/gcc-binutils/trunk/objdir/binutils/objcopy  tmpdir/testprog tmpdir/copyprog   (timeout = 300)
spawn /usr/local/src/gcc-binutils/trunk/objdir/binutils/objcopy tmpdir/testprog tmpdir/copyprog 

/usr/local/src/gcc-binutils/trunk/objdir/binutils/objcopy: tmpdir/testprog: No such file or directory

/usr/local/src/gcc-binutils/trunk/objdir/binutils/objcopy: tmpdir/testprog: No such file or directory

FAIL: simple objcopy of executable
FAIL: run objcopy of executable
ERROR: remote_download to build of tmpdir/copyprog to tmpdir/striprog: cp: cannot stat `tmpdir/copyprog': No such file or directory

As I understand it, there is a tmpdir/testprog.exe built, but objcopy
looks for a tmpdir/testprog to copy to tmpdir/copyprog. But objcopy
finds nothing and thus the copyprog test fails...

But then agin, I might understand things wrong...

Ideas?

Cheers,

/ChJ


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