This is the mail archive of the gcc@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]

Problems in compilation using gcc-2.95 on Sparc-SunOS





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



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