Sign in Join

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

Mailing lists / lazarus / 2017-12

Problem accessing the lazarus forums...

16 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

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

Bo Berglund

I tried to find where the fpc.cfg file is located on my Raspbian Jessie system. So I googled and found a number of hits all located on the lazarus forum.
But whatever item I select there is a timeout and it does not appear...
For example this:
https://forum.lazarus.freepascal.org/index.php
and all othergoogle hits targeting specific posts all time out. And using the Google cahched page does not show it either.

So,
can someone here please tell me where I should find the fpc.cfg file. When Lazarus 1.6 starts up it complains about not finding it and suggest that I should point it to the file. But I don't know where...

Bo Berglund Developer in Sweden

Reply by email

Teresa Williams
to Bo Berglund
Show quoted text 25 lines
Sent: Monday, December 04, 2017 at 11:27 AM From: "Bo Berglund via Lazarus" To: Cc: "Bo Berglund" Subject: [Lazarus] Problem accessing the lazarus forums... I tried to find where the fpc.cfg file is located on my Raspbian Jessie system. So I googled and found a number of hits all located on the lazarus forum. But whatever item I select there is a timeout and it does not appear... For example this: https://forum.lazarus.freepascal.org/index.php and all othergoogle hits targeting specific posts all time out. And using the Google cahched page does not show it either. So, can someone here please tell me where I should find the fpc.cfg file. When Lazarus 1.6 starts up it complains about not finding it and suggest that I should point it to the file. But I don't know where... -- Bo Berglund Developer in Sweden

It's linux - why bother with Google (or Statpage for privacy). Just use

sudo find / -name 'fpc.cfg' -print

or whatever variation you want.

Reply by email

Bo Berglund
to Teresa Williams
Teresa Williams wrote 11 lines
> So, > can someone here please tell me where I should find the fpc.cfg file. > When Lazarus 1.6 starts up it complains about not finding it and > suggest that I should point it to the file. But I don't know where... > It's linux - why bother with Google (or Statpage for privacy). Just use sudo find / -name 'fpc.cfg' -print or whatever variation you want.

Well, I already tried variations of that and came up empty-handed: ~ $ sudo find / -name 'fpc.cfg' -print
~ $

Any other suggestion?
(What about the lazarus forum?)

Bo Berglund Developer in Sweden

Reply by email

R0b0t1
to Bo Berglund
Bo Berglund wrote 22 lines
On Sun, 3 Dec 2017 23:34:39 +0100, Teresa Williams via Lazarus wrote: >> So, >> can someone here please tell me where I should find the fpc.cfg file. >> When Lazarus 1.6 starts up it complains about not finding it and >> suggest that I should point it to the file. But I don't know where... >> > >It's linux - why bother with Google (or Statpage for privacy). Just use > >sudo find / -name 'fpc.cfg' -print > >or whatever variation you want. Well, I already tried variations of that and came up empty-handed: ~ $ sudo find / -name 'fpc.cfg' -print ~ $ Any other suggestion? (What about the lazarus forum?)

The package mlocate contains the locate and updatedb commands, and produces quick results.

I typically use find with grep, though that may be slower. But I have more control of the results.

Cheers,
R0b0t1

Reply by email

Mattias Gaertner
to Bo Berglund: I tried to find where the fpc.cfg file is located on my Raspbian Jessie system. So I…
Show quoted text 7 lines
I tried to find where the fpc.cfg file is located on my Raspbian Jessie system. So I googled and found a number of hits all located on the lazarus forum. [...] can someone here please tell me where I should find the fpc.cfg file. When Lazarus 1.6 starts up it complains about not finding it and suggest that I should point it to the file. But I don't know where...

A normal fpc install puts it in /etc/fpc.cfg

How did you install fpc?

Mattias

Reply by email

Marc Weustink
to Bo Berglund: I tried to find where the fpc.cfg file is located on my Raspbian Jessie system. So I…
Bo Berglund wrote 9 lines
I tried to find where the fpc.cfg file is located on my Raspbian Jessie system. So I googled and found a number of hits all located on the lazarus forum. But whatever item I select there is a timeout and it does not appear... For example this: https://forum.lazarus.freepascal.org/index.php and all othergoogle hits targeting specific posts all time out. And using the Google cahched page does not show it either.

No problem in reaching the forum here.

Marc

Reply by email

Bo Berglund
to Mattias Gaertner: On Sun, 03 Dec 2017 23:27:49 +0100 A normal fpc install puts it in /etc/fpc.cfg How did…
Mattias Gaertner wrote
A normal fpc install puts it in /etc/fpc.cfg

Thanks, that is where I found it now!
I wonder why this did not work before?
sudo find / -name fpc.cfg
Now it does.

Anyway, I could not see anything that would cause lazarus to fail in finding the file. OTOH if Lazarus cannot find the file then there must be something else in error....

How did you install fpc?

Well, this is a long story, I always install from sources and I have a lot of RPi units (7-10) with fpc on some of them but not all. A year ago I was working on a project for remote control using fpc and I think I used this RPi then. But in March the project was put on hold and I stopped using fpc until now when I need to start again. And now I am not 100% sure which Pi I used so I tried starting up Lazarus on one after the other to see which projects were in the recent projects list.
And on this unit Lazarus failed to find the compiler and the fpc sources for some reason.
I get these messages on the Lazartus start dialog box:

Compiler:
File: /home/pi/bin/fpc
Error: system.ppu not found. Check your fpc.cfg <== HERE

FPC Sources:
Directory: /usr/fpc/3.0.0
Warning: Found version 3.0.0, expected 3.0.2
You can download FPC and the FPC sources from.....

So I suspected that the fpc.cfg file contained some bogus info, which I had to edit away, but I had all forgotten where this file was supposed to be...

Note that I normally install using a script which downloads the sources and builds both fpc and lazarus.
It does all of that into /home/pi instead of into the global locations because I want to be able to rebuild both without using sudo.

Bo Berglund Developer in Sweden

Reply by email

Mattias Gaertner
to Bo Berglund
[...] Anyway, I could not see anything that would cause lazarus to fail in finding the file. OTOH if Lazarus cannot find the file then there must be something else in error....

Posting the exact error messages helps getting help. Lazarus did not complain about finding fpc.cfg.

Show quoted text 7 lines
>How did you install fpc? [...] I get these messages on the Lazartus start dialog box: Compiler: File: /home/pi/bin/fpc Error: system.ppu not found. Check your fpc.cfg <== HERE

It can't find system.ppu. Something is wrong with your fpc.cfg or your install of fpc.

Show quoted text 13 lines
FPC Sources: Directory: /usr/fpc/3.0.0 Warning: Found version 3.0.0, expected 3.0.2 You can download FPC and the FPC sources from..... So I suspected that the fpc.cfg file contained some bogus info, which I had to edit away, but I had all forgotten where this file was supposed to be... Note that I normally install using a script which downloads the sources and builds both fpc and lazarus. It does all of that into /home/pi instead of into the global locations because I want to be able to rebuild both without using sudo.

Then you should create a /home/pi/.fpc.cfg

Mattias

Reply by email

Bo Berglund
to Marc Weustink: No problem in reaching the forum here. Marc
Marc Weustink wrote 6 lines
> https://forum.lazarus.freepascal.org/index.php > and all othergoogle hits targeting specific posts all time out. > And using the Google cahched page does not show it either. No problem in reaching the forum here.

Hmm, if I use my Win7 laptop with either FireFox or Chrome using the above link then both *never* succeed. Same if I use ping on a command line on my PC towards it:

ping forum.lazarus.freepascal.org

Pinging server.lazarus-ide.org [37.97.187.115] with 32 bytes of data: Request timed out.
Request timed out.

Then tested on an RPi3 unit in my home LAN
$ ping forum.lazarus.freepascal.org
PING server.lazarus-ide.org (37.97.187.115) 56(84) bytes of data. ^C <== Had to break command after 7 minutes
--- server.lazarus-ide.org ping statistics ---
423 packets transmitted, 0 received, 100% packet loss, time 422001ms

So the RPi just hangs there, no feedback or result at all...

Next I connected with PuTTY to an RPi unit on a remote LAN via VPN and tried ping there:

$ ping forum.lazarus.freepascal.org
PING server.lazarus-ide.org (37.97.187.115) 56(84) bytes of data. 64 bytes from server.lazarus-ide.org (37.97.187.115): icmp_seq=1 ttl=46 time=132 ms
64 bytes from server.lazarus-ide.org (37.97.187.115): icmp_seq=2 ttl=46 time=132 ms

HMMM
Next I used my phone connected to my home WiFi, same result: Timeout wile connecting to the forum.

So I shut down WiFi on the phone and tested again using the mobile network: SUCCESS!

It seems like my fiber ISP is blocking the lazarus forums!!!!

I need to talk to them.

Bo Berglund Developer in Sweden

Reply by email

Bo Berglund
to Bo Berglund
Bo Berglund wrote
It seems like my fiber ISP is blocking the lazarus forums!!!! I need to talk to them.

Not the case!
I looked at my ASUS router and it flashed an alert about new firmware, which I installed and now there is no problem accessing the Lazarus forums anymore!

Bo Berglund Developer in Sweden

Reply by email

Bo Berglund
to Mattias Gaertner: On Mon, 04 Dec 2017 10:25:43 +0100 Posting the exact error messages helps getting help.…
Mattias Gaertner wrote
Then you should create a /home/pi/.fpc.cfg

I used the script commands for the fpc.cfg:
/home/pi/lib/fpc/3.0.2/samplecfg /home/pi/lib/fpc/3.0.2 /home/pi

Followed by
mv /home/pi/fpc.cfg /home/pi/.fpc.cfg

Now I have a hidden cfg file but Lazarus still complains the same when starting up.

I guess I have to start over with FPC on this box. It is a pity though since I know I went to some trouble adding indy and some hardware interfaces (gpio) to it at the time...

Question:
Do I need a different seed compiler than 3.0.0 for the latest fpc?

Bo Berglund Developer in Sweden

Reply by email

Carlos E. R.
to R0b0t1: On Sun, Dec 3, 2017 at 5:29 PM, Bo Berglund via Lazarus The package mlocate contains the…

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

R0b0t1 wrote
On Sun, Dec 3, 2017 at 5:29 PM, Bo Berglund via Lazarus wrote:
Show quoted text 10 lines
> Well, I already tried variations of that and came up empty-handed: > ~ $ sudo find / -name 'fpc.cfg' -print > ~ $ > > Any other suggestion? > (What about the lazarus forum?) > The package mlocate contains the locate and updatedb commands, and produces quick results.

And will fail. If "find" failed to find anything, locate also will fail.

- --
Cheers,
Carlos E. R.
(from openSUSE 42.2 x86_64 "Malachite" at Telcontar)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlolN6sACgkQtTMYHG2NR9VbdQCeJA2s6pmWNkKN7ElCeEJql0Ap swMAmgOgl8yKa9rX0+VDplO7Z050ebL5
=NguN
-----END PGP SIGNATURE-----

Reply by email

Unknown author
to Bo Berglund: On Mon, 4 Dec 2017 09:52:34 +0100, Mattias Gaertner via Lazarus Thanks, that is where I…
Bo Berglund wrote 9 lines
On Mon, 4 Dec 2017 09:52:34 +0100, Mattias Gaertner via Lazarus wrote: > A normal fpc install puts it in /etc/fpc.cfg Thanks, that is where I found it now! I wonder why this did not work before? sudo find / -name fpc.cfg Now it does.

that's not the same command you used before... your previous one had single quotes around the filename whereas this one does not...

NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.*

Reply by email

Mattias Gaertner
to Bo Berglund: On Mon, 4 Dec 2017 10:44:02 +0100, Mattias Gaertner via Lazarus I used the script…
Show quoted text 10 lines
On Mon, 4 Dec 2017 10:44:02 +0100, Mattias Gaertner via Lazarus wrote: >Then you should create a /home/pi/.fpc.cfg I used the script commands for the fpc.cfg: /home/pi/lib/fpc/3.0.2/samplecfg /home/pi/lib/fpc/3.0.2 /home/pi Followed by mv /home/pi/fpc.cfg /home/pi/.fpc.cfg

Good.

Now I have a hidden cfg file but Lazarus still complains the same when starting up.

The IDE asks the compiler for the unit paths and searches the system.ppu. Please do the same manually:

/path/to/compiler -vt bla | grep 'unit path'

Is the system.ppu in one of these paths?

Show quoted text 6 lines
I guess I have to start over with FPC on this box. It is a pity though since I know I went to some trouble adding indy and some hardware interfaces (gpio) to it at the time... Question: Do I need a different seed compiler than 3.0.0 for the latest fpc?

Building 3.1.1 needs 3.0.4.
Building 3.0.4 needs 3.0.2.

Mattias

Reply by email

Bo Berglund
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
> Question: > Do I need a different seed compiler than 3.0.0 for the latest fpc? Building 3.1.1 needs 3.0.4. Building 3.0.4 needs 3.0.2.

Well,
on my RPi3 I used my installation script, which downloads an ARM7 3.0.0 seed compiler from my website. It also gets the sources for FPC 3.0.4 and Lazarus 1.6.4 via svn.
Then it builds both fpc and lazarus.

I had seen the statements about 3.0.4 needing a seed 3.0.2, so that is why I asked. But it turns out that it did not complain about the seed at all, it just built 3.0.4 sucessfully using 3.0.0 and now when I start Lazarus 1.6.4 I get no errors or warnings.

Bo Berglund Developer in Sweden

Reply by email