Problem with "build_alias" when making mcf5206elite BSP

Steve Strobel steve at link-comm.com
Thu Oct 16 22:15:02 UTC 2003


Summary:  I am getting the following error when running "make RTEMS_BSP=mcf5206elite":

	configure: configuring in make
	configure: running /bin/bash '/rtems-4.6.0pre4/c/src/make/configure' 
		[snip] 'build_alias=i686-pc-cygwin' [snip] 
		--srcdir=/rtems-4.6.0pre4/c/src/make
	configure: error: invalid variable name: build_alias
	configure: error: /bin/bash '/rtems-4.6.0pre4/c/src/make/configure' 
		failed for make
	make[2]: *** [mcf5206elite] Error 1
	make[2]: Leaving directory `/build-rtems3/m68k-rtems/c'
	make[1]: *** [all-recursive] Error 1
	make[1]: Leaving directory `/build-rtems3/m68k-rtems/c'
	make: *** [all-recursive] Error 1

If I understand this correctly, the 'build_alias=i686-pc-cygwin' 
setting passed in on the command line seems to be causing the 
configure script in rtems-4.6.0pre4/c/src/make to fail thinking 
that "build_alias" is an "invalid variable name".

Background:  I am working under Cygwin on W2K with a clean install of 
RTEMS 4.6.0pre4.  In a newly created build directory, I entered:

	export PATH=$PATH:/opt/rtems/bin
	/rtems-4.6.0pre4/configure --target=m68k-rtems
	make RTEMS_BSP=mcf5206elite

I did the same thing a while back and got it to work but I can't seem to 
now.  I found the "invalid variable name" check in the configure script, 
but I don't understand why build_alias is considered valid in the other
directories but not that one.  The last section of the output from 
"make RTEMS_BSP=mcf5206elite" follows.  Note that the build_alias is 
set in each of the calls to "configure" in the various directories, and 
doesn't cause an error until it gets to the "c/src/make" directory.
Thanks for any pointers.

Steve

[snip]
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for m68k-rtems-strip... m68k-rtems-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for RTEMS_BSP... mcf5206elite
checking if cpu m68k is supported... yes
checking for style of include used by make... GNU
checking for m68k-rtems-gcc... m68k-rtems-gcc
checking for m68k-rtems-gcc... (cached) m68k-rtems-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether m68k-rtems-gcc accepts -g... yes
checking for m68k-rtems-gcc option to accept ANSI C... none needed
checking dependency style of m68k-rtems-gcc... gcc3
checking how to run the C preprocessor... m68k-rtems-gcc -E
checking whether m68k-rtems-gcc accepts -isystem... yes
checking whether m68k-rtems-gcc accepts --pipe... yes
checking for m68k-rtems-ar... m68k-rtems-ar
checking for m68k-rtems-ranlib... m68k-rtems-ranlib
checking for m68k-rtems-ranlib... (cached) m68k-rtems-ranlib
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/imfs/Makefile
config.status: creating src/dosfs/Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure: configuring in libnetworking
configure: running /bin/bash '/rtems-4.6.0pre4/c/src/../../cpukit/libnetworking/
configure' --prefix=/opt/rtems  '--prefix=/opt/rtems' '--host=m68k-rtems' '--bui
ld=i686-pc-cygwin' '--target=m68k-rtems' '--with-target-subdir=m68k-rtems' '--ex
ec-prefix=/opt/rtems/m68k-rtems' 'build_alias=i686-pc-cygwin' 'host_alias=m68k-r
tems' 'target_alias=m68k-rtems' 'RTEMS_BSP=mcf5206elite' 'RTEMS_CPU_MODEL=mcf520
6' 'RTEMS_BSP_FAMILY=mcf5206elite' 'CPU_CFLAGS=-m5200' 'CFLAGS_OPTIMIZE_V=-O4 -f
omit-frame-pointer' '--with-project-root=../../' '--enable-rtemsbsp=mcf5206elite
' '--cache-file=/dev/null' '--srcdir=/rtems-4.6.0pre4/c/src/../../cpukit' --cach
e-file=/dev/null --srcdir=/rtems-4.6.0pre4/c/src/../../cpukit/libnetworking
checking for gmake... no
checking for make... make
checking for RTEMS Version... 4.6.0pre4
checking build system type... i686-pc-cygwin
checking host system type... m68k-unknown-rtems
checking target system type... m68k-unknown-rtems
checking rtems target cpu... m68k
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for m68k-rtems-strip... m68k-rtems-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for RTEMS_BSP... mcf5206elite
checking if cpu m68k is supported... yes
checking for style of include used by make... GNU
checking for m68k-rtems-gcc... m68k-rtems-gcc
checking for m68k-rtems-gcc... (cached) m68k-rtems-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether m68k-rtems-gcc accepts -g... yes
checking for m68k-rtems-gcc option to accept ANSI C... none needed
checking dependency style of m68k-rtems-gcc... gcc3
checking how to run the C preprocessor... m68k-rtems-gcc -E
checking whether m68k-rtems-gcc accepts -isystem... yes
checking whether m68k-rtems-gcc accepts --pipe... yes
checking for m68k-rtems-ar... m68k-rtems-ar
checking for m68k-rtems-ranlib... m68k-rtems-ranlib
checking for m68k-rtems-ranlib... (cached) m68k-rtems-ranlib
checking whether CPU supports networking... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating libc/Makefile
config.status: creating wrapup/Makefile
config.status: executing depfiles commands
configure: configuring in librpc
configure: running /bin/bash '/rtems-4.6.0pre4/c/src/../../cpukit/librpc/configu
re' --prefix=/opt/rtems  '--prefix=/opt/rtems' '--host=m68k-rtems' '--build=i686
-pc-cygwin' '--target=m68k-rtems' '--with-target-subdir=m68k-rtems' '--exec-pref
ix=/opt/rtems/m68k-rtems' 'build_alias=i686-pc-cygwin' 'host_alias=m68k-rtems' '
target_alias=m68k-rtems' 'RTEMS_BSP=mcf5206elite' 'RTEMS_CPU_MODEL=mcf5206' 'RTE
MS_BSP_FAMILY=mcf5206elite' 'CPU_CFLAGS=-m5200' 'CFLAGS_OPTIMIZE_V=-O4 -fomit-fr
ame-pointer' '--with-project-root=../../' '--enable-rtemsbsp=mcf5206elite' '--ca
che-file=/dev/null' '--srcdir=/rtems-4.6.0pre4/c/src/../../cpukit' --cache-file=
/dev/null --srcdir=/rtems-4.6.0pre4/c/src/../../cpukit/librpc
checking for gmake... no
checking for make... make
checking for RTEMS Version... 4.6.0pre4
checking build system type... i686-pc-cygwin
checking host system type... m68k-unknown-rtems
checking target system type... m68k-unknown-rtems
checking rtems target cpu... m68k
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for m68k-rtems-strip... m68k-rtems-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for RTEMS_BSP... mcf5206elite
checking if cpu m68k is supported... yes
checking for style of include used by make... GNU
checking for m68k-rtems-gcc... m68k-rtems-gcc
checking for m68k-rtems-gcc... (cached) m68k-rtems-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether m68k-rtems-gcc accepts -g... yes
checking for m68k-rtems-gcc option to accept ANSI C... none needed
checking dependency style of m68k-rtems-gcc... gcc3
checking how to run the C preprocessor... m68k-rtems-gcc -E
checking whether m68k-rtems-gcc accepts -isystem... yes
checking whether m68k-rtems-gcc accepts --pipe... yes
checking for m68k-rtems-ar... m68k-rtems-ar
checking for m68k-rtems-ranlib... m68k-rtems-ranlib
checking for m68k-rtems-ranlib... (cached) m68k-rtems-ranlib
checking whether CPU supports networking... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating src/xdr/Makefile
config.status: creating src/rpc/Makefile
config.status: executing depfiles commands
configure: configuring in libmisc
configure: running /bin/bash '/rtems-4.6.0pre4/c/src/../../cpukit/libmisc/config
ure' --prefix=/opt/rtems  '--prefix=/opt/rtems' '--host=m68k-rtems' '--build=i68
6-pc-cygwin' '--target=m68k-rtems' '--with-target-subdir=m68k-rtems' '--exec-pre
fix=/opt/rtems/m68k-rtems' 'build_alias=i686-pc-cygwin' 'host_alias=m68k-rtems'
'target_alias=m68k-rtems' 'RTEMS_BSP=mcf5206elite' 'RTEMS_CPU_MODEL=mcf5206' 'RT
EMS_BSP_FAMILY=mcf5206elite' 'CPU_CFLAGS=-m5200' 'CFLAGS_OPTIMIZE_V=-O4 -fomit-f
rame-pointer' '--with-project-root=../../' '--enable-rtemsbsp=mcf5206elite' '--c
ache-file=/dev/null' '--srcdir=/rtems-4.6.0pre4/c/src/../../cpukit' --cache-file
=/dev/null --srcdir=/rtems-4.6.0pre4/c/src/../../cpukit/libmisc
checking for gmake... no
checking for make... make
checking for RTEMS Version... 4.6.0pre4
checking build system type... i686-pc-cygwin
checking host system type... m68k-unknown-rtems
checking target system type... m68k-unknown-rtems
checking rtems target cpu... m68k
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for m68k-rtems-strip... m68k-rtems-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for RTEMS_BSP... mcf5206elite
checking if cpu m68k is supported... yes
checking for style of include used by make... GNU
checking for m68k-rtems-gcc... m68k-rtems-gcc
checking for m68k-rtems-gcc... (cached) m68k-rtems-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether m68k-rtems-gcc accepts -g... yes
checking for m68k-rtems-gcc option to accept ANSI C... none needed
checking dependency style of m68k-rtems-gcc... gcc3
checking how to run the C preprocessor... m68k-rtems-gcc -E
checking whether m68k-rtems-gcc accepts -isystem... yes
checking whether m68k-rtems-gcc accepts --pipe... yes
checking for m68k-rtems-ar... m68k-rtems-ar
checking for m68k-rtems-ranlib... m68k-rtems-ranlib
checking for assignable stdio... yes
checking whether m68k-rtems-gcc --pipe supports function __attribute__((weak))..
. yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cpuuse/Makefile
config.status: creating shell/Makefile
config.status: creating devnull/Makefile
config.status: creating dummy/Makefile
config.status: creating dumpbuf/Makefile
config.status: creating monitor/Makefile
config.status: creating rtmonuse/Makefile
config.status: creating serdbg/Makefile
config.status: creating stackchk/Makefile
config.status: creating capture/Makefile
config.status: creating untar/Makefile
config.status: creating mw-fb/Makefile
config.status: creating wrapup/Makefile
config.status: executing depfiles commands
config.status: creating Makefile
make[3]: Entering directory `/build-rtems3/m68k-rtems/c/mcf5206elite'
make[3]: `make/mcf5206elite.cache' is up to date.
make[3]: Leaving directory `/build-rtems3/m68k-rtems/c/mcf5206elite'
config.status: creating support/Makefile
config.status: creating wrapup/Makefile
config.status: executing depfiles commands
configure: configuring in make
configure: running /bin/bash '/rtems-4.6.0pre4/c/src/make/configure' --prefix=/o
pt/rtems  '--prefix=/opt/rtems' '--host=m68k-rtems' '--build=i686-pc-cygwin' '--
target=m68k-rtems' '--with-target-subdir=m68k-rtems' '--exec-prefix=/opt/rtems/m
68k-rtems' 'build_alias=i686-pc-cygwin' 'host_alias=m68k-rtems' 'target_alias=m6
8k-rtems' 'RTEMS_BSP=mcf5206elite' 'RTEMS_CPU_MODEL=mcf5206' 'RTEMS_BSP_FAMILY=m
cf5206elite' 'CPU_CFLAGS=-m5200' 'CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer' --
cache-file=/dev/null --srcdir=/rtems-4.6.0pre4/c/src/make
configure: error: invalid variable name: build_alias
configure: error: /bin/bash '/rtems-4.6.0pre4/c/src/make/configure' failed for m
ake
make[2]: *** [mcf5206elite] Error 1
make[2]: Leaving directory `/build-rtems3/m68k-rtems/c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build-rtems3/m68k-rtems/c'
make: *** [all-recursive] Error 1

Steve at Steve /build-rtems3
$
---
Steve Strobel                           WWW: http://www.link-comm.com
Link Communications, Inc.               Phone: (406) 245-5002 ext 102
MailTo:steve at link-comm.com              Fax: (406) 245-4889




More information about the users mailing list