Changing the build tools

Steven Johnson sjohnson at sakuraindustries.com
Sat Mar 11 02:23:38 UTC 2006


Ralf Corsepius wrote:

>On Sat, 2006-03-11 at 10:32 +1100, Steven Johnson wrote:
>  
>
>>Hi,
>>
>>I think you mis-understand, my problem Isn't with building the tools,
>>its with building RTEMS, i will elaborate.
>>    
>>

>You didn't answer to my question: How did you install them to this
>point?
>  
>
I Thought i answered this when I said:

>>I have already properly re-built the toolchains.  I use
>>--prefix=/opt/rtems-4.6-2 when running ./configure on GCC for example. 
>>All of the tools, Newlib, GCC, GDB and Binutils are installed correctly
>>in /opt/rtems-4.6-2 and they have been tested and operate correctly from
>>there.  There was no problem for me doing this, ive built GCC and
>>friends more times than i care to remember.
>>    
>>

>>My problem relates to the building of RTEMS itself. The ./configure and
>>make process of RTEMS V4.6.5 looks for its build tools (for whatever
>>processor it is being built for) in /opt/rtems-4.6/bin by default,
>>    
>>
>No, it doesn't.
>
>The configure script looks for $target-<tool> on $PATH.
>  
>
That cant be completely correct.  I just tried exporting
/opt/rtems-4.6-2 on PATH, ie:
export PATH=/opt/rtems-4.6-2/bin:$PATH

rtems now when built uses the tools I want.  Thats great, does what I
need, and reflects what you just said.

BUT, before, i had never ever exported /opt/rtems-4.6/bin on the path,
yet the configure script still managed to find the tools there.  So
somehow ./configure is doing something magic to find /opt/rtems-4.6/bin
as a place where the tools are installed, because my PATH doesnt point
there, and im not telling it to look there, yet it has always found the
tools there.

In any event, it seems if I DO export PATH that I can prevent it looking
in /opt/rtems-4.6 but im still confused about how it achieves this bit
of apparent magic.

>  
>
>>rather than by using the tools it can find on the $PATH, which
>>./configure and make normally do.
>>    
>>
>I have no idea what makes you think this. The contrary is true.
>
>  
>
I think it, because if I just install the tool RPM's, extract the 4.6.5
source and go ./configure it finds the tools in /opt/rtems-4.6 and I
havent added that directory to the PATH, and if i echo $PATH it isnt in
the path before or after I execute ./configure

Steven




More information about the users mailing list