using specific version of gcc [message #2493] |
Wed, 06 May 2009 05:27  |
Eclipse User |
|
|
|
I encountered a problem when trying to use a different version of gcc than
the one coming with my linux distribution.
I changed the rootDir property of the gnu.targets.Linux86 module to the
gcc version version I want to use (/apps/free/gcc/4.3.2 in my case) but
when building with xdc it complain about not being able to find the
archiver.
Looking closer it looks like the archiver has a hard dependency on the
specified rootDir
const Linux86.ar// The command used to create an archive =
ITarget.Command {
cmd: "$(rootDir)/bin/ar",
opts: "cr"
Any idea on how to solve this?
|
|
|
|
|
Re: using specific version of gcc [message #2696 is a reply to message #2668] |
Thu, 07 May 2009 10:43  |
Eclipse User |
|
|
|
Patrick Geremia wrote:
> as far as I know a gcc version is not bundled with a binutils version.
> When you work with a linux distro (RHEL4.7 in my case, which features
> gcc version 3.4.6), the archiver and gcc will be located both in /usr/bin.
> Now I may need to use a more recent version of gcc (4.3.2 for example),
> our IT group installs it somewhere on our network (in our case
> /apps/free/gcc/4.3.2) but the archiver remains in its original location
> i.e. the /usr/bin. Hence my configuration. I do not see any improper
> installation here.
> Would you agree?
>
ar is not part of the gcc distribution and yet it is a necessary tool.
Moreover, binutils contains several other invaluable tools; e.g., as,
ld, nm, size, strip, objdump, ... In my experience, every gcc
distribution includes some version of binutils.
On the other hand, ar is a _very_ simple tool that is independent of the
target architecture; i.e., you can use virtually any version of ar for
any cross-compiler that operates on a given host.
|
|
|
Powered by
FUDForum. Page generated in 0.06311 seconds