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

* bug#51518: native-compilation on OpenBSD
  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>
  0 siblings, 2 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-10-30 18:55 UTC (permalink / raw)
  To: Han Boetes; +Cc: 51518

> Date: Sat, 30 Oct 2021 20:00:21 +0200
> From: Han Boetes <han@boetes.org>
> 
> 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!

It looks like something is wrong with your installation of libgccjit.
I suggest to report this to the maintainers of the OpenBSD libgccjit
package.





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

* bug#51518: native-compilation on OpenBSD
  2021-10-30 18:55 ` Eli Zaretskii
@ 2021-10-30 19:08   ` Han Boetes
       [not found]   ` <YX8VA4+TvqO8ohej@boetes.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Han Boetes @ 2021-10-30 19:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 51518

Eli Zaretskii wrote:
> It looks like something is wrong with your installation of libgccjit.
> I suggest to report this to the maintainers of the OpenBSD libgccjit
> package.

OK, thanks for the tip. I recompiled gcc with the required options to
add gccjit, so I think I'll report the bug with the gcc team.


--- a/lang/gcc/11/Makefile
+++ b/lang/gcc/11/Makefile
@@ -94,7 +94,7 @@ MASTER_SITES0 =       https://distfiles.stumpf.co/ \
                https://spacehopper.org/mirrors/ \
                https://distfiles.bsdfrog.org/
 
-LANGS = c,c++,fortran,objc
+LANGS = c,c++,fortran,objc,jit
 .if ${BUILD_PACKAGES:M-ada}
 LANGS := ${LANGS},ada
 DISTFILES += ${ADASTRAP-${MACHINE_ARCH}}:0
@@ -158,6 +158,7 @@ CONFIGURE_ARGS += \
        --disable-libstdcxx-pch \
        --enable-default-ssp \
        --enable-default-pie \
+       --enable-host-shared \
        --without-isl





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

* bug#51518: native-compilation on OpenBSD
       [not found]   ` <YX8VA4+TvqO8ohej@boetes.org>
@ 2021-11-01 12:12     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2021-11-01 12:12 UTC (permalink / raw)
  To: Han Boetes; +Cc: 51518-done

> Date: Sun, 31 Oct 2021 23:13:23 +0100
> From: Han Boetes <han@boetes.org>
> 
> Eli Zaretskii wrote:
> > > Date: Sat, 30 Oct 2021 20:00:21 +0200
> > > From: Han Boetes <han@boetes.org>
> > > 
> > > 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!
> > 
> > It looks like something is wrong with your installation of libgccjit.
> > I suggest to report this to the maintainers of the OpenBSD libgccjit
> > package.
> 
> Hello Eli,
> 
> Since this is off-topic for the bug list, here is the bug report:
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103016
> 
> In case you are interested.

Thanks.  I see it was already solved, so I'm closing this bug report.





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