Problems in compilation using gcc-2.95 on Sparc-SunOS

hkumar@hss.hns.com hkumar@hss.hns.com
Tue Feb 29 04:05:00 GMT 2000


Hi,

I compiled a gcc native compiler on Sun Sparc platform running SunOS 5.6. I used
binutils 2.9.1 to compile gcc.

---------------snip--------------
gomti~ $ uname -a
SunOS gomti 5.6 Generic_105181-19 sun4u sparc SUNW,Ultra-Enterprise
gomti~ $
-----------------snip--------------

Now when I compile a simple program I get the error as gievn below


--------------snip--------------
gomti~ $ cat test.cpp
#include <vector>
#include <string>

main() {

vector<string> v;

        v.push_back("xyz");

}
gomti~ $ /cm_data/spwemulator/tools/gcc-native/bin/g++ test.cpp
/cm_data/spwemulator/tools/gcc-native/lib/gcc-lib/sparc-sun-solaris2.6/2.95/libgcc.a:

could not read symbols: Bad value
collect2: ld returned 1 exit status
gomti~ $

--------------snip---------------

Can anybody please suggest a solution

Thanks and Regards

-harendra




More information about the Gcc mailing list