Re: [Lazarus] Raspberry Pi 3 build issues

2016-03-25 Thread Florian Klämpfl
Am 25.03.2016 um 11:19 schrieb Mark Morgan Lloyd:
> Bo Berglund wrote:
> 
>>> It should be noted that the default swap file size of Raspbian is only
>>> 100MB which combined with a possible GPU memory settings will occasionally
>>> cause Lazarus builds to fail mysteriously.
>>
>> I originally had instructions for usage that specifically increased
>> swap to 1000MB to get around this issue. But a forum user repeatedly
>> claimed it was not necessary so I took tha part out and it does work
>> on the RPi3 at least when I tried. Afetr all it has more RAM.
>> But I agree that having bigger swap might not hurt anyway.
> 
> You'll generally need something like 512Mb of available memory, i.e. RAM + 
> swap, with the linker in
> particular benefiting from extra. Around here, I'm being firmly discouraged 
> (by other colleagues
> with an electronics background) from putting swap on the card, but instead 
> putting it on an external
> USB device with wear levelling.
> 

SD cards do wear leveling as well.

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


Re: [Lazarus] Raspberry Pi 3 build issues

2016-03-25 Thread Anthony Walter
> You'll generally need something like 512Mb of available memory, i.e. RAM
+ swap,
> with the linker in particular benefiting from extra. Around here, I'm
being firmly
> discouraged (by other colleagues with an electronics background) from
putting
> swap on the card, but instead putting it on an external USB device with
wear levelling.

My Samsung EVO+ 32GB SDCARD cost me $10 from Amazon with shipping. I'm not
too worried about it being worn down by excessive writes to the swap file.
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Testing Rapberry Pi 3 performance

2016-03-25 Thread Graeme Geldenhuys
On 2016-03-25 09:33, Bo Berglund wrote:
> installing FPC
> 3.0.0 and Lazarus 1.6

A word of caution, there is a major bug in FPC 3.0 regarding floating
point values (see the FPC mailing list), so I wouldn't recommend anybody
upgrade to FPC 3.0 at this point - at least until 3.0.2 is out. This
issue has been fixed in FPC Trunk already though.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

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


Re: [Lazarus] Raspberry Pi 3 build issues

2016-03-25 Thread Mark Morgan Lloyd

Bo Berglund wrote:


It should be noted that the default swap file size of Raspbian is only
100MB which combined with a possible GPU memory settings will occasionally
cause Lazarus builds to fail mysteriously.


I originally had instructions for usage that specifically increased
swap to 1000MB to get around this issue. But a forum user repeatedly
claimed it was not necessary so I took tha part out and it does work
on the RPi3 at least when I tried. Afetr all it has more RAM.
But I agree that having bigger swap might not hurt anyway.


You'll generally need something like 512Mb of available memory, i.e. RAM 
+ swap, with the linker in particular benefiting from extra. Around 
here, I'm being firmly discouraged (by other colleagues with an 
electronics background) from putting swap on the card, but instead 
putting it on an external USB device with wear levelling.


--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

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


Re: [Lazarus] Raspberry Pi 3 build issues

2016-03-25 Thread Bo Berglund
On Wed, 23 Mar 2016 14:03:25 -0400, Anthony Walter 
wrote:

>Seeing as how SD CARD space is a premium on the Pi you should probably
>clean up after you build and install. This include doing things like this
>after make install:
>
>cd $HOME/fpc
>rm -rf .svn
There is no .svn dir in ~, but in the lazarus source dir 
du -sh ./dev/lazarus/1.6/.svn
157M./dev/lazarus/1.6/.svn

>find packages -name units | xargs rm -rf {0}
>find rtl -name units | xargs rm -rf {0}
>find packages -iname "*make*" -delete
>find rtl -iname "*make*" -delete
These find commands (excluding the piping) do not return anything...

>rm -rf compiler
>rm -rf installer
Not found

>rm -rf share
du -sh .local/share
116K.local/share

>
>Which will free up A LOT of SD CARD space. 
Those I found above sum to 273M, not so much...

I will have a look at it. But since I usually run with 32 GB SDcards I
don't feel the space cram...

>Also an addition note, there is
>no real reason (IMO) to install trunk or test revisions to root owned
>folders. Usually PREFIX=$HOME/fpc or something thereof will suffice.

Right, when I did the script I specifically wanted to make it run as
user Pi and install to the Pi home dir. Lazarus is therefore a user
program and not a system resource.

However, I decided to use the FPC make install script to install FPC
and it puts FPC in /usr AFIK. THis makes FPC global.

>It should be noted that the default swap file size of Raspbian is only
>100MB which combined with a possible GPU memory settings will occasionally
>cause Lazarus builds to fail mysteriously.

I originally had instructions for usage that specifically increased
swap to 1000MB to get around this issue. But a forum user repeatedly
claimed it was not necessary so I took tha part out and it does work
on the RPi3 at least when I tried. Afetr all it has more RAM.
But I agree that having bigger swap might not hurt anyway.


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Testing Rapberry Pi 3 performance

2016-03-25 Thread Bo Berglund
On Wed, 23 Mar 2016 14:00:57 +, David Taylor
 wrote:

>I've not had chance to try Lazarus, though.

You might want to look at my installation script for installing FPC
3.0.0 and Lazarus 1.6 on a bare newly started RPi3 with Raspbian
Jessie:
http://blog.boberglund.com/install_laz_pi.sh

Revisions to download are modified in the script configuration at the
top. It needs a user response when it is running the install of the
seed compiler, otherwise it is unattended.


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Having multiple Lazarus like GetLazarus version

2016-03-25 Thread Bo Berglund
On Thu, 24 Mar 2016 19:51:54 +, Martin Frb 
wrote:

>Of course there is no installer for trunk. So when you get the sources, 
>you need do build your first lazarus.exe (you can use make and the 
>makefile, I never tried).
>If you copy a lazarus.exe from another install, that is when you get 
>warnings. But rebuild it once, and that is it.

I have built multiple versions of Lazarus (1.6RC1, 1.6RC2, 1.6) on
Linux using FPC 3.0.0.
All were done using svn retrieved sources and after the download
finished, by entering the source dir and launch:
make bigide
Then create a config directory at $HOME/.lazarus_1.6... where the name
reflects the version of Lazarus.
Create a start menu entry where the start command is set to:
/startide --pcp=

This has worked flawlessly for me in a number of installations and I
have also created a script to do all of the needed operations for
installation of FPC 3.0.0 and Lazarus 1.6 unattended on Linux
including setting up the config dir and menu entries.

The result is multiple versions of Lazarus which have to be set up
individually at first start and are isolated from each other.
Just like it is supposed to work!

I find it very simple and efficient to do when one wants for example a
stable version and a trunk version to compare.

I can't imagine that there is not a similar way for doing this on
Windows, if nothing else you can create batch files to launch your
Lazarus versions and in these include the --pcp parameter.


-- 
Bo Berglund
Developer in Sweden


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