Skip to content

Can't compile kernel module for RPI #39

@jleppert

Description

@jleppert

I've followed all the instructions but it's not working. At this point I'm wondering how to debug this? It's so painful to have to do these remote builds where you can't even get a shell into the build process to troubleshoot. I've tried the gcc-10 branch (should it be 9) but it doesn't work.

[main] make: Entering directory '/tmp/tmp.1VPby1ZUzA' [main] CC [M] /usr/src/app/output/example_module_raspberrypicm4-ioboard_2.71.3+rev5.prod/hello.o [main] gcc: error: unrecognized command line option '-mstack-protector-guard=sysreg'; did you mean '-fstack-protector-strong'? [main] [main] gcc: error: unrecognized command line option '-mstack-protector-guard-reg=sp_el0'; did you mean '-fstack-protector-all'? [main] [main] gcc: error: unrecognized command line option '-mstack-protector-guard-offset=1336'; did you mean '-fstack-protector-strong'? [main] [main] scripts/Makefile.build:265: recipe for target '/usr/src/app/output/example_module_raspberrypicm4-ioboard_2.71.3+rev5.prod/hello.o' failed [main] make[1]: *** [/usr/src/app/output/example_module_raspberrypicm4-ioboard_2.71.3+rev5.prod/hello.o] Error 1 [main] [main] Makefile:1732: recipe for target '/usr/src/app/output/example_module_raspberrypicm4-ioboard_2.71.3+rev5.prod' failed [main] make: Leaving directory '/tmp/tmp.1VPby1ZUzA' [main] make: *** [/usr/src/app/output/example_module_raspberrypicm4-ioboard_2.71.3+rev5.prod] Error 2 [main] [main] Removing intermediate container 30aa27479d54 [main] The command '/bin/sh -c BALENA_MACHINE_NAME=raspberrypicm4-ioboard ./build.sh build --device raspberrypicm4-ioboard --os-version "$VERSION" --src example_module' returned a non-zero code: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions