Sign in Join

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

Mailing lists / lazarus / 2016-04

Cant compile the IDE with the most recent fpc (3.1.1)

12 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Michael Schnell

It happened to me (again) :(.

After upgrading fpc to the latest svn version, I can't compile the latest svn version of Lazarus.

The problem (first) occurs with RegisterFCL.

(Currently the error is "Can't find unit db used by RegisterFCL", but there had been other units before it did not find. For a test I moved two of the to the dir it in fact searches for fpc units: -Fu/usr/lib/fpc/3.1.1/units/i386-linux/rtl )

Seemingly a unit search dir for some of the fpc stuff is missing.

How to tell the Lazarus make process about those ?

thank,
-Michael

Reply by email

Michael Schnell
to Michael Schnell
Michael Schnell wrote
It happened to me (again) :(.

I resolved a lot of unit referenced to fpc RTL units by defining links for the files in /usr/lib/fpc/3.1.1/units/i386-linux/rtl

(I suppose I should not do that this way, but I don't know another :( )

But later in the make process LCL units and resource files are requested. I could resolve a lot of references creating links in some LCL directory, but at some point this stopped working.

Is it even possible to compile Lazarus with fpc 3.1.1 ?

-Michael

Reply by email

Michael Van Canneyt
to Michael Schnell
Michael Schnell wrote 13 lines
On 04/06/2016 09:47 AM, Michael Schnell wrote: > It happened to me (again) :(. > I resolved a lot of unit referenced to fpc RTL units by defining links for the files in /usr/lib/fpc/3.1.1/units/i386-linux/rtl (I suppose I should not do that this way, but I don't know another :( ) But later in the make process LCL units and resource files are requested. I could resolve a lot of references creating links in some LCL directory, but at some point this stopped working. Is it even possible to compile Lazarus with fpc 3.1.1 ?

I do it almost daily.

Michael.

Reply by email

Mattias Gaertner
to Michael Schnell: It happened to me (again) :(. After upgrading fpc to the latest svn version, I can't…
Show quoted text 16 lines
It happened to me (again) :(. After upgrading fpc to the latest svn version, I can't compile the latest svn version of Lazarus. The problem (first) occurs with RegisterFCL. (Currently the error is "Can't find unit db used by RegisterFCL", but there had been other units before it did not find. For a test I moved two of the to the dir it in fact searches for fpc units: -Fu/usr/lib/fpc/3.1.1/units/i386-linux/rtl ) Seemingly a unit search dir for some of the fpc stuff is missing. How to tell the Lazarus make process about those ?

What -Fu paths do you have in your fpc.cfg?

Mattias

Reply by email

Michael Van Canneyt
to Michael Schnell
Michael Schnell wrote 5 lines
On 04/07/2016 04:19 PM, Mattias Gaertner wrote: > What -Fu paths do you have in your fpc.cfg? I did suppose something like this. Am I supposed to manually edit this file even for the unmodified svn d/l ?

Normally not.

I have this in my fpc.cfg, it is 2 lines long:

-Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/local/lib/fpc/$fpcversion/units/$fpctarget/httpd22

That is all. (on windows the path will look somewhat different) It has not been changed in years and I use it to compile everything.

Michael.

Reply by email

Michael Schnell
to Mattias Gaertner
Mattias Gaertner wrote 11 lines
On Thu, 07 Apr 2016 16:25:26 +0200 Michael Schnell wrote: > On 04/07/2016 04:19 PM, Mattias Gaertner wrote: >> What -Fu paths do you have in your fpc.cfg? > I did suppose something like this. > > Am I supposed to manually edit this file even for the unmodified svn d/l ? FPC does not care where the sources are coming from. You need a valid fpc.cfg, usually /etc/fpc.cfg .

I do have this.

Here multiple times $fpcversion and $fpctarget are used which supposedly are provided by the compiler.

Can it be that the compiler uses wrong values for those ?

How can I check that ? (I did

make FPC=`pwd`/compiler/ppc386 install INSTALL_PREFIX=/usr

and hoped that would provide for this, and I suppose it did some time ago, as )

-Michael

Reply by email

Sven Barth
to Michael Schnell
"Michael Schnell" wrote 10 lines
On 04/07/2016 04:30 PM, Michael Van Canneyt wrote: > > > I have this in my fpc.cfg, it is 2 lines long: In my lazarus/trunk dir (created by svn), there is no fpc.cfg file. Do you suggest it should ?

It should either be in /etc/fpc.cfg or ~/.fpc.cfg

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160408/6387f3c0/attachment.html>

Reply by email

Sven Barth
to Michael Schnell: I do have this. Here multiple times $fpcversion and $fpctarget are used which supposedly…
"Michael Schnell" wrote 13 lines
On 04/07/2016 04:33 PM, Mattias Gaertner wrote: > > On Thu, 07 Apr 2016 16:25:26 +0200 > Michael Schnell wrote: > >> On 04/07/2016 04:19 PM, Mattias Gaertner wrote: >>> >>> What -Fu paths do you have in your fpc.cfg? >> >> I did suppose something like this. >> >> Am I supposed to manually edit this file even for the unmodified svn

d/l ?

Show quoted text 7 lines
> > FPC does not care where the sources are coming from. > You need a valid fpc.cfg, usually /etc/fpc.cfg . > I do have this. Here multiple times $fpcversion and $fpctarget are used which supposedly

are provided by the compiler.

Show quoted text 8 lines
Can it be that the compiler uses wrong values for those ? How can I check that ? (I did make FPC=`pwd`/compiler/ppc386 install INSTALL_PREFIX=/usr and hoped that would provide for this, and I suppose it did some time

ago, as )

Would you please test whether your installed trunk compiler works correctly (e.g. by compiling a simple helloworld program)? Maybe also add -vi if necessary so that the compiler will print its version information while compiling.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160408/797ad5ed/attachment.html>

Reply by email

Michael Schnell
to Sven Barth: It should either be in /etc/fpc.cfg or ~/.fpc.cfg Sven -------------- next part…
Sven Barth wrote
It should either be in /etc/fpc.cfg or ~/.fpc.cfg

there is one in /etc/fpc.cfg

it's rather long but it does include the lines

-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/httpd22

i.e. without the /local".

in fact in /usr/lib I do have /usr/lib/fpc/3.1.1/units/i386-linux/....

"fpc" comes up with

Free Pascal Compiler version 3.1.1 [2016/04/05] for i386

so $fpcversion = 3.1.1 and $fpctarget = i386-linux might be correct.

*Later:**
**
**deleting a seemingly broken ~/.fpc.cfg file **did the trick. ** **
**Thanks a lot for your help!**
*

-Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160408/7275884f/attachment.html>

Reply by email