我是为 Android 构建内核的新手。我遇到了一个问题,好几天都没能解决。错误如下:../kernel/cgroup/cpuset.c:1794:16:错误:声明“str...
我是为 Android 构建内核的新手。我遇到了一个问题,好几天都无法解决。错误如下:
../kernel/cgroup/cpuset.c:1794:16: error: declaration of 'struct cs_target' will not be visible outside of this function [-Werror,-Wvisibility]
struct cs_target tgt, size_t nbytes,
^
../kernel/cgroup/cpuset.c:1794:26: error: variable has incomplete type 'struct cs_target'
struct cs_target tgt, size_t nbytes,
^
../kernel/cgroup/cpuset.c:1794:16: note: forward declaration of 'struct cs_target'
struct cs_target tgt, size_t nbytes,
我该如何解决这个问题? 来源
以下是我的步骤:
cd /home/me/kuroneko_r_mt6765
export ARCH=arm64
export SUBARCH=arm
export CLANG_TRIPLE=aarch64-linux-gnu-
export CROSS_COMPILE=aarch64-linux-gnu-
export CROSS_COMPILE_ARM32=arm-linux-gnueabi-
make blossom_defconfig O=out
make -j4 CC=clang O=out
ayushjain@ubuntu:~/Downloads$ sudo apt install --reinstall ./code_1.88.1-1712771838_amd64.deb 正在读取软件包列表...完成正在构建依赖关系树正在读取状态信息...完成注意,
ayushjain@ubuntu:~/Downloads$ sudo apt install --reinstall ./code_1.88.1-1712771838_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'code' instead of './code_1.88.1-1712771838_amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
code : Depends: libc6 (>= 2.28) but 2.23-0ubuntu11.3 is to be installed
Depends: libgssapi-krb5-2 (>= 1.17) but 1.13.2+dfsg-5ubuntu2.2 is to be installed
Depends: libnss3 (>= 2:3.30) but 2:3.28.4-0ubuntu0.16.04.14 is to be installed
Depends: libxkbfile1 (>= 1:1.1.0) but 1:1.0.9-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
I tried installing the vscode using command sudo apt install /.code
but it is throwing
The following packages have unmet dependencies:
code : Depends: libc6 (>= 2.28) but 2.23-0ubuntu11.3 is to be installed
Depends: libgssapi-krb5-2 (>= 1.17) but 1.13.2+dfsg-5ubuntu2.2 is to be installed
Depends: libnss3 (>= 2:3.30) but 2:3.28.4-0ubuntu0.16.04.14 is to be installed
Depends: libxkbfile1 (>= 1:1.1.0) but 1:1.0.9-0ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
这个错误