Sign in Join

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

Mailing lists / lazarus / 2014-01

FPC and Lazarus trunk

13 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

waldo kitty

i've just updated my FPC trunk and now my Lazarus trunk won't compile...

***************************************************************************
* TASK: before svn update...
* CMND: make distclean
*
[trim]
*
* "make distclean" complete...
***************************************************************************

***************************************************************************
* TASK: updating lazarus from svn...
* CMND: TortoiseProc /command:update /path:"c:\freepascal\laz" *
* "TortoiseProc /command:update /path:"c:\freepascal\laz"" complete... ***************************************************************************

***************************************************************************
* TASK: build lazbuild, startlazarus and necessary tools...
* CMND: make OPT="-gl -gh -dHEAPTRC_WINDOW" lazbuild lcl basecomponents starter bigidecomponents lhelp
*
make -C packager/registration
make[1]: Entering directory `c:/freepascal/laz/packager/registration' c:/freepascal/binutils/i386-win32/rm.exe -f ../units/i386-win32/fcllaz.ppu c:/freepascal/fpc/trunk/bin/i386-win32/ppc386.exe -MObjFPC -Scghi -O1 -g -gl -vewnhi -l -Fu. -FE. -FU../units/i386-win32 -gl -gh -dHEAPTRC_WINDOW -di386 fcllaz.pas
Hint: Start of reading config file c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg Hint: End of reading config file c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.7.1 [2014/01/10] for i386 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Win32 for i386
Compiling fcllaz.pas
Compiling registerfcl.pas
Compiling lazaruspackageintf.pas
PPU Loading C:\freepascal\fpc\trunk\units\i386-win32\rtl\variants.ppu PPU Source: variants.pp not available
Recompiling variants, checksum changed for System
Fatal: Can't find unit variants used by db
Fatal: Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory `c:/freepascal/laz/packager/registration' make: *** [registration] Error 2

NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted.

Reply by email

patspiper
to waldo kitty: i've just updated my FPC trunk and now my Lazarus trunk won't compile...…
waldo kitty wrote 56 lines
i've just updated my FPC trunk and now my Lazarus trunk won't compile... *************************************************************************** * TASK: before svn update... * CMND: make distclean * [trim] * * "make distclean" complete... *************************************************************************** *************************************************************************** * TASK: updating lazarus from svn... * CMND: TortoiseProc /command:update /path:"c:\freepascal\laz" * * "TortoiseProc /command:update /path:"c:\freepascal\laz"" complete... *************************************************************************** *************************************************************************** * TASK: build lazbuild, startlazarus and necessary tools... * CMND: make OPT="-gl -gh -dHEAPTRC_WINDOW" lazbuild lcl basecomponents starter bigidecomponents lhelp * make -C packager/registration make[1]: Entering directory `c:/freepascal/laz/packager/registration' c:/freepascal/binutils/i386-win32/rm.exe -f ../units/i386-win32/fcllaz.ppu c:/freepascal/fpc/trunk/bin/i386-win32/ppc386.exe -MObjFPC -Scghi -O1 -g -gl -vewnhi -l -Fu. -FE. -FU../units/i386-win32 -gl -gh -dHEAPTRC_WINDOW -di386 fcllaz.pas Hint: Start of reading config file c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg Hint: End of reading config file c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.7.1 [2014/01/10] for i386 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling fcllaz.pas Compiling registerfcl.pas Compiling lazaruspackageintf.pas PPU Loading C:\freepascal\fpc\trunk\units\i386-win32\rtl\variants.ppu PPU Source: variants.pp not available Recompiling variants, checksum changed for System Fatal: Can't find unit variants used by db Fatal: Compilation aborted make[1]: *** [fcllaz.ppu] Error 1 make[1]: Leaving directory `c:/freepascal/laz/packager/registration' make: *** [registration] Error 2

Search for variants.* especially in the install folder as there may be several dangling ones due to recent changes in 2.7.1. If more then one is found, it would be better to clean all object files thoroughly.

Stephano

Reply by email

leledumbo
to patspiper
Search for variants.* especially in the install folder as there may be

several dangling ones due to recent changes in 2.7.1. If more then one is found, it would be better to clean all object files thoroughly.

Got it, instead of rtl and objpas, there are rtl and rtl-objpas directories now. The latter seems that recent changes you're talking about.

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPC-and-Lazarus-trunk-tp4035310p4035316.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

Marco van de Voort
to waldo kitty: i've just updated my FPC trunk and now my Lazarus trunk won't compile...…
waldo kitty wrote 20 lines
i've just updated my FPC trunk and now my Lazarus trunk won't compile... -vewnhi -l -Fu. -FE. -FU../units/i386-win32 -gl -gh -dHEAPTRC_WINDOW -di386 fcllaz.pas Hint: Start of reading config file c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg Hint: End of reading config file c:\freepascal\fpc\trunk\bin\i386-win32\fpc.cfg Free Pascal Compiler version 2.7.1 [2014/01/10] for i386 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling fcllaz.pas Compiling registerfcl.pas Compiling lazaruspackageintf.pas PPU Loading C:\freepascal\fpc\trunk\units\i386-win32\rtl\variants.ppu PPU Source: variants.pp not available Recompiling variants, checksum changed for System Fatal: Can't find unit variants used by db Fatal: Compilation aborted make[1]: *** [fcllaz.ppu] Error 1 make[1]: Leaving directory `c:/freepascal/laz/packager/registration' make: *** [registration] Error 2

Wipe (or move out the compiler's unit path) the rtl/ directory in the installed FPC, and rebuild FPC.

Note that not erasing the unit dir when doing a snapshot update is a bad idea for exactly this reason (moving an unit in SVN will permanently leave multiple compiled versions in the units dir)

Reply by email

waldo kitty
to Marco van de Voort
Marco van de Voort wrote
On Fri, Jan 10, 2014 at 07:23:18PM -0500, waldo kitty wrote: >

[...]

Show quoted text 11 lines
> PPU Loading C:\freepascal\fpc\trunk\units\i386-win32\rtl\variants.ppu > PPU Source: variants.pp not available > Recompiling variants, checksum changed for System > Fatal: Can't find unit variants used by db > Fatal: Compilation aborted > make[1]: *** [fcllaz.ppu] Error 1 > make[1]: Leaving directory `c:/freepascal/laz/packager/registration' > make: *** [registration] Error 2 Wipe (or move out the compiler's unit path) the rtl/ directory in the installed FPC, and rebuild FPC.

i will do that when power returns... extremely high winds have lead to a lot of damage in this area :(

Note that not erasing the unit dir when doing a snapshot update is a bad idea for exactly this reason (moving an unit in SVN will permanently leave multiple compiled versions in the units dir)

that's why i run make clean and/or make distclean before updating from SVN... past discussions say that this should avoid this problem... but, as you and another noted, evidently the fpc config is pointing to the (now old) rtl directory and that needs to be changed, too...

in any case, thanks for all responses on this... when power returns, i'll be revisiting this ;)

NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted.

Reply by email

FreeMan
to waldo kitty

I had same problem, but after one more update to:
fpc svn update 26427
lazarus svn update 43710
Kubuntu 13.10 x64
I don't know how and why but Now IDE builded,
projects and components are compiled. My project builded and running. But, I installed rxgrid, when click on objectinspecter for create event, open rxgrid.pas and this message popup

"Unable to create new method. Please fix the error shown in the message window, which is normally below the source editor. "

and message window has this error:
/home/lazarus/components/rx/rxdbgrid.pas(832,62) Error: unit not found: variants

another test:
open new project, add "variants" on uses of unit (code complied works here) then dblclick on OnActivate property on Objectinsp. created event in editor. Then dblclick on "OnChangeBounds" event property, editor create headers too, but, message windows has this error. but project compiling and running, this is very strange
---------------------------------------------
unit1.pas(8,75) Error: unit not found: variants

another test:
when first try code complied (form uses has variants), this error accur and code complied not work.

another test:
/opt/freepascal/2.7.1/packages/rtl-objpas/src/inc
this folder not in search path,
easy test, add any pp file (from this folder convutil.pp, dateutil.pp, variants.pp etc ) to form's uses and try ctrl + left click, not underline and not jump to that file.

Show quoted text 9 lines
>> PPU Loading C:\freepascal\fpc\trunk\units\i386-win32\rtl\variants.ppu >> PPU Source: variants.pp not available >> Recompiling variants, checksum changed for System >> Fatal: Can't find unit variants used by db >> Fatal: Compilation aborted >> make[1]: *** [fcllaz.ppu] Error 1 >> make[1]: Leaving directory `c:/freepascal/laz/packager/registration' >> make: *** [registration] Error 2 >

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140112/1e18c79c/attachment.html>

Reply by email

patspiper
to FreeMan
FreeMan wrote 35 lines
I had same problem, but after one more update to: fpc svn update 26427 lazarus svn update 43710 Kubuntu 13.10 x64 I don't know how and why but Now IDE builded, projects and components are compiled. My project builded and running. But, I installed rxgrid, when click on objectinspecter for create event, open rxgrid.pas and this message popup "Unable to create new method. Please fix the error shown in the message window, which is normally below the source editor. " and message window has this error: /home/lazarus/components/rx/rxdbgrid.pas(832,62) Error: unit not found: variants another test: open new project, add "variants" on uses of unit (code complied works here) then dblclick on OnActivate property on Objectinsp. created event in editor. Then dblclick on "OnChangeBounds" event property, editor create headers too, but, message windows has this error. but project compiling and running, this is very strange --------------------------------------------- unit1.pas(8,75) Error: unit not found: variants another test: when first try code complied (form uses has variants), this error accur and code complied not work. another test: /opt/freepascal/2.7.1/packages/rtl-objpas/src/inc this folder not in search path, easy test, add any pp file (from this folder convutil.pp, dateutil.pp, variants.pp etc ) to form's uses and try ctrl + left click, not underline and not jump to that file.

Did you try Tools/Rescan FPC source directory?

Stephano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140112/40878092/attachment.html>

Reply by email

FreeMan
to patspiper

Thank you Stephano
was not, and now FIXED. for me.
Which file contain this infos?

12-01-2014 12:44 tarihinde, patspiper yazd?:

Show quoted text 10 lines
Did you try Tools/Rescan FPC source directory? Stephano -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140112/22fa18d7/attachment.html>

Reply by email

FreeMan
to FreeMan

I found it, maybe some one need so I'm writing
fpcdefines.xml in this file has it.

My system is kubuntu 13.10 x64 and this file and other settings file in this folder "/home/username/.lazarus"

12-01-2014 13:26 tarihinde, FreeMan yazd?:

Thank you Stephano was not, and now FIXED. for me. Which file contain this infos?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140112/32a31e3a/attachment.html>

Reply by email

waldo kitty
to Marco van de Voort
Marco van de Voort wrote 6 lines
On Sat, Jan 11, 2014 at 01:54:06PM -0500, waldo kitty wrote: > that's why i run make clean and/or make distclean before updating from SVN... That should remove it from the checkout dirs. But if you do a separate install step, the place you install too also should be sanitized. (though I have to admit I only do that on error myself too)

yeah, AFAIK, i don't do any type of "install" step... in the following, taskX is displayed on screen and in the log... stepX is the actual command executed for the task...

set task1=before svn update...
set step1=make distclean

set task2=updating lazarus from svn...
set step2=TortoiseProc /command:update /path:"%myLAZpath%"

set task3=build lazbuild, startlazarus and necessary tools... set step3=make OPT="-gl -gh -dHEAPTRC_WINDOW" lazbuild lcl basecomponents starter bigidecomponents lhelp

set task4=save existing lazarus.exe...
set step4=if exist lazarus.exe copy /y lazarus.exe lazarus.save.exe

set task5=Debug IDE
set step5=lazbuild.exe --build-ide="-gl -gh -dHEAPTRC_WINDOW" --build-mode="debug ide"

NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted.

Reply by email

waldo kitty
to Marco van de Voort: That should remove it from the checkout dirs. But if you do a separate install step, the…
Marco van de Voort wrote 6 lines
On Sat, Jan 11, 2014 at 01:54:06PM -0500, waldo kitty wrote: > that's why i run make clean and/or make distclean before updating from SVN... That should remove it from the checkout dirs. But if you do a separate install step, the place you install too also should be sanitized. (though I have to admit I only do that on error myself too)

ahh!! i see now that you are speaking of FPC and not LAZ... i've now removed the unit directory from both of my sets of dirs... FPC seems to have built OK and now LAZ is making its run... so far, it looks to be OK as well... especially since my last LAZ build log only hit 54K and the one for this build is well on its way to the ~450K that i normally see ;)

[time passes]

looks like it worked! :)

the FPC revision is/was 26447 but the code doesn't pull that info from this TortiseSVN... i suspect this is because of a database format change... been like this since i updated some time back :/

Lazarus 1.3 r42488 FPC 2.7.1 i386-win32-win32/win64

NOTE: No off-list assistance is given without prior approval. Please keep mailing list traffic on the list unless private contact is specifically requested and granted.

Reply by email