• Help needed to make Lazarus compile on Sparc64

    From Abou Al Montacir@21:1/5 to All on Sat May 27 21:00:01 2023
    --=-S7RucG8gQpgSE7o8RxM+
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    Hi Sparc Porters Team,

    I was trying to make Lazarus compile on Sparc64 for long time.
    There was a bug in Free Pascal Compiler that prevented that: https://gitlab.com/freepascal.org/fpc/source/-/issues/40252
    I manged to make upstream generate a patch for that and uploaded it to experimental: https://tracker.debian.org/news/1432268/accepted-fpc-322dfsg-21rc1-source-into-experimental/

    I tried to connect to kyoto.debian.net to test it, but I got timout on SSH connection.

    I've spent the day trying to update my QEMU VM or to install a new one, but it seems that QEMU version shipped with Bookworm is buggy on Sparc64.
    So that to say I completely lost he day without any success.

    Can anyone please, try to rebuild Lazarus on Sparc64 with FPC from experimental and let me know if that is OK?
    Or at least provide access to a Sparc64 machine where I can do it myself?

    PS: I'm not subscribed to this list, so please keep me in copy.
    --
    Cheers,
    Abou Al Montacir

    --=-S7RucG8gQpgSE7o8RxM+
    Content-Type: text/html; charset="utf-8"
    Content-Transfer-Encoding: quoted-printable

    <html><head></head><body><div>Hi Sparc Porters Team,</div><div><br></div><div>I was trying to make Lazarus compile on Sparc64 for long time.</div><div>There was a bug in Free Pascal Compiler that prevented that:&nbsp;<a href="https://gitlab.com/
    freepascal.org/fpc/source/-/issues/40252">https://gitlab.com/freepascal.org/fpc/source/-/issues/40252</a></div><div>I manged to make upstream generate a patch for that and uploaded it to experimental:&nbsp;<a href="https://tracker.debian.org/news/1432268/
    accepted-fpc-322dfsg-21rc1-source-into-experimental/">https://tracker.debian.org/news/1432268/accepted-fpc-322dfsg-21rc1-source-into-experimental/</a></div><div><br></div><div>I tried to connect to kyoto.debian.net to test it, but I got&nbsp;<span style="
    font-size: 14.666667px;">timout on&nbsp;</span>SSH connection.</div><div><br></div><div>I've spent the day trying
  • From John Paul Adrian Glaubitz@21:1/5 to Abou Al Montacir on Sun May 28 01:30:01 2023
    Hello Abou!

    On Sat, 2023-05-27 at 20:44 +0200, Abou Al Montacir wrote:
    I was trying to make Lazarus compile on Sparc64 for long time.
    There was a bug in Free Pascal Compiler that prevented that: https://gitlab.com/freepascal.org/fpc/source/-/issues/40252
    I manged to make upstream generate a patch for that and uploaded it to experimental: https://tracker.debian.org/news/1432268/accepted-fpc-322dfsg-21rc1-source-into-experimental/

    Thanks for fixing this bug!

    I tried to connect to kyoto.debian.net to test it, but I got timout on SSH connection.

    kyoto is unfortunately offline because I lost the place for hosting it and
    I haven't found a new home for this server yet. At the moment, the machine
    is sitting in my shelf at home in storage.

    There is some hope we will have a SPARC-T4 available soon that is currently being set up for the GCC compile farm and that we can get some LDOMs on
    (SPARC virtual machines).

    I've spent the day trying to update my QEMU VM or to install a new one, but it seems that QEMU version shipped with Bookworm is buggy on Sparc64.
    So that to say I completely lost he day without any success.

    You can use qemu-user which is easier to use:

    https://wiki.debian.org/M68k/sbuildQEMU https://wiki.debian.org/SH4/sbuildQEMU

    Can anyone please, try to rebuild Lazarus on Sparc64 with FPC from experimental and let me know if that is OK?

    I'll give it a try.

    Or at least provide access to a Sparc64 machine where I can do it myself?

    PS: I'm not subscribed to this list, so please keep me in copy.

    Noted.

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to John Paul Adrian Glaubitz on Sun May 28 02:20:01 2023
    Hi!

    On Sun, 2023-05-28 at 01:25 +0200, John Paul Adrian Glaubitz wrote:
    Can anyone please, try to rebuild Lazarus on Sparc64 with FPC from experimental and let me know if that is OK?

    I'll give it a try.

    Still fails, unfortunately.

    See: https://people.debian.org/~glaubitz/lazarus_2.2.6+dfsg2-2_sparc64.build

    Adrian

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John Paul Adrian Glaubitz@21:1/5 to All on Sun May 28 10:30:01 2023
    --Apple-Mail-BF855C7F-E73B-4E28-90C4-BC5A01D30D50
    Content-Type: text/plain;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable



    On May 28, 2023, at 10:13 AM, Abou Al Montacir <abou.almontacir@sfr.fr> wrote:

    
    Hi Adrian,

    On Sun, 2023-05-28 at 02:10 +0200, John Paul Adrian Glaubitz wrote:
    On Sun, 2023-05-28 at 01:25 +0200, John Paul Adrian Glaubitz wrote:
    Can anyone please, try to rebuild Lazarus on Sparc64 with FPC from
    experimental and let me know if that is OK?

    I'll give it a try.

    Still fails, unfortunately.

    See: https://people.debian.org/~glaubitz/lazarus_2.2.6+dfsg2-2_sparc64.build
    This fails because the build process pulled FPC 3.2.2+dfsg-20 from unstable instead of 3.2.2+dfsg-21~rc1 from experimental.
    One way would be to force FPC version either in the Lazarus control file or on the machine itself.

    Odd, I actually preinstalled fpc from experimental in the chroot. But it was late yesterday and I probably mixed up the chroots.

    I will try again later today.

    Adrian
    --Apple-Mail-BF855C7F-E73B-4E28-90C4-BC5A01D30D50
    Content-Type: text/html;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr"><br></div><div dir="ltr"><br><blockquote type="cite">On May 28, 2023, at 10:13 AM, Abou Al Montacir &lt;abou.
    almontacir@sfr.fr&gt; wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div>Hi Adrian,</div><div><br></div><div>On Sun, 2023-05-28 at 02:10 +0200, John Paul Adrian Glaubitz wrote:</div><blockquote type="cite" style="margin:0 0 0
    .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>On Sun, 2023-05-28 at 01:25 +0200, John Paul Adrian Glaubitz wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><blockquote type="
    cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Can anyone please, try to rebuild Lazarus on Sparc64 with FPC from<br></div><div>experimental and let me know if that is OK?<br></div></blockquote><div><br></div><div>I'
    ll give it a try.<br></div></blockquote><div><br></div><div>Still fails, unfortunately.<br></div><div><br></div><div>See: <a href="https://people.debian.org/~glaubitz/lazarus_2.2.6+dfsg2-2_sparc64.build">https://people.debian.org/~glaubitz/lazarus_2.2.6+
    dfsg2-2_sparc64.build</a><br></div></blockquote><div>This fails because the build process pulled FPC 3.2.2+dfsg-20 from unstable instead of 3.2.2+dfsg-21~rc1 from experimental.</div><div>One way would be to force FPC version either in the Lazarus control
    file or on the machine itself.</div></div></blockquote><br><div>Odd, I actually preinstalled fpc from experimental in the chroot. But it was late yesterday and I probably mixed up the chroots.</div><div><br></div><div>I will try again later today.</div><
    <br></div><div>Adrian</div></body></html> --Apple-Mail-BF855C7F-E73B-4E28-90C4-BC5A01D30D50--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Abou Al Montacir@21:1/5 to John Paul Adrian Glaubitz on Sun May 28 10:20:01 2023
    --=-zfhVJabDjKeHIXqCmx2e
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    Hi Adrian,

    On Sun, 2023-05-28 at 02:10 +0200, John Paul Adrian Glaubitz wrote:
    On Sun, 2023-05-28 at 01:25 +0200, John Paul Adrian Glaubitz wrote:
    Can anyone please, try to rebuild Lazarus on Sparc64 with FPC from experimental and let me know if that is OK?

    I'll give it a try.

    Still fails, unfortunately.

    See: https://people.debian.org/~glaubitz/lazarus_2.2.6+dfsg2-2_sparc64.build
    This fails because the build process pulled FPC 3.2.2+dfsg-20 from unstable instead of 3.2.2+dfsg-21~rc1 from experimental.
    One way would be to force FPC version either in the Lazarus control file or on the machine itself.

    Will that be OK, or should I prepare an upload of Lazarus to experimental with strict dependency?
    --
    Cheers,
    Abou Al Montacir

    --=-zfhVJabDjKeHIXqCmx2e
    Content-Type: text/html; charset="utf-8"
    Content-Transfer-Encoding: quoted-printable

    <html><head></head><body><div>Hi Adrian,</div><div><br></div><div>On Sun, 2023-05-28 at 02:10 +0200, John Paul Adrian Glaubitz wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>On Sun, 2023-
    05-28 at 01:25 +0200, John Paul Adrian Glaubitz wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:
    1ex"><div>Can anyone please, try to rebuild Lazarus on Sparc64 with FPC from<br></div><div>experimental and let me know if that is OK?<br></div></blockquote><div><br></div><div>I'll give it a try.<br></div></blockquote><div><br></div><div>Still fails,
    unfortunately.<br></div><div><br></div><div>See: <a href="https://people.debian.org/~glaubitz/lazarus_2.2.6
  • From John Paul Adrian Glaubitz@21:1/5 to John Paul Adrian Glaubitz on Sun May 28 12:50:01 2023
    Hi Abou!

    On Sun, 2023-05-28 at 10:27 +0200, John Paul Adrian Glaubitz wrote:
    I will try again later today.

    it fails with a different error now which indicates that the Lazarus
    build system doesn't know about sparc64 as an architecture [1]:

    (9009) Assembling lazbuild
    (9022) Compiling resource ../units/sparc64-linux/nogui/lazbuild.or
    Error: Unknown architecture 'sparc64'
    Error: (9029) Error while compiling resources
    Fatal: (10026) There were 1 errors compiling module, stopping
    Fatal: (1018) Compilation aborted

    Adrian

    [1] https://people.debian.org/~glaubitz/lazarus_2.2.6+dfsg2-2_sparc64.build.experimental

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Abou Al Montacir@21:1/5 to John Paul Adrian Glaubitz on Sun May 28 14:40:02 2023
    --=-mozWvyc8z9S9Lg5VZHDx
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    Hi Adrien,

    On Sun, 2023-05-28 at 12:43 +0200, John Paul Adrian Glaubitz wrote:
    Hi Abou!

    On Sun, 2023-05-28 at 10:27 +0200, John Paul Adrian Glaubitz wrote:
    I will try again later today.

    it fails with a different error now which indicates that the Lazarus
    build system doesn't know about sparc64 as an architecture [1]:

    (9009) Assembling lazbuild
    (9022) Compiling resource ../units/sparc64-linux/nogui/lazbuild.or
    Error: Unknown architecture 'sparc64'
    Error: (9029) Error while compiling resources
    Fatal: (10026) There were 1 errors compiling module, stopping
    Fatal: (1018) Compilation aborted

    Adrian

    [1] https://people.debian.org/~glaubitz/lazarus_2.2.6+dfsg2-2_sparc64.build.experimental
    This is great, at least it means that the compiler was fixed.

    I'll try to fix Lazarus now.

    Thank you for your help.
    --
    Cheers,
    Abou Al Montacir

    --=-mozWvyc8z9S9Lg5VZHDx
    Content-Type: text/html; charset="utf-8"
    Content-Transfer-Encoding: quoted-printable

    <html><head></head><body><div>Hi Adrien,</div><div><br></div><div>On Sun, 2023-05-28 at 12:43 +0200, John Paul Adrian Glaubitz wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>Hi Abou!<br><
    /div><div><br></div><div>On Sun, 2023-05-28 at 10:27 +0200, John Paul Adrian Glaubitz wrote:<br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>I will try again later today.<br></div></
    blockquote><div><br></div><div>it fails with a different error now which indicates that the Lazarus<br></div><div>build system doesn't know about sparc64 as an architecture [1]:<br></div><div><br></div><div>(9009) Assembling lazbuild<br></div><div>(9022)
    Compiling resource ../units/sparc64-linux/nogui/lazbuild.or<br></div><div>Error: Unknown architecture 'sparc64'<b