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

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

Karson Jo 2月前

131 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)
  • 当 Unity 应用在 Android 设备上运行时,我开始收到错误,在 UnityPurchasing InitializeUnity 2022.3.181、应用内购买 4.12.2、目标 API 34UnityEngine.AndroidJavaException:...

    当 Unity 应用在 Android 设备上运行时,我在 UnityPurchasing Initialize 上收到错误

    Unity 2022.3.181,应用内购买 4.12.2,目标 API 34

    UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.android.billingclient.api.PurchasesUpdatedListener
    at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0 
    at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0 
    at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) [0x00000] in <00000000000000000000000000000000>:0 
    at UnityEngine.AndroidJavaProxy..ctor (System.String javaInterface) [0x00000] in <00000000000000000000000000000000>:0 
    at UnityEngine.Purchasing.GooglePurchaseUpdatedListener..ctor (UnityEngine.Purchasing.Interfaces.IGoogleLastKnownProductService googleLastKnownProductService, UnityEngine.Purchasing.Interfaces.IGooglePurchaseCallback googlePurchaseCallback, UnityEngine.Purchasing.Interfaces.IGooglePurchaseBuilder purchaseBuilder, UnityEngine.Purchasing.IGoogleCachedQueryProductDetailsService googleCachedQueryProductDetailsService, UnityEngine.Pur
    

    我尝试添加自定义 proguard, -keep class com.android.billingclient.** {*; } 但没有任何改变

    关于如何修复它有什么提示吗?

返回
作者最近主题: