bitbake gdbserver fails — Patch kill_arm_map_symbols.patch does not apply
Home › Forums › MultiConnect OCG › bitbake gdbserver fails — Patch kill_arm_map_symbols.patch does not apply
- This topic has 4 replies, 2 voices, and was last updated 12 years ago by
Nicolai Henriksen.
-
AuthorPosts
-
November 4, 2013 at 10:13 am #4746
Nicolai Henriksen
ParticipantWhen I try to build the gdbserver it fails.
First of all, it cannot find the source code because gdb and gdbserver version 7.2 is no longer available. I downloaded the recipe for 7.2a from OpenEmbedded.
But it fails with an error in one of the patches.
Any hints?
Output from bitbake.
NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for runtime gdbserver (gdbserver, gdb)
NOTE: consider defining a PREFERRED_PROVIDER entry to match gdbserver
NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Running task 943 of 958 (ID: 1, /lyngsoe/DevTools/corecdp/corecdp-2.2.2linux/openembedded/recipes/gdb/gdbserver_7.2a.bb, do_patch)
NOTE: package gdbserver-7.2a-r9.0: task do_patch: Started
ERROR: Execution of 'quilt --quiltrc=/lyngsoe/DevTools/corecdp/corecdp-2.2.2linux/build/tmp/sysroots/i686-linux/usr/bin/quiltrc push' failed with exit code 1:
Applying patch kill_arm_map_symbols.patch
patching file gdb/arm-tdep.c
Hunk #1 FAILED at 2491.
1 out of 1 hunk FAILED -- rejects in file gdb/arm-tdep.c
Patch kill_arm_map_symbols.patch does not apply (enforce with -f)NOTE: package gdbserver-7.2a-r9.0: task patch_do_patch: Failed
ERROR: Function 'patch_do_patch' failed
ERROR: Task 1 (/lyngsoe/DevTools/corecdp/corecdp-2.2.2linux/openembedded/recipes/gdb/gdbserver_7.2a.bb, do_patch) failed with exit code '1'
ERROR: '/lyngsoe/DevTools/corecdp/corecdp-2.2.2linux/openembedded/recipes/gdb/gdbserver_7.2a.bb' failed
November 4, 2013 at 10:33 am #4747Jesse Gilles
BlockedIt looks like the gdb 7.2a tarball still unpacks to a ‘gdb-7.2’ subdirectory, so the recipe probably can’t find the unpacked source code because it is expecting it to be named ‘gdb-7.2a’.
Try putting the following in your gdbserver_7.2a.bb recipe (and any others):
S = "${WORKDIR}/gdb-7.2"Jesse
November 4, 2013 at 11:02 am #4748Nicolai Henriksen
ParticipantIt is already there in the 7.2a recipe: (gdbserver_7.2a.bb)
require gdbserver.incLICENSE = "GPLv3"
PR = "${INC_PR}.0"
S = ${WORKDIR}/gdb-7.2
SRC_URI[md5sum] = "a9a8d0ea1ae57837fada5415bd0f92ff"
SRC_URI[sha256sum] = "9f51739cd45c158aa5df2e7abb703a304b5370e2e9e43c70f5cc0b1c4be5d0c2"
November 4, 2013 at 3:46 pm #4750Jesse Gilles
BlockedAh, have you updated any of the .inc files as well? They must have changed more than just the tarball name apparently.
November 5, 2013 at 2:00 am #4752Nicolai Henriksen
ParticipantI downloaded the gdb.inc and gdbserver.inc and diff showed no changes. I also downloaded the gdb 7.2a recipe. My guess would be that GNU found a serious bug or omission in the release of 7.2 and then made 7.2a and removed 7.2.
-
AuthorPosts
- You must be logged in to reply to this topic.