GNU bug report logs -
#51518
native-compilation on OpenBSD
Previous Next
Reported by: Han Boetes <han <at> boetes.org>
Date: Sat, 30 Oct 2021 18:01:01 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51518 in the body.
You can then email your comments to 51518 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51518
; Package
emacs
.
(Sat, 30 Oct 2021 18:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Han Boetes <han <at> boetes.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 30 Oct 2021 18:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51518
; Package
emacs
.
(Sat, 30 Oct 2021 18:56:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 51518 <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 30 Oct 2021 20:00:21 +0200
> From: Han Boetes <han <at> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51518
; Package
emacs
.
(Sat, 30 Oct 2021 19:09:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 51518 <at> debbugs.gnu.org (full text, mbox):
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
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Mon, 01 Nov 2021 12:13:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Han Boetes <han <at> boetes.org>
:
bug acknowledged by developer.
(Mon, 01 Nov 2021 12:13:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 51518-done <at> debbugs.gnu.org (full text, mbox):
> Date: Sun, 31 Oct 2021 23:13:23 +0100
> From: Han Boetes <han <at> boetes.org>
>
> Eli Zaretskii wrote:
> > > Date: Sat, 30 Oct 2021 20:00:21 +0200
> > > From: Han Boetes <han <at> 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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 29 Nov 2021 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 261 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.