Re: make fails on ubuntu 11.04 VM,
Keith Seitz <[email protected]>
| Newsgroups | gmane.comp.debugging.insight |
|---|---|
| Message-ID | <[email protected]> |
On 11/03/2011 06:11 PM, sandip gangakhedkar wrote: > cc1: warnings being treated as errors > linux-nat.c: In function ‘linux_nat_info_proc_cmd’: > linux-nat.c:2879:10: error: ignoring return value of ‘fgets’, declared > with attribute warn_unused_result > make[2]: *** [linux-nat.o] Error 1 > make[2]: Leaving directory `/home/sandipg/insight-6.8-1/gdb' > make[1]: *** [all-gdb] Error 2 > make[1]: Leaving directory `/home/sandipg/insight-6.8-1' > make: *** [all] Error 2 > sandipg@sandipg-VirtualBox:~/insight-6.8-1$ make> makelog > cc1: warnings being treated as errors > linux-nat.c: In function ‘linux_nat_info_proc_cmd’: > linux-nat.c:2879:10: error: ignoring return value of ‘fgets’, declared > with attribute warn_unused_result > make[2]: *** [linux-nat.o] Error 1 > make[1]: *** [all-gdb] Error 2 > make: *** [all] Error 2 That's a gdb error. Normally, I would advise you to try the gdb mailing list for better advice, but I suspect you may be attempting to build something quite old... For Insight, definitely grab CVS HEAD or git. If you *really* want a release, try grabbing the latest gdb release and copying the gdb/gdbtk and libgui folders inside it. But I suspect it will be much easier for you to just grab the latest sources. FWIW, I use this daily for my own work. Or you could pass "--disable-werror" to configure to suppress erroring on warnings. If you need to get your specific error fixed, try emailing the gdb@ mailing list. Keith