This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug build/12576] New: build failure when using non-gcc compiler
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 13 Mar 2011 13:26:10 +0000
- Subject: [Bug build/12576] New: build failure when using non-gcc compiler
- Auto-submitted: auto-generated
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.