all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Org-mode starting with 37d6bde27 errors out parsing org-mode/testing/examples/pub/a.org
@ 2023-10-11 21:17 Tom Alexander
  2023-10-12  8:20 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Alexander @ 2023-10-11 21:17 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2408 bytes --]

Steps to reproduce:
 1. Build emacs 29.1
 2. Build org-mode with revision 37d6bde27fe228cdadcb5cdaa09287872a508777
 3. Run the following:
```
emacs -q --no-site-file --no-splash --batch --eval "(progn
     (require 'org)
     (setq vc-handled-backends nil)
     (find-file-read-only \"org-mode/testing/examples/pub/a.org\")
     (org-mode)
     (message \"%s\" (pp-to-string (org-element-parse-buffer)))
)"
```

I've attached a Dockerfile that reproduces the issue. Just throw that in a directory and run `docker build -t temp .` to see it fail. Change the `ARG ORG_VERSION=` line to `ac108a3ac1b332bf27ff2984a9cf26af3744185d` to see it succeed.

Error message:
```
File mode specification error: (void-function org-export--list-bound-variables)

Error: void-function (org-export--list-bound-variables)
  mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode 0x1250f7d61dae8645>))
  debug-early-backtrace()
  debug-early(error (void-function org-export--list-bound-variables))
  org-export--list-bound-variables()
  org-element--generate-copy-script(#<buffer a.org> :copy-unreadable do-not-check :drop-visibility t :drop-narrowing t :drop-contents t :drop-locals nil)
  org-element-copy-buffer(:to-buffer #<buffer  *Org parse*> :drop-visibility t :drop-narrowing t :drop-contents t :drop-locals nil)
  org-element-parse-secondary-string("<2014-03-04 Tue>" (bold citation code entity export-snippet inline-babel-call inline-src-block italic line-break latex-fragment link macro radio-target statistics-cookie strike-through subscript superscript target timestamp underline verbatim))
  org-macro--find-date()
  org-macro--collect-macros()
  org-macro-initialize-templates()
  org-mode()
  (progn (require 'org) (setq vc-handled-backends nil) (find-file-read-only "/input/home/talexander/git/org-mode/testing/examples/pub/a.org") (org-mode) (message "%s" (pp-to-string (org-element-parse-buffer))))
  command-line-1(("--no-splash" "--eval" "(progn\n     (require 'org)\n     (setq vc-handled-backends nil)\n     (find-file-read-only \"/input/home/talexander/git/org-mode/testing/examples/pub/a.org\")\n     (org-mode)\n     (message \"%s\" (pp-to-string (org-element-parse-buffer)))\n)"))
  command-line()
  normal-top-level()
Symbol’s function definition is void: org-export--list-bound-variables
```

--
Tom Alexander
pgp: https://fizz.buzz/pgp.asc

[-- Attachment #1.2: Type: text/html, Size: 3518 bytes --]

[-- Attachment #2: Dockerfile --]
[-- Type: application/octet-stream, Size: 1996 bytes --]

FROM alpine:3.17 AS build
RUN apk add --no-cache build-base musl-dev git autoconf make texinfo gnutls-dev ncurses-dev gawk libgccjit-dev


FROM build AS build-emacs
ARG EMACS_VERSION=emacs-29.1
RUN git clone --depth 1 --branch $EMACS_VERSION https://git.savannah.gnu.org/git/emacs.git /root/emacs
WORKDIR /root/emacs
RUN mkdir /root/dist
RUN ./autogen.sh
RUN ./configure --prefix /usr --without-x --without-sound --with-native-compilation=aot
RUN make
RUN make DESTDIR="/root/dist" install


FROM build AS build-org-mode
# Working version: ac108a3ac1b332bf27ff2984a9cf26af3744185d
# Broken version: 37d6bde27fe228cdadcb5cdaa09287872a508777
ARG ORG_VERSION=37d6bde27fe228cdadcb5cdaa09287872a508777
COPY --from=build-emacs /root/dist/ /
RUN mkdir /root/dist
RUN git clone https://git.savannah.gnu.org/git/emacs/org-mode.git /root/org-mode && git -C /root/org-mode checkout $ORG_VERSION
WORKDIR /root/org-mode
RUN make compile
RUN make DESTDIR="/root/dist" install

FROM rustlang/rust:nightly-alpine3.17 AS tester
ENV LANG=en_US.UTF-8
RUN apk add --no-cache musl-dev ncurses gnutls libgccjit
RUN cargo install --locked --no-default-features --features ci-autoclean cargo-cache
COPY --from=build-emacs /root/dist/ /
COPY --from=build-org-mode /root/dist/ /
COPY --from=build-org-mode /root/org-mode /foreign_documents/org-mode

# Always works:
RUN emacs -q --no-site-file --no-splash --batch --eval "(progn \
     (require 'org) \
     (setq vc-handled-backends nil) \
     (find-file-read-only \"/foreign_documents/org-mode/testing/org-test.el\") \
     (org-mode) \
     (message \"%s\" (pp-to-string (org-element-parse-buffer))) \
)"

# Fails starting at 37d6bde27fe228cdadcb5cdaa09287872a508777:
RUN emacs -q --no-site-file --no-splash --batch --eval "(progn \
     (require 'org) \
     (setq vc-handled-backends nil) \
     (find-file-read-only \"/foreign_documents/org-mode/testing/examples/pub/a.org\") \
     (org-mode) \
     (message \"%s\" (pp-to-string (org-element-parse-buffer))) \
)"

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-12  8:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-11 21:17 Org-mode starting with 37d6bde27 errors out parsing org-mode/testing/examples/pub/a.org Tom Alexander
2023-10-12  8:20 ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.