From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: bug#29186: building guile-emacs fails: required libaries not found: libjpeg Date: Tue, 07 Nov 2017 20:06:05 +0100 Message-ID: <878tfhlxia.fsf@gnu.org> References: <87po8vm4iv.fsf@gnu.org> <874lq6hbxn.fsf@netris.org> <87h8u6m311.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eC9DF-0001p7-9w for bug-guix@gnu.org; Tue, 07 Nov 2017 14:07:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eC9DC-0007wl-21 for bug-guix@gnu.org; Tue, 07 Nov 2017 14:07:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:48305) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eC9DB-0007wh-Ua for bug-guix@gnu.org; Tue, 07 Nov 2017 14:07:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eC9DB-0005P6-Nn for bug-guix@gnu.org; Tue, 07 Nov 2017 14:07:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87h8u6m311.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Tue, 07 Nov 2017 18:06:50 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Mark H Weaver Cc: 29186@debbugs.gnu.org --=-=-= Content-Type: text/plain Jan Nieuwenhuizen writes: > However, now the build fails with a segfault: > > EMACSLOADPATH= '../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp -l autoload \ > --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \ > --eval "(setq generated-autoload-file (expand-file-name > (unmsys--file-name > \"../../git-checkout/lisp/calendar/cal-loaddefs.el\")))" \ > -f batch-update-autoloads ../../git-checkout/lisp/calendar > make[2]: *** [Makefile:466: ../../git-checkout/lisp/calendar/cal-loaddefs.el] Segmentation fault Attempting to debug this segfault, I configured using CFLAGS=-g ./configure however, now the segfault is gone. Additional patch attached. WDY(all)T? Greetings, janneke --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-guile-emacs-compile-with-g-rather-than-O2.patch Content-Transfer-Encoding: quoted-printable >From 2a369f5151e0c7565fc271fb52def543b447477d Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 7 Nov 2017 20:02:35 +0100 Subject: [PATCH] gnu: guile-emacs: compile with -g (rather than -O2?) --- gnu/packages/emacs.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm index c133c745c..5c33d0874 100644 --- a/gnu/packages/emacs.scm +++ b/gnu/packages/emacs.scm @@ -293,6 +293,9 @@ editor (without an X toolkit)" ) ,@(package-arguments emacs)) ((#:phases phases) `(modify-phases ,phases + (add-before 'configure 'setenv + (lambda _ + (setenv "CFLAGS" "-g"))) (add-after 'unpack 'autogen (lambda _ (zero? (system* "sh" "autogen.sh")))))))))) --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.com --=-=-=--