Sign in Join

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

Mailing lists / fpc-devel / 2000-09

why FPC try to recompile unit & compiler direcitve position

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

KO Myung-Hun

Hi.

I feel strange that FPC try to recompile precompiled unit.

FPC require source file of precompiled unit. For example,

when I try to recompile RTL, FPC compile 'sysos2.pas'. And

when FPC compile 'objpas.pas', FPC recompile 'sysos2.pas',

and FPC reports error messages, and gives up compiling.

Below is process of making RTL.

--------
F:\lang\fpc\source\rtl>make
F:/LANG/EMX/BIN/MAKE.EXE -C os2 all
MAKE.EXE[1]: Entering directory `/lang/fpc/source/rtl/os2' as -o prt0.oo2 prt0.as
as -o prt1.oo2 prt1.as
as -o code2.oo2 code2.as
as -o code3.oo2 code3.as
ppc386.exe -Fi../inc -Fi../i386 -FE. -di386 -Us -Sg sysos2.pas ppc386.exe -Fi../inc -Fi../i386 -FE. -di386 -I../objpas ../objpas/objpas.pp
sysos2.pas(865) Fatal: Can't Write PPU-File
MAKE.EXE[1]: *** [objpas.ppo] Error 1
MAKE.EXE[1]: Leaving directory `/lang/fpc/source/rtl/os2' F:/LANG/EMX/BIN/MAKE.EXE: *** [os2_all] Error 2
--------

Below is process of compiling my program, compiled sucessfully before.

--------
F:\lang\work\kc>ppc386 kc
Free Pascal Compiler version 1.1 [2000/08/30] for i386 Copyright (c) 1993-2000 by Florian Klaempfl
Target OS: OS/2 via EMX
Compiling kc.pas
dos.pas(91,17) Fatal: Can't compile unit DOS, no sources available -------

Below is information of ppc386.exe

-------
F:\lang\fpc\source\rtl>ppc386 -i
Free Pascal Compiler version 1.1

Compiler Date : 2000/08/30
Compiler Target: i386

This program comes under the GNU General Public Licence For more information read COPYING.FPC

Report bugs,suggestions etc to:

-------

I cannot understand why FPC try to recompile units.

For better FPC.

from KO Myung-Hun.

Reply by email

Pierre Muller
to KO Myung-Hun

At 14:40 22/09/00 , vous avez écrit:

Show quoted text 12 lines
-------- F:\lang\fpc\source\rtl>make F:/LANG/EMX/BIN/MAKE.EXE -C os2 all MAKE.EXE[1]: Entering directory `/lang/fpc/source/rtl/os2' as -o prt0.oo2 prt0.as as -o prt1.oo2 prt1.as as -o code2.oo2 code2.as as -o code3.oo2 code3.as ppc386.exe -Fi../inc -Fi../i386 -FE. -di386 -Us -Sg sysos2.pas ppc386.exe -Fi../inc -Fi../i386 -FE. -di386 -I../objpas ../objpas/objpas.pp sysos2.pas(865) Fatal: Can't Write PPU-File

It should never have to recompile the system unit :( Could you please redo a make with
make OPT=-viut
and send the result to the list ?
-vut will ouptut some info on tried and used files and may explain why the unit is recompiled.

Reply by email