Error compiling rtems with RCC1.2.17

Ricardo Derbes rderbes at
Fri Jan 23 15:12:10 UTC 2015

Hello all.

I have download RCC1.2.17 
(sparc-rtems-4.10-gcc-4.4.6-1.2.17-linux.tar.bz2) and installed it in /opt.
Downloaded rtems sources (rtems-4.10-1.2.17-src.tar.bz2) and installed 
them in /opt/rtems-4.10/src/rtems-4.10. , as per documentation.

In /opt/rtems-4.10/src/, I executed make bootstrap and make configure 
without any errors.
As I have not modified any options in makefile , configure options are:

BSPS=leon2 leon3 erc32
     -mkdir $(PREFIX)/src/build
     cd $(PREFIX)/src/build; \
     $(PREFIX)/src/$(RTEMSDIR)/configure --prefix=$(PREFIX) \
     --target=sparc-rtems $(EXTRA_CONFIG) --disable-itron 
--disable-tests --enable-cxx --disable-docs \

I intend to build a BSP for LEON3 only, without POSIX & networking 
support, but I started with default Makefile to be acquainted with build 

When I try to compile, issuing make compile, I get:

export PATH=/opt/rtems-4.10/bin:$PATH; cd /opt/rtems-4.10/src/build; 
make all
make[1]: Entering directory `/opt/rtems-4.10/src/build'
Making all in make
gmake[2]: Entering directory `/opt/rtems-4.10/src/build/make'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/opt/rtems-4.10/src/build/make'
Making all in tools/build
gmake[2]: Entering directory `/opt/rtems-4.10/src/build/tools/build'
gmake  all-am
gmake[3]: Entering directory `/opt/rtems-4.10/src/build/tools/build'
gcc -DHAVE_CONFIG_H -I. -I/opt/rtems-4.10/src/rtems-4.10/tools/build     
-g -O2 -MT cklength.o -MD -MP -MF .deps/cklength.Tpo -c -o cklength.o 
In file included from /usr/include/bits/errno.h:24:0,
                  from /usr/include/errno.h:35,
/usr/include/linux/errno.h:4:30: fatal error: uapi/linux/errno.h: No 
such file or directory
  #include <uapi/linux/errno.h>
compilation terminated.
gmake[3]: *** [cklength.o] Error 1
gmake[3]: Leaving directory `/opt/rtems-4.10/src/build/tools/build'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/opt/rtems-4.10/src/build/tools/build'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/rtems-4.10/src/build'
make: *** [compile] Error 2

What am I missing? I do not understand why my linux kernel headers are 
going into build...
Thank you very much


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list