[Lazarus] Fatal: Can't find unit system used by Lazarus

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jan 28 15:15:48 CET 2013


On Mon, 28 Jan 2013 15:06:58 +0100
Antonio Fortuny <a.fortuny at sitasoftware.lu> wrote:

> 
> 
> Le 28/01/2013 14:39, Mattias Gaertner a écrit :
> > On Mon, 28 Jan 2013 14:29:30 +0100
> > Antonio Fortuny <a.fortuny at sitasoftware.lu> wrote:
> >
> >> When I add -Fu/usr/lib64/fpc/2.6.0/units/x86_64-linux/rtl to the
> >> previous command line, I get another error:
> >> Fatal: Can't find unit contnrs used by Masks
> >>
> >> This means that system.ppu has been found !
> >
> > You wrote that some packages compiled successfully. So system.ppu was
> > found.
> > What about compiling a simple project?
> A simple project compiles ok, but a shared library outputs this:
> /usr/bin/ld: warning: /home/sources/release/link.res contains output 
> sections; did you forget -T?
> /usr/bin/ld: 
> /usr/lib64/lazarus/components/lazutils/lib/x86_64-linux/lazutf8.o: 
> relocation R_X86_64_32S against `.data' can not be used when making a 
> shared object; recompile with -fPIC
> /usr/lib64/lazarus/components/lazutils/lib/x86_64-linux/lazutf8.o: could 
> not read symbols: Bad value
> SitaUdfLib.lpr(11) Error: Error while linking
> 
> but in project options, other, there are:
> -fPIC
> -dFPC_PIC

According to the documentation units in a library must be compiled with
-Cg (=-fPIC). Maybe all units must be compiled with this flag?

Maybe you can ask on the fpc list.

Mattias




More information about the Lazarus mailing list