This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Anyone ever install gcc for the ARC microprocessor?


Mike Szabo wrote:
> 
> I am trying to install gcc with target=arc-elf and on a i686-pc-linux-gnu
> host.
> 
> Following the current FAQ I downloaded

 The FAQ seems to have a serious bug in this respect...

> binutils-2.11.tar
> gcc-2.95.3.tar
> newlib-1.8.2.tar
> 
> Then I created the combined src directory using one-tree-1.6.sh

 How on earth the FAQ writer could think that the gcc-2.95.3 and
binutils-2.11 sources could be "combined", when the first lives
still in the late 1999 and the latter is from this year... What
did the FAQ say about which one of the common-named subdirs like
'include' and 'libiberty' to use in the 'combined' sources?

 You should build binutils from the binutils-sources, then build
GCC from the GCC-sources, that's the simple rule and should work.
If you want to use the Cygnus-tree where the binutils, gcc, gdb,
newlib etc. are all in sync, then you must get the RedHat EDK
(from February-2000), the GNUPro-99r1 (from late-1999) or some
other sources, not the stand-alone FSF-sources.

 If you build from the FSF-sources, keep them separated until
you have checked that the 'utils'-stuff (libiberty, bfd, opcodes,
include, readline, intl etc.) doesn't differ too much.

 It is easy to see that in this case the 'include' in the gcc-2.95.3
sources has overwritten the binutils ones having the needed headers...

> -I../../src/bfd/../include -g -O2 -c ../../src/bfd/archive.c
> In file included from ../../src/bfd/archive.c:130:
> ../../src/bfd/sysdep.h:74:24: fopen-same.h: No such file or directory
> ../../src/bfd/archive.c:132:21: aout/ar.h: No such file or directory
> ../../src/bfd/archive.c:133:25: aout/ranlib.h: No such file or directory
> 
> Has anyone seen this or more importantly has anyone successfully done this?

 I had no troubles at all when testing the build from the untouched
binutils-2.11 sources for  the 'arc-elf' target....

Cheers, Kai



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]