Sign in Join

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

Mailing lists / lazarus / 2012-11

how to install fpc trunk

7 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Eric Kom

Good day,

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

Kind Regards Eric Kom System Administrator - Metropolitan College _________________________________________ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends. / ----------------------------------------- \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 | www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5

Reply by email

Bernd
to Eric Kom

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

Reply by email

Martin
to Bernd
Bernd wrote
2012/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...

Reply by email

Mark Morgan Lloyd
to Martin
Martin wrote 7 lines
On 05/11/2012 20:44, Bernd wrote: > 2012/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

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 Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Reinier Olislagers
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 8 lines
Martin wrote: > 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.

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

Reply by email

waldo kitty
to Reinier Olislagers

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...

Show quoted text 5 lines
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...

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...

Reply by email

Reinier Olislagers
to waldo kitty
waldo kitty wrote 11 lines
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 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.

Reply by email