• c++: fatal error: Killed signal terminated program cc1plus compilation

    From Sarah Amethyst@VERT to GitLab issue in main/sbbs on Thu Jun 22 07:21:57 2023
    open https://gitlab.synchro.net/main/sbbs/-/issues/575

    Unable to build from souce on debian 12 and freebsd 13

    The following command failed to execute properly:
    c++ -o jsstr.o -c -fvisibility=hidden -DOSTYPE="Linux6.1" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS -DJS_HAS_CTYPES -DDLL_PREFIX="lib" -DDLL_SUFFIX=".so" -Ictypes/libffi/include -I. -I. -I. -I./dist/include -I./dist/include/nsprpub -I/usr/include/nspr -I. -I./assembler -I./yarr -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -std=gnu++98 -fno-strict-aliasing -pthread -pipe -DNDEBUG -DTRIMMED -O3 -w -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsstr.pp jsstr.cpp
    gmake[4]: *** [config/rules.mk:1477: jsstr.o] Error 1
    gmake[4]: *** Deleting file 'jsstr.o'
    gmake[4]: Leaving directory '/sbbs/repo/3rdp/src/mozjs/js-1.8.5/js/src' gmake[3]: *** [config/rules.mk:754: default] Error 2
    gmake[3]: Leaving directory '/sbbs/repo/3rdp/src/mozjs/js-1.8.5/js/src' gmake[2]: *** [GNUmakefile:79: ../build/../../src/../3rdp/gcc.linux.x64.release/mozjs/lib/libmozjs185-1.0.a] Error 2
    gmake[2]: Leaving directory '/sbbs/repo/3rdp/build'
    gmake[1]: *** [/sbbs/repo/src/sbbs3/../build/Common.gmake:527: js] Error 2 gmake[1]: Leaving directory '/sbbs/repo/src/sbbs3'
    gmake: *** [GNUmakefile:152: sbbs3] Error 2

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to GitLab note in main/sbbs on Thu Jun 22 18:22:17 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/575#note_3623

    I've seen this happen with other programs when the system runs out of memory. Maybe monitor your memory/swap while compiling. I'm sure DM will be along with a better answer but in the meantime, it's a place to start.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sat Jun 24 00:44:23 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/575#note_3626

    The error is in a failure to build libmozjs (aka SpiderMonkey), the Mozilla JavaScript engine - a 3rd party component, not Synchronet itself.

    Like Nelgin suggested, this is likely an external/environmental problem (disk space, memory?) and nothing to do with Synchronet.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab issue in main/sbbs on Sat Jun 24 00:44:23 2023
    close https://gitlab.synchro.net/main/sbbs/-/issues/575

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net