This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: Trouble building GCC 2.95.2 on intel Linux as cross compiler for PPC


>You're missing newlib.

Thanks. I didn't initially install newlib because I only needed the
cross-compiler to look at the assembler code generated for some source
code I'm tuning.

Following your suggestion, I tried building all three packages
(binutils, gcc, newlib) sequentially according to the instructions in

http://www.objsw.com/CrossGCC/FAQ-4.html.

That didn't work because of an apparent circular dependency between
gcc and newlib that only appears when building gcc as a cross
compiler. Building gcc needs newlib to be installed first and building
newlib needs the gcc cross-compiler to be installed first.

I finally succeeded by merging the gcc, binutils and newlib trees into
a single source tree as described later in that same web page. I had
to do the merging manually as the one-tree script provided didn't seem
to work on the latest versions of the packages.

I suggest that a merged tarball of the three source trees (the latest
versions of binutils, gcc & newlib) be made available on the FTP
mirror sites for those who wish to build cross compilers. That sure
would have been much easier and less confusing for me.

Thanks again for the help!

Phil


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