Sign in Join

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

Mailing lists / fpc-pascal / 2005-09

compiling html docs from svn

9 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Bob Barry

A few weeks ago I was able to compile fpcdocs from svn with a script:

SVNDIR=/usr/portage/distfiles/svn-src
BUILDDIR=/home/bobb/freepascal/svn/fpcdocs
rm -rf ${BUILDDIR}
tar -C ${SVNDIR} -cO --exclude .svn fpcdocs | tar -C ${BUILDDIR%/*} -x cd ${BUILDDIR}
make htmlinstall PP=/usr/bin/ppc386

With the same script, current svn docs start building OK, but bomb out with:

Appendix C.
(./messages.inc
No file user.4tc
[467]

LaTeX Warning: Reference `option:Ch' on page 468 undefined on input line 45.

[468]

! LaTeX Error: Command \item invalid in math mode.

See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help.
...

l.120 \item
[Error: Illegal enum minimum-size specifier "arg1"] ?

Running "make html" gives exactly the same result. Running "make pdf" fails similarly, with:
l.120 ...legal enum minimum-size specifier "arg1"] Running make txt succeeds (but that's not what I want).

Is this fixable? Is it just a temporary "indisposition" of the fpdocs svn?

Thanks,

Bob Barry

Michael Van Canneyt
to Bob Barry
Bob Barry wrote 7 lines
Running "make html" gives exactly the same result. Running "make pdf" fails similarly, with: l.120 ...legal enum minimum-size specifier "arg1"] Running make txt succeeds (but that's not what I want). Is this fixable? Is it just a temporary "indisposition" of the fpdocs svn?

It is hopefully fixed now.

Out of curiosity: Why do you build the docs manually ?

Michael.

Bob Barry

Michael -

you wrote
> Running "make pdf" fails similarly, with: >    l.120 ...legal enum minimum-size specifier "arg1"] It is hopefully fixed now.

Thanks for your effort and response. I've updated from svn and tried "make html", but behaviour was exactly the same as before. Maybe the change is slow to get thru svn - I'll try again after a bit.

Out of curiosity: Why do you build the docs manually ?

I've made an fpc package (for Gentoo) from svn which includes binaries, libs, source, and (cross fingers) documentation. This assures that all parts of the package come from the same snapshot, and that the content of the package can easily be installed, queried, updated, or deleted.

Thanks,

Bob Barry

Bob Barry

Michael -

you wrote
It is hopefully fixed now.

I still see the same error with the latest svn. I've attached a log of "make html" - please look it over and see if you can spot the problem.

Thanks,

Bob Barry

Jose Pascual
to Bob Barry

Hi,

I have a program that don't work if I declare a local array of 15000 bytes, but it works if the array is
only for 500 bytes,

Where is the problem? frame, heap, stack?
how can I increase the memory for local vars in procedure/functions?

tia
best regards

Jose Pascual
to Bob Barry: Michael - I still see the same error with the latest svn. I've attached a log of "make…

Hi,

I have read in docs for freepascal "If a set has less than 32 elements, it is coded as an unsigned 32-bit value. Otherwise it is coded as a 8 element array of 32-bit unsigned values (cardinal) (hence a size of 256 bytes)."

Has it changed in fpc 2.x.x?

I have a enum with 60 differents values and Delphi is packing in 8 bytes (int64), Is there some option
or switch for fpc 2.x.x does the same paking?

tia!

best regards

Anton Tichawa
to Jose Pascual: I have a program that don't work if I declare a local array of 15000 bytes, but it works…
Jose Pascual wrote 18 lines
Hi, I have a program that don't work if I declare a local array of 15000 bytes, but it works if the array is only for 500 bytes, Where is the problem? frame, heap, stack? how can I increase the memory for local vars in procedure/functions? tia best regards _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

fpc command line options (my version is still 1.06)

-Csxxx Set stack size to xxx.

Try e. g. -Cs100000. This applies to an array which is local to a procedure or function. If this doesn't help, please post more info (error message, OS, source code).

Anton.

Peter Vreman
to Jose Pascual: I have read in docs for freepascal "If a set has less than 32 elements, it is coded as an…
Show quoted text 8 lines
Hi, I have read in docs for freepascal "If a set has less than 32 elements, it is coded as an unsigned 32-bit value. Otherwise it is coded as a 8 element array of 32-bit unsigned values (cardinal) (hence a size of 256 bytes)." Has it changed in fpc 2.x.x?

No

I have a enum with 60 differents values and Delphi is packing in 8 bytes (int64), Is there some option or switch for fpc 2.x.x does the same paking?

No

Peter Vreman
to Jose Pascual: I have a program that don't work if I declare a local array of 15000 bytes, but it works…
Show quoted text 7 lines
Hi, I have a program that don't work if I declare a local array of 15000 bytes, but it works if the array is only for 500 bytes, Where is the problem? frame, heap, stack?

Stackframe. Most of the time it is a buffer overrun or an not initialized variable.

how can I increase the memory for local vars in procedure/functions?

There is no way. Most OS's let the stack grow when needed. The stacksize option (-Cs) only helps when stackchecking is turned on.