Sign in Join

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

Mailing lists / lazarus / 2011-06

Error: fpc.cfg is missing

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Krisztián Nagy

Hello Lazarus list,

I'm using Ubuntu 11.04. I've just updated fpc and lazarus to the latest svn revisions. It seems my current setup doesn't go well with this new version. Now when starting lazarus I'm always greeted with a (quite nice :)) Configure Lazarus IDE windows wich shows an error at the "Compiler" tab, namely "Error: fpc.cfg is missing". If I insist on starting the IDE by pressing Start IDE, Ignore, Ok, Ok, it starts well and everything is working fine (I can compile and build without problems) since after all I do have fpc.cfg in "~/.fpc.cfg".

It seems Lazarus at startup is not looking for fpc.cfg at same places as the compiler itself so it doesn't detect ~/fpc.cfg and shows the error message. I tried to place a symbolic link of it named "fpc.cfg" in the parent directories of the compiler path but that didn't help. Where does Lazarus look for it?

My exact setup:
Ubuntu 11.04 32 bit
latest fpc source and binaries in: ~/svn/fpc (this is given at FPC sources path)
therefore the compiler path given is: ~/svn/fpc/compiler/ppc386 (a symbolic link /usr/local/fpc also points to this, to make "make" work) latest lazarus source and binaries in: ~/svn/lazarus (this is given as Lazarus path)
fpc.cfg path: ~/.fpc.cfg (there's an outdated one in /etc/fpc.cfg) (everywhere the full home path is used not '~')

Thank you in advance!

Regards,

Kriszti?n

p.s. I don't file a bug report since as no one else complained about it guess it's just my non standard (no make install and stuff) setup -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110605/2fd7f938/attachment.html>

Reply by email

Hans-Peter Diettrich
to Krisztián Nagy
It seems Lazarus at startup is not looking for fpc.cfg at same places as the compiler itself so it doesn't detect ~/fpc.cfg and shows the error message. I tried to place a symbolic link of it named "fpc.cfg" in the parent directories of the compiler path but that didn't help.

On Windows I have an fpc.cfg just beneath the fpc.exe (same directory).

DoDi

Reply by email

Krisztián Nagy
to Hans-Peter Diettrich

I've tried it (this time not just with a symbolic link, but with copying the file itself to ~/svn/fpc/compiler, where ppc386 is located), unfortunately it didn't work. It seems this is handled differently for win and linux. Anyway, thanks for the tip :)

2011/6/5 Hans-Peter Diettrich

Show quoted text 20 lines
Kriszti?n Nagy schrieb: It seems Lazarus at startup is not looking for fpc.cfg at same places as > the compiler itself so it doesn't detect ~/fpc.cfg and shows the error > message. I tried to place a symbolic link of it named "fpc.cfg" in the > parent directories of the compiler path but that didn't help. > On Windows I have an fpc.cfg just beneath the fpc.exe (same directory). DoDi -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110605/6efd76ba/attachment.html>

Reply by email

Mattias Gaertner
to Krisztián Nagy: I'm using Ubuntu 11.04. I've just updated fpc and lazarus to the latest svn revisions. It…
Show quoted text 13 lines
Hello Lazarus list, I'm using Ubuntu 11.04. I've just updated fpc and lazarus to the latest svn revisions. It seems my current setup doesn't go well with this new version. Now when starting lazarus I'm always greeted with a (quite nice :)) Configure Lazarus IDE windows wich shows an error at the "Compiler" tab, namely "Error: fpc.cfg is missing". If I insist on starting the IDE by pressing Start IDE, Ignore, Ok, Ok, it starts well and everything is working fine (I can compile and build without problems) since after all I do have fpc.cfg in "~/.fpc.cfg". It seems Lazarus at startup is not looking for fpc.cfg at same places as the compiler itself so it doesn't detect ~/fpc.cfg and shows the error message.

Actually the IDE asks the compiler where to look for config files. But this requires English output. Maybe you have a non English system? It seems the IDE does not always pass the -Fr option to the compiler. I fixed a place.
Please test with current svn.

[...]

Mattias

Reply by email

Krisztián Nagy
to Mattias Gaertner

Unfortunately nothing has changed with current svn. (r31103) My system language is set to Hungarian, but that doesn't affect fpc or lazarus, both have English output.
What parameters does laz use to ask the compiler? I can check if there's a problem with the output here.

2011/6/5 Mattias Gaertner

Show quoted text 40 lines
On Sun, 5 Jun 2011 15:21:15 +0200 Kriszti?n Nagy wrote: > Hello Lazarus list, > > I'm using Ubuntu 11.04. I've just updated fpc and lazarus to the latest svn > revisions. It seems my current setup doesn't go well with this new version. > Now when starting lazarus I'm always greeted with a (quite nice :)) > Configure Lazarus IDE windows wich shows an error at the "Compiler" tab, > namely "Error: fpc.cfg is missing". If I insist on starting the IDE by > pressing Start IDE, Ignore, Ok, Ok, it starts well and everything is working > fine (I can compile and build without problems) since after all I do have > fpc.cfg in "~/.fpc.cfg". > > It seems Lazarus at startup is not looking for fpc.cfg at same places as the > compiler itself so it doesn't detect ~/fpc.cfg and shows the error message. Actually the IDE asks the compiler where to look for config files. But this requires English output. Maybe you have a non English system? It seems the IDE does not always pass the -Fr option to the compiler. I fixed a place. Please test with current svn. >[...] Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110605/e3bc45ce/attachment.html>

Reply by email

Mattias Gaertner
to Krisztián Nagy
Show quoted text 5 lines
Unfortunately nothing has changed with current svn. (r31103) My system language is set to Hungarian, but that doesn't affect fpc or lazarus, both have English output. What parameters does laz use to ask the compiler? I can check if there's a problem with the output here.

See View / IDE internals / About FPC / FPC output.

Search for lines beginning with "Configfile search" and "Reading options from".

Hmm, I just found out that these lines are missing in the codetools. I updated the message file in revision 31104.

Mattias

Reply by email

Krisztián Nagy
to Mattias Gaertner

The issue was still present the previous time I updated (about 2-3 days ago), but now the current svn works fine! :) Thank you!

2011/6/5 Mattias Gaertner

Show quoted text 26 lines
On Sun, 5 Jun 2011 23:32:59 +0200 Kriszti?n Nagy wrote: > Unfortunately nothing has changed with current svn. (r31103) > My system language is set to Hungarian, but that doesn't affect fpc or > lazarus, both have English output. > What parameters does laz use to ask the compiler? I can check if there's a > problem with the output here. See View / IDE internals / About FPC / FPC output. Search for lines beginning with "Configfile search" and "Reading options from". Hmm, I just found out that these lines are missing in the codetools. I updated the message file in revision 31104. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110615/2fff91b1/attachment.html>

Reply by email