unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Han Boetes <han@boetes.org>
To: 51518@debbugs.gnu.org
Subject: bug#51518: native-compilation on OpenBSD
Date: Sat, 30 Oct 2021 20:00:21 +0200	[thread overview]
Message-ID: <YX2INZC2fKP2etBk@boetes.org> (raw)

Hi there,

I just tried building emacs with native compilation on OpenBSD-7.0 amd64 like this:

    export CC=egcc \
           CPP="ecpp" \
           CPPFLAGS="-I/usr/local/include" \
           LDFLAGS="-L/usr/local/lib"
    ./autogen.sh
    ./configure --without-makeinfo --without-x --mandir=/usr/local/man --with-native-compilation
    gmake

egcc (GCC) 11.2.0, is just gcc-11 which is traditionally installed as
egcc to avoid conflicts with the usually somewhat older gcc in base.


And it failed like this:
[snip]
Loading /usr/pkgmk/work/emacs/src/emacs/lisp/cus-start.el (source)...
Loading /usr/pkgmk/work/emacs/src/emacs/lisp/tooltip.el (source)...
Loading /usr/pkgmk/work/emacs/src/emacs/lisp/international/iso-transl.el (source)...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name bootstrap-emacs.pdmp
Dumping fingerprint: 6275d2074be8b8265c9e8609334e5a89403dc7e2e79f1502686222fb42e63ba4
Dump complete
Byte counts: header=100 hot=14380404 discardable=161696 cold=10088576
Reloc counts: hot=1011990 discardable=4727
gmake -C ../lisp compile-first EMACS="../src/bootstrap-emacs"
gmake[2]: Entering directory '/usr/obj/work/emacs/src/emacs/lisp'
  ELC+ELN  emacs-lisp/macroexp.elc
  ELC+ELN  emacs-lisp/byte-opt.elc
  ELC+ELN  emacs-lisp/cconv.elc
  ELC+ELN  emacs-lisp/bytecomp.elc
bootstrap-emacs:/usr/local/lib/libgccjit.so.0.0.1: undefined symbol '_Z15fname_as_stringi'
ld.so: bootstrap-emacs: lazy binding failed!
Killed
gmake[2]: *** [Makefile:316: emacs-lisp/macroexp.elc] Error 137
gmake[2]: *** Waiting for unfinished jobs....
bootstrap-emacs:/usr/local/lib/libgccjit.so.0.0.1: undefined symbol '_Z15fname_as_stringi'
ld.so: bootstrap-emacs: lazy binding failed!
Killed
gmake[2]: *** [Makefile:316: emacs-lisp/byte-opt.elc] Error 137
bootstrap-emacs:/usr/local/lib/libgccjit.so.0.0.1: undefined symbol '_Z15fname_as_stringi'
ld.so: bootstrap-emacs: lazy binding failed!
Killed
gmake[2]: *** [Makefile:316: emacs-lisp/cconv.elc] Error 137
bootstrap-emacs:/usr/local/lib/libgccjit.so.0.0.1: undefined symbol '_Z15fname_as_stringi'
ld.so: bootstrap-emacs: lazy binding failed!
Killed
gmake[2]: *** [Makefile:316: emacs-lisp/bytecomp.elc] Error 137
gmake[2]: Leaving directory '/usr/obj/work/emacs/src/emacs/lisp'
gmake[1]: *** [Makefile:860: bootstrap-emacs.pdmp] Error 2
gmake[1]: Leaving directory '/usr/obj/work/emacs/src/emacs/src'
gmake: *** [Makefile:450: src] Error 2


Please tell me what else you'd like to know and I'll provide it.


# Han





             reply	other threads:[~2021-10-30 18:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-30 18:00 Han Boetes [this message]
2021-10-30 18:55 ` bug#51518: native-compilation on OpenBSD Eli Zaretskii
2021-10-30 19:08   ` Han Boetes
     [not found]   ` <YX8VA4+TvqO8ohej@boetes.org>
2021-11-01 12:12     ` Eli Zaretskii

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YX2INZC2fKP2etBk@boetes.org \
    --to=han@boetes.org \
    --cc=51518@debbugs.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.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).