cygwin build_alias issue

Ralf Corsepius ralf_corsepius at rtems.org
Thu Sep 2 05:13:47 UTC 2004


On Wed, 2004-09-01 at 21:34, Scott Newell wrote:
> At 01:58 PM 9/1/2004 , Ralf Corsepius wrote:
> >
> >Your configure script log indicates the expr call above to fail, while
> >its counterpart in check.sh doesn't seem to fail. I had hoped it would
> >fail and give an indication for what might be going wrong :(
> 
> Did you notice that "0" after the first "expr xbuild_alias :" command?
> Significant at all?
The 0 is OK and means the regex inside of expr has matched.

If the regex doesn't match, the expr would return a non zero value.

This is what seems to happen with the real configure script.

> >[To exclude DUEs: /dev/null is a writable character device?]
> 
> How would I know?
> 
> $ ls -l /dev/null
> crw-rw-rw-    1 Administ None       1,   3 Sep  1 14:06 /dev/null

This way. The "c" tells you it is a character device, the permissions
are set writeable to everybody.


> >Next try: Could you try to strace this expr call in the original
> >configure script? I.e. to change the expr call into something similar to
> >
> >    strace -o /tmp/log -f expr "x...."
> 
> From:	
> 	ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
> to:
> 	strace -o /tmp/strace.log ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
>
> doesn't seem to work:
> 	+ strace -o /tmp/strace.log ac_optarg=/opt/rtems-4.6
> 	strace.exe: error creating process ac_optarg=/opt/rtems-4.6, (error 2)
> 
> maybe this:
>   ac_optarg=`strace -o /tmp/strace.log expr "x$ac_option" : 'x[^=]*=\(.*\)'`
> 
> strace logfile attached.
I don't see anything obvious.

Anyway, that's the wrong expr call :-)

The interesting expr is this one, near line 624 in cpukit/configure:

 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   { (exit 1); exit 1; }; }Can you try to strace this one?

Ralf





More information about the users mailing list