cygwin build_alias issue (and a possible workaround...)

Scott Newell newell at cei.net
Sat Sep 4 17:30:08 UTC 2004


>>I'm going to digest what you sent, but in the meantime, can you do one
>>thing?  Run a configure/build based on a clean (unmodified) source tree.  I
>>want to see what happens on your system without all the strace/sh -x
>>instrumentations.

I tried to configure and make all BSPs, just for fun:
../rtems-4.6.1/configure --target=m68k-rtems --disable-posix
--disable-networking --disable-cxx 2>&1 | tee -a log.txt

gmake all 2>&1 | tee -a log.txt

And here comes the error (from gmake all):

configure: configuring in libcsupport
configure: running /bin/bash
'../../../../../../rtems-4.6.1/c/src/../../cpukit/libcsupport/configure'
--prefix=/opt/rtems-4.6  '--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=dmv152'
'RTEMS_CPU_MODEL=m68020' 'RTEMS_BSP_FAMILY=dmv152' 'CFLAGS_OPTIMIZE_V=-O4
-fomit-frame-pointer' '--with-project-root=../../'
'--enable-rtemsbsp=dmv152' '--cache-file=/dev/null'
'--srcdir=../../../../../rtems-4.6.1/c/src/../../cpukit'
--cache-file=/dev/null
--srcdir=../../../../../../rtems-4.6.1/c/src/../../cpukit/libcsupport
configure: error: invalid feature name: rtemsbsp
configure: error: /bin/bash
'../../../../../../rtems-4.6.1/c/src/../../cpukit/libcsupport/configure'
failed for libcsupport
configure: error: /bin/bash
'../../../../../rtems-4.6.1/c/src/../../cpukit/configure' failed for
../../cpukit
gmake[2]: *** [dmv152] Error 1
gmake[2]: Leaving directory `/build_20/m68k-rtems/c'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/build_20/m68k-rtems/c'
gmake: *** [all-recursive] Error 1

This is with the set -x and strace removed from the configure files, but
the Bogdan's expr shell script hack in place.


I forget to check expr.log, so I ran another configure/make round.  This
time it failed in the mrm332 bsp, with the same error message:

configure: creating ./config.status
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=mrm332'
'RTEMS_CPU_MODEL=m68332' 'RTEMS_BSP_FAMILY=mrm332' 'CPU_CFLAGS=-mcpu32'
'CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer' '--with-project-root=../../'
'--enable-rtemsbsp=mrm332'
   --cache-file=/dev/null
--srcdir=../../../../../rtems-4.6.1/c/src/../../cpukit
configure: error: invalid feature name: rtemsbsp
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_20/m68k-rtems/c'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/build_20/m68k-rtems/c'
gmake: *** [all-recursive] Error 1


The tail end of the expr.log file:

expr x--with-project-root=../../ : x[^=]*=\(.*\) result ../../ status 0
expr x--with-project-root=../../ : x-*with-\([^=]*\) result project-root
status 0
expr xproject-root :
.*[^-_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
result 0 status !0
expr x--enable-rtemsbsp=mrm332 : x[^=]*=\(.*\) result mrm332 status 0
expr x--enable-rtemsbsp=mrm332 : x-*enable-\([^=]*\) result rtemsbsp status 0
expr xrtemsbsp :
.*[^-_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
result 0 status !0


--
newell




More information about the users mailing list