[uClinux-dev] How to install multiple versions of
Snapgear toolchain?
Greg Ungerer
gerg at snapgear.com
Wed Oct 3 23:37:33 EDT 2007
Hi Doug, Dave,
Doug Kehn wrote:
> --- Dave Rensberger wrote:
>> I have a situation that requires that I use an old
>> (2003 era)
>> toolchain for an old product, but also need to use
>> one of the newer
>> toolchains for a newer Snapgear 3.5 based product.
>> Is there any way
>> to easily install 2 different versions of the
>> Snapgear toolchain on a
>> single computer? Multiple installs will conflict
>> with each other
>> because they always have to be installed in
>> /usr/local. I've thought
>> about installing the newer toolchain in an alternate
>> location and
>> using chroot to create the illusion that it's
>> actually at /usr/local,
>> but there would be complications with that too.
>> Has anyone else
>> encountered this problem and come up with a solution
>> that works (and
>> hopefully isn't too messy)?
>>
>
> It's not messy at all. Below is advice from Greg for
> supporting multiple arm-linux toolchains. I can't
> think of a reason why it wouldn't work for other
> toolchains too.
There is a one issue that I have run into with this type of
setup. It works well for the dist type arrangements - that don't
need the pre-compiled libs that are in the toolchain.
One caveat to that is if you are using c++, since that will
need some of the binary c++ libs in the toolchain.
Regards
Greg
> ---8<-----
>
> I do this for the 20031127 and 20051123 toolchains.
>
> Basically I install the old one first. Then in
> /usr/local/bin
> I rename each of the arm-linux- binaries and put a
> -3.3.2- extension
> in there, so:
>
> arm-linux-gcc -->> arm-linux-3.3.2-gcc
>
> Then install the newer tool chain.
>
> The newer tool chain is the default (so if you use
> arm-linux-gcc).
> You can run the old using something like
> "arm-linux-gcc -V 3.3.2".
> But I prefer to change the config.arch files in the
> dist and
> use CC="arm-linux-3.3.2-" as the compiler binary.
>
> Regards
> Greg
>
> ----->8---
>
> Hope this helps. Regards,
> ...doug
>
>
>
>
> ____________________________________________________________________________________
> Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
> http://smallbusiness.yahoo.com/webhosting
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>
--
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg at snapgear.com
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
More information about the uClinux-dev
mailing list