I am trying to install gcc 4.6 (mainly for having C++0x better supported) in my ubuntu 9.10 (via virtualbox). I referred to previous questions, but I am getting a different error.
I am referring this link for the installation. Now, I have done till the ./gcc-xx/configure ...
step. Though it was giving some flex package related error. Mostly due to that make
is also failing with below errors:
build/gengtype.o: In function
adjust_field_rtx_def': /home/milind/ubuntu_shared/GCC/build/gcc/../../gcc-4.6-20110610/gcc/gengtype.c:978: undefined reference to
lexer_line' /home/milind/ubuntu_shared/GCC/build/gcc/../../gcc-4.6-20110610/gcc/gengtype.c:1032: undefined reference tolexer_line' /home/milind/ubuntu_shared/GCC/build/gcc/../../gcc-4.6-20110610/gcc/gengtype.c:1042: undefined reference to
lexer_line' ...............
Now this is giving me a hard time figuring it out because I have already flex/bison
latest versions installed. I searched over internet for 2 days almost but no luck. Any help would be really appreciated. Also note that, I already have gcc 4.4
installed in /usr/bin/gcc
and I have unzipped the gcc 4.6
tar in my home directory local folder.
[Note: I am also ok with installing ubuntu 11.10
too (which has gcc 4.6) as last resort. But I don't know if its .iso
image is available.]