Cannot build kgdboe with kernel 4.15.0-36-generic

Sysprogs forums Forums VisualKernel Cannot build kgdboe with kernel 4.15.0-36-generic

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22348
    PhilCornet
    Participant

    Hi,

     

    I am trying to debug a module with ViualKernel 3.0 (build 2166) through ethernet but encounter an error during the build of kgdboe.

    The target platform runs kernel 4.15.0-36-generic.

    It seems that the version of kgdboe that VisualKernel is trying to build still uses “init_timer” which was removed from kernel 4.15…

    Is there a way to update the version of kgdboe used by Visual Kernel?

    Thanks.

    Log of the error:

    make: Entering directory ‘/usr/src/linux-headers-4.15.0-36-generic’
    CC [M] /tmp/kgdboe-12468462-bf4f-4457-90a4-43d27589ba4a/irqsync.o
    /tmp/kgdboe-12468462-bf4f-4457-90a4-43d27589ba4a/irqsync.c: In function ‘irqsync_create’:
    /tmp/kgdboe-12468462-bf4f-4457-90a4-43d27589ba4a/irqsync.c:25:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
    init_timer(&result->timer);
    ^~~~~~~~~~
    init_timers
    /tmp/kgdboe-12468462-bf4f-4457-90a4-43d27589ba4a/irqsync.c:26:25: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
    result->timer.function = irqsync_timer_func;
    ^
    /tmp/kgdboe-12468462-bf4f-4457-90a4-43d27589ba4a/irqsync.c:27:15: error: ‘struct timer_list’ has no member named ‘data’
    result->timer.data = (unsigned long)result;
    ^
    cc1: some warnings being treated as errors
    scripts/Makefile.build:332: recipe for target ‘/tmp/kgdboe-12468462-bf4f-4457-90a4-43d27589ba4a/irqsync.o’ failed
    make[1]: *** [/tmp/kgdboe-12468462-bf4f-4457-90a4-43d27589ba4a/irqsync.o] Error 1
    Makefile:1551: recipe for target ‘_module_/tmp/kgdboe-12468462-bf4f-4457-90a4-43d27589ba4a’ failed
    make: *** [_module_/tmp/kgdboe-12468462-bf4f-4457-90a4-43d27589ba4a] Error 2
    make: Leaving directory ‘/usr/src/linux-headers-4.15.0-36-generic’
    Cannot build kgdboe.
    Failed building kgdboe on the GDB machine. Trying to build it on the deployment machine…
    make: Entering directory ‘/usr/src/linux-headers-4.15.0-36-generic’
    CC [M] /tmp/kgdboe-30f395e3-63d3-4fe9-a3d2-504e1682c7b8/irqsync.o
    /tmp/kgdboe-30f395e3-63d3-4fe9-a3d2-504e1682c7b8/irqsync.c: In function ‘irqsync_create’:
    /tmp/kgdboe-30f395e3-63d3-4fe9-a3d2-504e1682c7b8/irqsync.c:25:2: error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
    init_timer(&result->timer);
    ^~~~~~~~~~
    init_timers
    /tmp/kgdboe-30f395e3-63d3-4fe9-a3d2-504e1682c7b8/irqsync.c:26:25: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
    result->timer.function = irqsync_timer_func;
    ^
    /tmp/kgdboe-30f395e3-63d3-4fe9-a3d2-504e1682c7b8/irqsync.c:27:15: error: ‘struct timer_list’ has no member named ‘data’
    result->timer.data = (unsigned long)result;
    ^
    cc1: some warnings being treated as errors
    scripts/Makefile.build:332: recipe for target ‘/tmp/kgdboe-30f395e3-63d3-4fe9-a3d2-504e1682c7b8/irqsync.o’ failed
    make[1]: *** [/tmp/kgdboe-30f395e3-63d3-4fe9-a3d2-504e1682c7b8/irqsync.o] Error 1
    Makefile:1551: recipe for target ‘_module_/tmp/kgdboe-30f395e3-63d3-4fe9-a3d2-504e1682c7b8’ failed
    make: Leaving directory ‘/usr/src/linux-headers-4.15.0-36-generic’
    make: *** [_module_/tmp/kgdboe-30f395e3-63d3-4fe9-a3d2-504e1682c7b8] Error 2
    Cannot build kgdboe.

    #22360
    support
    Keymaster

    Hi,

    Sorry, we haven’t tested kgdboe with this kernel version yet. We will run the tests on it, patch it and update the version installed by VisualKernel in the next few months.

    If the fix is trivial and you don’t want to wait for an official update from us, you can simply fork our Github repo, patch the code and replace the files in %LOCALAPPDATA%\VisualGDB\VisualKernel\KernelPackages\kgdboe.

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