[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/2993] compile error bfd.c: noreturn function does return
From: |
nickc at redhat dot com |
Subject: |
[Bug binutils/2993] compile error bfd.c: noreturn function does return |
Date: |
7 Aug 2006 09:01:04 -0000 |
------- Additional Comments From nickc at redhat dot com 2006-08-07 09:01
-------
Subject: Re: New: compile error bfd.c: noreturn function
does return
Hi Rudolph,
> bfd.c: In function `_bfd_abort':
> bfd.c:796: warning: `noreturn' function does return
This looks like it may be a problem with your system header files. The
_bfd_abort() function ends with a call to the system function _exit()
which should not return. Hence _bfd_abort() does not return. It would
appear from this error message that the system header file which
declares the prototype for _exit() on your system (probably unistd.h)
does not include the "__attribute__ ((noreturn))" qualifier.
The proper solution to this problem would probably involve complicated
configuration scripting to detect the missing attribute in the system
header and change the prototypes of various bfd functions accordingly.
Since that is likely to introduce its own set of bugs however, please
could you try the uploaded alternative patch which just adds a local
prototype for _exit() to the _bfd_abort() function.
Cheers
Nick
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2993
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug binutils/2993] New: compile error bfd.c: noreturn function does return, lts-rudolph at gmx dot de, 2006/08/02
- [Bug binutils/2993] compile error bfd.c: noreturn function does return, nickc at redhat dot com, 2006/08/07
- Re: [Bug binutils/2993] New: compile error bfd.c: noreturn function does return, Nick Clifton, 2006/08/07
- [Bug binutils/2993] compile error bfd.c: noreturn function does return,
nickc at redhat dot com <=
- [Bug binutils/2993] compile error bfd.c: noreturn function does return, nickc at redhat dot com, 2006/08/07
- [Bug binutils/2993] compile error bfd.c: noreturn function does return, amylaar at gcc dot gnu dot org, 2006/08/09
- [Bug binutils/2993] compile error bfd.c: noreturn function does return, amylaar at gcc dot gnu dot org, 2006/08/09