Sign in Join

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

Mailing lists / lazarus / 2008-08

Cannot compile lazarus

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Luca Olivetti

Ok, I'm trying to use the svn version under windows (I usually do that under linux, but up until now I just used the snapshots under windows) and I cannot compile.
Given that the file with errors hasn't been updated in a while and there's a snapshot for today, I'm surely doing something stupid. I installed the fpc-2.2.2 using the binary installer, it's at its default location (c:\fpc\2.2.2), c:\fpc\2.2.2\bin\i386-win32 is in the path and no other version of fpc is.
c:\fpc\2.2.2\bin\i386-win32\fpc.cfg seems ok (compared that the one that's in the snapshot, the only difference is obviously in the paths) and there's no other fpc.cfg in sight (apart from the one in the snapshot, but that's not in the path).
Just in case, I also renamed the lazarus configuration directory (under c:\documents and settings)

(I'm omitting the result of make clean)

C:\lazsvn>make
make -C lcl all
make[1]: Entering directory `C:/lazsvn/lcl'
C:/FPC/2.2.2/bin/i386-Win32/rm.exe -f units/i386-win32/alllclunits.ppu C:/FPC/2.2.2/bin/i386-Win32/ppc386.exe -gl -Fu. -Fuforms -Fuwidgetset -Fiinclude
-FE. -FUunits/i386-win32 -di386 alllclunits.pp
Free Pascal Compiler version 2.2.2 [2008/08/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Win32 for i386
Compiling alllclunits.pp
Compiling lclversion.pas
Compiling lclstrconsts.pas
Writing Resource String Table file: lclstrconsts.rst Compiling fpcadds.pas
Compiling lazlinkedlist.pas
Compiling dynhasharray.pp
Compiling lclproc.pas
Compiling avglvltree.pas
Compiling fileutil.pas
Compiling masks.pas
Compiling lclproc.pas
Compiling fileutil.pas
fileutil.inc(844,38) Error: Incompatible type for arg no. 1: Got "AnsiString", expected "PChar"
fileutil.inc(868,69) Error: Wrong number of parameters specified for call to "GetEnvironmentVariable"
fileutil.inc(889,28) Error: Incompatible type for arg no. 1: Got "AnsiString", expected "PChar"
fileutil.pas(271) Fatal: There were 3 errors compiling module, stopping Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `C:/lazsvn/lcl'
make: *** [lcl] Error 2

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007

Reply by email

Paul Ishenin
to Luca Olivetti
Luca Olivetti wrote 9 lines
En/na Luca Olivetti ha escrit: > Given that the file with errors hasn't been updated in a while > Actually fileutils has been updated today. I had to go back to revision 16222.

Just update once again. svn can contain bugs. Usually developers check their work on one - two widgetsets. But error can appear on third :) Simple name conflict.

Best regards,
Paul Ishenin.

Reply by email

Luca Olivetti
to Paul Ishenin

En/na Paul Ishenin ha escrit:

Show quoted text 10 lines
Luca Olivetti wrote: > En/na Luca Olivetti ha escrit: > > >> Given that the file with errors hasn't been updated in a while >> > Actually fileutils has been updated today. I had to go back to revision > 16222. > Just update once again. svn can contain bugs.

Yes, I know that, but this time I just thought *I* did something stupid (didn't see that the file had actually been modified). It's fixed now, thank you.

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007

Reply by email