Problems building Gaisler's RTEMS 4.8 on Ubuntu x86_64

Gerard glpuga at gmail.com
Tue Mar 15 21:01:30 UTC 2011


I'm trying to set up the Gaisler toolchain for rtems 4.8.

The OS is Ubuntu Linux 10.10, the architecture is X86 64 bits.

I'm having some trouble trying to recompile the RTEMS source package
for a LEON3 computer.


These are the Gaisler packages that I'm using:

Toolchain :  sparc-rtems-4.8-gcc-4.2.4-1.1.2-linux.tar.bz2
Source: rtems-4.8-1.1.2-src.tar.bz2

I'm using GNU Autoconf ver. 2.63, and GNU Automake ver. 1.10.2 .

I had to install the package libc6-dev-i386 in order to run the
compiler and the rest toolchain executables.
After installing that package I was able to successfully run the
following steps of the recompilation process:

# cd /usr/rtems-4.8/src
# make veryclean
# make bootstrap
# make configure

After that, "make compile" fails like this:

configure: configuring in ../../cpukit
configure: running /bin/bash
'/opt/rtems-4.8/src/rtems-4.8/c/src/../../cpukit/configure'
'--prefix=/opt/rtems-4.8' '--host=sparc-rtems'
'--build=x86_64-unknown-linux-gnu' '--target=sparc-rtems'
'--disable-itron' '--disable-tests' '--enable-cxx' '--disable-docs'
'--with-target-subdir=sparc-rtems'
'--exec-prefix=/opt/rtems-4.8/sparc-rtems'
'--includedir=/opt/rtems-4.8/sparc-rtems/include'
'build_alias=x86_64-unknown-linux-gnu' 'host_alias=sparc-rtems'
'target_alias=sparc-rtems' '--with-project-root=../../'
'--with-project-top=../../' 'RTEMS_BSP=leon3' 'RTEMS_CPU_MODEL=leon3'
'RTEMS_BSP_FAMILY=leon3' 'CFLAGS=-mcpu=cypress -msoft-float -O2 -g'
'--with-project-root=../../../leon3/'
'--includedir=/opt/rtems-4.8/sparc-rtems/leon3/lib/include'
'--libdir=/opt/rtems-4.8/sparc-rtems/leon3/lib'
--cache-file=/dev/null
--srcdir=/opt/rtems-4.8/src/rtems-4.8/c/src/../../cpukit
configure: WARNING: unrecognized options: --disable-tests,
--enable-cxx, --disable-docs, --with-target-subdir, --with-project-top
checking for gmake... no
checking for make... make
checking build system type... x86_64-unknown-linux-gnu
checking host system type... sparc-unknown-rtems
checking rtems target cpu... sparc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for sparc-rtems-strip... sparc-rtems-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
/opt/rtems-4.8/src/rtems-4.8/c/src/../../cpukit/configure: line 3355:
syntax error near unexpected token `;'
/opt/rtems-4.8/src/rtems-4.8/c/src/../../cpukit/configure: line 3355: `; then :'
configure: error: /bin/bash
'/opt/rtems-4.8/src/rtems-4.8/c/src/../../cpukit/configure' failed for
../../cpukit
make[3]: *** [leon3] Error 1
make[3]: Leaving directory `/opt/rtems-4.8/src/build/sparc-rtems/c'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/rtems-4.8/src/build/sparc-rtems/c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/rtems-4.8/src/build'
make: *** [compile] Error 2

Line 3355 of the configure file in cpukit is in the middle of the
following fragment:

if test x"${enable_rtems_debug}" = x"yes"

cat >>confdefs.h <<_ACEOF
#define RTEMS_DEBUG 1
_ACEOF
; then :

fi

Where the "then" doesn't seem to be in the right place.

Has anyone seen anything like this before? Can it be that there are
some dependencies missing? Maybe I should use some other version
of autoconf/automake? Maybe some other package that I need to install?

Thanks!

Gerardo.-



More information about the users mailing list