• aarch64?

    From deon@VERT/ALTERANT to Digital Man on Thursday, October 10, 2024 13:02:04
    Re: aarch64?
    By: Digital Man to deon on Wed Oct 09 2024 06:12 pm

    Hi,

    Well, it compiles, but core dumps when you run sbbs

    Are you using a distro-supplied build of libmozjs or building from source?

    Distro, as per the instructions on the wiki page: (from debian archives)

    root@52159e86af1a:/opt/sbbs# apt list --installed|grep ffi libffi6/oldoldstable,now 3.2.1-6 arm64 [installed,automatic] libffi7/oldstable,now 3.3-6 arm64 [installed,automatic]

    root@52159e86af1a:/opt/sbbs# apt list --installed|grep libmoz libmozjs185-1.0/oldoldstable,now 1.8.5-1.0.0+dfsg-6 arm64 [installed] libmozjs185-dev/oldoldstable,now 1.8.5-1.0.0+dfsg-6 arm64 [installed]

    While the wiki page lists "stretch" as the debian image, I'm using bookworm as the base.


    ...ëîåï

    ---
    þ Synchronet þ AnsiTEX bringing back videotex but with ANSI
  • From Digital Man@VERT to deon on Thursday, October 10, 2024 11:51:02
    Re: aarch64?
    By: deon to Digital Man on Thu Oct 10 2024 01:02 pm

    Re: aarch64?
    By: Digital Man to deon on Wed Oct 09 2024 06:12 pm

    Hi,

    Well, it compiles, but core dumps when you run sbbs

    Are you using a distro-supplied build of libmozjs or building from source?

    Distro, as per the instructions on the wiki page: (from debian archives)

    When I wrote those instructions, they were for a 32-bit ARM build, not 64-bit. You might have better luck building libmozjs from source (including in the sbbs git repo) and using that instead.
    --
    digital man (rob)

    Steven Wright quote #7:
    A clear conscience is usually the sign of a bad memory.
    Norco, CA WX: 75.9øF, 58.0% humidity, 3 mph W wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deon@VERT/ALTERANT to Digital Man on Friday, October 11, 2024 08:24:04
    Re: aarch64?
    By: Digital Man to deon on Thu Oct 10 2024 11:51 am

    Howdy,

    When I wrote those instructions, they were for a 32-bit ARM build, not 64-bit. You might have better luck building libmozjs from source (including in the sbbs git repo) and using that instead.

    Filed in the "too hard" basket.

    The person I was helping has decided to play with Mystic instead.


    ...ëîåï

    ---
    þ Synchronet þ AnsiTEX bringing back videotex but with ANSI
  • From Digital Man@VERT to deon on Thursday, October 10, 2024 15:22:26
    Re: aarch64?
    By: deon to Digital Man on Fri Oct 11 2024 08:24 am

    Re: aarch64?
    By: Digital Man to deon on Thu Oct 10 2024 11:51 am

    Howdy,

    When I wrote those instructions, they were for a 32-bit ARM build, not 64-bit. You might have better luck building libmozjs from source (including in the sbbs git repo) and using that instead.

    Filed in the "too hard" basket.

    It's actually the default build option: by *not* including the JSLIB option on the make command-line, that's what happens. :-)

    The person I was helping has decided to play with Mystic instead.

    Okay, cool. Best of luck to them then.
    --
    digital man (rob)

    Rush quote #1:
    Danger plus survival equals fun. - Neil Peart
    Norco, CA WX: 86.2øF, 36.0% humidity, 8 mph WNW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Ree@VERT/FTELNET to Digital Man on Thursday, October 10, 2024 20:52:34
    When I wrote those instructions, they were for a 32-bit ARM build, not 64-bit. You might have better luck building libmozjs from source (including in the sbbs git repo) and using that instead.

    Didn't work for me when I tried building libmozjs from source (same error as reported in original post: configure: error: "libffi has not been ported to aarch64-unknown-linux-gnu.")

    But the 32-bit ARM instructions worked fine for 64-bit here. Just in case the friend decides to try sbbs again, here's the full log of commands I executed:

    ---
    apt install build-essential perl zip git gdb libarchive-dev libncursesw5-dev libnspr4-dev libmosquitto-dev libsystemd-dev libcap-dev xorg-dev libsdl2-dev libgtk-3-dev libglade2-dev python3 python-is-python3 lrzsz gkermit

    wget http://archive.debian.org/debian/pool/main/libf/libffi/libffi6_3.2.1-6_arm 64.deb
    apt install ./libffi6_3.2.1-6_arm64.deb
    wget http://archive.debian.org/debian/pool/main/m/mozjs/libmozjs185-1.0_1.8.5-1 .0.0+dfsg-6_arm64.deb
    apt install ./libmozjs185-1.0_1.8.5-1.0.0+dfsg-6_arm64.deb
    wget http://archive.debian.org/debian/pool/main/m/mozjs/libmozjs185-dev_1.8.5-1 .0.0+dfsg-6_arm64.deb
    apt install ./libmozjs185-dev_1.8.5-1.0.0+dfsg-6_arm64.deb

    mkdir /sbbs
    cd /sbbs
    wget https://gitlab.synchro.net/main/sbbs/-/raw/master/install/GNUmakefile
    make install SYMLINK=1 NOCAP=1 JSINCLUDE=/usr/include/js JSLIB=mozjs185
    ---

    uname -a reports: Linux rpi-bookworm-arm64 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

    And logging in via telnet reports: NODE: 1 (of 4) - Debian GNU/Linux 12 (bookworm) aarch64
    ---
    þ Synchronet þ fTelnet Demo Server - ftelnet.synchro.net
  • From deon@VERT/ALTERANT to Digital Man on Friday, October 11, 2024 12:23:30
    Re: aarch64?
    By: Digital Man to deon on Thu Oct 10 2024 03:22 pm

    Howdy,

    It's actually the default build option: by *not* including the JSLIB option on the make command-line, that's what happens. :-)

    Yes, that's my default build option too - but it too didnt work.

    libffi complains about not knowing about aarch64 (from memory)...


    ...ëîåï

    ---
    þ Synchronet þ AnsiTEX bringing back videotex but with ANSI
  • From deon@VERT/ALTERANT to Ree on Friday, October 11, 2024 14:02:43
    Re: aarch64?
    By: Ree to Digital Man on Thu Oct 10 2024 08:52 pm

    Howdy,

    But the 32-bit ARM instructions worked fine for 64-bit here. Just in case the friend decides to try sbbs again, here's the full log of commands I executed:

    Thanks, that's pretty much what I had as well - but it core dumps after starting (clean environment, new install, no configuration).

    10/11 13:31:09 srvc WSS listening on socket :: port 11235
    10/11 13:31:09 srvc 0000 Services thread started (18 service sockets bound) [Threads: 9 Sockets: 38 Clients: 0 Served: 0 Errors: 0] (?=Help): Segmentation fault (core dumped)
    root@badd3ace98bf:/opt/sbbs# uname -a
    Linux badd3ace98bf 5.14.0-362.24.1.el9_3.aarch64 #1 SMP PREEMPT_DYNAMIC Wed Mar 13 14:53:45 EDT 2024 aarch64 GNU/Linux

    Same old dependancy files:

    root@badd3ace98bf:/opt/sbbs# dpkg -l
    ii libmozjs185-1.0 1.8.5-1.0.0+dfsg-6 arm64 SpiderMonkey JavaScript engine
    ii libmozjs185-dev 1.8.5-1.0.0+dfsg-6 arm64 SpiderMonkey JavaScript library - development headers
    ii libffi6:arm64 3.2.1-6 arm64 Foreign Function Interface library runtime

    gdb backtrace was provided previously...

    sbbs would only stay running if I start it with "sbbs s- ne", but as soon as I telneted to it, it segfaulted.


    ...ëîåï

    ---
    þ Synchronet þ AnsiTEX bringing back videotex but with ANSI
  • From MRO@VERT/BBSESINF to deon on Friday, October 11, 2024 00:04:53
    Re: aarch64?
    By: deon to Digital Man on Fri Oct 11 2024 08:24 am

    Re: aarch64?
    By: Digital Man to deon on Thu Oct 10 2024 11:51 am

    Howdy,

    When I wrote those instructions, they were for a 32-bit ARM build, not 64-bit. You might have better luck building libmozjs from source (including in the sbbs git repo) and using that instead.

    Filed in the "too hard" basket.

    The person I was helping has decided to play with Mystic instead.



    NOOOOOOO!
    we lost another one to mystic!
    the pain!! the pain!!
    ---
    þ Synchronet þ ::: BBSES.info - free BBS services :::