sys/select.h not found, --disable-posix used

José Pedro Canilho jose.canilho at spinworks.pt
Fri Feb 12 11:40:58 UTC 2016


I've been trying to install RTEMS and generate the BSP files for the
LEON3, but I've been having some issues, mainly after using the
configure file.

I've followed the following steps, provided in a different thread:
     > >>> cd
     > >>> mkdir -p development/rtems/src
     > >>> cd development/rtems/src
     > >>> sudo apt-get install git
     > >>> git clone git://git.rtems.org/rtems-source-builder.git
     > >>> cd rtems-source-builder
     > >>> sudo apt-get install bison cvs g++ texinfo flex
     > >>> sudo apt-get install build-essential vim zlib1g-dev
libncurses5-dev python-dev
     > >>> source-builder/sb-check
     > >>> cd rtems
     > >>> ../source-builder/sb-set-builder --log=l-sparc.txt
     > >>> --prefix=$HOME/development/rtems/4.11 4.11/rtems-sparc
     > >>> $HOME/development/rtems/4.11/bin/sparc-rtems4.11-gcc -v
     > >>> git clone git://git.rtems.org/rtems.git
     > >>> cd rtems
     > >>> export PATH=/development/rtems/4.11/bin:$PATH
     > >>> ./bootstrap
     > >>> cd ..
     > >>> mkdir leon3
     > >>> cd leon3
     > >>> ../rtems/configure --target=sparc-rtems4.11
--enable-rtremsbsp=leon3 --enable-tests=samples --disable-posix

Up until this point, everything ran smoothly. I've ran 'make' next, and
I'm getting the following error:

###############################################################

     sparc-rtems4.11-gcc --pipe -DHAVE_CONFIG_H   -I../../..
-I../../../../cpukit/../../../leon3/lib/include
-I../../../../../../../../rtems/c/src/../../cpukit/libfs/src/nfsclient/proto
-UHAVE_CEXP
-I../../../../../../../../rtems/c/src/../../cpukit/libfs/src/nfsclient/proto
-UHAVE_CEXP   -mcpu=cypress -msoft-float -O2 -g -ffunction-sections
-fdata-sections -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT
src/libnfs_a-rpcio.o -MD -MP -MF src/.deps/libnfs_a-rpcio.Tpo -c -o
src/libnfs_a-rpcio.o `test -f 'src/rpcio.c' || echo
'../../../../../../../../rtems/c/src/../../cpukit/libfs/src/nfsclient/'`src/rpcio.c
In file included from
../../../../cpukit/../../../leon3/lib/include/rpc/rpc.h:62:0,
                  from
../../../../../../../../rtems/c/src/../../cpukit/libfs/src/nfsclient/src/rpcio.c:77:
../../../../cpukit/../../../leon3/lib/include/rpc/svc.h:46:37: fatal
error: sys/select.h: No such file or directory
  #include <sys/select.h> /* fd_set */
                                      ^
compilation terminated.
  ###############################################################

Since I've generated the BSP with the --disable-posix flag, shouldn't
select.h not be used at all?

My apologies in advance, if I'm missing something really obvious.
Any help is appreciated.

Regards,
José



More information about the users mailing list