Building RTEMS

Ralf Corsepius ralf.corsepius at rtems.org
Wed Nov 2 08:31:59 UTC 2011


On 11/02/2011 09:10 AM, Asma Mehiaoui wrote:
> Hello everybody,
>
> I tried to built RTEMS on the target i386 and bsp= i386ex
>
> i made: ../rtems-4.10.1/configure --target= i386 --disable-posix
                                             ^^^^^^
This needs to be --target=i386-rtems4.10

There are 2 mistakes with dramatic consequences in your invocation of 
configure:
a) a blank between "--target=" and "i386"
b)"i386" not a valid target for RTEMS.

> --disable-networking --disable-cxx --enable-rtemsbsp=i386ex
> --prefix=/opt/rtems-4.11/
            ^^^^^^^^^^^^^^^^

Though the value passed to --prefix can be arbitrarily chosen, you on 
one hand seem to be trying to build rtems-4.10, but on the other hand 
seem to be intending to install into a "rtems-4.11" directory.

As RTEMS 4.10 and RTEMS 4.11 are quite different and require different 
toolchains, so mixing them will rarely work.
This doesn't seem wise to me.
> when i did "make all" i had these error:
>
>
> In file included from
> ../../cpukit/../../../i386ex/lib/include/rtems/libio_.h:22:0,
> from ../../../../../rtems-4.10.1/c/src/../../cpukit/posix/src/sysconf.c:23:
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:56:18: error:
> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtems_off64_t’
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:109:24: error:
> expected declaration specifiers or ‘...’ before ‘*’ token
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:111:3: error:
> expected declaration specifiers or ‘...’ before ‘rtems_off64_t’
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:109:9: warning:
> type defaults to ‘int’ in declaration of ‘rtems_off64_t’
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:109:9: error:
> ‘rtems_off64_t’ declared as function returning a function
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:113:1: warning:
> function declaration isn’t a prototype
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:164:5: error:
> expected specifier-qualifier-list before ‘rtems_filesystem_lseek_t’
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:363:43: error:
> field ‘size’ declared as a function
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:364:43: error:
> field ‘offset’ declared as a function
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:382:27: error:
> field ‘offset’ declared as a function
> ../../cpukit/../../../i386ex/lib/include/rtems/libio.h:461:25: error:
> ‘rtems_libio_lseek_t’ declared as function returning a function
> ../../../../../rtems-4.10.1/c/src/../../cpukit/posix/src/sysconf.c: In
> function ‘sysconf’:
> ../../../../../rtems-4.10.1/c/src/../../cpukit/posix/src/sysconf.c:47:12: error:
> ‘PAGE_SIZE’ undeclared (first use in this function)
> ../../../../../rtems-4.10.1/c/src/../../cpukit/posix/src/sysconf.c:47:12: note:
> each undeclared identifier is reported only once for each function it
> appears in
> make[5]: *** [src/libposix_a-sysconf.o] Erreur 1
> make[5]: quittant le répertoire «
> /home/asma/Bureau/building-RTEMS/b-sis/c/i386ex/cpukit/posix »
> make[4]: *** [all-recursive] Erreur 1
> make[4]: quittant le répertoire «
> /home/asma/Bureau/building-RTEMS/b-sis/c/i386ex/cpukit »
> make[3]: *** [all] Erreur 2
> make[3]: quittant le répertoire «
> /home/asma/Bureau/building-RTEMS/b-sis/c/i386ex/cpukit »
> make[2]: *** [all-recursive] Erreur 1
> make[2]: quittant le répertoire «
> /home/asma/Bureau/building-RTEMS/b-sis/c/i386ex »
> make[1]: *** [all-recursive] Erreur 1
> make[1]: quittant le répertoire « /home/asma/Bureau/building-RTEMS/b-sis/c »
> make: *** [all-recursive] Erreur 1
These likely are all follow-ups to how you specify "--target= "

Ralf



More information about the users mailing list