sys/select.h not found, --disable-posix used
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Feb 12 15:23:57 UTC 2016
Use the 4.11 branch with 4.11 tools. For master you need 4.12 tools.
----- José Pedro Canilho <jose.canilho at spinworks.pt> schrieb:
> 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é
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list