Forum > FPC development

compiling fpc under windows 7

(1/2) > >>

sergioafern:
ok, this is the first time I  try to co0mpile the FPC from source code.
what I try to do after downloading the source code.
is open a file called pp.lpi with lazarus, and an run -> compile.

however I get an error at line 286:
{$error Cross-compiling from systems without support for an 80 bit extended floating point type to i386 is not yet supported at this time }

so, here is my question... where can I find instructions on how to compile the FPC compiler from the source code.

Bart:
Fastest way:


--- Code: ---cd path/to/fpc
make all
make install

--- End code ---

This requires that you have 32-bit fpc 3.0.4 in your path.
It will build fpc and install it to the default path: c:\pp
It'll take a while, because it will cycle building the compiler.

Bart

sergioafern:
OK, thanks.. I did that. it created a file called ppc1.exe

I created a simple hello world program.
when I try to compile it (using ppc1 hello.pas) I get this error:
fatal: can't find unit system used by hello.
fatal: compilation aborted.

Thaddy:
If you stopped the compilation at ppc1 then you made a mistake. It needs to become ppc2, ppc3, until it subsequently becomes named ppc386 or ppcx86 or ppcarm etc depending on platform.
After that, the make rtl and packages will be automatically compiled with that last compiler. On a slow intel system that will take about 20 minutes. On the Raspberry Pi 3 the same.
You should not interrupt the make but let it run until everything is finished.

sergioafern:
I did not interrupt it.. but I did see  many error 2 message.

Navigation

[0] Message Index

[#] Next page

Go to full version