From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Han Boetes Newsgroups: gmane.emacs.bugs Subject: bug#51518: native-compilation on OpenBSD Date: Sat, 30 Oct 2021 20:00:21 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9325"; mail-complaints-to="usenet@ciao.gmane.io" To: 51518@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 30 20:19:08 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgswe-0002GF-2P for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Oct 2021 20:19:08 +0200 Original-Received: from localhost ([::1]:57080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgswc-0007q3-8H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Oct 2021 14:19:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgsf8-0001Xu-Kf for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 14:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46897) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgsf8-00086e-BP for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 14:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgsf8-0005zD-2w for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 14:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Han Boetes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Oct 2021 18:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51518 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163561684322974 (code B ref -1); Sat, 30 Oct 2021 18:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Oct 2021 18:00:43 +0000 Original-Received: from localhost ([127.0.0.1]:58443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgsen-0005yT-9B for submit@debbugs.gnu.org; Sat, 30 Oct 2021 14:00:43 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:53498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgsek-0005yJ-9A for submit@debbugs.gnu.org; Sat, 30 Oct 2021 14:00:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgsej-0000eD-Uj for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 14:00:37 -0400 Original-Received: from dahud.boetes.org ([2a01:7c8:d005:215::1]:1481) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgseg-00081I-Lm for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 14:00:37 -0400 Original-Received: by dahud.boetes.org (Postfix, from userid 1026) id 56D91D15BC; Sat, 30 Oct 2021 20:00:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boetes.org; s=woosh; t=1635616821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=+7t3E7OyjGP67VBPehKnMxZOTw5q566mORT94k/9HOM=; b=TWnnrpetqyOPVD/g4e6AkIVG56i9jkrMQOvHdky0Dbqqd/e1nfOI76pd/rvdTh/uKe8bci Z1Jy3mCRfBopAmuK7J8fcfjQHafJpD7zdZj1unJSmNWiUvd2J+zWMM3by3czJ0Oe/Jar86 ZAhdX2yWlFSVoTlXkjdr9Qok3AAn40YAXmS1i/7PWm21CM5Sp3bMuGpnh7z8R0CzkGPP4U Vw2osyYSr+4pjb9Pln0Duy53b2aoQShc8XrTWb8aGzIgAsHcQn3QEwAeTaOaMHkyYoMOZg Ek6ZLxh9mYjhPgWZZvLu1pypN9XvCMyyWBIcCmyhvv91nRae4W4BD/Oyz0D44A== Content-Disposition: inline Received-SPF: pass client-ip=2a01:7c8:d005:215::1; envelope-from=han@boetes.org; helo=dahud.boetes.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218633 Archived-At: 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