This is the mail archive of the crossgcc@sourceware.org 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]
Other format: [Raw text]

Re: Building gcc for ppc-603


Danny Budik said the following on 12/18/2006 10:59 AM:
Hello All,

I have a question regarding a slightly complicated cross-compile.

I'm trying to cross-compile gcc (c,c++) for ppc-603 from my i686 host. With crosstool almost everything works. The tricky thing about my target, is that the libstdc++ libraries on that machine are the ones from gcc-3.2.3 (libstdc++.so.5.0.3.) I can build gcc-3.2.3 for ppc with crosstool but my code won't compile with such an old gcc ver. I've tried building both gcc-4.1.0 and gcc-3.2.3 and then copying the header files and c++ libraries from the old to the new but then when I build my code, it doesn't link.

So in the end, my question is, is there a way to build a late version of gcc and compile in an old version of the c++ libraries?
with gcc 3.4.x we have libstdc++.so.6 and prior to that it was libcstdc++.so.5 and C++ ABI changed between these two versions. So you have to use gcc 3.3
if you want to use libcstdc++.so.5

Regards, Danny



--
Khem Raj
MontaVista Software Inc.
kraj@mvista.com


-- For unsubscribe information see http://sourceware.org/lists.html#faq


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