[Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Alfred

Then, perhaps, the ODROID-C2 could be your toy for aarch64 !

Especially the eMMC connector makes it very suitable for reliable 
embedded (FPC) applications.

As well as its 2Gbyte SDRAM and Gigabit Ethernet.
Arch has 64 bit ready: 
https://archlinuxarm.org/platforms/armv8/amlogic/odroid-c2


But, with the RPi3, you can reach a much wider audience.
Which is my goal with the Pi.



I ordered also one in the hope using it to play with fpc aarch64.
But currently it does not look good as it seems that it is not only a
matter of the kernel but also the firmware. At least I didn't unwrap
mine yet because of this, without aarch64 support I see no use for me 
in it.



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


[Lazarus] How do events come into the glib event queue?

2016-03-03 Thread Martin Grajcar
Our Lazarus-GTK2 application crashes due to a GTK event whose target has
been freed. My problem is that I can see only the place where this happens
and the data has already been overwritten. *What I need is the place where
the event was generated or enqueued.*

I thought it'd be gtk2msgqueue.pp, but TGtkMessageQueue.AddMessage gets
never called before the crash. A side question: What is TGtkMessageQueue
good for?

Below is the stacktrace... I'm sure it's not helpful for finding out the
bug, it just illustrates my problem.

Regards,
Martin.

#0  g_type_check_instance_is_a (type_instance=0x85e58f0,
iface_type=139661072) at gtype.c:3967
#1  0x0820f28a in
GLIB2_G_TYPE_CHECK_INSTANCE_TYPE$POINTER$LONGWORD$$BOOLEAN ()
#2  0x08200345 in GTK2_GTK_CHECK_TYPE$POINTER$LONGWORD$$BOOLEAN ()
#3  0x082009c6 in GTK2_GTK_IS_WIDGET$POINTER$$BOOLEAN ()
#4  0xb78d8000 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb77ed641 in g_idle_dispatch (source=source@entry=0x85ee160,
callback=0x82e3430 , user_data=0x85e58f0) at
gmain.c:5321
#6  0xb77f0bb9 in g_main_dispatch (context=0x85305d0) at gmain.c:3066
#7  g_main_context_dispatch (context=context@entry=0x85305d0) at
gmain.c:3665
#8  0xb77f0ecf in g_main_context_iterate (context=context@entry=0x85305d0,
block=block@entry=0, dispatch=dispatch@entry=1, self=0x8508000) at
gmain.c:3736
#9  0xb77f0f83 in g_main_context_iteration (context=0x85305d0, may_block=0)
at gmain.c:3797
#10 0x081d8462 in TGTK2WIDGETSET__APPPROCESSMESSAGES (this=) at ./gtk2/gtk2widgetset.inc:2326
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Florian Klaempfl
Am 03.03.2016 um 14:29 schrieb Alfred:
> Working !
> 
> Thanks very much.
> I have now an aarch64 fpc(laz)up executable, compiled through Lazarus.
> 
> If a 64 bit RPi3 distro is available, I will report back !!

I ordered also one in the hope using it to play with fpc aarch64.
But currently it does not look good as it seems that it is not only a
matter of the kernel but also the firmware. At least I didn't unwrap
mine yet because of this, without aarch64 support I see no use for me in it.

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


Re: [Lazarus] Procedure List dialog regressions

2016-03-03 Thread Graeme Geldenhuys

On 01/03/2016 18:51, Juha Manninen wrote:

Maybe that should wait a little. Ondrej is making a generic
configuration API for storing column widths


OK, thanks for letting me know.

Regards,
  Graeme


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


Re: [Lazarus] Lazbuild: calling of ExecuteBefore command with up-to-date project

2016-03-03 Thread Martok
Patch series now in the bugtracker as issue #29773 (and a related on on #27820).

I have thoroughly tested it and it now does exactly what the documentation says,
but please verify.


Kind Regards,

Sebastian

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


[Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Alfred

Working !

Thanks very much.
I have now an aarch64 fpc(laz)up executable, compiled through Lazarus.

If a 64 bit RPi3 distro is available, I will report back !!



Fixed. I replaced a64 with aarch64 in the IDE.

Mattias




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


Re: [Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Michael Schnell

On 03/03/2016 12:33 PM, Bo Berglund wrote:
And they claim not so much is to be gained with 64 bit mode since RAM 
is just 1GB (currently). 
I suppose similar to X86-64, with aarch64 the speed advantage vs 32 bit 
is debatable.


Some applications that really do 64 bit calculation might get a lot faster

Some applications that use loops with a large code footprint might get 
slower, as the 64 bit code might be bigger and hence more cache loads 
might be necessary.


-Michael


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


Re: [Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Mattias Gaertner
On Thu, 03 Mar 2016 06:47:24 +
Alfred  wrote:

>[...]
> How to setup Lazarus to compile for Aarch64 ??
> Fpc does NOT know what to do with -Pa64.
> Fpc does know what to do with -Paarch64.

Fixed. I replaced a64 with aarch64 in the IDE.

Mattias

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


[Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Alfred

FYI.

All my RPi(2) FPC/Lazarus apps do run unchanged on the new RPi3, by just 
replacing the boot firmware with the latest firmware.


They were (cross-)compiled for ARMV7 hardfloat and run on Arch Linux.

And  boot is fast ... and ... my apps run FAST !!!
So, this makes the change towards the new RPi3 hardware a very easy one, 
at least for 32 bit apps.


Now we wait for 64 bit ... ;-)


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


Re: [Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Maxim Ganetsky


03.03.2016 09:47, Alfred пишет:
> However, the main question still stands:
> 
> How to setup Lazarus to compile for Aarch64 ??
> Fpc does NOT know what to do with -Pa64.
> Fpc does know what to do with -Paarch64.

Please create a bug report.

-- 
Best regards,
 Maxim Ganetsky  mailto:gan...@narod.ru

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


Re: [Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Bo Berglund
On Thu, 03 Mar 2016 10:53:43 +0100, Michael Schnell
 wrote:

>On 03/02/2016 05:09 PM, Michael Ring wrote:
>> AFAIK This is the default mode on RPi for now, same for ODroid C2, it 
>> also currently runs a64 cpu with a a32 kernel, 'real' 64bit support 
>> will come later.
>>
>So obviously the a64 hardware can run a32 code :-) .
>
>Hence I suppose an a64 Linux distribution will come with the ability to 
>run a32 user programs (but I did not yet read about this) .
>
That is what they say on the forum at least
And they claim not so much is to be gained with 64 bit mode since RAM
is just 1GB (currently).


-- 
Bo Berglund
Developer in Sweden


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


Re: [Lazarus] Aarch64 as CPU target for RPi3 with Linux as OS

2016-03-03 Thread Michael Schnell

On 03/02/2016 05:09 PM, Michael Ring wrote:
AFAIK This is the default mode on RPi for now, same for ODroid C2, it 
also currently runs a64 cpu with a a32 kernel, 'real' 64bit support 
will come later.



So obviously the a64 hardware can run a32 code :-) .

Hence I suppose an a64 Linux distribution will come with the ability to 
run a32 user programs (but I did not yet read about this) .


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