notcbw / 2019_android_walkman

Findings from the Android firmware of the Sony Walkman NW-A100 series and NW-ZX500 series
25 stars 3 forks source link

Compilation Error #7

Open HRB-YuPai opened 5 months ago

HRB-YuPai commented 5 months ago

Hi everyone.

While I compiling the kernel using the code in this repo, the compiler reports this error:

2024-04-10 22 21 22

I think this is a source file grammar error, I am not good at C, could anyone help me?

in appreciation

notcbw commented 5 months ago

Try compiling it with another toolchain. I had no problem compiling it. I think mine was either GCC 9 or GCC 11.

HRB-YuPai commented 5 months ago

I use gcc9 and it failed

notcbw commented 5 months ago

Try another toolchain then?

HRB-YuPai commented 5 months ago

I tried this one gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu and it still gives me error

notcbw commented 5 months ago

That's weird. I had no problem here. I had no idea why thats happening.

HRB-YuPai commented 5 months ago

me too. the file which causes this error does not appear in the official kernel source code (the one from OSS), I don't know what's happened.

HRB-YuPai commented 5 months ago

and I use different toolchain gives me different errors

HRB-YuPai commented 5 months ago

if possible, could you please provide me the toolchain you use to compile this to let me have a try?

HRB-YuPai commented 5 months ago

兄第,你用的啥编译工具链编译的?方便给我发来我试试不?我试了三四个,GCC 9 GCC 10 都是了,没一个好使的。UBUNTU 2004 和 Debian 11 这俩系统也都用了,全部阵亡

notcbw commented 5 months ago

我用的就是arm官方提供的toolchainhttps://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

我repo根目录里面的build_command.txt里面有编译用的命令。里面要忽略一些警告,不过输出是没问题的。还有个macro必须要define。

HRB-YuPai commented 5 months ago

你说的 define macro 是啥意思?我照着这个步骤 ( https://roadtothe.top/71.html) ) 编译的,发现如果用你的修改版 KSU (应用了你写的补丁) + 我从 OSS 下的官方内核源码 编译能过,但是 KSU 管理器里显示的 不支持。用 repo 里的内核源码和你修改的KSU (同样应用了补丁) 就过不去,很迷