SV: RTEMS 4.6.4 fails on Cygwin

Ralf Corsepius ralf.corsepius at rtems.org
Tue Mar 14 08:36:32 UTC 2006


On Tue, 2006-03-14 at 08:00 +0100, Ole Hansen wrote:
> Hello Ralf
> 
> This is what is printed on the screen:
> 

> configure: configuring in ./tools/cpu
> configure: running /bin/sh '/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/cpu/configure' '--prefix=/opt/rtems/i386-rtems' '--host=i6
> 86-pc-cygwin' '--build=i686-pc-cygwin'  '--enable-rtemsbsp=pc386' '--disable-cxx' '--disable-itron' '--enable-posix' '--disable-tests' '--target=i386
> -rtems'  '--cache-file=/dev/null' '--srcdir=/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/cpu'
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.6.99.2

You are building RTEMS-4.6.99.2 (either RTEMS-CVS or a snapshot
tarball), not RTEMS-4.6.4 as you've told us before!

> configure: configuring in generic
> configure: running /bin/sh '/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/cpu/generic/configure' --prefix=/opt/rtems/i386-rtems  '--
> prefix=/opt/rtems/i386-rtems' '--host=i686-pc-cygwin' '--build=i686-pc-cygwin' '--enable-rtemsbsp=pc386' '--disable-cxx' '--disable-itron' '--enable-
> posix' '--disable-tests' '--target=i386-rtems' '--cache-file=/dev/null' '--srcdir=/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/cpu'
>  'build_alias=i686-pc-cygwin' 'host_alias=i686-pc-cygwin' 'target_alias=i386-rtems' --cache-file=/dev/null --srcdir=/cygdrive/c/CVSROOT/development/i
> oboards/rtems/rtems-src/tools/cpu/generic
...
> configure: creating ./config.status
> config.status: creating Makefile
> .infig.status: ...
^^^^^^^^
Cut'n'pasto or a Cygwin buffer overflow?

> ... error: cannot find input file: Makefile
This either indicates 
* you didn't generate the configuration files correctly (Hard to guess,
because I don't know which sources you are using) 

* you are facing a Cygwin bug (We've had this before, at this or a
similar place - IIRC, the work around was to extend some of the
Windows/Cygwin resources, but I don't recall which).

* you are facing a shell bug.

> configure: error: /bin/sh '/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/cpu/generic/configure' failed for generic
> configure: error: /bin/sh '/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/cpu/configure' failed for tools/cpu
> 
> obh at olenb2 /cygdrive/c/CVSROOT/development/ioboards/rtems
> $ ls
> 
> Here is my config.log:
> 
> 
> obh at olenb2 /cygdrive/c/CVSROOT/development/ioboards/rtems/build-pc386-i386-rtems
> $ cat config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.

>  which was
> generated by GNU Autoconf 2.59.  Invocation command line was

>   $ /cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/configure --target=i386-rtems --enable-rtemsbsp=pc386 --prefix=/opt/rtems/i386-rtems --d
> isable-cxx --disable-itron --enable-posix --disable-tests
> 
> ## --------- ##
> ## Platform. ##
> ## --------- ##
> 
> hostname = olenb2
> uname -m = i686
> uname -r = 1.5.19(0.150/4/2)
> uname -s = CYGWIN_NT-5.1
> uname -v = 2006-01-20 13:28
> 
> /usr/bin/uname -p = unknown
> /bin/uname -X     = unknown
> 
> /bin/arch              = unknown
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> hostinfo               = unknown
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
> 
> PATH: /usr/local/bin
> PATH: /usr/bin
> PATH: /bin
> PATH: /usr/X11R6/bin
> PATH: /usr/lib/lapack
> PATH: /opt/rtems/i386-rtems-gcc/bin

This PATH probably is incorrect.

Where on $PATH is i386-rtems-gcc?

Please run
which i386-rtems-gcc
and
which gcc

Where on $PATH is automake?
which automake

> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
> 
> configure:1337: checking for gmake
> configure:1366: result: no
> configure:1337: checking for make
> configure:1353: found /usr/bin/make
> configure:1363: result: make
> configure:1387: checking for RTEMS Version
> configure:1389: result: 4.6.99.2
> configure:1414: checking build system type
> configure:1432: result: i686-pc-cygwin
> configure:1440: checking host system type
> configure:1454: result: i686-pc-cygwin
> configure:1462: checking target system type
> configure:1476: result: i386-pc-rtems
> configure:1504: checking for a BSD-compatible install
> configure:1559: result: /usr/bin/install -c
> configure:1570: checking whether build environment is sane
> configure:1613: result: yes
> configure:1678: checking for gawk
> configure:1694: found /usr/bin/gawk
> configure:1704: result: gawk
> configure:1714: checking whether make sets $(MAKE)
> configure:1734: result: yes
> configure:1893: checking whether to enable maintainer-specific portions of Makefiles
> configure:1902: result: no
> configure:2674: creating ./config.status
> configure:3521: configuring in ./tools/build
> configure:3633: running /bin/sh '/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/build/configure' '--prefix=/opt/rtems/i386-rtems' '--
> host=i686-pc-cygwin' '--build=i686-pc-cygwin'  '--enable-rtemsbsp=pc386' '--disable-cxx' '--disable-itron' '--enable-posix' '--disable-tests' '--targ
> et=i386-rtems'  '--cache-file=/dev/null' '--srcdir=/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/build'
> configure:3521: configuring in ./tools/cpu
> configure:3633: running /bin/sh '/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/cpu/configure' '--prefix=/opt/rtems/i386-rtems' '--ho
> st=i686-pc-cygwin' '--build=i686-pc-cygwin'  '--enable-rtemsbsp=pc386' '--disable-cxx' '--disable-itron' '--enable-posix' '--disable-tests' '--target
> =i386-rtems'  '--cache-file=/dev/null' '--srcdir=/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/cpu'
> configure:3636: error: /bin/sh '/cygdrive/c/CVSROOT/development/ioboards/rtems/rtems-src/tools/cpu/configure' failed for tools/cpu

What does 
/bin/sh --version
say?

Ralf





More information about the users mailing list