Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Daniel Brooks
    @db48x
    perhaps rather than total memory, it's something else
    maximum stack size, open files, etc
    perhaps ulimit -a might reveal the problem
    Adrien Brochard
    @abrochard
    $ ulimit -a                                                                                                                                                                                            2 ↵
    -t: cpu time (seconds)              unlimited
    -f: file size (blocks)              unlimited
    -d: data seg size (kbytes)          unlimited
    -s: stack size (kbytes)             8192
    -c: core file size (blocks)         0
    -v: address space (kbytes)          unlimited
    -l: locked-in-memory size (kbytes)  unlimited
    -u: processes                       2784
    -n: file descriptors                256
    note that I can compile regular emacs master branch fine
    Adrien Brochard
    @abrochard
    if I try to build just temacs I see something about a circular dependency
    $ make -C src temacs                                                                            2 ↵
    make: Circular bootstrap-emacs <- temacs dependency dropped.
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../admin/unidata all EMACS="../../src/bootstrap-emacs"
      ELC      uvs.elc
    /bin/sh: line 1:  6642 Killed: 9               "../../src/bootstrap-emacs" -batch --no-site-file --no-site-lisp -f batch-byte-compile uvs.el
    make[1]: *** [uvs.elc] Error 137
    make: *** [macuvs.h] Error 2
    Adrien Brochard
    @abrochard
    ran make clean and got stuck further this time
    /Applications/Xcode.app/Contents/Developer/usr/bin/make -C ../lisp compile-first EMACS="../src/bootstrap-emacs"
      ELC      emacs-lisp/macroexp.elc
    /bin/sh: line 1:  9499 Killed: 9               EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/macroexp.el
    make[2]: *** [emacs-lisp/macroexp.elc] Error 137
    make[1]: *** [bootstrap-emacs] Error 2
    make: *** [src] Error 2
    Daniel Brooks
    @db48x
    try going into the lisp directory, and then running that specific command directly
    EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/macroexp.el
    Adrien Brochard
    @abrochard
    yeah that's what I tried and I just get the killed signal
    ─$ EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/macroexp.el
    [1]    13122 killed     EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp
    Daniel Brooks
    @db48x
    good. now can you run it while watching how much memory it uses?
    Adrien Brochard
    @abrochard
    yeah but the process instantly dies. doesn't have time to show up in the Activity monitor or ps. Is there another way?
    Daniel Brooks
    @db48x
    instantly? that's rather unusual
    Adrien Brochard
    @abrochard
    2020-10-26 12.09.31.gif
    Daniel Brooks
    @db48x
    nice
    if you were using Linux, I would ask you to use rr (rr-project.org) to record the execution so that we could know exactly what's going on
    instead you'll have to use a plain debugger like GDB
    Adrien Brochard
    @abrochard
    woohoo
    Daniel Brooks
    @db48x
    found something?
    Adrien Brochard
    @abrochard
    nah i'm just excited to wipe dust off my gdb
    Daniel Brooks
    @db48x
    :)
    Adrien Brochard
    @abrochard
    what's the relationship btw temacs & bootstrap-emacs?
    is bootstrap-emacs a c binary?
    ## Dump an Emacs executable named bootstrap-emacs containing the
    ## files from loadup.el in source form.
    bootstrap-emacs$(EXEEXT): temacs$(EXEEXT)
        $(MAKE) -C ../lisp update-subdirs
    ifeq ($(CANNOT_DUMP),yes)
        ln -f temacs$(EXEEXT) $@
    else
        $(RUN_TEMACS) --batch $(BUILD_DETAILS) --load loadup bootstrap
      ifneq ($(PAXCTL_dumped),)
        $(PAXCTL_dumped) remacs$(EXEEXT)
      endif
        mv -f remacs$(EXEEXT) $@
    endif
        @: Compile some files earlier to speed up further compilation.
        $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)"
    Daniel Brooks
    @db48x
    they both are
    as you can see, bootstrap-emacs is built from temacs
    Adrien Brochard
    @abrochard
    yeah my Makefile-fu isn't super good. i can run temacs fine
    Daniel Brooks
    @db48x
    it's just boostrap-emacs that gets killed?
    Adrien Brochard
    @abrochard
    actually if I run just temacs, i get an infinte error bell loop with the message Symbol definition is void: internal-echo-keystrokes-prefix
    but the process runs, and doesn't get killed. that's just bootstrap-emacs
    Daniel Brooks
    @db48x
    heh
    Adrien Brochard
    @abrochard
    (gdb) run -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/macroexp.el
    Starting program: /Users/adrien/workspace/remacs/src/bootstrap-emacs -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/macroexp.el
    Unable to find Mach task port for process-id 3987: (os/kern) failure (0x5).
     (please check gdb is codesigned - see taskgated(8))
    (gdb) run
    Starting program: /Users/adrien/workspace/remacs/src/bootstrap-emacs -batch --no-site-file --no-site-lisp --eval '(setq load-prefer-newer t)' -f batch-byte-compile emacs-lisp/macroexp.el
    Unable to find Mach task port for process-id 3992: (os/kern) failure (0x5).
     (please check gdb is codesigned - see taskgated(8))
    Daniel Brooks
    @db48x
    yea, osx is stupid
    Adrien Brochard
    @abrochard
    hate it. going to fix the codesigned thing
    Adrien Brochard
    @abrochard
    (gdb) run -batch --no-site-file --no-site-lisp -f batch-byte-compile uvs.el
    Starting program: /Users/adrien/workspace/remacs/src/bootstrap-emacs -batch --no-site-file --no-site-lisp -f batch-byte-compile uvs.el
    [New Thread 0xd03 of process 8351]
    after 2 reboots, I can finally run gdb correctly and this is what I get when I gdb ../../src/bootstrap-emacs. It just hangs there forever
    Daniel Brooks
    @db48x
    ok, that's annoying
    Adrien Brochard
    @abrochard
    yeah...
    and I can't ctrl-c out either
    Daniel Brooks
    @db48x
    not ideal
    Adrien Brochard
    @abrochard
    i've also noticed that if I make clean && make I get a different error than if I make again
    make complains about uvs.el and make clean && make shows the macroexp.el error
    Adrien Brochard
    @abrochard
    (gdb) set print thread-events
    (gdb) run
    Starting program: /Users/adrien/workspace/remacs/src/bootstrap-emacs 
    [New Thread 0xe03 of process 37493]
    [New Thread 0x1703 of process 37493]
    During startup program terminated with signal SIGKILL, Killed.
    (gdb) info threads
    No threads.
    using print thread-events tells me a little bit more, but barely
    Adrien Brochard
    @abrochard
    someone told me that "During startup" part was interesting. Might be missing a library
    Daniel Brooks
    @db48x
    we still haven't turned off our broken CI
    Harry Fei
    @harryfei
    @brotzeit I will start to merge webrender into remacs-webrender repo recently.
    brotzeit
    @brotzeit
    @harryfei nice
    brotzeit
    @brotzeit
    if anybody else here is motivated to give remacs another try...
    박재진
    @jjpark78_jjsoft_gitlab
    i can't build remacs on macos.
    Sean Perry
    @shaleh
    @jjpark78_jjsoft_gitlab can you give us more information please? What version of the OS? What failed when you tried? Have you looked at the open issues to see if someone else has reported a similar fault?
    Adrien Brochard
    @abrochard
    I have ran into issues on MacOS. It's in the chat above. I still try from times to times. Should have opened an issue