Sign in Join

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

Mailing lists / lazarus / 2017-12

Lazarus on Power8 (ppc64le)

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Alfred

Hello,

I am trying to run Lazarus on a IBM Power8 (ppc64le), OS=Debian. Problem: it does not run.
(it does start, but errors out on an illegal free() )

Details.

Command line apps compiled native on Power8 do run. Command line apps compiled cross-compiled from Windows to Power8 do run. FPC rtti tests run flawless on ppc64le.

Most simple GUI (only an empty form) app cross-compiled does not run. But they also do not generate any error. They just start and stop without any effect or message.
(compiled with all debug info and -O0)

Debugging with gdbserver should work (server runs ok with app), if I had a gdb for ppc64le on Windows.

Any ideas ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171228/50a5d4ad/attachment.html>

Reply by email

R0b0t1
to Alfred
Alfred wrote 22 lines
Hello, I am trying to run Lazarus on a IBM Power8 (ppc64le), OS=Debian. Problem: it does not run. (it does start, but errors out on an illegal free() ) Details. Command line apps compiled native on Power8 do run. Command line apps compiled cross-compiled from Windows to Power8 do run. FPC rtti tests run flawless on ppc64le. Most simple GUI (only an empty form) app cross-compiled does not run. But they also do not generate any error. They just start and stop without any effect or message. (compiled with all debug info and -O0) Debugging with gdbserver should work (server runs ok with app), if I had a gdb for ppc64le on Windows. Any ideas ?

I have access to a ppc64le machine, but how did you build FPC for ppc64le? From x86_64, or?

Cheers,
R0b0t1

Reply by email

Alfred
to R0b0t1

I have build a cross-compiler for ppc64le from a win32 install with fpcupdeluxe.

With this cross-compiler, ppc64le builds were made of fpc(laz)up. Fpc(laz)up is a command line tool to install FPC (and Lazarus). I used this to install FPC and Lazarus.

https://github.com/LongDirtyAnimAlf/Reiniero-fpcup/releases/tag/1.6.0n

Fpc(laz)up will do all the magic.
The bootstrapper used by fpc(laz)up can be found here: https://github.com/newpascal/fpcupdeluxe/releases/tag/bootstrappers_v1.0

Just run

./fpclazup-powerpc64le-linux --fpcURL="trunk" --lazURL="trunk" --verbose --fpcsplit
or
./fpcup-powerpc64le-linux --fpcURL="trunk" --verbose --fpcsplit

Reply by email