From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32595 invoked by alias); 22 Jun 2007 17:17:30 -0000 Received: (qmail 32581 invoked by uid 22791); 22 Jun 2007 17:17:29 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 22 Jun 2007 17:17:26 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 950D998176; Fri, 22 Jun 2007 17:17:24 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 25C2798138; Fri, 22 Jun 2007 17:17:23 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1I1mlP-0007mA-FW; Fri, 22 Jun 2007 13:17:39 -0400 Date: Fri, 22 Jun 2007 17:17:00 -0000 From: Daniel Jacobowitz To: Jonah Simandjuntak , binutils@sourceware.org Cc: gdb@sourceware.org Subject: Re: gdb 6.6 build fails on Solaris 9 Message-ID: <20070622171739.GA29846@caradoc.them.org> Mail-Followup-To: Jonah Simandjuntak , binutils@sourceware.org, gdb@sourceware.org References: <20070622170420.GA15606@ip-68-178-164-59.ip.secureserver.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070622170420.GA15606@ip-68-178-164-59.ip.secureserver.net> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00197.txt.bz2 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