RTEMS Build Problems on OpenBSD

Joel Sherrill joel.sherrill at OARcorp.com
Mon Mar 5 13:59:54 UTC 2001

Could you post your precise configure line?

Mike Siers wrote:
> Hi,
> I am trying to build the RTEMS software on an OpenBSD 2.7 system.  I am
> using the following versions of the build tools:
>   gmake    3.78.1
>   autoconf 2.13
>   automake 1.4
> I downloaded all the files from ftp://oarcorp.com/pub/rtems/releases/4.5.0.
> I successfully built gcc, binutils, and newlib following the directions
> in the "Getting Started" document.  But when I try and build RTEMS itself,
> it does not work.  Has anyone successfully used OpenBSD/FreeBSD/NetBSD for
> a development platform?  Should I use the latest snapshot version instead
> of this released version?  If I switch to the latest snapshot version, do I
> need to use different versions of the build tools?
> The following lines are the last few lines that I am seeing when I try to
> build RTEMS.  Any ideas or thoughts would be appreciated.
> checking for RTEMS Version... 4.5.0
> checking host system type... i386-unknown-openbsd2.7
> checking target system type... i386-pc-rtems
> checking build system type... i386-unknown-openbsd2.7
> checking rtems target cpu... i386
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for RTEMS_BSP... (cached) pc386
> checking if cpu i386 is supported... yes
> checking for i386-rtems-gcc... (cached) /usr/local/rtems/bin/i386-rtems-gcc
> checking whether the C compiler (/usr/local/rtems/bin/i386-rtems-gcc  )
> works... yes
> checking whether the C compiler (/usr/local/rtems/bin/i386-rtems-gcc  ) is a
> cross-compiler... yes
> checking whether we are using GNU C... yes
> checking whether /usr/local/rtems/bin/i386-rtems-gcc accepts -g... yes
> checking whether /usr/local/rtems/bin/i386-rtems-gcc accepts -specs...
> (cached) yes
> checking whether /usr/local/rtems/bin/i386-rtems-gcc accepts --pipe...
> (cached) yes
> checking target's ar... (cached) /usr/local/rtems/i386-rtems/bin/ar
> checking target's as... (cached) /usr/local/rtems/i386-rtems/bin/as
> checking target's ld... (cached) /usr/local/rtems/i386-rtems/bin/ld
> checking target's nm... (cached) /usr/local/rtems/i386-rtems/bin/nm
> checking target's ranlib... (cached) /usr/local/rtems/i386-rtems/bin/ranlib
> checking target's objcopy... (cached)
> /usr/local/rtems/bin/i386-rtems-objcopy
> checking target's size... (cached) /usr/local/rtems/bin/i386-rtems-size
> checking target's strip... (cached) /usr/local/rtems/i386-rtems/bin/strip
> checking for make/custom/pc386.cfg... yes
> checking for RTEMS_CPU_MODEL...
> ../../../../../../../rtems-4.5.0/c/src/lib/libcpu/i386/configure[1989]: .:
> ../../../../../c/pc386/make/pc386.cache: not found
> configure: error:
> ../../../../../../../rtems-4.5.0/c/src/lib/libcpu/i386/configure failed for
> i386
> configure: error: ../../../../../../rtems-4.5.0/c/src/lib/libcpu/configure
> failed for libcpu
> configure: error: ../../../../../rtems-4.5.0/c/src/lib/configure failed for
> lib
> gmake[2]: *** [pc386] Error 1
> gmake[2]: Leaving directory
> `/usr/src/rtems/tools/build-i386-rtems/i386-rtems/c'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
> `/usr/src/rtems/tools/build-i386-rtems/i386-rtems/c'
> gmake: *** [all-recursive] Error 1
> ERROR: failed gmake all.
> ./bit_rtems[342]: ./bit_rtems: bad number
> Thanks
> Mike Siers

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