Open crazyn2 opened 1 year ago
看起来像是prebuilts模块的git submodule出了问题,我这边试试看能不能复现
重新下载prebuilds后再次编译
docker run --name vmos-5-jdk7 -it -v $PWD:/aosp openstf/aosp:jdk7 /bin/bash
In file included from frameworks/base/tools/aapt/Images.cpp:15:0:
external/zlib/zlib.h:1:1: error: 'src' does not name a type
frameworks/base/tools/aapt/Images.cpp: In function 'void write_png(char const*, png_structp, png_infop, image_info&, int)':
frameworks/base/tools/aapt/Images.cpp:1095:42: error: 'Z_BEST_COMPRESSION' was not declared in this scope
frameworks/base/tools/aapt/Images.cpp: In function 'android::status_t preProcessImage(const Bundle*, const android::sp<AaptAssets>&, const android::sp<AaptFile>&, android::String8*)':
frameworks/base/tools/aapt/Images.cpp:1320:22: error: 'png_write_aapt_file' was not declared in this scope
host C++: libaapt_32 <= frameworks/base/tools/aapt/pseudolocalize.cpp
make: *** [out/host/linux-x86/obj32/STATIC_LIBRARIES/libaapt_intermediates/Images.o] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:52 (mm:ss)) ####
external/zlib/zlib.h 是一个链接到 external/zlib/src/zlib.h 的符号链接,你看是不是链接失败了
是不是存放源码的机子不是linux的?
是Ubuntu22.04 linux系列操作系统,目前的问题应该是网络问题,我把出问题的库删了,重新下,相关问题就解决了,不过现在又遇到了其他问题,正在尝试把整个包删了重新下
hardware/ril/reference-ril/atchannel.c: In function 'readerLoop':
hardware/ril/reference-ril/atchannel.c:428:31: warning: unused parameter 'arg' [-Wunused-parameter]
static void *readerLoop(void *arg)
^
In file included from hardware/ril/reference-ril/reference-ril.c:40:0:
hardware/ril/reference-ril/ril.h:1:1: error: expected identifier or '(' before '.' token
../include/telephony/ril.h
^
hardware/ril/reference-ril/reference-ril.c: In function 'is3gpp2':
hardware/ril/reference-ril/reference-ril.c:142:14: error: 'RADIO_TECH_IS95A' undeclared (first use in this function)
case RADIO_TECH_IS95A:
^
hardware/ril/reference-ril/reference-ril.c:142:14: note: each undeclared identifier is reported only once for each function it appears in
hardware/ril/reference-ril/reference-ril.c:143:14: error: 'RADIO_TECH_IS95B' undeclared (first use in this function)
case RADIO_TECH_IS95B:
^
hardware/ril/reference-ril/reference-ril.c:144:14: error: 'RADIO_TECH_1xRTT' undeclared (first use in this function)
case RADIO_TECH_1xRTT:
^
hardware/ril/reference-ril/reference-ril.c:145:14: error: 'RADIO_TECH_EVDO_0' undeclared (first use in this function)
case RADIO_TECH_EVDO_0:
^
hardware/ril/reference-ril/reference-ril.c:146:14: error: 'RADIO_TECH_EVDO_A' undeclared (first use in this function)
case RADIO_TECH_EVDO_A:
^
hardware/ril/reference-ril/reference-ril.c:147:14: error: 'RADIO_TECH_EVDO_B' undeclared (first use in this function)
case RADIO_TECH_EVDO_B:
^
hardware/ril/reference-ril/reference-ril.c:148:14: error: 'RADIO_TECH_EHRPD' undeclared (first use in this function)
case RADIO_TECH_EHRPD:
^
hardware/ril/reference-ril/reference-ril.c: At top level:
hardware/ril/reference-ril/reference-ril.c:170:65: error: unknown type name 'RIL_Token'
static void onRequest (int request, void *data, size_t datalen, RIL_Token t);
^
hardware/ril/reference-ril/reference-ril.c:171:1: error: unknown type name 'RIL_RadioState'
static RIL_RadioState currentState();
^
hardware/ril/reference-ril/reference-ril.c:173:23: error: unknown type name 'RIL_Token'
static void onCancel (RIL_Token t);
^
hardware/ril/reference-ril/reference-ril.c:177:26: error: unknown type name 'RIL_CardStatus_v6'
static int getCardStatus(RIL_CardStatus_v6 **pp_card_status);
^
hardware/ril/reference-ril/reference-ril.c:178:28: error: unknown type name 'RIL_CardStatus_v6'
static void freeCardStatus(RIL_CardStatus_v6 *p_card_status);
^
hardware/ril/reference-ril/reference-ril.c:184:1: error: unknown type name 'RIL_RadioFunctions'
static const RIL_RadioFunctions s_callbacks = {
^
hardware/ril/reference-ril/reference-ril.c:185:5: error: 'RIL_VERSION' undeclared here (not in a function)
RIL_VERSION,
^
hardware/ril/reference-ril/reference-ril.c:186:5: error: 'onRequest' undeclared here (not in a function)
onRequest,
^
hardware/ril/reference-ril/reference-ril.c:186:5: warning: excess elements in scalar initializer [enabled by default]
hardware/ril/reference-ril/reference-ril.c:186:5: warning: (near initialization for 's_callbacks') [enabled by default]
hardware/ril/reference-ril/reference-ril.c:187:5: warning: excess elements in scalar initializer [enabled by default]
currentState,
^
hardware/ril/reference-ril/reference-ril.c:187:5: warning: (near initialization for 's_callbacks') [enabled by default]
hardware/ril/reference-ril/reference-ril.c:188:5: warning: excess elements in scalar initializer [enabled by default]
onSupports,
^
hardware/ril/reference-ril/reference-ril.c:188:5: warning: (near initialization for 's_callbacks') [enabled by default]
hardware/ril/reference-ril/reference-ril.c:189:5: error: 'onCancel' undeclared here (not in a function)
onCancel,
^
hardware/ril/reference-ril/reference-ril.c:189:5: warning: excess elements in scalar initializer [enabled by default]
hardware/ril/reference-ril/reference-ril.c:189:5: warning: (near initialization for 's_callbacks') [enabled by default]
hardware/ril/reference-ril/reference-ril.c:191:1: warning: excess elements in scalar initializer [enabled by default]
};
^
hardware/ril/reference-ril/reference-ril.c:191:1: warning: (near initialization for 's_callbacks') [enabled by default]
hardware/ril/reference-ril/reference-ril.c:201:1: error: unknown type name 'RIL_RadioState'
static RIL_RadioState sState = RADIO_STATE_UNAVAILABLE;
^
hardware/ril/reference-ril/reference-ril.c:201:32: error: 'RADIO_STATE_UNAVAILABLE' undeclared here (not in a function)
static RIL_RadioState sState = RADIO_STATE_UNAVAILABLE;
^
hardware/ril/reference-ril/reference-ril.c:249:27: error: unknown type name 'RIL_RadioState'
static void setRadioState(RIL_RadioState newState);
^
hardware/ril/reference-ril/reference-ril.c:255:43: error: unknown type name 'RIL_CallState'
static int clccStateToRILState(int state, RIL_CallState *p_state)
^
hardware/ril/reference-ril/reference-ril.c:273:41: error: unknown type name 'RIL_Call'
static int callFromCLCCLine(char *line, RIL_Call *p_call)
^
hardware/ril/reference-ril/reference-ril.c:367:59: error: unknown type name 'RIL_Token'
static void requestRadioPower(void *data, size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:404:29: error: unknown type name 'RIL_Token'
static void requestShutdown(RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:421:39: error: unknown type name 'RIL_Token'
static void requestOrSendDataCallList(RIL_Token *t);
^
hardware/ril/reference-ril/reference-ril.c: In function 'onDataCallListChanged':
hardware/ril/reference-ril/reference-ril.c:425:5: warning: implicit declaration of function 'requestOrSendDataCallList' [-Wimplicit-function-declaration]
requestOrSendDataCallList(NULL);
^
hardware/ril/reference-ril/reference-ril.c: At top level:
hardware/ril/reference-ril/reference-ril.c:428:79: error: unknown type name 'RIL_Token'
static void requestDataCallList(void *data __unused, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:433:39: error: unknown type name 'RIL_Token'
static void requestOrSendDataCallList(RIL_Token *t)
^
hardware/ril/reference-ril/reference-ril.c:626:63: error: unknown type name 'RIL_Token'
void *data __unused, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c: In function 'sendCallStateChanged':
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:664:5: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse (
^
hardware/ril/reference-ril/reference-ril.c:665:9: error: 'RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED' undeclared (first use in this function)
RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED,
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c: At top level:
hardware/ril/reference-ril/reference-ril.c:669:82: error: unknown type name 'RIL_Token'
static void requestGetCurrentCalls(void *data __unused, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:792:62: error: unknown type name 'RIL_Token'
static void requestDial(void *data, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:819:71: error: unknown type name 'RIL_Token'
static void requestWriteSmsToSim(void *data, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:845:64: error: unknown type name 'RIL_Token'
static void requestHangup(void *data, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:867:81: error: unknown type name 'RIL_Token'
static void requestSignalStrength(void *data __unused, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:916:70: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t )
^
hardware/ril/reference-ril/reference-ril.c:963:61: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:988:61: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1012:61: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1031:66: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1068:66: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1101:57: error: unknown type name 'RIL_Token'
size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1133:66: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1161:75: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1187:75: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1324:66: error: unknown type name 'RIL_Token'
size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1437:75: error: unknown type name 'RIL_Token'
static void requestOperator(void *data __unused, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1514:60: error: unknown type name 'RIL_Token'
static void requestCdmaSendSMS(void *data, size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1548:56: error: unknown type name 'RIL_Token'
static void requestSendSMS(void *data, size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1600:59: error: unknown type name 'RIL_Token'
static void requestImsSendSMS(void *data, size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1645:62: error: unknown type name 'RIL_Token'
static void requestSetupDataCall(void *data, size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1768:72: error: unknown type name 'RIL_Token'
static void requestSMSAcknowledge(void *data, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1790:65: error: unknown type name 'RIL_Token'
static void requestSIM_IO(void *data, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1849:63: error: unknown type name 'RIL_Token'
static void requestEnterSimPin(void* data, size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1876:67: error: unknown type name 'RIL_Token'
static void requestSendUSSD(void *data, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1889:84: error: unknown type name 'RIL_Token'
static void requestExitEmergencyMode(void *data __unused, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c: In function 'techFromModemType':
hardware/ril/reference-ril/reference-ril.c:1910:19: error: 'RADIO_TECH_1xRTT' undeclared (first use in this function)
ret = RADIO_TECH_1xRTT;
^
hardware/ril/reference-ril/reference-ril.c:1913:19: error: 'RADIO_TECH_EVDO_A' undeclared (first use in this function)
ret = RADIO_TECH_EVDO_A;
^
hardware/ril/reference-ril/reference-ril.c:1916:19: error: 'RADIO_TECH_GPRS' undeclared (first use in this function)
ret = RADIO_TECH_GPRS;
^
hardware/ril/reference-ril/reference-ril.c:1919:19: error: 'RADIO_TECH_HSPA' undeclared (first use in this function)
ret = RADIO_TECH_HSPA;
^
hardware/ril/reference-ril/reference-ril.c:1922:19: error: 'RADIO_TECH_LTE' undeclared (first use in this function)
ret = RADIO_TECH_LTE;
^
hardware/ril/reference-ril/reference-ril.c: At top level:
hardware/ril/reference-ril/reference-ril.c:1928:82: error: unknown type name 'RIL_Token'
static void requestGetCellInfoList(void *data __unused, size_t datalen __unused, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1959:68: error: unknown type name 'RIL_Token'
static void requestSetCellInfoListRate(void *data, size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1969:66: error: unknown type name 'RIL_Token'
static void requestGetHardwareConfig(void *data, size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:1999:53: error: unknown type name 'RIL_Token'
onRequest (int request, void *data, size_t datalen, RIL_Token t)
^
hardware/ril/reference-ril/reference-ril.c:2400:1: error: unknown type name 'RIL_RadioState'
currentState()
^
hardware/ril/reference-ril/reference-ril.c:2419:23: error: unknown type name 'RIL_Token'
static void onCancel (RIL_Token t __unused)
^
hardware/ril/reference-ril/reference-ril.c: In function 'setRadioTechnology':
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:2443:17: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse(RIL_UNSOL_VOICE_RADIO_TECH_CHANGED,
^
hardware/ril/reference-ril/reference-ril.c:2443:43: error: 'RIL_UNSOL_VOICE_RADIO_TECH_CHANGED' undeclared (first use in this function)
RIL_onUnsolicitedResponse(RIL_UNSOL_VOICE_RADIO_TECH_CHANGED,
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c: At top level:
hardware/ril/reference-ril/reference-ril.c:2451:15: error: unknown type name 'RIL_RadioState'
setRadioState(RIL_RadioState newState)
^
hardware/ril/reference-ril/reference-ril.c: In function 'getRUIMStatus':
hardware/ril/reference-ril/reference-ril.c:2507:19: error: 'RADIO_STATE_OFF' undeclared (first use in this function)
if (sState == RADIO_STATE_OFF || sState == RADIO_STATE_UNAVAILABLE) {
^
hardware/ril/reference-ril/reference-ril.c: In function 'getSIMStatus':
hardware/ril/reference-ril/reference-ril.c:2585:19: error: 'RADIO_STATE_OFF' undeclared (first use in this function)
if (sState == RADIO_STATE_OFF || sState == RADIO_STATE_UNAVAILABLE) {
^
hardware/ril/reference-ril/reference-ril.c: At top level:
hardware/ril/reference-ril/reference-ril.c:2659:26: error: unknown type name 'RIL_CardStatus_v6'
static int getCardStatus(RIL_CardStatus_v6 **pp_card_status) {
^
hardware/ril/reference-ril/reference-ril.c:2745:28: error: unknown type name 'RIL_CardStatus_v6'
static void freeCardStatus(RIL_CardStatus_v6 *p_card_status) {
^
hardware/ril/reference-ril/reference-ril.c: In function 'pollSIMState':
hardware/ril/reference-ril/reference-ril.c:2760:19: error: 'RADIO_STATE_SIM_NOT_READY' undeclared (first use in this function)
if (sState != RADIO_STATE_SIM_NOT_READY) {
^
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:2772:13: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse(RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED, NULL, 0);
^
hardware/ril/reference-ril/reference-ril.c:2772:39: error: 'RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED' undeclared (first use in this function)
RIL_onUnsolicitedResponse(RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED, NULL, 0);
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:198:49: error: dereferencing pointer to incomplete type
#define RIL_requestTimedCallback(a,b,c) s_rilenv->RequestTimedCallback(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:2776:13: note: in expansion of macro 'RIL_requestTimedCallback'
RIL_requestTimedCallback (pollSIMState, NULL, &TIMEVAL_SIMPOLL);
^
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:2782:13: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse(RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED, NULL, 0);
^
hardware/ril/reference-ril/reference-ril.c: In function 'initializeCallback':
hardware/ril/reference-ril/reference-ril.c:2991:5: warning: implicit declaration of function 'setRadioState' [-Wimplicit-function-declaration]
setRadioState (RADIO_STATE_OFF);
^
hardware/ril/reference-ril/reference-ril.c:2991:20: error: 'RADIO_STATE_OFF' undeclared (first use in this function)
setRadioState (RADIO_STATE_OFF);
^
hardware/ril/reference-ril/reference-ril.c:3061:24: error: 'RADIO_STATE_ON' undeclared (first use in this function)
setRadioState (RADIO_STATE_ON);
^
hardware/ril/reference-ril/reference-ril.c: In function 'sendUnsolImsNetworkStateChanged':
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3084:5: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse(RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED,
^
hardware/ril/reference-ril/reference-ril.c:3084:31: error: 'RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED' undeclared (first use in this function)
RIL_onUnsolicitedResponse(RIL_UNSOL_RESPONSE_IMS_NETWORK_STATE_CHANGED,
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c: In function 'onUnsolicited':
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3118:13: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse (
^
hardware/ril/reference-ril/reference-ril.c:3119:17: error: 'RIL_UNSOL_NITZ_TIME_RECEIVED' undeclared (first use in this function)
RIL_UNSOL_NITZ_TIME_RECEIVED,
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3127:9: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse (
^
hardware/ril/reference-ril/reference-ril.c:3128:13: error: 'RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED' undeclared (first use in this function)
RIL_UNSOL_RESPONSE_CALL_STATE_CHANGED,
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3136:9: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse (
^
hardware/ril/reference-ril/reference-ril.c:3137:13: error: 'RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED' undeclared (first use in this function)
RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED,
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3143:9: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse (
^
hardware/ril/reference-ril/reference-ril.c:3144:13: error: 'RIL_UNSOL_RESPONSE_NEW_SMS' undeclared (first use in this function)
RIL_UNSOL_RESPONSE_NEW_SMS,
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3147:9: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse (
^
hardware/ril/reference-ril/reference-ril.c:3148:13: error: 'RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT' undeclared (first use in this function)
RIL_UNSOL_RESPONSE_NEW_SMS_STATUS_REPORT,
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:198:49: error: dereferencing pointer to incomplete type
#define RIL_requestTimedCallback(a,b,c) s_rilenv->RequestTimedCallback(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3156:9: note: in expansion of macro 'RIL_requestTimedCallback'
RIL_requestTimedCallback (onDataCallListChanged, NULL, NULL);
^
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3196:9: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse(RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED,
^
hardware/ril/reference-ril/reference-ril.c:3196:35: error: 'RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED' undeclared (first use in this function)
RIL_onUnsolicitedResponse(RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED,
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3218:17: error: 'RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE' undeclared (first use in this function)
RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE : RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE;
^
hardware/ril/reference-ril/reference-ril.c:3218:59: error: 'RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE' undeclared (first use in this function)
RIL_UNSOL_ENTER_EMERGENCY_CALLBACK_MODE : RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE;
^
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3220:9: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse(unsol, NULL, 0);
^
hardware/ril/reference-ril/reference-ril.c:197:50: error: dereferencing pointer to incomplete type
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3240:9: note: in expansion of macro 'RIL_onUnsolicitedResponse'
RIL_onUnsolicitedResponse(RIL_UNSOL_CDMA_PRL_CHANGED, &version, sizeof(version));
^
hardware/ril/reference-ril/reference-ril.c:3240:35: error: 'RIL_UNSOL_CDMA_PRL_CHANGED' undeclared (first use in this function)
RIL_onUnsolicitedResponse(RIL_UNSOL_CDMA_PRL_CHANGED, &version, sizeof(version));
^
hardware/ril/reference-ril/reference-ril.c:197:74: note: in definition of macro 'RIL_onUnsolicitedResponse'
#define RIL_onUnsolicitedResponse(a,b,c) s_rilenv->OnUnsolicitedResponse(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3242:23: error: 'RADIO_STATE_OFF' undeclared (first use in this function)
setRadioState(RADIO_STATE_OFF);
^
hardware/ril/reference-ril/reference-ril.c: At top level:
hardware/ril/reference-ril/reference-ril.c:3272:47: error: unknown type name 'RIL_HardwareConfig'
static void setHardwareConfiguration(int num, RIL_HardwareConfig *cfg)
^
hardware/ril/reference-ril/reference-ril.c: In function 'usage':
hardware/ril/reference-ril/reference-ril.c:3277:25: warning: unused parameter 's' [-Wunused-parameter]
static void usage(char *s)
^
hardware/ril/reference-ril/reference-ril.c: In function 'mainLoop':
hardware/ril/reference-ril/reference-ril.c:198:49: error: dereferencing pointer to incomplete type
#define RIL_requestTimedCallback(a,b,c) s_rilenv->RequestTimedCallback(a,b,c)
^
hardware/ril/reference-ril/reference-ril.c:3358:9: note: in expansion of macro 'RIL_requestTimedCallback'
RIL_requestTimedCallback(initializeCallback, NULL, &TIMEVAL_0);
^
hardware/ril/reference-ril/reference-ril.c: At top level:
hardware/ril/reference-ril/reference-ril.c:3373:1: error: unknown type name 'RIL_RadioFunctions'
const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc, char **argv)
^
make: *** [out/target/product/generic_arm64/obj_arm/SHARED_LIBRARIES/libreference-ril_intermediates/reference-ril.o] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (06:29 (mm:ss)) ####
Target userdata fs image: out/target/product/generic_arm64/userdata.img
Running: mkuserimg.sh out/target/product/generic_arm64/data out/target/product/generic_arm64/userdata.img ext4 data 576716800 out/target/product/generic_arm64/root/file_contexts
Traceback (most recent call last):
File "./build/tools/releasetools/build_image.py", line 394, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/build_image.py", line 388, in main
if not BuildImage(in_dir, image_properties, out_file):
File "./build/tools/releasetools/build_image.py", line 268, in BuildImage
exit_code = RunCommand(build_command)
File "./build/tools/releasetools/build_image.py", line 42, in RunCommand
p = subprocess.Popen(cmd)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
make: *** [out/target/product/generic_arm64/userdata.img] Error 1
make: *** Waiting for unfinished jobs....
这个感觉不是下载文件问题了
上个问题解决后新的错误
arget SharedLib: libreference-ril_32 (out/target/product/generic_arm64/obj_arm/SHARED_LIBRARIES/libreference-ril_intermediates/LINKED/libreference-ril.so)
/aosp/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/bin/ld: warning: libgui.so, needed by out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so, not found (try using -rpath or -rpath-link)
/aosp/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/bin/ld: warning: libpowermanager.so, needed by out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so, not found (try using -rpath or -rpath-link)
/aosp/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9/../../../../aarch64-linux-android/bin/ld: warning: libGLES_trace.so, needed by out/target/product/generic_arm64/obj/lib/libEGL.so, not found (try using -rpath or -rpath-link)
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IDisplayEventConnection::descriptor'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::addReleaseFenceLocked(int, android::sp<android::GraphicBuffer>, android::sp<android::Fence> const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::setFrameAvailableListener(android::wp<android::ConsumerBase::FrameAvailableListener> const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BitTube::BitTube()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::checkAndUpdateEglStateLocked(bool)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `VTT for android::BnSurfaceComposerClient'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposerClient::~ISurfaceComposerClient()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposer::getInterfaceDescriptor() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::onSidebandStreamChanged()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `non-virtual thunk to android::BnSurfaceComposer::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libEGL.so: undefined reference to `android::GLTrace_eglMakeCurrent(unsigned int, android::gl_hooks_t*, void*)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BufferItem::~BufferItem()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::abandonLocked()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::freeBufferLocked(int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::onFrameAvailable(android::BufferItem const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IDisplayEventConnection::~IDisplayEventConnection()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferProducer::~IGraphicBufferProducer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `VTT for android::BnSurfaceComposer'
out/target/product/generic_arm64/obj/lib/libEGL.so: undefined reference to `android::GLTrace_eglReleaseThread()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferProducer::asInterface(android::sp<android::IBinder> const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setReleaseFence(android::sp<android::Fence> const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setDefaultBufferFormat(unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferProducer::getInterfaceDescriptor() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposerClient::~ISurfaceComposerClient()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `non-virtual thunk to android::BnGraphicBufferProducer::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::abandonLocked()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setName(android::String8 const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::IGraphicBufferProducer::~IGraphicBufferProducer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getCurrentBuffer() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BufferQueue::createBufferQueue(android::sp<android::IGraphicBufferProducer>*, android::sp<android::IGraphicBufferConsumer>*, android::sp<android::IGraphicBufferAlloc> const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferProducer::~IGraphicBufferProducer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::IDisplayEventConnection::~IDisplayEventConnection()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `VTT for android::BnDisplayEventConnection'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ConsumerBase::onLastStrongRef(void const*)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setDefaultMaxBufferCount(int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::acquireBufferLocked(android::IGraphicBufferConsumer::BufferItem*, long)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ISurfaceComposer::~ISurfaceComposer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::freeBufferLocked(int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setFilteringEnabled(bool)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `VTT for android::BnGraphicBufferProducer'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposer::~ISurfaceComposer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::Surface::Surface(android::sp<android::IGraphicBufferProducer> const&, bool)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getCurrentTransform() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ConsumerBase::~ConsumerBase()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposerClient::getInterfaceDescriptor() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::onLastStrongRef(void const*)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::SyncFeatures::SyncFeatures()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::IGraphicBufferProducer::~IGraphicBufferProducer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::~ConsumerBase()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::DisplayEventReceiver::getEvents(android::sp<android::BitTube> const&, android::DisplayEventReceiver::Event*, unsigned long)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::dumpLocked(android::String8&, char const*) const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::abandon()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferConsumer::BufferItem::BufferItem()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::releaseBufferLocked(int, android::sp<android::GraphicBuffer>, void*, void*)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposer::~ISurfaceComposer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::SyncFeatures::useNativeFenceSync() const'
out/target/product/generic_arm64/obj/lib/libEGL.so: undefined reference to `android::GLTrace_start()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IDisplayEventConnection::getInterfaceDescriptor() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::ConsumerBase(android::sp<android::IGraphicBufferConsumer> const&, bool)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `VTT for android::GLConsumer'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::SyncFeatures::toString() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IDisplayEventConnection::IDisplayEventConnection()'
out/target/product/generic_arm64/obj/lib/libEGL.so: undefined reference to `android::GLTrace_eglSwapBuffers(void*, void*)'
out/target/product/generic_arm64/obj/lib/libEGL.so: undefined reference to `android::GLTrace_eglCreateContext(int, void*)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposerClient::ISurfaceComposerClient()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ISurfaceComposerClient::~ISurfaceComposerClient()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::Singleton<android::SyncFeatures>::sLock'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferProducer::~IGraphicBufferProducer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::~ConsumerBase()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::GLConsumer(android::sp<android::IGraphicBufferConsumer> const&, unsigned int, unsigned int, bool, bool)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getCurrentCrop() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::dump(android::String8&, char const*) const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IPowerManager::asInterface(android::sp<android::IBinder> const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getCurrentScalingMode() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setConsumerUsageBits(unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `non-virtual thunk to android::BnDisplayEventConnection::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GraphicBufferAlloc::GraphicBufferAlloc()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BnDisplayEventConnection::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BnSurfaceComposerClient::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BitTube::getFd() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposer::descriptor'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::acquireBufferLocked(android::IGraphicBufferConsumer::BufferItem*, long)'
out/target/product/generic_arm64/obj/lib/libEGL.so: undefined reference to `android::GLTrace_stop()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::DisplayEventReceiver::sendEvents(android::sp<android::BitTube> const&, android::DisplayEventReceiver::Event const*, unsigned long)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::IDisplayEventConnection::~IDisplayEventConnection()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IDisplayEventConnection::~IDisplayEventConnection()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::dumpLocked(android::String8&, char const*) const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ISurfaceComposer::~ISurfaceComposer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::Singleton<android::SyncFeatures>::sInstance'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::appendGuiConfigString(android::String8&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ConsumerBase::~ConsumerBase()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposerClient::~ISurfaceComposerClient()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::bindTextureImageLocked()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::updateAndReleaseLocked(android::IGraphicBufferConsumer::BufferItem const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::addReleaseFence(int, android::sp<android::GraphicBuffer>, android::sp<android::Fence> const&)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BufferItem::BufferItem()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposer::~ISurfaceComposer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getCurrentFence() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferProducer::IGraphicBufferProducer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::onBuffersReleased()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposer::ISurfaceComposer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferProducer::descriptor'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::~ConsumerBase()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setTransformHint(unsigned int)'
out/target/product/generic_arm64/obj/lib/libEGL.so: undefined reference to `android::GLTrace_getGLHooks()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BnSurfaceComposer::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setDefaultBufferSize(unsigned int, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getTimestamp()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposerClient::descriptor'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getTransformMatrix(float*)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IDisplayEventConnection::~IDisplayEventConnection()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ISurfaceComposerClient::~ISurfaceComposerClient()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `non-virtual thunk to android::BnSurfaceComposerClient::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BnGraphicBufferProducer::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::releaseBufferLocked(int, android::sp<android::GraphicBuffer>, void*, void*)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::dump(android::String8&) const'
collect2: error: ld returned 1 exit status
这个应该是代码的问题了,我复现一下看看
这个编译问题解决了,提交 a7cdd365a233b09082e350020a16f87630c125f8 ,改了frameworks,需要同步git submodule
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposer::ISurfaceComposer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferProducer::descriptor'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::~ConsumerBase()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setTransformHint(unsigned int)'
out/target/product/generic_arm64/obj/lib/libEGL.so: undefined reference to `android::GLTrace_getGLHooks()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BnSurfaceComposer::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setDefaultBufferSize(unsigned int, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getTimestamp()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposerClient::descriptor'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getTransformMatrix(float*)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IDisplayEventConnection::~IDisplayEventConnection()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ISurfaceComposerClient::~ISurfaceComposerClient()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `non-virtual thunk to android::BnSurfaceComposerClient::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BnGraphicBufferProducer::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::releaseBufferLocked(int, android::sp<android::GraphicBuffer>, void*, void*)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::dump(android::String8&) const'
collect2: error: ld returned 1 exit status
make: *** [out/target/product/generic_arm64/obj/EXECUTABLES/surfaceflinger_intermediates/LINKED/surfaceflinger] Error 1
make: *** Waiting for unfinished jobs....
target SharedLib: libGLESv1_enc_32 (out/target/product/generic_arm64/obj_arm/SHARED_LIBRARIES/libGLESv1_enc_intermediates/LINKED/libGLESv1_enc.so)
并没有解决,把framework删了,重新克隆,删除out文件夹,还是一样
大佬,您有没有亲自编译过啊?
我编译成功了才提交代码的,我把源码删了重新克隆再看看能不能复现吧
好的,我也把整个删了重新试试,估计要下六七个小时
是不是用repo下载会好点,git递归下载对网络稳定性要求有点高
同样的错误无疑
大佬,编译错误有复现吗
明天上班了再看哈
再次验证过了,执行make_arm_user.sh是编译成功的,但是执行make_arm64_user.sh还是会报同样的错
找到原因了,之所以有时能编译通过有时不能,就是因为module之间的依赖关系,比如 libsurfaceflinger 依赖 libgui,但如果在编译 libsurfaceflinger 时 libgui还没有编译生成,就会导致编译失败。在Android.mk里面加上 LOCAL_REQUIRED_MODULES 就ok。 我这边已经提交代码了。
不好意思,最近比较忙,编译都搞了这么久,耽误你时间了。如果你测试没问题的话我再把issue给关掉。
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::dump(android::String8&) const'
collect2: error: ld returned 1 exit status
还是这个错误啊,大佬,编译make_arm64_user.sh
的时候,make_arm_user.sh
是可以的
已经把out删了,并删除framework重新克隆
root@9b4cbbeb0566:/aosp/frameworks# git status
On branch main
Your branch is up-to-date with 'origin/main'.
nothing to commit, working directory clean
root@9b4cbbeb0566:/aosp/frameworks# git log
commit 8ac2aaa539f300895a0ecc81ecb79175e175773d
Author: VMOS2021 <contact@vmos.cn>
Date: Tue Nov 1 15:56:17 2022 +0800
fix compile bug
commit 607d096f9c308f3ee32f2f6f3dc4c641fd8a59ad
Author: VMOS2021 <contact@vmos.cn>
Date: Tue Nov 1 14:45:36 2022 +0800
$ uname -a
Linux 5.15.0-50-generic #56-Ubuntu SMP Tue Sep 20 13:23:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
麻烦大佬修Bug的时候记得运行下make_arm64_user.sh
,看看这个通过没
麻烦问下解决了没啊
还没有,你在编译报错后,把out/target/product/generic_arm64/ 下面的 libgui* 全部删掉,然后再执行编译脚本试试
可以用 find out/target/product/generic_arm64/ | grep libui |xargs rm
删除
find out/target/product/generic_arm64/ | grep libui |xargs rm
和find out/target/product/generic_arm64/ | grep libui |xargs rm -rf
分别执行后,还是报错同样的错
你能成功?
还是out/target/product/generic_arm64/目录下,再试试把 libgui 相关的都删掉呢
再不成功,就再多删掉一个surfaceflinger相关的
root@9b4cbbeb0566:/aosp# find out/target/product/generic_arm64/ | grep libui |xargs rm -rf
root@9b4cbbeb0566:/aosp# find out/target/product/generic_arm64/ | grep surfaceflinger |xargs rm -rf
root@9b4cbbeb0566:/aosp# ./make_arm64_user.sh
...
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposerClient::~ISurfaceComposerClient()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::dumpLocked(android::String8&, char const*) const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::getCurrentTransform() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IGraphicBufferProducer::getInterfaceDescriptor() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `non-virtual thunk to android::BnSurfaceComposerClient::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::IDisplayEventConnection::getInterfaceDescriptor() const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::IGraphicBufferProducer::~IGraphicBufferProducer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::dumpLocked(android::String8&, char const*) const'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ISurfaceComposer::~ISurfaceComposer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ISurfaceComposer::~ISurfaceComposer()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `virtual thunk to android::ConsumerBase::~ConsumerBase()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::BufferItem::BufferItem()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::bindTextureImageLocked()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::ConsumerBase::~ConsumerBase()'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `VTT for android::BnGraphicBufferProducer'
out/target/product/generic_arm64/obj/lib/libsurfaceflinger.so: undefined reference to `android::GLConsumer::setName(android::String8 const&)'
collect2: error: ld returned 1 exit status
make: *** [out/target/product/generic_arm64/obj/EXECUTABLES/surfaceflinger_intermediates/LINKED/surfaceflinger] Error 1
make: *** Waiting for unfinished jobs....
Reading library jar [/aosp/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/aosp/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
Preparing output jar [/aosp/out/target/common/obj/APPS/SharedStorageBackup_intermediates/proguard.classes.jar]
Copying resources from program jar [/aosp/out/target/common/obj/APPS/SharedStorageBackup_intermediates/classes.jar]
Preparing output jar [/aosp/out/target/common/obj/APPS/VpnDialogs_intermediates/proguard.classes.jar]
Copying resources from program jar [/aosp/out/target/common/obj/APPS/VpnDialogs_intermediates/classes.jar]
Preparing output jar [/aosp/out/target/common/obj/APPS/CertInstaller_intermediates/proguard.classes.jar]
Copying resources from program jar [/aosp/out/target/common/obj/APPS/CertInstaller_intermediates/classes.jar]
#### make failed to build some targets (01:13 (mm:ss)) ####
还要删 libgui
find out/target/product/generic_arm64/ | grep libgui |xargs rm -rf
find out/target/product/generic_arm64/ | grep surfaceflinger |xargs rm -rf
一样失败
大佬找到解决办法了吗
编译输出如下: compile.log
编译输出如下: compile1.log