From unknown Sun Aug 17 22:00:36 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51518 <51518@debbugs.gnu.org> To: bug#51518 <51518@debbugs.gnu.org> Subject: Status: native-compilation on OpenBSD Reply-To: bug#51518 <51518@debbugs.gnu.org> Date: Mon, 18 Aug 2025 05:00:36 +0000 retitle 51518 native-compilation on OpenBSD reassign 51518 emacs submitter 51518 Han Boetes severity 51518 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 30 14:00:43 2021 Received: (at submit) by debbugs.gnu.org; 30 Oct 2021 18:00:43 +0000 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 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 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 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 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== Date: Sat, 30 Oct 2021 20:00:21 +0200 From: Han Boetes To: bug-gnu-emacs@gnu.org Subject: native-compilation on OpenBSD Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 30 14:55:51 2021 Received: (at 51518) by debbugs.gnu.org; 30 Oct 2021 18:55:51 +0000 Received: from localhost ([127.0.0.1]:58464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgtWA-0007Lr-Qm for submit@debbugs.gnu.org; Sat, 30 Oct 2021 14:55:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgtWA-0007Lf-63 for 51518@debbugs.gnu.org; Sat, 30 Oct 2021 14:55:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgtW4-0004AH-8d; Sat, 30 Oct 2021 14:55:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bVi+vDeIRarGnKauft532MtxJCQXQXHXsv4z33M7EfI=; b=QDpdu9J4liWu aTbyphJxkI8D47kT8/VWbhUgLGHf+gk9Yw6irhFsc/+4We+3mjzqLsIx8VVLc5p3M2QhmOu7iIADF jpKDpeo4eTclHOFujMFubIRltcOdSMKTVwzFiT/fsBRowOVgaCJXfWfLs9oTmFoWsz2jg7BvG9FiB nhWOE35jeKNgh25cTFFQv/MkeqD6ZitFivcY64oTJA9pJIWQ9G2RONnP5cCHxDYV/ze1BojRux8hU +uxoBLX2ZvEEOo/HPctHgH6ma3oFy0p3lljNtRuZD2XeCtZs2vcMrVGGhUdl7Gt70W1ofyyFQXEdi Y6FweDly5Ln8TSvS5GqRHw==; Received: from [87.69.77.57] (port=4234 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgtW3-0004YB-Oj; Sat, 30 Oct 2021 14:55:44 -0400 Date: Sat, 30 Oct 2021 21:55:29 +0300 Message-Id: <83ilxenxzy.fsf@gnu.org> From: Eli Zaretskii To: Han Boetes In-Reply-To: (message from Han Boetes on Sat, 30 Oct 2021 20:00:21 +0200) Subject: Re: bug#51518: native-compilation on OpenBSD References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51518 Cc: 51518@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 30 Oct 2021 20:00:21 +0200 > From: Han Boetes > > 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 30 15:08:55 2021 Received: (at 51518) by debbugs.gnu.org; 30 Oct 2021 19:08:55 +0000 Received: from localhost ([127.0.0.1]:58473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgtip-0007h0-9M for submit@debbugs.gnu.org; Sat, 30 Oct 2021 15:08:55 -0400 Received: from dahud.boetes.org ([136.144.229.186]:8500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgtin-0007gs-LR for 51518@debbugs.gnu.org; Sat, 30 Oct 2021 15:08:54 -0400 Received: by dahud.boetes.org (Postfix, from userid 1026) id 140A6D15BC; Sat, 30 Oct 2021 21:08:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boetes.org; s=woosh; t=1635620931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nw/LbXti96dDE3zZVgXE1NyaKT+mND10svOZ8FH9gPI=; b=lXojpoVAe5ZUFxhg0fNRoB5Caq78hEEn/QNz0nW/LeHnTpsBiN6aKGmpC8HkGjbgxVxNQt ZdqKKEwqCpvnSxV2bkFO5jfBqqXu7reTbFPfCpnQdwa6/c8XM2Sx5R8ln+7wSm1CFqKE72 3lGVR9w3ajRBM7I1TyBQ8TM4APTjsnfDQ/rfzETrYwDNs1SokDr82zYy1Q8cDQR4SV5v1x kW5flbwCOvEMHM/ku2xlgPcf7T2GpUSCv0yPqo5J3zcpKqJ20O7Gk8lhbAv1A2uRbVk2Ow tul9G8sTXTexNm4HWk5XccAZckyACIAy7bp01JXvHTHmnldI8FXE2dcgvZWVcA== Date: Sat, 30 Oct 2021 21:08:51 +0200 From: Han Boetes To: Eli Zaretskii Subject: Re: bug#51518: native-compilation on OpenBSD Message-ID: References: <83ilxenxzy.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83ilxenxzy.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51518 Cc: 51518@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 01 08:12:55 2021 Received: (at 51518-done) by debbugs.gnu.org; 1 Nov 2021 12:12:55 +0000 Received: from localhost ([127.0.0.1]:33883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhWBK-0006H0-S3 for submit@debbugs.gnu.org; Mon, 01 Nov 2021 08:12:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhWBH-0006Gh-68 for 51518-done@debbugs.gnu.org; Mon, 01 Nov 2021 08:12:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhWBB-0008Aj-8S; Mon, 01 Nov 2021 08:12:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=0tWTfC8Gj7xLN4KBl0mTpLnQ3hJ/R/KIpCXJJZBhGI0=; b=bv7AOF5ZTjX1 XIPLIJT4dFDNVqUR9hTLvyInTYg4yEm3xpHPC2FnUR8ipt1M8nMyrKPSoT8u7+5ztmYUiqlJ36OHa s9Y9E/u8GnYzoK/qWORZPsyinL1KKgWJtmy1JE8EDAAnQJtMhpw9650+4x1Vch2pBFMB93uHoh/4o 75M6zOiuoJuztkpLT7KVNMJjSt7k3bZNnvsTYhJTIfUXyShDTaIkqIDi1yhaDvB1SZPuwz9Bo4PhN EFDXAJsRFRmhThOKxA+PCgxxTOidTsFjlxWh0IovEf+KRa9Ao39Vtu5NitDm+r9tdFuE7R4KtZ85f KOoV9c8HgE4ikFNK44hVsQ==; Received: from [87.69.77.57] (port=2154 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhWBA-0007C5-0a; Mon, 01 Nov 2021 08:12:45 -0400 Date: Mon, 01 Nov 2021 14:12:36 +0200 Message-Id: <83lf28m5vv.fsf@gnu.org> From: Eli Zaretskii To: Han Boetes In-Reply-To: (message from Han Boetes on Sun, 31 Oct 2021 23:13:23 +0100) Subject: Re: bug#51518: native-compilation on OpenBSD References: <83ilxenxzy.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51518-done Cc: 51518-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sun, 31 Oct 2021 23:13:23 +0100 > From: Han Boetes > > Eli Zaretskii wrote: > > > Date: Sat, 30 Oct 2021 20:00:21 +0200 > > > From: Han Boetes > > > > > > 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. From unknown Sun Aug 17 22:00:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 29 Nov 2021 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator