Hi,
I apologize for the incomplete mails. There seems to be some problem with this email service I suppose. Anyway, please find the complete mail below. I hope it works this time around...
Iam trying to install gcc 3.3.1 on Solaris sparc 2.6 platform. Since I dont have root priveleges, I downloaded the source and built it using the following commands,
(Iam running GNU binutils ver 2.14)
/home/vseshan/gcc-3.3.1/configure --prefix=/home/vseshan/local/gcc-3.3.1/ --with-local-prefix=/home/vseshan/local --with-as=/home/vseshan/local/bin/as--with-gnu-as --with-ld=/home/vseshan/local/ld --with-gnu-ld --disable-multilib --enable-threads --enable-languages=c,c++,java
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
I do not have a /usr/local/include directory, that was the reason for giving the "with-local-prefix" option to a folder which has some packages (binutils and other stuff) installed.
The build completed successfully.
I set the following env variables, GCC_EXEC_PREFIX=/home/vseshan/local/gcc-3.3.1/lib/gcc-lib LD_LIBRARY_PATH=/home/vseshan/local/gcc-3.3.1/lib
Iam able to compile C programs without any problem. But g++ is giving me a lot of trouble. When I try to compile the following simple c++ program,
#include <iostream> using namespace std;
int main() { cout<<"Hello world"<<endl; return 0; }
I have attached the error log at the end of the mail. Can anyone tell me if Iam doing anything incorrectly or should I be doing something more (like setting some more env variables??)
Thanks in advance Vijay
Error log:: ----------- g++ test.cc
<error log attached>
___________________________________________________ Art meets Army ; Swapna Weds Capt. Rajsekhar. Find interesting matches on Rediff Matchmaker ! Visit http://matchmaker.rediff.com?1
Attachment:
error_log
Description: Binary data