cygwin build_alias issue

Scott Newell newell at cei.net
Wed Sep 1 14:42:46 UTC 2004


At 09:10 AM 9/1/2004 , Ralf Corsepius wrote:
>
>As far as configure scripts are concerned, the art is to find the
>appropriate places to add such constructs.

Ah, OK.  Every time I tried running sh -x gmake all, I'd get an error.


>The brute force way would be to set SHELL and CONFIG_SHELL
>SHELL="/bin/bash -x" CONFIG_SHELL="/bin/bash -x" <path>/configure ...
>
>In most cases this won't work properly ;)

Of course.


>The expr call Chris is referring to looks like this:
>
>  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
>
>
>It can be found near to the beginning of "for"-loop located
>approximately at line 300-320 in most configure scripts:

Got it.


>To verify if Chris suspicion is right you can try to add a 
>set -x right before the "ac_prev=" of a failing configure script.

Done.


>I.e. run the toplevel configure, wait for the breakdown, add the 
>"set +x"  to the configure script that is reported to break,
>then delete the build-tree and rerun the configure script.

OK.

I'm not at all sure this helps, but here's a snip at the point of failure:

configure: configuring in ../../cpukit

configure: running /bin/bash
'../../../../../rtems-4.6.1/c/src/../../cpukit/configure'
'--prefix=/opt/rtems-4.6' '--host=m68k-rtems' '--build=i686-pc-cygwin'
'--target=m68k-rtems' '--disable-posix' '--disable-networking'
'--disable-cxx' '--with-target-subdir=m68k-rtems'
'--exec-prefix=/opt/rtems-4.6/m68k-rtems' 'build_alias=i686-pc-cygwin'
'host_alias=m68k-rtems' 'target_alias=m68k-rtems' 'RTEMS_BSP=efi332'
'RTEMS_CPU_MODEL=m68332' 'RTEMS_BSP_FAMILY=efi332' 'CPU_CFLAGS=-mcpu32'
'CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer' '--with-project-root=../../'
'--enable-rtemsbsp=efi332'
   --cache-file=/dev/null
--srcdir=../../../../../rtems-4.6.1/c/src/../../cpukit
+ ac_prev=
+ test -n ''
++ expr x--prefix=/opt/rtems-4.6 : 'x[^=]*=\(.*\)'
+ ac_optarg=/opt/rtems-4.6
+ prefix=/opt/rtems-4.6
+ test -n ''
++ expr x--host=m68k-rtems : 'x[^=]*=\(.*\)'
+ ac_optarg=m68k-rtems
+ host_alias=m68k-rtems
+ test -n ''
++ expr x--build=i686-pc-cygwin : 'x[^=]*=\(.*\)'
+ ac_optarg=i686-pc-cygwin
+ build_alias=i686-pc-cygwin
+ test -n ''
++ expr x--target=m68k-rtems : 'x[^=]*=\(.*\)'
+ ac_optarg=m68k-rtems
+ target_alias=m68k-rtems
+ test -n ''
++ expr x--disable-posix : 'x[^=]*=\(.*\)'
+ ac_optarg=
++ expr x--disable-posix : 'x-*disable-\(.*\)'
+ ac_feature=posix
+ expr xposix :
'.*[^-_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]'
++ echo posix
++ sed s/-/_/g
+ ac_feature=posix
+ eval enable_posix=no
++ enable_posix=no
+ test -n ''
++ expr x--disable-networking : 'x[^=]*=\(.*\)'
+ ac_optarg=
++ expr x--disable-networking : 'x-*disable-\(.*\)'
+ ac_feature=networking
+ expr xnetworking :
'.*[^-_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]'
++ echo networking
++ sed s/-/_/g
+ ac_feature=networking
+ eval enable_networking=no
++ enable_networking=no
+ test -n ''
++ expr x--disable-cxx : 'x[^=]*=\(.*\)'
+ ac_optarg=
++ expr x--disable-cxx : 'x-*disable-\(.*\)'
+ ac_feature=cxx
+ expr xcxx :
'.*[^-_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]'
++ echo cxx
++ sed s/-/_/g
+ ac_feature=cxx
+ eval enable_cxx=no
++ enable_cxx=no
+ test -n ''
++ expr x--with-target-subdir=m68k-rtems : 'x[^=]*=\(.*\)'
+ ac_optarg=m68k-rtems
++ expr x--with-target-subdir=m68k-rtems : 'x-*with-\([^=]*\)'
+ ac_package=target-subdir
+ expr xtarget-subdir :
'.*[^-_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]'
++ echo target-subdir
++ sed s/-/_/g
+ ac_package=target_subdir
++ echo m68k-rtems
++ sed 's/'\''/'\''\\'\'''\''/g'
+ ac_optarg=m68k-rtems
+ eval 'with_target_subdir='\''m68k-rtems'\'''
++ with_target_subdir=m68k-rtems
+ test -n ''
++ expr x--exec-prefix=/opt/rtems-4.6/m68k-rtems : 'x[^=]*=\(.*\)'
+ ac_optarg=/opt/rtems-4.6/m68k-rtems
+ exec_prefix=/opt/rtems-4.6/m68k-rtems
+ test -n ''
++ expr xbuild_alias=i686-pc-cygwin : 'x[^=]*=\(.*\)'
+ ac_optarg=i686-pc-cygwin
++ expr xbuild_alias=i686-pc-cygwin : 'x\([^=]*\)='
+ ac_envvar=build_alias
+ expr xbuild_alias :
'.*[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]'
+ echo 'configure: error: invalid variable name: build_alias'
configure: error: invalid variable name: build_alias
+ exit 1
+ exit 1
configure: error: /bin/bash
'../../../../../rtems-4.6.1/c/src/../../cpukit/configure' failed for
../../cpukit
gmake[2]: *** [efi332] Error 1
gmake[2]: Leaving directory `/build_06/m68k-rtems/c'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/build_06/m68k-rtems/c'
gmake: *** [all-recursive] Error 1


--
newell




More information about the users mailing list