This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: build problem
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Sami Wagiaalla <swagiaal at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Fri, 19 Sep 2008 18:13:01 +0200
- Subject: Re: build problem
- References: <48D3CB81.7060409@redhat.com>
Hi Sami,
please install bison:
bison|yacc)
echo 1>&2 "\
WARNING: \`$1' $msg. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
...
if [ ! -f y.tab.c ]; then
echo 'main() { return 0; }' >y.tab.c
fi
Regards,
Jan
On Fri, 19 Sep 2008 17:55:45 +0200, Sami Wagiaalla wrote:
> Has anyone encountered this build problem ?
>
> gcc -g -O2 -I. -I../../gdb -I../../gdb/config
> -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
> -I../../gdb/../include/opcode -I../../gdb/../readline/.. -I../bfd
> -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber
> -I../../gdb/../libdecnumber -I../../gdb/gnulib -Ignulib -DMI_OUT=1
> -DTUI=1 -Wall -Wdeclaration-after-statement -Wpointer-arith
> -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch
> -Wno-char-subscripts -Werror -c -o c-exp.o -MT c-exp.o -MMD -MP -MF
> deps/c-exp.Tpo c-exp.c
> cc1: warnings being treated as errors
> c-exp.c:1: warning: return type defaults to ‘int’
> make[2]: *** [c-exp.o] Error 1
> make[2]: Leaving directory `/home/swagiaal/src/archer/build/gdb'
> make[1]: *** [all-gdb] Error 2
> make[1]: Leaving directory `/home/swagiaal/src/archer/build'
> make: *** [all] Error 2
>
> All generated files contains a single line:
>
> main() { return 0; }