4.5.0-beta3a build problems

Martti Kuparinen martti.kuparinen at nomadiclab.com
Mon Sep 18 17:58:02 UTC 2000


Hi!

I'm running FreeBSD 4.1-STABLE with the following packages installed:

    i386-rtems-binutils-2.9.5.0.24
    i386-rtems-gcc-2.95.2
    i386-rtems-gdb-4.18

The cross-compilation tools are located in /usr/local/bin/ and they are:

    i386-rtems-addr2line  i386-rtems-gasp       i386-rtems-objdump
    i386-rtems-ar         i386-rtems-gcc        i386-rtems-ranlib
    i386-rtems-as         i386-rtems-gdb        i386-rtems-readelf
    i386-rtems-c++        i386-rtems-ld         i386-rtems-size
    i386-rtems-c++filt    i386-rtems-nm         i386-rtems-strings
    i386-rtems-g++        i386-rtems-objcopy    i386-rtems-strip

I'm trying to compile RTEMS with the following commands but no matter
what I do, the compilation fails. This seems to be a search path problem
as things get better by adding manually "-Ifoo" statements into Makefiles.
As this is an ugly hack so I'm not too happy with it :-) I get the same
result even if I use the bit_rtems script.

Any ideas what's wrong with my setup and how to make things work properly?
Maybe I'm doing something very stupid here.

Martti

---
Martti Kuparinen <martti.kuparinen at nomadiclab.com>
http://www.iki.fi/~kuparine/

===============================================================================

# export CC=i386-rtems-gcc
# export MAKE=gmake

# rm -rf source build
# mkdir source build
# cd source
# tar xfz ../tgz/rtems-4.5.0-beta3a.tgz
# cd ../build
# ../source/rtems-4.5.0-beta3a/configure --target=i386-rtems \
    --prefix=/usr/local/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 whether the C compiler (i386-rtems-gcc) works... yes
checking whether the C compiler (i386-rtems-gcc) is a cross-compiler... yes
...

# gmake all
...
Making all in build
gmake[2]: Entering directory `/home/martti/tmp/rtems/build/tools/build'
i386-rtems-gcc -DHAVE_CONFIG_H -I. -I../../../source/rtems-4.5.0-beta3a/tools/build -I.     -g -O2 -c ../../../source/rtems-4.5.0-beta3a/tools/build/cklength.c
../../../source/rtems-4.5.0-beta3a/tools/build/cklength.c:35: memory.h: No such file or directory
gmake[2]: *** [cklength.o] Error 1




More information about the users mailing list