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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4746
    Nicolai Henriksen
    Participant

    When 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

    #4747
    Jesse Gilles
    Blocked

    It 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

    #4748
    Nicolai Henriksen
    Participant

    It is already there in the 7.2a recipe: (gdbserver_7.2a.bb)

    require gdbserver.inc

    LICENSE = "GPLv3"

    PR = "${INC_PR}.0"

    S = ${WORKDIR}/gdb-7.2

    SRC_URI[md5sum] = "a9a8d0ea1ae57837fada5415bd0f92ff"
    SRC_URI[sha256sum] = "9f51739cd45c158aa5df2e7abb703a304b5370e2e9e43c70f5cc0b1c4be5d0c2"

    #4750
    Jesse Gilles
    Blocked

    Ah, have you updated any of the .inc files as well? They must have changed more than just the tarball name apparently.

    #4752
    Nicolai Henriksen
    Participant

    I 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.