or32 port
Joel Sherrill
joel.sherrill at OARcorp.com
Mon Aug 14 13:11:20 UTC 2000
Damjan Lampret wrote:
>
> Hi,
>
> for a start I am trying to build RTEMS for i386 but there is a problem
> (maybe I am doing something wrong?):
RTEMS requires that the tools be configured and installed as targetting
RTEMS. This is because of some minor things in gcc (multi-threaded
safe library support being the big one) and major things in newlib.
> # rtems-ss-20000811/configure --target=i386-rtems --enable-rtemsbsp=pc586
> --program-prefix= --disable-posix --disable-itron --disable-networking
You might be able to get by early on with --program-prefix=or1k- or
whatever
makes it point to the or1k tools. But to compile a real existing target
like the pc386 BSP, you will have to have i386-rtems tools installed.
See ftp.oarcorp.com:/pub/rtems/betas/4.5.0-beta/c_tools/linux_x86
(typed from memory so be warned).
> # make all
>
> No program prefix because currently I only have default GCC 2.91.66
> installed that comes with i386 RH Linux 6.2. And the problem is this:
Linux native compile uses native C library and header files. This
is definitely wrong even though the code generator and object format
used are the same.
> /usr/bin/gcc --pipe -B../../../../../pc586/lib/ -specs bsp_specs -qrtems
> -g -Wall -ansi -fasm -mcpu=i586 -c -O4 -o o-optimize/termios.o
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c: In function
> `rtems_termios_open':
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:248: `XTABS'
> undeclared (first use in this function)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:248: (Each
> undeclared identifier is reported only once
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:248: for each
> function it appears in.)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:250: `ECHOCTL'
> undeclared (first use in this function)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c: In function
> `termios_set_flowctrl':
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:395: `CRTSCTS'
> undeclared (first use in this function)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c: In function
> `oproc':
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:596: `TABDLY'
> undeclared (first use in this function)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:596: `XTABS'
> undeclared (first use in this function)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c: In function
> `echo':
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:651: `ECHOCTL'
> undeclared (first use in this function)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c: In function
> `erase':
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:707: `ECHOCTL'
> undeclared (first use in this function)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c: In function
> `siproc':
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:809: `ECHOPRT'
> undeclared (first use in this function)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:809: `ECHOCTL'
> undeclared (first use in this function)
> ../../../../../rtems-ss-20000811/c/src/lib/libc/termios.c:809: `ECHOKE'
> undeclared (first use in this function)
> gmake[4]: *** [o-optimize/termios.o] Error 1
> gmake[4]: Leaving directory
> `/usr/src/build-rtems/i386-rtems/c/pc586/lib/libc'
> gmake[3]: *** [all-recursive] Error 1
> gmake[3]: Leaving directory `/usr/src/build-rtems/i386-rtems/c/pc586/lib'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/usr/src/build-rtems/i386-rtems/c/pc586'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/src/build-rtems/i386-rtems/c'
> make: *** [all-recursive] Error 1
>
> I also tried configuring with POSIX enabled and then I get different
> error. Also tried pc386 and pc686 etc. Same problem. Any idea?
>
> --damjan
--
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