Everything was right. I have installed gdb from github and installed in
/usr/local/bin. After that i removed default
gdb(/usr/bin) using the following command
sudo apt-get remove gdb
Now, when try to configure i am getting following errors:
checking whether the C compiler works... no configure: error: C compiler cannot create executables See `config.log' for more details
It's look like c compiler issue. But i have gcc,g++ and build-essential installed. Even i did configure and make before the
gdb(github) installation. My system is
ubuntu 14.04 (64bit). I also found that by including
'O3' in CFLAGS it can be solved. But it's not working for me. Please help.
When i try to compile a simple c file using
gcc test.c) i got this error:
/usr/local/bin/ld: this linker was not configured to use sysroots
I also tried to re-install
binutils. But it didn't help.