public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/13835] New: Build fails on SLES 10 (PPC)
@ 2012-03-12 15:43 chris.january at allinea dot com
  2012-07-19 12:07 ` [Bug build/13835] " rguenther at suse dot de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: chris.january at allinea dot com @ 2012-03-12 15:43 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13835

             Bug #: 13835
           Summary: Build fails on SLES 10 (PPC)
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: chris.january@allinea.com
    Classification: Unclassified


Building today's HEAD on SLES 10 SP1 (PPC970) host fails due to missing
prototypes for some yy* functions in ada-lex.c.

Target: powerpc64-suse-linux
gcc version 4.1.2 20070115 (prerelease) (SUSE Linux)
bison (GNU Bison) 2.1

Removing -Wmissing-prototypes from WARN_CFLAGS in Makefile allows the build to
continue.

rm -f ada-exp.c ada-exp.c.tmp
/bin/sh ./../ylwrap ada-exp.y y.tab.c ada-exp.c -- bison -y  && mv ada-exp.c
ada-exp.c.tmp \
    || (rm -f ada-exp.c; false)
sed -e '/extern.*malloc/d' \
     -e '/extern.*realloc/d' \
     -e '/extern.*free/d' \
     -e '/include.*malloc.h/d' \
     -e 's/\([^x]\)malloc/\1xmalloc/g' \
     -e 's/\([^x]\)realloc/\1xrealloc/g' \
     -e 's/\([ \t;,(]\)free\([ \t]*[&(),]\)/\1xfree\2/g' \
     -e 's/\([ \t;,(]\)free$/\1xfree/g' \
     -e '/^#line.*y.tab.c/d' \
     -e "s/^\(#line.*\)`basename ada-exp.y`/\1`echo ada-exp.y|sed
's/\//\\\\\//g'`/" \
  < ada-exp.c.tmp > ada-exp.c
rm -f ada-exp.c.tmp
gcc -g -O2 -mminimal-toc  -I. -I. -I./common -I./config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode
-I./../opcodes/.. -I./../readline/.. -I../bfd -I./../bfd -I./../include
-I../libdecnumber -I./../libdecnumber  -I./gnulib -Ignulib   -DTUI=1 
-I/usr/include/python2.4 -I/usr/include/python2.4 -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Werror -c -o ada-exp.o -MT ada-exp.o
-MMD -MP -MF .deps/ada-exp.Tpo ada-exp.c
cc1: warnings being treated as errors
In file included from ada-exp.y:765:
ada-lex.c:2183: warning: no previous prototype for ‘yyget_in’
ada-lex.c:2191: warning: no previous prototype for ‘yyget_out’
ada-lex.c:2199: warning: no previous prototype for ‘yyget_leng’
ada-lex.c:2208: warning: no previous prototype for ‘yyget_text’
ada-lex.c:2219: warning: no previous prototype for ‘yyset_in’
ada-lex.c:2224: warning: no previous prototype for ‘yyset_out’
ada-lex.c:2229: warning: no previous prototype for ‘yyget_debug’
ada-lex.c:2234: warning: no previous prototype for ‘yyset_debug’
ada-lex.c:2240: warning: no previous prototype for ‘yylex_destroy’
make[2]: *** [ada-exp.o] Error 1
make[2]: Leaving directory `/home/cjanuary/git/gdb-sles-10sp1-ppc64/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/cjanuary/git/gdb-sles-10sp1-ppc64'
make: *** [all] Error 2

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug build/13835] Build fails on SLES 10 (PPC)
  2012-03-12 15:43 [Bug build/13835] New: Build fails on SLES 10 (PPC) chris.january at allinea dot com
@ 2012-07-19 12:07 ` rguenther at suse dot de
  2012-07-19 12:22 ` schwab@linux-m68k.org
  2012-07-31 15:55 ` emachado at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenther at suse dot de @ 2012-07-19 12:07 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13835

rguenther at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenther at suse dot de

--- Comment #1 from rguenther at suse dot de 2012-07-19 12:07:26 UTC ---
Confirmed, I see this as well.  Can this be fixed please?

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug build/13835] Build fails on SLES 10 (PPC)
  2012-03-12 15:43 [Bug build/13835] New: Build fails on SLES 10 (PPC) chris.january at allinea dot com
  2012-07-19 12:07 ` [Bug build/13835] " rguenther at suse dot de
@ 2012-07-19 12:22 ` schwab@linux-m68k.org
  2012-07-31 15:55 ` emachado at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2012-07-19 12:22 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13835

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> 2012-07-19 12:22:13 UTC ---
You can always configure with --disable-werror.

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug build/13835] Build fails on SLES 10 (PPC)
  2012-03-12 15:43 [Bug build/13835] New: Build fails on SLES 10 (PPC) chris.january at allinea dot com
  2012-07-19 12:07 ` [Bug build/13835] " rguenther at suse dot de
  2012-07-19 12:22 ` schwab@linux-m68k.org
@ 2012-07-31 15:55 ` emachado at sourceware dot org
  2 siblings, 0 replies; 4+ messages in thread
From: emachado at sourceware dot org @ 2012-07-31 15:55 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13835

Edjunior Machado <emachado at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |emachado at sourceware dot
                   |                            |org

--- Comment #3 from Edjunior Machado <emachado at sourceware dot org> 2012-07-31 15:54:52 UTC ---
I also confirm this is still happening on upstream gdb. This seems to be due to
an old version of flex on SLES10 (flex 2.5.31), and is not reproducible if
you're using 2.5.35.
As suggested by Andreas, './configure --disable-werror' also avoids the
problem.

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-31 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-12 15:43 [Bug build/13835] New: Build fails on SLES 10 (PPC) chris.january at allinea dot com
2012-07-19 12:07 ` [Bug build/13835] " rguenther at suse dot de
2012-07-19 12:22 ` schwab@linux-m68k.org
2012-07-31 15:55 ` emachado at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).