From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?andr=C3=A9s_ram=C3=ADrez?= Newsgroups: gmane.emacs.devel Subject: Re: compiling emacs-23.4 with CANNOT_DUMP Date: Mon, 30 Dec 2019 23:16:30 +0000 Organization: bien.comun.org Message-ID: <86a77976b5.fsf@gmail.com> References: <86lfqygmh4.fsf@gmail.com> <4f07ebab-4bda-4405-5c0c-1aae01e20337@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="9747"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 31 00:17:17 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1im4Hk-0002Ol-S8 for ged-emacs-devel@m.gmane.org; Tue, 31 Dec 2019 00:17:16 +0100 Original-Received: from localhost ([::1]:37686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1im4Hj-0002Hh-2d for ged-emacs-devel@m.gmane.org; Mon, 30 Dec 2019 18:17:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41501) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1im4HC-0001ri-49 for emacs-devel@gnu.org; Mon, 30 Dec 2019 18:16:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1im4H8-0006h3-Re for emacs-devel@gnu.org; Mon, 30 Dec 2019 18:16:40 -0500 Original-Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:35893) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1im4H8-0006bp-Kx for emacs-devel@gnu.org; Mon, 30 Dec 2019 18:16:38 -0500 Original-Received: by mail-pg1-x533.google.com with SMTP id k3so18728178pgc.3 for ; Mon, 30 Dec 2019 15:16:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:organization:references:date :message-id:mime-version; bh=1xZJLwaLPR+d8kaPFaGMlaqWLvHU0v72zlEIpLOEHlA=; b=bx1PD1slJrE6t5HygOyef/bYhBC6PsDfTF2t2of4k+k38ixLA+nbo4edlpTq9diBRl CMEM1m12NPR/plSOX0Tg+ZvW8+1VfUpN8PMUcM5tdFseOuBTGGVHLWbLmhTw4alQ+ygj mIWMVsvck5wGKWdhQR/ZzDaX06tzQC4ObiV8LEC+Q1t7s46iCKH8SR7Rf2k9/zX6olTT TdFda/zKdpMujMt2sa9kBmN4Q+iDk3glamSxaQH9XB5chHxZ6ZY76Dn1X9vBKCAojSJw aLpsmGZdmnFNZxVXLRtSznLJqvePq/sP1lXsyWrTZdAbNwX9+3garTFd/UFIePHnCLTA kuHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:organization :references:date:message-id:mime-version; bh=1xZJLwaLPR+d8kaPFaGMlaqWLvHU0v72zlEIpLOEHlA=; b=b/8TXUBO0CAThDBk0IhjV2hxYbVCOZOkygqNvm7HGIrx/SVqqxpzUbfpjVazz+vkVG jhEu3iR4Oph6yT+Pq66zHxaTNIssjfLVRM9lujwVsw5hbmkUya91cpDo8mfO+J8mhg6w C6b8U4y4t5CxmzZ02YUA1BFWMf7hlRXYL1brsg23XlOh+A20lljYBJVigmYHZY91A0Nb wREt0ahJkAgzF+z/l1+xABulJX3vMLkvo0OWS1JfGGg27wGXxQ/j33jYGo+7HcbJJeWw 6k9ptNTeBamFEKAVuE/mZhugwOmLxE+zeAXVJVipxqEb6a0EudO52fEVBKVjcoG1pZ00 nqLQ== X-Gm-Message-State: APjAAAUXpdPXH7SGLI/cfU65vlwZTp8w4JeqPl2DTDVSzclVOow5ozwg WzfeIR83zyMNIHHAqnr+0rKBMWhZ X-Google-Smtp-Source: APXvYqyAynNIh0zx9UUCLG7SpDBVDO170ZLrev78pGwYhHMfv54cQybEP4xTuykLNXkrJXPVntBmJA== X-Received: by 2002:a63:6c09:: with SMTP id h9mr73186024pgc.34.1577747795378; Mon, 30 Dec 2019 15:16:35 -0800 (PST) Original-Received: from sacsa.n800.arm.processor.yandex.fm ([190.239.244.220]) by smtp.gmail.com with ESMTPSA id r14sm53243965pfh.10.2019.12.30.15.16.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Dec 2019 15:16:34 -0800 (PST) In-Reply-To: <4f07ebab-4bda-4405-5c0c-1aae01e20337@cs.ucla.edu> X-Attribution: INKA X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::533 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243790 Archived-At: Hi Paul. Just for the record (perhaps in the future myself should check this info again). --8<---------------cut here---------------start------------->8--- In GNU Emacs 23.4 (armv7l-unknown-linux-gnueabi) of 2019-12-30 on sacsa configured using `configure '--without-gif' '--with-jpeg=no' '--without-dbus' '--without-gconf' '--without-libotf' '--without-m17n-flt' '--without-gpm' '--program-suffix=emacs23' '--infodir=/share/info/emacs23' '--localstatedir=/var' '--without-x' '--with-x-toolkit=no' 'CFLAGS=-g3 -O0' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' --8<---------------cut here---------------end--------------->8--- compilation was completed (5 files were modified): src/s/gnu-linux.h:163 #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \ ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base) src/config.h:924 #define CANNOT_DUMP 1 src/lread.c:4070 if (!NILP (Vinstallation_directory)) normal = PATH_DUMPLOADSEARCH; src/Makefile.in {930; 1410} just leaving the CANNOT_DUMP parts of the #ifdef ./Makefile.in:526 {just on armv7h, not needed on i686} fullversion=`./src/emacs --batch --eval '(princ (emacs-version))' | sed -n '1 s/GNU Emacs *//p'`; \ After compilation was completed the HOME var was not setted-up on the emacs undumped-binary. added a file site-init.el with (setenv "HOME" "/home/my") And that's it. I tried also compiling it removing -O0 from CFLAGS. But it failed within a command "shadow paths" or something like that. So I need to removed optimizations from the configure script. BTW. I have also compiled with CANNOT_DUMP emacs-25 and emacs-26. emacs-26 is ok emacs-25 have some issues (i do not remember exactly which ones) BR