Recent

Author Topic: Making from trunk  (Read 3965 times)

Frederic Da Vitoria

  • Jr. Member
  • **
  • Posts: 73
Making from trunk
« on: June 27, 2013, 11:24:38 am »
Hello,

In order to test one of the bugs I am filing, one of the devs asked me to check wether the bug was still there in trunk. This makes sense. So I installed everything as in http://wiki.freepascal.org/Installing_Lazarus (section "Compiling/installing FPC and Lazarus from Sources of SVN (Win32)"), except that I used 2.6.3 as folder name instead of 2.6.1 and I edited makelaz accordingly. makefpc apparently ran successfully, but makelaz crashes. Here is the end of the output:

Quote
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/binutils/i386-win32/gmkdir.exe -p ../units/i386-win32
c:/freepascal/fpc/2.6.3/bin/i386-win32/ppc386.exe -MObjFPC -Scghi -O1 -g -gl -ve
wnhi -l -Fu. -FE. -FU../units/i386-win32 -glw2 -di386 fcllaz.pas
Hint: Start of reading config file c:\freepascal\fpc\2.6.3\bin\i386-win32\fpc.cf
g
Hint: End of reading config file c:\freepascal\fpc\2.6.3\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.6.3 [2013/06/26] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling fcllaz.pas
Fatal: Can't find unit system used by fcllaz
Fatal: Compilation aborted
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory `c:/freepascal/laz/packager/registration'
make: *** [registration] Error 2

I checked in the fcllaz.pas but I couldn't see any mention of the "system" unit in it, so that I don't even understand what the problem is.

Can someone help me?
davitof
Lazarus 1.0.10 + FPC 2.6.2 / Windows7 64bits

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6453
    • wiki
Re: Making from trunk
« Reply #1 on: June 27, 2013, 11:37:49 am »
Did you (after install) copy or move the folder that contains fpc?

If so, open fpc.cfg file, it contains path, that must be adapted

Frederic Da Vitoria

  • Jr. Member
  • **
  • Posts: 73
Re: Making from trunk
« Reply #2 on: June 27, 2013, 12:42:07 pm »
Yes, this solved my issue. Thanks.

Just out of curiosity, is there a good reason to keep the directory name to 2.6.1 when the actual version is 2.6.3?
davitof
Lazarus 1.0.10 + FPC 2.6.2 / Windows7 64bits

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3807
  • I like bugs.
Re: Making from trunk
« Reply #3 on: June 27, 2013, 01:09:44 pm »
Just out of curiosity, is there a good reason to keep the directory name to 2.6.1 when the actual version is 2.6.3?

No.
BTW, you don't need FPC trunk to install Lazarus trunk! I know the documentation is misleading. The page:
  http://wiki.freepascal.org/Getting_Lazarus
was meant to contain simple instructions. Then people added many things there, like competing install scripts etc.
I cleaned it couple of years ago but it should be cleaned more.

When you have FPC release version (like 2.6.2) installed, getting and building Lazarus trunk is very easy. Basically just:
 $ svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
 $ cd lazarus
 $ make all
 $ ./lazarus &
or the similar things with TortoiseSVN and Windows cmd-line. Later update with:
 $ svn up
Mostly Lazarus trunk on Manjaro Linux.

Frederic Da Vitoria

  • Jr. Member
  • **
  • Posts: 73
Re: Making from trunk
« Reply #4 on: June 27, 2013, 02:21:51 pm »
Thanks for the advice.

Being a Windows-only man (shame on me), I don't understand what "./lazarus &" does. Could you explain?
davitof
Lazarus 1.0.10 + FPC 2.6.2 / Windows7 64bits

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3807
  • I like bugs.
Re: Making from trunk
« Reply #5 on: June 27, 2013, 02:49:28 pm »
Being a Windows-only man (shame on me), I don't understand what "./lazarus &" does. Could you explain?

"./" is just the path definition for the current directory.
Unix systems typically don't include current directory in their PATH, so it must be given explicitly.
It is a security issue, you can search the web for details.

"&" detaches the process from the console, so I can use it for other commands while Lazarus is running.
Otherwise I would need to open another console for other commands.
Standard output from Lazarus still goes to the console which is handy during development.

Maybe you should try a modern Linux distro in a virtual machine for example.
I personally use Mint + KDE.
Mostly Lazarus trunk on Manjaro Linux.

Frederic Da Vitoria

  • Jr. Member
  • **
  • Posts: 73
Re: Making from trunk
« Reply #6 on: June 27, 2013, 03:07:11 pm »
Quote
Maybe you should try a modern Linux distro in a virtual machine for example.
Yes, now that I have a 64bit Windows and 8 GB RAM, I don't have any more excuses for not doing it  :-[
davitof
Lazarus 1.0.10 + FPC 2.6.2 / Windows7 64bits

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3807
  • I like bugs.
Re: Making from trunk
« Reply #7 on: June 27, 2013, 03:47:34 pm »
Yes, now that I have a 64bit Windows and 8 GB RAM, I don't have any more excuses for not doing it  :-[

One more thing:
If you want a good development environment, install Linux with a dual boot configuration instead of virtual machine.
Program code run almost at native speed in a virtual machine but disk operations are MUCH slower. It makes a big difference for development experience. For example finding a string in all Lazarus sources happens in no time when the files are cached. Windows caching is OK but Linux does it still better.
It affects compilation speed, too, and linking is faster in Linux already for other reasons.
Mostly Lazarus trunk on Manjaro Linux.

 

TinyPortal © 2005-2018