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.
EDIT
When i try to compile a simple c file using gcc
(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.
config.log
(in the same directory as the configure script usually); it contains the detailed commands executed to test the compiler. And their output too. You can add them to your question if they didn't help you to solve to problem.gcc
? If you are not a developer, go to this site, paste the code into a file liketest.c
and executegcc -o test test.c
. Do you get an executable calledtest
which print "Hello world" ?./configure
located on your system? Thecannot create executables
message sometimes indicates that the filesystem doesn't support Unix-style permissions (e.g. NTFS).