emacs-x11 "compilation" failure
Hi,
I found a patch on the old patchwork for emacs 23.2
I tried it and improved it a bit.
emacs compiles fine,but not emacs-x11:
I've the following error:
LC_ALL=C qemu-arm -cpu cortex-a8 -s 1048576 -L .../work/armv7a-angstrom-linux-gnueabi/emacs-x11-23.2-r1.0/qemu-treedir temacs -batch -l loadup dump
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
make[1]: *** [emacs] Segmentation fault
Note that we can't get rid of qemu because it makes an architecture
specific memory dump dump during the compilation:
See the following link for more details:
http://www.gnu.org/s/emacs/manual/html_node/elisp/Building-Emacs.html
I really wonder how to handle that?
Add -ggdb3 in bitbake.conf for the native stuff, clean my tmpdir and
rebuild emacs from scratch?
So far I tried:
running temacs on target for both x11 and non-x11 => success
so I belive the segmentation fault is from qemu...
I've tried getting a core of qemu, without success...
it says core dumped, I did man core and looked in it why the core was
not produced and tried to eliminate the possible causes,
without success, I even did that:
echo '| cat > some/path/that/has/the/right/permissions/core' > /proc/sys/kernel/core_pattern
or that:
echo '| cat > $PWD/core' > /proc/sys/kernel/core_pattern
Without success.
Denis.
PATCH 1/1 emacs: add emacs 23.2,remove old emacs
From: Sean Cross <[email protected]>
This patch was made using an old patch found on patchwork.
Here's the original commit message(made by Sean Cross <[email protected]>):
emacs: Add emacs 23.2
Emacs 23.2 is the first version that cleanly builds with gcc-4.5. This patch adds support for Emacs 23.2.
--- recipes/emacs/emacs-22.3/use-qemu.patch | 93 ------------------ .../configure.in.lost.backslashes.patch | 24 ----- recipes/emacs/emacs-x11_20060801.bb | 5 - recipes/emacs/emacs-x11_22.3.bb | 18 ---- recipes/emacs/emacs-x11_23.1.bb | 23 ----- recipes/emacs/emacs-x11_23.2.bb | 20 ++++ recipes/emacs/emacs-x11_cvs.bb | 8 -- recipes/emacs/emacs.inc | 3 + recipes/emacs/emacs_20060801.bb | 3 - recipes/emacs/emacs_22.3.bb | 14 --- recipes/emacs/emacs_23.1.bb | 15 --- recipes/emacs/emacs_23.2.bb | 13 +++ recipes/emacs/emacs_cvs.bb | 52 ---------- recipes/emacs/files/emacs23.2-use-qemu.patch | 102 ++++++++++++++++++++ 14 files changed, 138 insertions(+), 255 deletions(-) delete mode 100644 recipes/emacs/emacs-22.3/use-qemu.patch delete mode 100644 recipes/emacs/emacs-x11-23.1/configure.in.lost.backslashes.patch delete mode 100644 recipes/emacs/emacs-x11_20060801.bb delete mode 100644 recipes/emacs/emacs-x11_22.3.bb delete mode 100644 recipes/emacs/emacs-x11_23.1.bb create mode 100644 recipes/emacs/emacs-x11_23.2.bb delete mode 100644 recipes/emacs/emacs-x11_cvs.bb delete mode 100644 recipes/emacs/emacs_20060801.bb delete mode 100644 recipes/emacs/emacs_22.3.bb delete mode 100644 recipes/emacs/emacs_23.1.bb create mode 100644 recipes/emacs/emacs_23.2.bb delete mode 100644 recipes/emacs/emacs_cvs.bb create mode 100644 recipes/emacs/files/emacs23.2-use-qemu.patch
recipes/emacs/emacs-22.3/use-qemu.patch deleted +0 -93
@@ -1,93 +0,0 @@ -Warning: When editing the patch, see the ugly hack (removal of pwd) when calling temacs and emacs. -For unknown reason, qemu-arm is not able to recognize binary correctly. - -Index: emacs-22.3/lib-src/Makefile.in -=================================================================== ---- emacs-22.3.orig/lib-src/Makefile.in 2008-04-24 05:38:12.000000000 +0000 -+++ emacs-22.3/lib-src/Makefile.in 2008-11-21 15:51:14.000000000 +0000 -@@ -24,7 +24,7 @@ - SHELL = /bin/sh - - # Following ../lisp/Makefile.in. --EMACS = ../src/emacs -+EMACS = ${QEMU} emacs - EMACSOPT = -batch --no-site-file --multibyte - - # ==================== Things `configure' will edit ==================== -@@ -388,7 +388,7 @@ - clobbered too. */ - test-distrib${EXEEXT}: ${srcdir}/test-distrib.c - $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c -- ./test-distrib ${srcdir}/testfile -+ ${QEMU} ./test-distrib ${srcdir}/testfile - - /* We need the following in order to create a <getopt.h> when the system - doesn't have one that works with the given compiler. */ -Index: emacs-22.3/lisp/Makefile.in -=================================================================== ---- emacs-22.3.orig/lisp/Makefile.in 2008-08-12 18:35:42.000000000 +0000 -+++ emacs-22.3/lisp/Makefile.in 2008-11-21 15:54:38.000000000 +0000 -@@ -63,7 +63,7 @@ - - # The actual Emacs command run in the targets below. - --emacs = EMACSLOADPATH=$(lisp) $(EMACS) $(EMACSOPT) -+emacs = EMACSLOADPATH=$(lisp) ${QEMU} emacs $(EMACSOPT) - - # Common command to find subdirectories - -Index: emacs-22.3/src/Makefile.in -=================================================================== ---- emacs-22.3.orig/src/Makefile.in 2008-07-11 08:52:53.000000000 +0000 -+++ emacs-22.3/src/Makefile.in 2008-11-21 15:52:09.000000000 +0000 -@@ -497,7 +497,7 @@ - this with the shell''s ``for'' construct. - Note that some people do not have '.' in their paths, so we must - use ./prefix-args. */ --#define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags` -+#define YMF_PASS_LDFLAGS(flags) `${QEMU} ./prefix-args -Xlinker flags` - #else - #define YMF_PASS_LDFLAGS(flags) flags - #endif -@@ -949,7 +949,7 @@ - #define OBJECTS_MACHINE - #endif - --RUN_TEMACS = ./temacs -+RUN_TEMACS = ${QEMU} temacs - - all: emacs${EXEEXT} OTHER_FILES - -@@ -964,7 +964,7 @@ - LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump - #endif /* ! defined (HAVE_SHM) */ - #endif /* ! defined (CANNOT_DUMP) */ -- -./emacs -q -batch -f list-load-path-shadows -+ -${QEMU} emacs -q -batch -f list-load-path-shadows - - /* We run make-docfile twice because the command line may get too long - on some systems. */ -@@ -976,8 +976,8 @@ - Likewise for ${SOME_MACHINE_LISP}. */ - ${etc}DOC: ${libsrc}make-docfile${EXEEXT} ${obj} ${shortlisp} ${SOME_MACHINE_LISP} - -rm -f ${etc}DOC -- ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC -- ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} -+ ${QEMU} ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC -+ ${QEMU} ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} - - ${libsrc}make-docfile${EXEEXT}: - cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT} -Index: emacs-22.3/leim/Makefile.in -=================================================================== ---- emacs-22.3.orig/leim/Makefile.in 2008-01-07 08:09:43.000000000 +0000 -+++ emacs-22.3/leim/Makefile.in 2008-11-21 15:52:50.000000000 +0000 -@@ -51,7 +51,7 @@ - - # How to run Emacs. - RUN-EMACS = EMACSLOADPATH=$(buildlisppath) LC_ALL=C\ -- ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte -+ ${QEMU} emacs -batch --no-init-file --no-site-file --multibyte - - # Subdirectories to be made if ${srcdir} is different from the current - # directory.
recipes/emacs/emacs-x11-23.1/configure.in.lost.backslashes.patch deleted +0 -24
@@ -1,24 +0,0 @@ -pending upstream, fixed in 23.2 -http://debbugs.gnu.org/cgi-bin/bugreport.cgi?bug=5047 -https://bugzilla.redhat.com/show_bug.cgi?id=540921 -diff -up emacs-23.1/configure.in.cpp emacs-23.1/configure.in ---- emacs-23.1/configure.in.cpp 2009-11-30 13:24:53.000000000 +0100 -+++ emacs-23.1/configure.in 2009-11-30 13:25:45.000000000 +0100 -@@ -2983,7 +2983,7 @@ echo creating lib-src/Makefile - sed -e '1,/start of cpp stuff/d'\ - -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ - < Makefile.c > junk.c -- $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ -+ $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ - sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c - cat junk1.c junk2.c > Makefile.new - rm -f junk.c junk1.c junk2.c -@@ -2999,7 +2999,7 @@ echo creating src/Makefile - sed -e '1,/start of cpp stuff/d'\ - -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ - < Makefile.c > junk.c -- $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ -+ $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ - sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c - cat junk1.c junk2.c > Makefile.new - rm -f junk.c junk1.c junk2.c
recipes/emacs/emacs-x11_20060801.bb deleted +0 -5
@@ -1,5 +0,0 @@ -require emacs-x11_cvs.bb - -SRCDATE = "20060801" - -DEFAULT_PREFERENCE = "-1"
recipes/emacs/emacs-x11_22.3.bb deleted +0 -18
@@ -1,18 +0,0 @@ -require emacs.inc - -# full X (non-diet) is needed for X support -DEPENDS += "gtk+ libungif" - -EXTRA_OECONF = "--without-sound --with-x-toolkit=gtk" - -RREPLACES_${PN} = "emacs" - -FILESPATHPKG =. "emacs-${PV}:" -SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz \ - file://use-qemu.patch \ - file://nostdlib-unwind.patch" - -S = "${WORKDIR}/emacs-${PV}" - -SRC_URI[md5sum] = "aa8ba34f548cd78b35914ae5a7bb87eb" -SRC_URI[sha256sum] = "7bd9b719db8ee20c75ee0d256737f7fd2c0e2ea30a285a3afbfc32c856420d16"
recipes/emacs/emacs-x11_23.1.bb deleted +0 -23
@@ -1,23 +0,0 @@ -require emacs.inc - -# full X (non-diet) is needed for X support -DEPENDS += "gtk+ libungif dbus" - -PR = "r3" - -EXTRA_OECONF = "--without-sound --with-x-toolkit=gtk" - -DEFAULT_PREFERENCE = "-1" - -RREPLACES_${PN} = "emacs" - -FILESPATHPKG =. "emacs-${PV}:" -SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz;name=tarball \ - file://emacs23.1-use-qemu.patch \ - file://nostdlib-unwind.patch \ - file://configure.in.lost.backslashes.patch" -SRC_URI[tarball.md5sum] = "a620d4452769d04ad8864d662f34f8dd" -SRC_URI[tarball.sha256sum] = "a94cd46301f000d2d1dcd3fd7ef08ad952846d01ca5d4168b4ec3e38e857da47" - - -S = "${WORKDIR}/emacs-${PV}"
recipes/emacs/emacs-x11_23.2.bb new file +20 -0
@@ -0,0 +1,20 @@ +require emacs.inc + +# full X (non-diet) is needed for X support +DEPENDS += "gtk+ libungif dbus" + +RREPLACES_${PN} = "emacs" + +PR = "${INC_PR}.0" + +S = "${WORKDIR}/emacs-${PV}" + +EXTRA_OECONF = "--without-sound --with-x-toolkit=gtk" + +SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz;name=tarball \ + file://emacs23.2-use-qemu.patch \ + file://nostdlib-unwind.patch" + +SRC_URI[tarball.md5sum] = "b6691852dae0bc142b3c12749f6b7ade" +SRC_URI[tarball.sha256sum] = "1617b8289e403bc6345f8fcc4b3ec01755962cf8842b505d971efe08c9bf7919" +
recipes/emacs/emacs-x11_cvs.bb deleted +0 -8
@@ -1,8 +0,0 @@ -require emacs_cvs.bb - -# full X (non-diet) is needed for X support -DEPENDS += "libx11" - -EXTRA_OECONF = "--without-sound" - -RREPLACES_${PN} = "emacs"
recipes/emacs/emacs.inc +3 -0
@@ -3,6 +3,9 @@ HOMEPAGE = "http://www.gnu.org/software/emacs/" LICENSE = "GPLv2" SECTION = "editor" # and it needs to run some generated binaries.. + +INC_PR = "r1" + DEPENDS += "qemu-native" DEPENDS +=" liblockfile"
recipes/emacs/emacs_20060801.bb deleted +0 -3
@@ -1,3 +0,0 @@ -require emacs_cvs.bb -SRCDATE = "20060801" -DEFAULT_PREFERENCE = "-1"
recipes/emacs/emacs_22.3.bb deleted +0 -14
@@ -1,14 +0,0 @@ -require emacs.inc - -PR="r1" - -EXTRA_OECONF = "--without-sound --without-x" - -SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz \ - file://use-qemu.patch \ - file://nostdlib-unwind.patch" - -S = "${WORKDIR}/emacs-${PV}" - -SRC_URI[md5sum] = "aa8ba34f548cd78b35914ae5a7bb87eb" -SRC_URI[sha256sum] = "7bd9b719db8ee20c75ee0d256737f7fd2c0e2ea30a285a3afbfc32c856420d16"
recipes/emacs/emacs_23.1.bb deleted +0 -15
@@ -1,15 +0,0 @@ -require emacs.inc - -EXTRA_OECONF = "--without-sound --without-x" - -#/!\warning untested recipe -DEFAULT_PREFERENCE = "-2" - -SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz;name=tarball \ - file://emacs23.1-use-qemu.patch \ - file://nostdlib-unwind.patch" -SRC_URI[tarball.md5sum] = "a620d4452769d04ad8864d662f34f8dd" -SRC_URI[tarball.sha256sum] = "a94cd46301f000d2d1dcd3fd7ef08ad952846d01ca5d4168b4ec3e38e857da47" - - -S = "${WORKDIR}/emacs-${PV}"
recipes/emacs/emacs_23.2.bb new file +13 -0
@@ -0,0 +1,13 @@ +require emacs.inc + +PR = "${INC_PR}.0" + +#S = "${WORKDIR}/${PN}-${PV}" + +EXTRA_OECONF = "--without-sound --without-x" + +SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz;name=tarball \ + file://emacs23.2-use-qemu.patch \ + file://nostdlib-unwind.patch" +SRC_URI[tarball.md5sum] = "b6691852dae0bc142b3c12749f6b7ade" +SRC_URI[tarball.sha256sum] = "1617b8289e403bc6345f8fcc4b3ec01755962cf8842b505d971efe08c9bf7919"
recipes/emacs/emacs_cvs.bb deleted +0 -52
52 lines not on this page · raw message
recipes/emacs/files/emacs23.2-use-qemu.patch new file +102 -0
102 lines not on this page · raw message
Signature · 1 line
1.7.0.4