This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb 6.6 build fails on Solaris 9


Copying the binutils list, as that's where BFD is maintained.

On Fri, Jun 22, 2007 at 01:04:20PM -0400, Jonah Simandjuntak wrote:
> Hello,
> 
> I've been searching the archive, but couldn't find a solution to the problem below. I am compiling this on a SPARC Solaris 9.
> 
> Here is the output:
> ...
> /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H  -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include  -I./../intl    -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o bfd.lo bfd.c
> gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -I. -I.././bfd -I.././bfd/../include -I./../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c bfd.c -o bfd.o
> cc1: warnings being treated as errors
> bfd.c: In function `_bfd_abort':
> bfd.c:848: warning: `noreturn' function does return
> *** Error code 1

Sounds to me like your headers do not mark _exit as noreturn, and GCC
is not doing so automatically.  I don't remember how this is supposed
to work, but I thought GCC would automatically add the attribute.
What version of gcc is this?

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]