Skip to content

Does not work with older kernels #8

Description

@lovesegfault

While working on #2, I found that autokernel will not work on some older kernel releases:

all versions
Get this warning:

linux-config> scripts/kconfig/autokernel_bridge.c: In function 'init':
linux-config> scripts/kconfig/autokernel_bridge.c:80:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result8;;]
linux-config>    80 |         getcwd(saved_working_directory, 2048);

5.10

linux-config> building
linux-config> scripts/kconfig/autokernel_bridge.c: In function 'init':
linux-config> scripts/kconfig/autokernel_bridge.c:80:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result8;;]
linux-config>    80 |         getcwd(saved_working_directory, 2048);
linux-config>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux-config>        Built bridge for . in 3.54s
linux-config> sh: ./scripts/ld-version.sh: not found
linux-config> init/Kconfig:39: syntax error
linux-config> init/Kconfig:38: invalid statement

4.19

linux-config> building
linux-config> scripts/kconfig/autokernel_bridge.c: In function 'init':
linux-config> scripts/kconfig/autokernel_bridge.c:80:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result8;;]
linux-config>    80 |         getcwd(saved_working_directory, 2048);
linux-config>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux-config>        Built bridge for . in 3.32s
linux-config> error: ./scripts/kconfig/autokernel_bridge.so: undefined symbol: sym_get_range_prop

4.14

linux-config> building
linux-config> scripts/kconfig/autokernel_bridge.c: In function 'init':
linux-config> scripts/kconfig/autokernel_bridge.c:80:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result8;;]
linux-config>    80 |         getcwd(saved_working_directory, 2048);
linux-config>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
linux-config>        Built bridge for . in 3.29s
linux-config> error: ./scripts/kconfig/autokernel_bridge.so: undefined symbol: sym_get_range_prop

The last two failures seem to be due to a breaking change to the kconfig api at some point?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions