Compilation issues under i386 for i386.
Daron Chabot
daron.chabot at usask.ca
Fri May 25 16:16:37 UTC 2007
I'm pretty sure that I already responded to this... (maybe i forgot to
cc The List ?):
On Thu, 2007-05-24 at 16:51 -0500, Jean Gabriel Gonzalez wrote:
> Hello everybody,
>
> I am working on a i386 computer in order to compile RTEMS 4.7.99.1 for
> a i386 target, but i have some compilation problems.
>
> I work under Fedora core 6 distribution.
>
> So, i created a directory "/rtems" to run the configure :
>
> /root/Desktop/rtems-4.7.99.1/configure --target=i386-rtems --enable-
> rtemsbsp=pc386
It looks like the configure option, --prefix=/rtems, is missing from
your invocation. The default location may be under /usr/local, which is
probably not what you want.
>
> The configure works well, i have these messages :
>
> target architecture: i386.
> available BSPs: pc386.
> 'gmake all' will build the following BSPs: pc386.
> other BSPs can be built with 'gmake RTEMS_BSP="bsp1 bsp2 ..."'
>
> config.status: creating Makefile
> config.status: creating make/Makefile
>
>
>
> Then, like it's indicated in the documentation started.pdf ( export
> PATH=<INSTALL_POINT>/bin:${PATH} ), i made this command :
>
> export PATH=/rtems/bin:${PATH}
> Then I specify the CC variable like that :
>
> # CC=gcc ;export CC
> After, i make the following command : gmake all
After a quick look through "started.pdf", I couldn't find where it
indicates that you must set CC=gcc; export CC. This is not necessary
(and probably just wrong): correctly configuring your PATH to point to
the rtems tool-chain should suffice.
I'm assuming that you've already obtained/installed the required tool-
chain... and you have, right ?
>
> The compilation starts but i have a problem at this point :
>
> gmake[7]: Entering directory
> `/rtems/i386-rtems/c/pc386/cpukit/score/cpu/i386'
> gcc --pipe -DHAVE_CONFIG_H -I../../..
^^^
I'm also pretty sure that your native gcc shouldn't be getting used
here... :-)
-- dc
More information about the users
mailing list