4.5.0-beta3a build problems - part II

Joel Sherrill joel.sherrill at OARcorp.com
Tue Sep 19 13:25:44 UTC 2000


Martti Kuparinen wrote:
> 
> Hi again!
> 
> I tested further after reading the comments to my first mail:
> 
> 1) no CC set, no MAKE set
> 2) no CC set, MAKE set to gmake
> 
> The first one fails in the early stages but the second fails later.
> I have not upgraded the cross compilation tool although there seems
> to be newer versions in /usr/ports/devel/ (I'm running FreeBSD).
> 
> Martti
> 
> ---
> Martti Kuparinen <martti.kuparinen at nomadiclab.com>
> http://www.iki.fi/~kuparine/
> 
> =============================================================================
> # echo $CC
> 
> # echo $MAKE
> 
> # ../source/rtems-4.5.0-beta3a/configure --target=i386-rtems \
>     --prefix=/opt/rtems --enable-rdbg
> creating cache ./config.cache
> checking for RTEMS Version... 4.5.0-beta3a
> checking host system type... i386-unknown-freebsd4.1
> checking target system type... i386-pc-rtems
> checking build system type... i386-unknown-freebsd4.1
> checking rtems target cpu... i386
> ...
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> # gmake all
> ...
> linking ../../../../../source/rtems-4.5.0-beta3a/c/src/make/../../../make/README to README

The lines I looked up were using GNU make specific options.  It still
smells like gnu make is not being used all the way down.

If gnu make is installed as make in a directory later in your path,
try switching that directory to the first of your path so make is
in fact gnu make.  If that works, then we know that using the
wrong make is the culprit.

> "../../.././c/i386ex/../make/target.cfg", line 27: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 28: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 29: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 30: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 31: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 32: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 33: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 35: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 53: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 54: Need an operator
> "../../.././c/i386ex/../make/target.cfg", line 55: Need an operator
> "../../.././c/i386ex/make/host.cfg", line 31: Need an operator
> "../../.././c/i386ex/make/host.cfg", line 33: Need an operator
> "../../.././c/i386ex/make/host.cfg", line 35: Need an operator
> "../../.././c/i386ex/make/host.cfg", line 37: Need an operator
> "../../.././c/i386ex/make/host.cfg", line 63: Need an operator
> "../../.././c/i386ex/make/host.cfg", line 68: Need an operator
> "../../.././c/i386ex/make/custom/i386ex.cfg", line 37: Need an operator
> "../../.././c/i386ex/make/custom/i386ex.cfg", line 41: Need an operator
> "../../.././c/i386ex/make/custom/i386ex.cfg", line 55: Missing dependency operator
> "../../.././c/i386ex/make/custom/i386ex.cfg", line 56: Need an operator
> "../../.././c/i386ex/make/custom/i386ex.cfg", line 65: Need an operator
> "../../.././c/i386ex/make/custom/i386ex.cfg", line 66: Need an operator
> "../../.././c/i386ex/make/custom/i386ex.cfg", line 67: Need an operator
> "../../.././c/i386ex/make/custom/i386ex.cfg", line 75: Need an operator
> "../../.././c/i386ex/make/custom/i386ex.cfg", line 76: Need an operator
> make: fatal errors encountered -- cannot continue
> configuring in exec
> ...
> checking for make/custom/i386ex.cfg... yes
> checking for RTEMS_CPU_MODEL... .: Can't open ../../../../../c/i386ex/make/i386ex.cache: No such file or directory
> configure: error: ../../../../../../../source/rtems-4.5.0-beta3a/c/src/lib/libcpu/i386/configure failed for i386
> configure: error: ../../../../../../source/rtems-4.5.0-beta3a/c/src/lib/libcpu/configure failed for libcpu
> configure: error: ../../../../../source/rtems-4.5.0-beta3a/c/src/lib/configure failed for lib
> gmake[2]: *** [i386ex] Error 1
> ===============================================================================
> # export MAKE=gmake
> # echo $CC
> 
> # echo $MAKE
> gmake
> # ../source/rtems-4.5.0-beta3a/configure --target=i386-rtems \
>     --prefix=/opt/rtems --enable-rdbg
> ...
> # gmake all
> ...
> gmake[4]: Entering directory `/home/martti/tmp/rtems/build/i386-rtems/c/i386ex/tests/samples'
> Making all in hello
> gmake[5]: Entering directory `/home/martti/tmp/rtems/build/i386-rtems/c/i386ex/tests/samples/hello'
> /usr/local/bin/i386-rtems-gcc --pipe -B../../../../../../i386ex/lib/ -specs bsp_specs -qrtems -g -Wall -ansi -fasm          -L ../../../../../../i386ex/lib  -O4  -o o-optimize/hello.coff  o-optimize/init.o ../../../../../../i386ex/lib/no-dpmem.rel ../../../../../../i386ex/lib/no-event.rel ../../../../../../i386ex/lib/no-msg.rel ../../../../../../i386ex/lib/no-mp.rel ../../../../../../i386ex/lib/no-part.rel ../../../../../../i386ex/lib/no-signal.rel ../../../../../../i386ex/lib/no-timer.rel ../../../../../../i386ex/lib/no-rtmon.rel
> /usr/local/i386-rtems/bin/ld:../../../../../../i386ex/lib/linkcmds:115: syntax error

This is an actual mistake in the beta3a image as I recall due to a 
hardware problem we were experiencing.  If you look at the file,
you will see a typo.

> collect2: ld returned 1 exit status
> gmake[5]: *** [o-optimize/hello.exe] Error 1

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



More information about the users mailing list