Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version release bug #1759

Closed
2 of 3 tasks
Hussein995 opened this issue May 23, 2024 · 4 comments
Closed
2 of 3 tasks

version release bug #1759

Hussein995 opened this issue May 23, 2024 · 4 comments

Comments

@Hussein995
Copy link

Please check before submitting an issue

  • I have searched the issues and haven't found anything relevant
  • I will upload bugreport file in KernelSU Manager - Settings - Report log
  • I know how to reproduce the issue which may not be specific to my device

Describe the bug

after updating to latest release it keeps giving errors while compiling

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Logs

Run export PATH=$HOME/:$PWD/toolchain/bin:$PATH
ln: failed to create symbolic link '/home/runner/python': File exists
mkdir: cannot create directory ‘out’: File exists

[i] Building KernelSU...

build_kernel.sh: line 190: replace_config_option: command not found

[+] Compiling KernelSU + Enforcing..

make: ./scripts/clang-android.sh: No such file or directory

configuration written to .config

make: ./scripts/clang-android.sh: No such file or directory
make[1]: ./scripts/clang-android.sh: No such file or directory
scripts/kconfig/conf --silentoldconfig Kconfig
make: ./scripts/clang-android.sh: No such file or directory
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
-- KernelSU version: 10201
-- KernelSU Manager signature size: 0x033b
-- KernelSU Manager signature hash: c371061b19d8c7d7d6133c6a9bafe198fa944e50c1b31c9d8daa8d7f1fc2d2d6
CHK include/generated/utsrelease.h
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/timeconst.h
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CC fs/open.o
CC fs/read_write.o
CC fs/stat.o
CHK kernel/config_data.h
CC fs/exec.o
CC security/selinux/hooks.o
CC security/selinux/selinuxfs.o
CC security/selinux/ss/services.o
AR fs/built-in.o
CC security/selinux/ss/status.o
AR security/selinux/selinux.o
AR security/selinux/built-in.o
AR security/built-in.o
CC drivers/input/input.o
-- KernelSU version: 10201
-- KernelSU Manager signature size: 0x033b
-- KernelSU Manager signature hash: c371061b19d8c7d7d6133c6a9bafe198fa944e50c1b31c9d8daa8d7f1fc2d2d6
CC drivers/kernelsu/ksu.o
drivers/kernelsu/ksu.c:97:18: error: a parameter list without types is only allowed in a function definition
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
^
1 error generated.
make[2]: *** [scripts/Makefile.build:356: drivers/kernelsu/ksu.o] Error 1
make[1]: *** [scripts/Makefile.build:671: drivers/kernelsu] Error 2
make[1]: *** Waiting for unfinished jobs....
AR drivers/input/input-core.o
AR drivers/input/built-in.o
make: *** [Makefile:1297: drivers] Error 2
make: *** Waiting for unfinished jobs....
Error: Process completed with exit code 1.

Device info

  • Device: N975F
  • OS Version: 14
  • KernelSU Version: LATEST
  • Kernel Version: 4.14.114

Additional context

No response

@tiann
Copy link
Owner

tiann commented May 23, 2024

There is a guard here, so why your 4.14 kernel will hit this?

https://github.com/tiann/KernelSU/blob/main/kernel/ksu.c#L98

check your source first.

@tiann tiann closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
@wu17481748
Copy link

这里有一个守卫,那么为什么你的 4.14 内核会击中这个呢?

https://github.com/tiann/KernelSU/blob/main/kernel/ksu.c#L98

首先检查您的来源。

KernelSU 版本:最新
内核版本:4.14.186

也出现这个问题

../drivers/kernelsu/ksu.c:97:18: error: a parameter list without types is only allowed in a function definition
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); ^

@strec007
Copy link

I'm also getting similar error:

-- KernelSU version: 11895
-- KernelSU Manager signature size: 0x033b
-- KernelSU Manager signature hash: c371061b19d8c7d7d6133c6a9bafe198fa944e50c1b31c9d8daa8d7f1fc2d2d6

...

../../../../../../kernel/fairphone/sm7225/KernelSU/kernel/ksu.c:97:1: error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int]
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
^
int
../../../../../../kernel/fairphone/sm7225/KernelSU/kernel/ksu.c:97:18: error: a parameter list without types is only allowed in a function definition
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
                 ^
2 errors generated.
make[3]: *** [/srv/src/LINEAGE_21_0/kernel/fairphone/sm7225/scripts/Makefile.build:338: drivers/kernelsu/ksu.o] Error 1
make[2]: *** [/srv/src/LINEAGE_21_0/kernel/fairphone/sm7225/scripts/Makefile.build:642: drivers/kernelsu] Error 2

Is there any workaround to be able to compile? Thank you.

@vanshsantoshi
Copy link

@strec007 @wu17481748

Solution to that written here:
#1972

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants