From: "Tom Alexander" <tom@fizz.buzz>
To: emacs-orgmode@gnu.org
Subject: Org-mode starting with 37d6bde27 errors out parsing org-mode/testing/examples/pub/a.org
Date: Wed, 11 Oct 2023 17:17:19 -0400 [thread overview]
Message-ID: <15f3fa9a-d6d1-4a88-950c-9d13d62a5904@app.fastmail.com> (raw)
[-- 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))) \
)"
next reply other threads:[~2023-10-11 21:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-11 21:17 Tom Alexander [this message]
2023-10-12 8:20 ` Org-mode starting with 37d6bde27 errors out parsing org-mode/testing/examples/pub/a.org Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15f3fa9a-d6d1-4a88-950c-9d13d62a5904@app.fastmail.com \
--to=tom@fizz.buzz \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).