This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gdb 6.6 build fails on Solaris 9
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jonah Simandjuntak <jonahs at tiopan dot com>, binutils at sourceware dot org
- Cc: gdb at sourceware dot org
- Date: Fri, 22 Jun 2007 13:17:39 -0400
- Subject: Re: gdb 6.6 build fails on Solaris 9
- References: <20070622170420.GA15606@ip-68-178-164-59.ip.secureserver.net>
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