Problem Building mcf5206elite BSP under Cygwin

Steve Strobel steve at
Thu Oct 30 00:11:21 UTC 2003

I am having trouble building the mcf5206elite BSP under Cygwin.  I had 
trouble building it with 4.6.0pre4 a week or so ago, then had to take a 
break to work on a different project.  4.6.0pre5 was released in the 
meantime, so when I got to come back to this project, I downloaded the 
new tools and RTEMS source and started over.  I installed everything with 
the following script:

	cd /
	mkdir rtems
	cd rtems
	tar -xjf /temp/rtems-4.6.0pre5.tar.bz2 				
	tar -xjf /temp/examples-4.6.0pre5.tar.bz2 			
	tar -xjf /temp/network-demos-4.6.0pre5.tar.bz2	
	cd /
	tar -xjf /temp/rtems-4.6-autoconf-rtems-2.57-1.tar.bz2
	tar -xjf /temp/rtems-4.6-automake-rtems-1.7.2-1.tar.bz2
	tar -xjf /temp/rtems-4.6-m68k-rtems-binutils-				
	tar -xjf /temp/rtems-4.6-m68k-rtems-c++-gcc3.2.3newlib1.11.0-1.tar.bz2 
	tar -xjf /temp/rtems-4.6-m68k-rtems-gcc-gcc3.2.3newlib1.11.0-1.tar.bz2	
	tar -xjf /temp/rtems-4.6-m68k-rtems-gdb-5.2-1.tar.bz2
	tar -xjf /temp/rtems-4.6-rtems-base-binutils-
	tar -xjf /temp/rtems-4.6-rtems-base-gcc-gcc3.2.3newlib1.11.0-1..tar.bz2
	tar -xjf /temp/rtems-4.6-rtems-base-gdb-5.2-1.tar.bz2

Then, following the Getting Started guide, I...

Set the path to the tools:
	export PATH=$PATH:/opt/rtems-4.6/bin

Tested the tool installation (this worked fine):
	m68k-rtems-gcc -v -S f.c
	m68k-rtems-gcc -v -c f.c

Made a build directory and tried to configure RTEMS:

	cd /rtems
	mkdir build-4.6.0pre5
	cd build-4.6.0pre5
	../rtems-4.6.0pre5/configure --target=m68k-rtems \
		--disable-posix --disable-networking \
		--disable-cxx --enable-rtemsbsp=mcf5206elite \

It appeared to finish successfully, so I ran "make all".  It
ran for a while, but failed as follows:

        configure: configuring in libcsupport
        configure: running /bin/bash '../../../../../../rtems-4.6.0pre5/c/src/../../cpuk
        it/libcsupport/configure' --prefix=/opt/rtems-4.6/bin  '--prefix=/opt/rtems-4.6/
        bin' '--host=m68k-rtems' '--build=i686-pc-cygwin' '--target=m68k-rtems' '--disab
        le-posix' '--disable-networking' '--disable-cxx' '--with-target-subdir=m68k-rtem
        s' '--exec-prefix=/opt/rtems-4.6/bin/m68k-rtems' 'build_alias=i686-pc-cygwin' 'h
        ost_alias=m68k-rtems' 'target_alias=m68k-rtems' 'RTEMS_BSP=mcf5206elite' 'RTEMS_
        CPU_MODEL=mcf5206' 'RTEMS_BSP_FAMILY=mcf5206elite' 'CPU_CFLAGS=-m5200' 'CFLAGS_O
        PTIMIZE_V=-O4 -fomit-frame-pointer' '--with-project-root=../../' '--enable-rtems
        bsp=mcf5206elite' '--cache-file=/dev/null' '--srcdir=../../../../../rtems-4.6.0p
        re5/c/src/../../cpukit' --cache-file=/dev/null --srcdir=../../../../../../rtems-
        configure: error: invalid variable name: build_alias
        configure: error: /bin/bash '../../../../../../rtems-4.6.0pre5/c/src/../../cpuki
        t/libcsupport/configure' failed for libcsupport
        configure: error: /bin/bash '../../../../../rtems-4.6.0pre5/c/src/../../cpukit/c
        onfigure' failed for ../../cpukit
        make[2]: *** [mcf5206elite] Error 1
        make[2]: Leaving directory `/rtems/build-4.6.0pre5/m68k-rtems/c'
        make[1]: *** [all-recursive] Error 1
        make[1]: Leaving directory `/rtems/build-4.6.0pre5/m68k-rtems/c'
        make: *** [all-recursive] Error 1

At that time, the libcsupport directory (C:\cygwin\rtems\build-4.6.0pre5\m68k-rtems\c\mcf5206elite\exec\libcsupport) was empty.

In other directories, the file config.log has a line like the following
and makefile has 
	build_alias = i686-pc-cygwin

I tried to dig through the 
file and the file that it comes from but I don't understand it well
enough to figure out what the problem with build-alias might be.

I then created a different build directory and tried a less complex configure
command, as follows:

	../rtems-4.6.0pre5/configure --target=m68k-rtems
	make RTEMS_BSP=mcf5206elite

It failed in exactly the same way.  I am missing a step or doing something wrong?
Does my cygwin setup have a problem?  Any other ideas?  Thanks for any help
you can give me.

Steve Strobel                           WWW:
Link Communications, Inc.               Phone: (406) 245-5002 ext 102
MailTo:steve at              Fax: (406) 245-4889

More information about the users mailing list