Recent

Author Topic: [SOLVED] Don't understand buildfaq and make cycle  (Read 7370 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
[SOLVED] Don't understand buildfaq and make cycle
« on: June 25, 2011, 09:47:26 am »
I'm extending http://forge.lazarusforum.de/projects/lazupdater Lazupdater with git support and install from scratch functionality (http://forge.lazarusforum.de/issues/118).

Currently doing this on Windows but should be extended to Linux, OSX.

The build faq, paragraph 2.2, suggests that you can use make cycle to bootstrap the FPC compiler with an old version.

1. Therefore, I'm downloading FPC 2.4.2 binary (latest stable 2.4 version I could get a binary package from) and placing it in a temp directory, e.g. c:\windows\temp
2. Extract GIT/SVN FPC into e.g. c:\development\fpc\source
3. cd c:\development\fpc\source
4. make cycle PP=C:\windows\temp\ppc386.exe

Then I get make: *** No rule to make target `cycle'.  Stop.
(make all does seem to work)
What am I doing wrong? Is the buildfaq outdated and should I just use make all?
Or should I use make all, and repeat with the newly generated compiler?

Thanks.
« Last Edit: June 26, 2011, 10:10:56 am by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Don't understand buildfaq and make cycle
« Reply #1 on: June 25, 2011, 01:28:17 pm »

Then I get make: *** No rule to make target `cycle'.  Stop.
(make all does seem to work)
What am I doing wrong? Is the buildfaq outdated and should I just use make all?
Or should I use make all, and repeat with the newly generated compiler?

The buildfaq needs an update, but all the stuff in it is still valid.  The problem is you are trying in the wrong directory. The examples in 2.2 all first descend to compiler/. So

"make cycle" is in fpcsrc/compiler/

"make all" is in fpcsrc/(called making snapshots in the buildfaq), and this also calls cycle as the first part.


BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Don't understand buildfaq and make cycle
« Reply #2 on: June 25, 2011, 01:50:53 pm »
Great, thanks for showing me the error of my ways gently.
make cycle does indeed work in the source subdir.

But if I understand you correctly, I wouldn't even need to do that, just make all PP=c:\bla\ppc386.exe and FPC would get bootstrapped (make cycle in the compiler subdir), then RTL/FCL would be compiled using the newly compiled compiler?

That does simplify things!

Thanks.
« Last Edit: June 25, 2011, 01:54:27 pm by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Don't understand buildfaq and make cycle
« Reply #3 on: June 25, 2011, 05:30:31 pm »
But if I understand you correctly, I wouldn't even need to do that, just make all PP=c:\bla\ppc386.exe and FPC would get bootstrapped (make cycle in the compiler subdir), then RTL/FCL would be compiled using the newly compiled compiler?

Correct. The whole shebang.

Then another "install" step (e.g. to an empty dir), and you get pretty much the "bin" and "units" dirs as installed by a snapshot/release.  The buildfaq examples try to describe that.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Don't understand buildfaq and make cycle
« Reply #4 on: June 26, 2011, 10:10:36 am »
Right, thanks a lot!
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018