Sign in Join

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

Mailing lists / fpc-devel / 2010-10

cpstrnew branch (was: Alternative parsers)

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Jonas Maebe
Jonas Maebe wrote 11 lines
On 19 Oct 2010, at 12:47, Graeme Geldenhuys wrote: > Anyway, just downloaded and installed a fresh copy of FPC 2.4.0 from > SourceForge. "make cycle FPC=..." still fails.... I when I have the time, > I'll take another look, but I can't spend more time on it now. > > Did you actually test the cpstrnew branch by compiling it yourself - after > the merge? Yes, but it was on Mac OS X. At first sight, there are however no differences between the Makefile.fpc of the cpstrnew branch and the one in trunk (other than that trunk as an extra iso7185 unit for iso mode support), so I'm not sure what's going on in what you posted. I have to run now, I'll look into it later.

I've now tested on Linux/x86-64 and it works fine there as well. Are you sure your local copy of rtl/linux/Makefile matches http://svn.freepascal.org/svn/fpc/branches/cpstrnew/rtl/linux/Makefile ?

The output you posted suggests that your Makefile compiles the RTL units in a different order than the Makefile in svn.

Jonas

Reply by email

Graeme Geldenhuys
to Jonas Maebe

Op 2010-10-20 10:18, Jonas Maebe het geskryf:

The output you posted suggests that your Makefile compiles the RTL units in a different order than the Makefile in svn.

Indeed that seems to have been the problem. I did a 'git clean' which reset/reverted any tracked files, and removed any non-tracked (not in source control), leaving a completely clean directory hierarchy. A 'make all' then successfully compiler the RTL and compiler. I did get a compiler error in chmreader.pas, but that is not something I would worry about, because that is in the packages (FCL) directory.

Thank you for your help, and sorry for all the trouble.

PS:
Is there a make command to only compile the RTL and compiler? Excludes the FCL. Would that be the 'make cycle' from inside the src/compiler/ directory? I better go reread the BuildFAQ document. :)

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/

Reply by email

Jonas Maebe
to Graeme Geldenhuys: Op 2010-10-20 10:18, Jonas Maebe het geskryf: Indeed that seems to have been the problem.…
Graeme Geldenhuys wrote
I did get a compiler error in chmreader.pas, but that is not something I would worry about, because that is in the packages (FCL) directory.
I think it is caused by a bug in the cpstrnew compiler (unrelated to any merging). That code passes an array of widechar to a routine expecting an ansistring (tstringlist.add), and the error is
  chmreader.pas(1235,25) Error: Incompatible type for arg no. 2: Got "Boolean", expected "Word"

That suggests the error is in a call to an internal RTL conversion routine generated by the compiler (since tstringlist.add only has one parameter and it's not a word) to convert the array of widechar to ansistring.

Show quoted text 6 lines
Thank you for your help, and sorry for all the trouble. PS: Is there a make command to only compile the RTL and compiler? Excludes the FCL. Would that be the 'make cycle' from inside the src/compiler/ directory?

Yes.

Jonas

Reply by email