Building RTEMS problem

Angelo Fraietta angelo_f at bigpond.com
Tue Jun 4 22:17:20 UTC 2002


Try using these bit scripts that I am using. I am using Linux Red Hat 6 
through a telnet session. To build the pc386 BSP I go


./bit_rtems i386 pc386

My rtems source is in a symnk link in the same directory called

RTEMS4.5.0ss


Davide Del Vento wrote:

>> > Of course my path is set correctly ;-((
>> >
>> Apparently not (cf. below).
>
> What's about the environment variables? Can the problem be in them?
> Now I'm nearly sure that I make an error in the ./configure options 
> (see below)
>
>> > I do (in /opt/rtems/bin) "ln -s i386-rtems-gcc gcc"
>> Don't! This is plain wrong.
>
> I know, it was only a test.
>
>> > and I try to configure and make WITHOUT setting the path (I was 
>> wondering
>> > where is the point where it hangs). This way it compile!!!
>> Well, .. no.
>>
>> What might happen, is the native compiler not choking during compilation
>> of target code, because you probably are using an i386-based native tool
>> chain, but that's all.
>
> Right.
>
>> I'd guess, having started to configure without /opt/rtems/bin in $PATH
>> and then later having put /opt/rtems/bin in $PATH is the cause.
>
> No. (cfr below)
>
>> > > > Get your FREE download of MSN Explorer at
>> > >http://explorer.msn.com/intl.asp.
>> Are you using Cygwin? Then, there are other possible causes for your
>> problems.
>
> No, I use linux (Mandrake8.0 kernel2.4.3). This annoying spot is added 
> by the webmail. I use hotmail (bleah!) because my university account 
> is very poor and don't offer webmail at all.
>
>> Try to start from scratch:
>>
>> Start a new shell, then
>> export PATH=/opt/rtems/bin:$PATH
>> mkdir build
>> cd build
>> <pathtortems>/configure --target=i386-rtems [further options]
>
>
> This was (nearly) exactly what I've done before: the only difference 
> was that I type:
> <pathtortems>/configure i386-rtems [further options]
>
> My further options are simply: --prefix=/opt/davide
>
> So I retried with my previous configure options (and I obtained 
> exactly the some error) and with your slight different ones (that 
> should be equivalent, reading the ./configure --help)
> This way it hangs at a different point, as you can see from the 
> attached output of the
> make all install
> ;-(
> Bye,
> ;Davide
>
> /usr/bin/install -c -m 644 o-optimize/libtest.a 
> ../../../../../../i386ex/lib/libtest.a
> make[5]: Leaving directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex/tests/support/wrapup'
> make[5]: Entering directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex/tests/support'
> make[5]: Nothing to be done for `all-am'.
> make[5]: Leaving directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex/tests/support'
> make[4]: Leaving directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex/tests/support'
> Making all in samples
> make[4]: Entering directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex/tests/samples'
> Making all in hello
> make[5]: Entering directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex/tests/samples/hello'
> mkdir o-optimize
> /opt/rtems/bin/i386-rtems-gcc --pipe -B../../../../../../i386ex/lib/ 
> -specs bsp_specs -qrtems -g -Wall -ansi -fasm
> -c -O4 -o o-optimize/init.o 
> ../../../../../../../archive/c/src/tests/samples/hello/init.c
> /opt/rtems/bin/i386-rtems-gcc --pipe -B../../../../../../i386ex/lib/ 
> -specs bsp_specs -qrtems -g -Wall -ansi -fasm
> -L ../../../../../../i386ex/lib -O4 -o o-optimize/hello.coff 
> o-optimize/init.o ../../../../../../i386ex/lib/no-dpmem.rel 
> ../../../../../../i386ex/lib/no-event.rel 
> ../../../../../../i386ex/lib/no-msg.rel 
> ../../../../../../i386ex/lib/no-mp.rel 
> ../../../../../../i386ex/lib/no-part.rel 
> ../../../../../../i386ex/lib/no-signal.rel 
> ../../../../../../i386ex/lib/no-timer.rel 
> ../../../../../../i386ex/lib/no-rtmon.rel
> /opt/rtems/i386-rtems/bin/ld:../../../../../../i386ex/lib/linkcmds:115: 
> parse error
> collect2: ld returned 1 exit status
> make[5]: *** [o-optimize/hello.exe] Error 1
> make[5]: Leaving directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex/tests/samples/hello'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex/tests/samples'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex/tests'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory 
> `/home/marco/rtems/Davide/build/i386-rtems/c/i386ex'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/marco/rtems/Davide/build/i386-rtems/c'
> make: *** [all-recursive] Error 1
>
>
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
>
>

-- 
Angelo Fraietta

PO Box 859
Hamilton NSW 2303

Home Page


http://www.users.bigpond.com/angelo_f/

There are those who seek knowledge for the sake of knowledge - that is CURIOSITY
There are those who seek knowledge to be known by others - that is VANITY
There are those who seek knowledge in order to serve - that is LOVE
    Bernard of Clairvaux (1090 - 1153)


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bit_rtems
URL: <http://lists.rtems.org/pipermail/users/attachments/20020605/8498c558/attachment-0002.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: user.cfg
URL: <http://lists.rtems.org/pipermail/users/attachments/20020605/8498c558/attachment-0003.ksh>


More information about the users mailing list