From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29170 invoked by alias); 13 Mar 2011 13:26:15 -0000 Received: (qmail 29139 invoked by uid 22791); 13 Mar 2011 13:26:15 -0000 X-SWARE-Spam-Status: No, hits=-51.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 13 Mar 2011 13:26:11 +0000 From: "bruno at clisp dot org" To: gdb-prs@sourceware.org Subject: [Bug build/12576] New: build failure when using non-gcc compiler X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bruno at clisp dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 13 Mar 2011 13:26:00 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q1/txt/msg00197.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12576 Summary: build failure when using non-gcc compiler Product: gdb Version: 7.2 Status: NEW Severity: normal Priority: P2 Component: build AssignedTo: unassigned@sourceware.org ReportedBy: bruno@clisp.org Building gdb-7.2 on Solaris 2.6 with CC="cc" I get these two compilation errors: source='dwarf2loc.c' object='dwarf2loc.o' libtool=no DEPDIR=.deps depmode=dashXmstdout /bin/ksh ./../depcomp cc -O -I. -I. -I./common -I./config -DLOCALEDIR="\"/home/haible/prefix-solaris6-sparc/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode -I./../opcodes/.. -I./../readline/.. -I../bfd -I./../bfd -I./../include -I../libdecnumber -I./../libdecnumber -I./../intl -I./gnulib -Ignulib -DMI_OUT=1 -DTUI=1 -O -c -o dwarf2loc.o dwarf2loc.c "dwarf2loc.c", line 263: void function cannot return value "dwarf2loc.c", line 1073: void function cannot return value ... cc: acomp failed for dwarf2loc.c gmake[2]: *** [dwarf2loc.o] Error 2 The fix is to remove the "return" keyword from dwarf2loc.c:263 and dwarf2loc.c:1073. GCC is the only compiler that supports 'return' of void values. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.