• Error building for Arm64

    From Michael J. Ryan@1:103/705 to GitLab issue in main/sbbs on Sun Sep 4 15:13:54 2022
    open https://gitlab.synchro.net/main/sbbs/-/issues/437

    Seems to be an issue with configuration detection, Arm64, Debian Bullseye```#0 94.35 configure: error: cannot guess build type; you must specify one#0 94.59 configure: error: ./configure failed for ctypes/libffi```---More Details Below...```#0 93.00 configure: creating cache /sbbs/repo/3rdp/src/mozjs/js-1.8.5/js/src/ctypes/libffi/config.cache#0 93.17 checking build system type... ./config.guess: unable to guess system type#0 94.31 #0 94.31 This script, last modified 2009-11-19, has failed to recognize#0 94.31 the operating system you are using. It is advised that you#0 94.31 download the most up to date version of the config scripts from#0 94.31 #0 94.31 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD#0 94.31 and#0 94.31 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD#0 94.31 #0 94.31 If the version you run (./config.guess) is already up to date, please#0 94.31 send the following data and any information you think might be#0 94.31 pertinent to <config-patches@gnu.org> in order to provide the needed#0 94.31 information to handle your system.#0 94.31 #0 94.31 config.guess timestamp = 2009-11-19#0 94.31 #0 94.31 uname -m = aarch64#0 94.31 uname -r = 5.15.0-46-generic#0 94.31 uname -s = Linux#0 94.31 uname -v = #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022#0 94.31 #0 94.31 /usr/bin/uname -p = #0 94.31 /bin/uname -X = #0 94.31 #0 94.31 hostinfo = #0 94.31 /bin/universe = #0 94.31 /usr/bin/arch -k = #0 94.31 /bin/arch = #0 94.31 /usr/bin/oslevel = #0 94.31 /usr/convex/getsysinfo = #0 94.31 #0 94.31 UNAME_MACHINE = aarch64#0 94.31 UNAME_RELEASE = 5.15.0-46-generic#0 94.31 UNAME_SYSTEM = Linux#0 94.31 UNAME_VERSION = #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022#0 94.35 configure: error: cannot guess build type; you must specify one#0 94.59 configure: error: ./configure failed for ctypes/libffi#0 94.59 make[2]: *** [GNUmakefile:77: ../build/../../src/../3rdp/gcc.linux.aarch64.release/mozjs/lib/libmozjs185-1.0.a] Error 1#0 94.59 make[2]: Leaving directory '/sbbs/repo/3rdp/build'#0 94.59 make[1]: *** [/sbbs/repo/src/sbbs3/../build/Common.gmake:524: js] Error 2#0 94.59 make[1]: Leaving directory '/sbbs/repo/src/sbbs3'#0 94.60 make: *** [GNUmakefile:152: sbbs3] Error 2```
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Luke Walker@1:103/705 to GitLab note in main/sbbs on Sun Oct 2 20:36:00 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/437#note_2758

    `#0 94.31 config.guess timestamp = 2009-11-19` What version of source code are you building? This error should have been fixed by !131
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Mon Oct 3 08:32:10 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/437#note_2760

    @lot3d it was definitely more recent... I was building the latest linux build branch (gets updated on successful build) as of when I opened this issue.For reference, this was my docker build that was running... if you want to try the same environment (debian bullseye).https://github.com/bbs-io/synchronet-docker/tree/master/docker
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Luke Walker@1:103/705 to GitLab note in main/sbbs on Fri Oct 7 17:07:52 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/437#note_2769

    Hmmm... you are correct. Looks like `config.guess` needs to be updated under ctypes/libffi as well. Of course, when I try to test updating config.guess, the changes are overwritten by the makefile :unamused:
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Luke Walker@1:103/705 to GitLab note in main/sbbs on Fri Oct 7 18:14:58 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/437#note_2770

    changes are overwritten by the makefile By commenting out these lines, my changes persisted `3rdp/build/GNUmakefile` ```bash $(QUIET)-rm -rf $(JS_SRC)/* $(QUIET)tar -xzC $(JS_SRC) -f $(3RDPDISTDIR)/libmozjs.tgz```<br /><br /> Unfortunately, even after updating `config.guess`, the included libffi package is incompatible```bashchecking whether mmap with MAP_ANON(YMOUS) works... yesconfigure: error: "libffi has not been ported to aarch64-unknown-linux-gnu."configure: error: ./configure failed for ctypes/libffi```
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Michael J. Ryan@1:103/705 to GitLab note in main/sbbs on Fri Oct 14 20:22:38 2022
    https://gitlab.synchro.net/main/sbbs/-/issues/437#note_2781

    @lot3d yeah... I tried a few things like that... in the end, for now, just disabled arm builds. I don't have anything to really test the results of arm7 (32bit) and arm64 was more for coverage than personal use... Don't even have my rpi boxes setup currently.Would like to get them both working again at some point though.
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)