unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51518: native-compilation on OpenBSD
@ 2021-10-30 18:00 Han Boetes
  2021-10-30 18:55 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Han Boetes @ 2021-10-30 18:00 UTC (permalink / raw)
  To: 51518

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





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

end of thread, other threads:[~2021-11-01 12:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-30 18:00 bug#51518: native-compilation on OpenBSD Han Boetes
2021-10-30 18:55 ` Eli Zaretskii
2021-10-30 19:08   ` Han Boetes
     [not found]   ` <YX8VA4+TvqO8ohej@boetes.org>
2021-11-01 12:12     ` Eli Zaretskii

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).