Discussion:
[Bug build/13835] New: Build fails on SLES 10 (PPC)
chris.january at allinea dot com
2012-03-12 15:42:49 UTC
Permalink
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: ***@sourceware.org
ReportedBy: ***@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.
rguenther at suse dot de
2012-07-19 12:07:26 UTC
Permalink
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.
schwab@linux-m68k.org
2012-07-19 12:22:13 UTC
Permalink
http://sourceware.org/bugzilla/show_bug.cgi?id=13835

--- Comment #2 from Andreas 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.
emachado at sourceware dot org
2012-07-31 15:54:52 UTC
Permalink
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.
tromey at sourceware dot org
2018-08-07 17:34:21 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=13835

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |tromey at sourceware dot org
Resolution|--- |FIXED

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
I'm going to close this on account of age and also because there
is a workaround.
Please reopen if is still relevant.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...