Обсуждение: Error with LEX code generation on hpux10.20

Поиск
Список
Период
Сортировка

Error with LEX code generation on hpux10.20

От
Víctor López
Дата:
Hi,
we are working down here in Chile, near to SoudthAmerica.
i have problems triying to generate code with lex over HP Station with HP-UX
10.20, i´ll appreciate if somebody can help me in order to fix that, pls::

HP-UX 10.20> lex alcatel.l
"alcatel.l" line 69: error 4: Parse tree too big
60/60 nodes(%e), 0/2500 positions(%p), 1/500 (%n), 0 transitions, 0/1000
packed char classes(%k), 0/2000 packed transitions(%a), 0/3000 output
slots(%o)


I attach an similar problem description gotten from Internet that looks like
as i have in this time:

Best regards, Víctor


<<<<<<------------------------------------------------------------------->>>
>>>>>
From: Jerome V <jerome.verleyen@insa-tlse.fr>
       To: pgsql-admin@postgresql.org
       Subject: Error in compilation on hpux10.20
       Date: Thu, 15 Oct 1998 09:58:51 +0200
Hi

I'm trying to install PostgreSQL 6.3.2 on hp Station with hpux10.10, but
there is a error occuring during the compilation of pgc.l:

..../....
gmake[3]: Entering directory `/opt/pgsql/src/interfaces/ecpg/preproc'
/opt/bison/bin/bison -y -d preproc.y
cc -I../../../include -I../../../backend   -W
l,-E -Ae   -I../include -DMAJOR_VERSION=1 -DMINOR_VERSION=1 -DPATCHLEVEL=0
-DINCLUDE_PATH=\"/opt/pgsql/include\"   -c y.tab.c -o y.tab.o lex  -t pgc.l
> pgc.c
"pgc.l" line 157: warning 22: Executable statements should occur right after
%%
"pgc.l" line 206: error 3: Parse tree too big, Try using %e num
1000/1000 nodes(%e), 0/2500 positions(%p), 1/500 (%n), 0 transitions,
0/1000 packed char classes(%k), 0/2000 packed transitions(%a), 0/0 output
slots(%o)
gmake[3]: *** [pgc.c] Error 1
rm pgc.c
gmake[3]: Leaving directory `/opt/pgsql/src/interfaces/ecpg/preproc'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/opt/pgsql/src/interfaces/ecpg'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/opt/pgsql/src/interfaces'
gmake: *** [all] Error 2

Is somebody knows what to do ?
I'm searching a patch, but i see nothing for this!

Thank's a lot.

Jerome Verleyen
INSA, Dpt Genie Mecanique
Complexe Scientifique de Rangueil
31077 Toulouse Cedex 04
Jerome.Verleyen@insa-tlse.fr


Re: Error with LEX code generation on hpux10.20

От
Tom Lane
Дата:
=?iso-8859-1?Q?V=EDctor_L=F3pez?= <vlopez@amr.cl> writes:
> i have problems triying to generate code with lex over HP Station with HP-UX
> 10.20, i�ll appreciate if somebody can help me in order to fix that, pls::

> HP-UX 10.20> lex alcatel.l
> "alcatel.l" line 69: error 4: Parse tree too big
> 60/60 nodes(%e), 0/2500 positions(%p), 1/500 (%n), 0 transitions, 0/1000
> packed char classes(%k), 0/2000 packed transitions(%a), 0/3000 output
> slots(%o)

Don't use lex, but flex.  Or read the man page for lex about how to
increase its internal table sizes.

            regards, tom lane