8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png

错误:在为 android 构建内核时,‘struct cs_target’ 的声明在此函数之外不可见 [-Werror,-Wvisibility]

Karson Jo 2月前

128 0

我是为 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
帖子版权声明 1、本帖标题:错误:在为 android 构建内核时,‘struct cs_target’ 的声明在此函数之外不可见 [-Werror,-Wvisibility]
    本站网址:http://xjnalaquan.com/
2、本网站的资源部分来源于网络,如有侵权,请联系站长进行删除处理。
3、会员发帖仅代表会员个人观点,并不代表本站赞同其观点和对其真实性负责。
4、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报
5、站长邮箱:yeweds@126.com 除非注明,本帖由Karson Jo在本站《ubuntu》版块原创发布, 转载请注明出处!
最新回复 (0)
  • 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.
    

    这个错误

返回
作者最近主题: