Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-09

h2pas won't compile

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Santhoff

Hi,

trying to fiddle with h2pas it cannot be compiled:

$ gmake h2pas
gmake -C h2pas all
gmake[1]: Entering directory `/usr/home/marc/fpc-2.0.2/share/src/fpc-2.0.2/utils/h2pas' /usr/local/bin/pyacc h2pas.y
TP Yacc Version 4.1a [April 2000], Copyright (c) 1990-2000 Albert Graef parse ... sort ... closures ... first sets ...
FATAL: integer set overflow
gmake[1]: *** [h2pas.pas] Fehler 1
gmake[1]: Leaving directory `/usr/home/marc/fpc-2.0.2/share/src/fpc-2.0.2/utils/h2pas' gmake: *** [h2pas] Fehler 2

I'm using fpc 2.0.2 release on FreeBSD 4.11.

How can this be handled?

TIA,
Marc

God is real, unless declared integer.

Reply by email

Florian Klaempfl
to Marc Santhoff
Marc Santhoff wrote 18 lines
Hi, trying to fiddle with h2pas it cannot be compiled: $ gmake h2pas gmake -C h2pas all gmake[1]: Entering directory `/usr/home/marc/fpc-2.0.2/share/src/fpc-2.0.2/utils/h2pas' /usr/local/bin/pyacc h2pas.y TP Yacc Version 4.1a [April 2000], Copyright (c) 1990-2000 Albert Graef parse ... sort ... closures ... first sets ... FATAL: integer set overflow gmake[1]: *** [h2pas.pas] Fehler 1 gmake[1]: Leaving directory `/usr/home/marc/fpc-2.0.2/share/src/fpc-2.0.2/utils/h2pas' gmake: *** [h2pas] Fehler 2 I'm using fpc 2.0.2 release on FreeBSD 4.11. How can this be handled?

Did you change it? If yes, please post the changes. Yacc is something very hairy.

Reply by email

Marc Santhoff
to Florian Klaempfl
Florian Klaempfl wrote 21 lines
Marc Santhoff wrote: > Hi, > > trying to fiddle with h2pas it cannot be compiled: > > $ gmake h2pas > gmake -C h2pas all > gmake[1]: Entering directory `/usr/home/marc/fpc-2.0.2/share/src/fpc-2.0.2/utils/h2pas' > /usr/local/bin/pyacc h2pas.y > TP Yacc Version 4.1a [April 2000], Copyright (c) 1990-2000 Albert Graef > parse ... sort ... closures ... first sets ... > FATAL: integer set overflow > gmake[1]: *** [h2pas.pas] Fehler 1 > gmake[1]: Leaving directory `/usr/home/marc/fpc-2.0.2/share/src/fpc-2.0.2/utils/h2pas' > gmake: *** [h2pas] Fehler 2 > > I'm using fpc 2.0.2 release on FreeBSD 4.11. > > How can this be handled? Did you change it? If yes, please post the changes. Yacc is something very hairy.

No, not yet. Besides that I commented out one line and tried to reactivate it later because of the error (which persists) I did not change anything.

The problem for me is that when converting enum types to a list of constants (h2pas -e) there is one semicolon too much put at the end of the list.

So I wanted to try deactivating line 931 of h2pas.y version 1.10 to check whether it helps or not.

If it's a known bug or fixed already I can wait since I've started preparing a compiler switch to 2.0.4.

Marc

Experience is directly proportional to the cost of the equipment ruined.

Reply by email