[lazarus] cant find unit interfacebase

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Dec 19 06:16:21 EST 2003


On Fri, 19 Dec 2003 11:58:44 +0100  LeVA <leva at az.isten.hu> wrote:

>[...]
> It seems that lazarus works fine, if I skip the cd lazarus/lcl; make 
> OS_TARGET=win32 part of the compilation. I'm doing this because I must 
> build my projects to win32 too. So if I compile lazarus with make clean 
> all, and run it, it works fine. It can compile my projects. After 
> compiling the lcl to win32, and run lazarus, it can not build to linux 
> nor to win32. When trying to compile to linux, it says that it can not 
> find the INTERFACEBASE unit, 

fpc below 1.9 (e.g. 1.0.x) created .ppw files for the win32 target and .ppu
for linux. That's why you can to put them both into one directory.
OTOH fpc 1.9+ creates .ppu files for both, so you need to split up. That's
what vincent suggested in the
feature request: compiled units in target  dependantdirectory
thread.
This will be done in a few days, as soon as everyone agree on it.

But this solution will only handle the LCL. For your programs it means you
need also some macros for the unit output dir. This will be described in the
wikis. Hopefully in a few days.


Mattias



> and when trying to compile to win32, it 
> says that:
> TOutputFilter: 
> "/home/leva/FreePascal/lib/fpc/1.9.1/units/win32/rtl/wprt0.o: file not 
> recognized: File format not recognized"
> 
> Is this beacause of the 1.9.1 fpc? With 1.0.10 it worked fine, but I 
> didn't try if it works with it right now, because I need the 
> -dUseFPImage option, and it doesn't work with older fpcs.
> I'm getting the win32 units daily from here:
> ftp://gd.tuwien.ac.at/languages/pascal/fpc/snapshot/v11/win32-i386/
> 
> These are precompiled. I got a bad feeling about these units are not for 
> the 1.9.1 version of fpc. Am I right?
> 
> I tried to compile the units (1.9.1) by hand:
> cd src/fpc; make clean; make OS_TARGET=win32 all
> 
> I get this error:
> make[4]: Entering directory `/home/leva/FreePascal/src/fpc/rtl/win32'
> as -o wprt0.o wprt0.as
> wprt0.as: Assembler messages:
> wprt0.as:29: Error: cannot represent relocation type BFD_RELOC_RVA
> wprt0.as:31: Error: cannot represent relocation type BFD_RELOC_RVA
> wprt0.as:32: Error: cannot represent relocation type BFD_RELOC_RVA
> wprt0.as:36: Error: cannot represent relocation type BFD_RELOC_RVA
> wprt0.as:45: Error: cannot represent relocation type BFD_RELOC_RVA
> make[4]: *** [wprt0.o] Error 1
> make[4]: Leaving directory `/home/leva/FreePascal/src/fpc/rtl/win32'
> make[3]: *** [rtl] Error 2
> make[3]: Leaving directory `/home/leva/FreePascal/src/fpc/compiler'
> make[2]: *** [cycle] Error 2
> make[2]: Leaving directory `/home/leva/FreePascal/src/fpc/compiler'
> make[1]: *** [compiler_cycle] Error 2
> make[1]: Leaving directory `/home/leva/FreePascal/src/fpc'
> make: *** [build-stamp.win32] Error 2
> 
> Can you tell me please what is wrong with this? Is this the ususal 
> method of compiling the win32 units (make OS_TARGET=win32 all)?






More information about the Lazarus mailing list