GNU bug report logs - #29186
building guile-emacs fails: required libaries not found: libjpeg

Previous Next

Package: guix;

Reported by: Jan Nieuwenhuizen <janneke <at> gnu.org>

Date: Mon, 6 Nov 2017 22:23:01 UTC

Severity: normal

Done: Jan Nieuwenhuizen <janneke <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jan Nieuwenhuizen <janneke <at> gnu.org>
To: Mark H Weaver <mhw <at> netris.org>
Cc: 29186 <at> debbugs.gnu.org
Subject: bug#29186: building guile-emacs fails: required libaries not found: libjpeg
Date: Tue, 07 Nov 2017 20:06:05 +0100
[Message part 1 (text/plain, inline)]
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

[0001-gnu-guile-emacs-compile-with-g-rather-than-O2.patch (text/x-patch, inline)]
From 2a369f5151e0c7565fc271fb52def543b447477d Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke <at> gnu.org>
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"))))))))))
-- 
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com

[Message part 3 (text/plain, inline)]
-- 
Jan Nieuwenhuizen <janneke <at> gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com

This bug report was last modified 7 years and 257 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.