This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos 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]

[Bug 1000716] Error launching GDB to run eCos tests


http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000716





--- Comment #2 from John Dallaway <john@dallaway.org.uk>  2009-03-10 09:54:50 ---
-------- Original Message --------
Subject: Re: Re: File not found when running tests
Date: Tue, 10 Mar 2009 09:28:09 +0000
From: Chris Holgate <chris@zynaptic.com>

I ran configtool under strace on openSUSE 11.0 and have seen similar
behaviour to that reported by Sergei.  My PATH environment variable is
set up using the "ecosenv.sh" script which places the path to the ARM
tools at the front - as shown:

PATH=/zynaptic/projects/eCos/beta1/gnutools/arm-eabi/bin:/zynaptic/projects/eCos/beta1/ecos-3.0b1/tools/bin:/home/chris/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

Tests which run successfully are exec'ed as follows:

execve("/zynaptic/projects/eCos/beta1/gnutools/arm-eabi/bin/arm-eabi-gdb",
["arm-eabi-gdb"..., "-nw"..., "-q"...,
"/zynaptic/projects/eCos/beta1/bu"...], [/* 62 vars */]) = 0

Which is what I'd expect to see.

Tests which failed are exec'ed like this:

execve("arm-eabi-gdb", ["arm-eabi-gdb"..., "-nw"..., "-q"...,
"/zynaptic/projects/eCos/beta1/bu"...], [/* 62 vars */]) = -1 ENOENT (No
such file or directory)

execve("/bin/arm-eabi-gdb", ["arm-eabi-gdb"..., "-nw"..., "-q"...,
"/zynaptic/projects/eCos/beta1/bu"...], [/* 62 vars */]) = -1 ENOENT (No
such file or directory)

execve("/usr/bin/arm-eabi-gdb", ["arm-eabi-gdb"..., "-nw"..., "-q"...,
"/zynaptic/projects/eCos/beta1/bu"...], [/* 62 vars */]) = -1 ENOENT (No
such file or directory)

write(2, "exec error - No such file or dir"..., 39) = 39

Not only does this not start with the expected path, but the paths that
are tried do not seem to correspond to my PATH environment variable in
any way - for example I don't have the CWD in my path, but it is the
first place being searched.  All very odd.


-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


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