On Thu, Jan 19, 2006 at 11:14:10PM +0100, Pierre Y. wrote:
> Hi,
>=20
> Todays CVS of Firebird 2.0 Beta 2 build fails on my linux (GCC 3.4.5) :
>=20
> zebulon src # g++ -DBOOT_BUILD -I../src/include/gen -I../src/include
> -I../src/vulcan -I../extern/icu/source/common
> -I../extern/icu/source/i18n -DNAMESPACE=3DVulcan -ggdb -O3 -march=3Di58=
6
> -mcpu=3Di686 -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pip=
e
> -MMD -fPIC -fmessage-length=3D0 -DPROD_BUILD -c ../src/dsql/parse.cpp -=
o
> ../temp/boot/dsql/parse.o
> `-mcpu=3D' is deprecated. Use `-mtune=3D' or '-march=3D' instead.
> ../src/dsql/parse.cpp: In function `int dsql_yyparse(USHORT, USHORT,
> USHORT, bool*)':
> ../src/dsql/parse.cpp:9881: error: expected primary-expression before =
=C2=AB
> __attribute__ =C2=BB
> ../src/dsql/parse.cpp:9881: error: expected `;' before =C2=AB __attribu=
te__ =C2=BB
I had the same problem with GCC 4. Try to delete this section in
src/dsql/parse.cpp (starting with line 9878):
--- cut here
/* Suppress GCC warning that yyerrlab1 is unused when no action
invokes YYERROR. */
#if defined (__GNUC_MINOR__) && 2093 <=3D (__GNUC__ * 1000 + __GNUC_MINOR=
__)
__attribute__ ((__unused__));
#endif
--- cut here
or add=20
&& (__GNUC__ * 1000 + __GNUC_MINOR__) < 3004
to the line with '#if'.
Michal Kubecek
|