Получение неопределенных ошибок при попытке скомпилировать ядро ​​Android - PullRequest
0 голосов
/ 30 октября 2019

Я пытаюсь скомпилировать ядро ​​Android, но вскоре после запуска make -j4 выдает ошибку.

drivers/built-in.o: In function `cs_check_cpu':
/home/jack/Downloads/NethunterKernel/drivers/cpufreq/cpufreq_relaxed.c:67: undefined reference to `state_suspended'
/home/jack/Downloads/GCCToolchain/bin/aarch64-linux-android-ld: drivers/built-in.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `state_suspended' can not be used when making a shared object; recompile with -fPIC
/home/jack/Downloads/NethunterKernel/drivers/cpufreq/cpufreq_relaxed.c:67: undefined reference to `state_suspended'
block/built-in.o: In function `maple_add_request':
/home/jack/Downloads/NethunterKernel/block/maple-iosched.c:81: undefined reference to `state_suspended'
/home/jack/Downloads/GCCToolchain/bin/aarch64-linux-android-ld: block/built-in.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `state_suspended' can not be used when making a shared object; recompile with -fPIC
/home/jack/Downloads/NethunterKernel/block/maple-iosched.c:81: undefined reference to `state_suspended'
block/built-in.o: In function `maple_dispatch_requests':
/home/jack/Downloads/NethunterKernel/block/maple-iosched.c:209: undefined reference to `state_suspended'
/home/jack/Downloads/GCCToolchain/bin/aarch64-linux-android-ld: block/built-in.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `state_suspended' can not be used when making a shared object; recompile with -fPIC
block/built-in.o:/home/jack/Downloads/NethunterKernel/block/maple-iosched.c:209: more undefined references to `state_suspended' follow
make: *** [Makefile:995: vmlinux] Error 1

Я уверен, что state_suspended объявлен в include / linux / state_notifier.h с

extern bool state_suspended;

state_notifier.h включен во все файлы, на которые он жалуется. Может кто-нибудь помочь?

Это ядро, которое я пытаюсь скомпилировать: https://github.com/Svirusx/Nethunter-s7-kernel-WirusMOD-AiO

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...