Le 28/01/2013 14:39, Mattias Gaertner a écrit :
On Mon, 28 Jan 2013 14:29:30 +0100
Antonio Fortuny <a.fort...@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



I guess that adding folders it will work one day !
What's wrong ? /etc/fpc.cfg ?

/etc/fpc.cfg is installed by the fpc rpm.

It should contain the lines:
#IFDEF CPU64
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib64/fpc/$fpcversion/units/$fpctarget/rtl
#ELSE
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl
#ENDIF

Mattias

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to