From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#52381: GNU Emacs 28.0.90 does not build on macOS Monterey, Version 12.0.1, because bootstrapping fails Date: Thu, 09 Dec 2021 09:54:09 +0200 Message-ID: <83o85qusbi.fsf@gnu.org> References: <27B53261-9336-47B2-90E8-53B03998A70A@Web.DE> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52381@debbugs.gnu.org To: Peter Dyballa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 09 08:55:10 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 1mvEGj-0008V6-Nw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Dec 2021 08:55:10 +0100 Original-Received: from localhost ([::1]:47138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvEGi-0004hA-6F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Dec 2021 02:55:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvEGc-0004h2-Ei for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 02:55:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvEGc-0007Ph-7S for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 02:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvEGc-0006Ze-6s for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 02:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Dec 2021 07:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52381 X-GNU-PR-Package: emacs Original-Received: via spool by 52381-submit@debbugs.gnu.org id=B52381.163903648125224 (code B ref 52381); Thu, 09 Dec 2021 07:55:02 +0000 Original-Received: (at 52381) by debbugs.gnu.org; 9 Dec 2021 07:54:41 +0000 Original-Received: from localhost ([127.0.0.1]:42338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvEGG-0006Yk-LQ for submit@debbugs.gnu.org; Thu, 09 Dec 2021 02:54:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvEGF-0006YV-D7 for 52381@debbugs.gnu.org; Thu, 09 Dec 2021 02:54:39 -0500 Original-Received: from [2001:470:142:3::e] (port=33546 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvEG4-0007Lf-P9; Thu, 09 Dec 2021 02:54:34 -0500 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=FUmeNbUaGKYGMn8hkcMGEUZGIcDTExWzJWDb5Dcz38g=; b=bXzUxOr5onCh HROejt7AnLHHzhxjDwaO/FcPipwLGDOFUg9TsHEp1fojZusmELyc41ZyrjgEamA1LV3mV1ztbayJO uMf4pVJ/Qlz32s8k9M/TzZlZI6QDv/sgso3KfF0KiqNx3uQY1qgHJ7PaaSXkJ0T/Eve1qdk/QkosQ 2ZIjXlZ8bVlHgWP9T2Sy7CfNr8pDLb2AsaYy4PgzhpobixTP6akgnV8q9uRS0R5eMhBjbJPxKeAc1 xba4eUrj+4b0wmUnl1AEBIW2TZJkBlll2Bm6G2Klw4BMIRwnuLjwP/uqbgWiGshVf0bA8+CQgp3Q3 Jc+pmvQagOH56itrzRFcbw==; Original-Received: from [87.69.77.57] (port=3004 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 1mvEG3-0008TB-7c; Thu, 09 Dec 2021 02:54:27 -0500 In-Reply-To: <27B53261-9336-47B2-90E8-53B03998A70A@Web.DE> (message from Peter Dyballa on Thu, 9 Dec 2021 01:09:54 +0100) 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:221985 Archived-At: > From: Peter Dyballa > Date: Thu, 9 Dec 2021 01:09:54 +0100 > > env LANG=C PATH=/opt/local/bin:/usr/local/texlive/2021/bin/universal-darwin:/usr/local/gnupg-2.2/bin:/usr/local/bin:/usr/bin:/bin:/sbin:/usr/sbin:/opt/local/sbin:/usr/local/sbin:/opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin:/opt/X11/bin ./configure --without-libsystemd --without-pop --without-sound --without-gpm --without-dbus --without-selinux --without-imagemagick --with-ns --with-dumping=unexec --disable-ns-self-contained --with-x-toolkit=athena --x-libraries=/opt/X11/lib --x-includes=/opt/local/include --enable-locallisppath=/Library/Application\ Support/Emacs/calendar28:/Library/Application\ Support/Emacs --with-file-notification=yes CPPFLAGS=-I/opt/local/include CFLAGS="-g -H -pipe -fPIC -fno-common -Os -arch x86_64 -fomit-frame-pointer" LDFLAGS="-v -arch x86_64 -Wl,-bind_at_load -Wl,-t -L /opt/local/lib" PKG_CONFIG_PATH=/opt/local/libexec/openssl3/lib/pkgconfig:/opt/local/lib/pkgconfig:/opt/local/share/pkgconfig:/opt/X11/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig CC=clang CXX=clang++ > > (--with-dumping=unexec is used because I want to build NS variant with --disable-ns-self-contained and then X11 variant) > > The failure happens here: > > gmake[2]: Leaving directory '/Users/pete/Quellen/Emacs_CVS/emacs-28.0.90/lisp' > ./temacs --batch -l loadup --temacs=bootstrap > Loading loadup.el (source)... > Dump mode: bootstrap > Using load-path (/Users/pete/Quellen/Emacs_CVS/emacs-28.0.90/lisp /Users/pete/Quellen/Emacs_CVS/emacs-28.0.90/lisp/emacs-lisp /Users/pete/Quellen/Emacs_CVS/emacs-28.0.90/lisp/progmodes /Users/pete/Quellen/Emacs_CVS/emacs-28.0.90/lisp/language /Users/pete/Quellen/Emacs_CVS/emacs-28.0.90/lisp/international /Users/pete/Quellen/Emacs_CVS/emacs-28.0.90/lisp/textmodes /Users/pete/Quellen/Emacs_CVS/emacs-28.0.90/lisp/vc) > Loading emacs-lisp/byte-run... > Loading emacs-lisp/backquote... > Loading subr... > Loading version... > Loading widget... > Loading custom... > Loading emacs-lisp/map-ynp... > Loading international/mule... > Loading international/mule-conf... > temacs(58122,0x10e1f8600) malloc: Non-aligned pointer 0x10b0091f8 being freed > temacs(58122,0x10e1f8600) malloc: *** set a breakpoint in malloc_error_break to debug > gmake[1]: *** [Makefile:852: bootstrap-emacs] Abort trap: 6 > gmake[1]: Leaving directory '/Users/pete/Quellen/Emacs_CVS/emacs-28.0.90/src' > gmake: *** [Makefile:449: src] Error 2 > > Compiler is MacPorts' clang version 13.0.0. Thanks. The unexec build is a legacy build, it is basically supported only for platforms that cannot yet switch to the pdumper build. I regularly build with unexec on GNU/Linux, and it does work for me there, both on the master and the release branches. So the code is basically solid, and your problem is most probably specific to the particular configuration you are trying to use: clang on macOS. If you can help debugging this (e.g., by following the advice in the error message you cite above -- it sounds like some memory alignment issue), find the culprit and suggest a clean enough fix, we will consider making the required changes on the release branch. Otherwise, I will unfortunately have to consider this to be an unsupported combination: the unexec build on macOS using clang. IMO, it is not a very important configuration for us to care about. In general, it is not recommended to use the unexec build as a starting point for any important developments, because we will remove the unexec support in some future version of Emacs. Thanks.