Good day,
Please how can I install fpc trunk after have fetched from svn?

Mailing lists / lazarus / 2012-11
7 messages · 6 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Good day,
Please how can I install fpc trunk after have fetched from svn?
2012/11/5 Eric Kom :
Good day, Please how can I install fpc trunk after have fetched from svn?
make all PP="/path/to/bootstrap/compiler"
sudo make install
sudo make -C compiler installsymlink
sudo /usr/local/lib/fpc/2.7.1/samplecfg /usr/local/lib/fpc/2.7.1/ /etc
should do it if nothing essential has changed
Bernd wrote2012/11/5 Eric Kom : > Please how can I install fpc trunk after have fetched from svn? make all PP="/path/to/bootstrap/compiler"
And remember. bootstrap for current trunk (2.7.1) MUST be released 2.6.0
Afaik it may be necessary to have the 2.6.0 in path, as some other tools may be needed (has happened in the past). May work without it in path, maybe...
More explicitly, just in case anybody's unclear: to compile FPC trunk, you need an existing copy of the FPC 2.6.0 binary on the system. You can't build it with a C compiler, Delphi, ISO Pascal or anything else.
Afaik it may be necessary to have the 2.6.0 in path, as some other tools may be needed (has happened in the past). May work without it in path, maybe...
From building MIPS at the end of last week, I think that all you need is ppc[whatever], fpc, and the RTL. Note, however, the requirement for the fpc binary, even if using an explicit PP= setting.
There's problems building on Debian "Wheezy" and derivatives, don't go there.
Mark's experiences mirror my own with fpcup.
As for the OP's question - have you read the wiki at all?
1. If on Windows (you didn't say), this:
http://wiki.lazarus.freepascal.org/Installing_Lazarus#FPC_Sources_for_Windows would seem to apply but it seems erroneous:
First create a directory in which you'd like to put the sources. Any normal user can do this
... no they can't if they use the example c:\source, because they'll need to be admin on Vista+ with elevated privileges This is admitted later on but that hardly helps clarity.
1b
Extending your PATH variable to the fpc directory:
...
PATH=%PATH%;C:\pp\bin\bin\win32
c:\pp doesn't match with the c:\source earlier, and is unnecessary anyway if you use PP=... (though you do need to make sure to have make etc in your path, so setting the path *is* actually the easiest to explain - however, you can temporarily change path only in that cmd session by using SET PATH=%PATH%;c:\bla)
1c. Next we get competing instructions from Marcos Douglas on how to do the same.... which is redundant.
I tried to get this wiki page more into shape but I've given up.
2. Of course, if you are asking about FPC installation, the best reference is the FPC documentation, especially the Build FAQ: http://www.stack.nl/~marcov/buildfaq.pdf
... though the FPC site documentation did not seem to mention that prominently...
Regards,
Reinier
On 11/6/2012 03:48, Reinier Olislagers wrote:
[...]
1c. Next we get competing instructions from Marcos Douglas on how to do the same.... which is redundant.
FWIW: marcos' directions are the only ones that enabled me to get my winboxen setup and operating from the SVN and updating from the SVN... the only thing that i haven't gotten figured out is how to update FPC from the SVN and recompile it without having to remove everything that already exists... yes, i know that Lazarus would then need to be recompiled with the new FPC but...
I tried to get this wiki page more into shape but I've given up.
i did add a couple of things in there to marcos' area... the main one i remember was the clarification about creating the fpc.cfg file and what params were needed... i haven't been back to the page in a while since my installs are working... currently i've just been waiting on the new FPC releases to come out and then pulling them into their own directory which i can then use...
one thing that many seem to forget is that everyone is conversant with the terms used... i know that i was confused for quite a while when i attempted to do the SVN pull and compile... i don't remember the specifics but i know that a lot of terms and concepts were quite alien to myself coming from TP6/BP7...
I wouldn't mind if you remove the other explanation but leave Marcos' directions in.
The redundancy (and inconsistency in the first set of instructions) is what bothers me.