|
发表于 2023-12-13 18:41:52
只看该作者
167#
你好:请教下,参考此链接源码编译报错
https://wiki.t-firefly.com/zh_CN ... al_openharmony.html
故障信息:见附件
另:未使用参考链接提供的docker容器镜像,自行创建容器,安装编译环境及同步源码
root@harmony-source:/home/openharmony# repo branch
* firefly | in device/hihope, vendor/hihope
报错信息:
[OHOS ERROR] arch/arm64/boot/dts/rockchip/rk3568-firefly-port.dtsi:545.27-558.4: Warning (spi_bus_reg): /spi@fe620000/spi_wk2xxx@00: SPI bus unit address format error, expected "0"
[OHOS ERROR] also defined at arch/arm64/boot/dts/rockchip/rk3568-firefly-aioj.dtsi:146.13-148.3
[OHOS ERROR] arch/arm64/boot/dts/rockchip/rk3568.dtsi:1901.18-1916.6: Warning (graph_port): /hdmi@fe0a0000/ports/port: graph node unit address error, expected "0"
[OHOS ERROR] HOSTCC scripts/sorttable
[OHOS ERROR] HOSTCC scripts/selinux/mdp/mdp
[OHOS ERROR] HOSTCC scripts/asn1_compiler
[OHOS ERROR] HOSTCC scripts/extract-cert
[OHOS ERROR] scripts/extract-cert.c: In function ‘display_openssl_errors’:
[OHOS ERROR] scripts/extract-cert.c:42:6: warning: implicit declaration of function ‘ERR_peek_error’ [-Wimplicit-function-declaration]
[OHOS ERROR] if (ERR_peek_error() == 0)
[OHOS ERROR] ^~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:46:14: warning: implicit declaration of function ‘ERR_get_error_line’ [-Wimplicit-function-declaration]
[OHOS ERROR] while ((e = ERR_get_error_line(&file, &line))) {
[OHOS ERROR] ^~~~~~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:47:3: warning: implicit declaration of function ‘ERR_error_string’ [-Wimplicit-function-declaration]
[OHOS ERROR] ERR_error_string(e, buf);
[OHOS ERROR] ^~~~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c: At top level:
[OHOS ERROR] scripts/extract-cert.c:72:8: error: unknown type name ‘BIO’
[OHOS ERROR] static BIO *wb;
[OHOS ERROR] ^~~
[OHOS ERROR] scripts/extract-cert.c:76:24: error: unknown type name ‘X509’
[OHOS ERROR] static void write_cert(X509 *x509)
[OHOS ERROR] ^~~~
[OHOS ERROR] scripts/extract-cert.c: In function ‘main’:
[OHOS ERROR] scripts/extract-cert.c:94:2: warning: implicit declaration of function ‘OpenSSL_add_all_algorithms’ [-Wimplicit-function-declaration]
[OHOS ERROR] OpenSSL_add_all_algorithms();
[OHOS ERROR] ^~~~~~~~~~~~~~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:95:2: warning: implicit declaration of function ‘ERR_load_crypto_strings’ [-Wimplicit-function-declaration]
[OHOS ERROR] ERR_load_crypto_strings();
[OHOS ERROR] ^~~~~~~~~~~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:96:2: warning: implicit declaration of function ‘ERR_clear_error’; did you mean ‘clearerr’? [-Wimplicit-function-declaration]
[OHOS ERROR] ERR_clear_error();
[OHOS ERROR] ^~~~~~~~~~~~~~~
[OHOS ERROR] clearerr
[OHOS ERROR] scripts/extract-cert.c:115:3: error: unknown type name ‘ENGINE’
[OHOS ERROR] ENGINE *e;
[OHOS ERROR] ^~~~~~
[OHOS ERROR] scripts/extract-cert.c:118:4: error: unknown type name ‘X509’
[OHOS ERROR] X509 *cert;
[OHOS ERROR] ^~~~
[OHOS ERROR] scripts/extract-cert.c:124:3: warning: implicit declaration of function ‘ENGINE_load_builtin_engines’ [-Wimplicit-function-declaration]
[OHOS ERROR] ENGINE_load_builtin_engines();
[OHOS ERROR] ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:126:7: warning: implicit declaration of function ‘ENGINE_by_id’ [-Wimplicit-function-declaration]
[OHOS ERROR] e = ENGINE_by_id("pkcs11");
[OHOS ERROR] ^~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:126:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
[OHOS ERROR] e = ENGINE_by_id("pkcs11");
[OHOS ERROR] ^
[OHOS ERROR] scripts/extract-cert.c:128:7: warning: implicit declaration of function ‘ENGINE_init’ [-Wimplicit-function-declaration]
[OHOS ERROR] if (ENGINE_init(e))
[OHOS ERROR] ^~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:133:9: warning: implicit declaration of function ‘ENGINE_ctrl_cmd_string’ [-Wimplicit-function-declaration]
[OHOS ERROR] ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), "Set PKCS#11 PIN");
[OHOS ERROR] ^
[OHOS ERROR] scripts/extract-cert.c:64:18: note: in definition of macro ‘ERR’
[OHOS ERROR] bool __cond = (cond); \
[OHOS ERROR] ^~~~
[OHOS ERROR] scripts/extract-cert.c:134:3: warning: implicit declaration of function ‘ENGINE_ctrl_cmd’ [-Wimplicit-function-declaration]
[OHOS ERROR] ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1);
[OHOS ERROR] ^~~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:136:3: warning: implicit declaration of function ‘write_cert’ [-Wimplicit-function-declaration]
[OHOS ERROR] write_cert(parms.cert);
[OHOS ERROR] ^~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:138:3: error: unknown type name ‘BIO’
[OHOS ERROR] BIO *b;
[OHOS ERROR] ^~~
[OHOS ERROR] scripts/extract-cert.c:139:3: error: unknown type name ‘X509’
[OHOS ERROR] X509 *x509;
[OHOS ERROR] ^~~~
[OHOS ERROR] scripts/extract-cert.c:141:7: warning: implicit declaration of function ‘BIO_new_file’; did you mean ‘_IO_flockfile’? [-Wimplicit-function-declaration]
[OHOS ERROR] b = BIO_new_file(cert_src, "rb");
[OHOS ERROR] ^~~~~~~~~~~~
[OHOS ERROR] _IO_flockfile
[OHOS ERROR] scripts/extract-cert.c:141:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
[OHOS ERROR] b = BIO_new_file(cert_src, "rb");
[OHOS ERROR] ^
[OHOS ERROR] scripts/extract-cert.c:145:11: warning: implicit declaration of function ‘PEM_read_bio_X509’ [-Wimplicit-function-declaration]
[OHOS ERROR] x509 = PEM_read_bio_X509(b, NULL, NULL, NULL);
[OHOS ERROR] ^~~~~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:145:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
[OHOS ERROR] x509 = PEM_read_bio_X509(b, NULL, NULL, NULL);
[OHOS ERROR] ^
[OHOS ERROR] scripts/extract-cert.c:147:25: warning: implicit declaration of function ‘ERR_peek_last_error’ [-Wimplicit-function-declaration]
[OHOS ERROR] unsigned long err = ERR_peek_last_error();
[OHOS ERROR] ^~~~~~~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:148:9: warning: implicit declaration of function ‘ERR_GET_LIB’ [-Wimplicit-function-declaration]
[OHOS ERROR] if (ERR_GET_LIB(err) == ERR_LIB_PEM &&
[OHOS ERROR] ^~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:148:29: error: ‘ERR_LIB_PEM’ undeclared (first use in this function)
[OHOS ERROR] if (ERR_GET_LIB(err) == ERR_LIB_PEM &&
[OHOS ERROR] ^~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:148:29: note: each undeclared identifier is reported only once for each function it appears in
[OHOS ERROR] scripts/extract-cert.c:149:9: warning: implicit declaration of function ‘ERR_GET_REASON’ [-Wimplicit-function-declaration]
[OHOS ERROR] ERR_GET_REASON(err) == PEM_R_NO_START_LINE) {
[OHOS ERROR] ^~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:149:32: error: ‘PEM_R_NO_START_LINE’ undeclared (first use in this function)
[OHOS ERROR] ERR_GET_REASON(err) == PEM_R_NO_START_LINE) {
[OHOS ERROR] ^~~~~~~~~~~~~~~~~~~
[OHOS ERROR] scripts/extract-cert.c:159:2: warning: implicit declaration of function ‘BIO_free’; did you mean ‘free’? [-Wimplicit-function-declaration]
[OHOS ERROR] BIO_free(wb);
[OHOS ERROR] ^~~~~~~~
[OHOS ERROR] free
[OHOS ERROR] scripts/Makefile.host:95: recipe for target 'scripts/extract-cert' failed
[OHOS ERROR] make[2]: *** [scripts/extract-cert] Error 1
[OHOS ERROR] make[2]: *** Waiting for unfinished jobs....
[OHOS ERROR] Makefile:1199: recipe for target 'scripts' failed
[OHOS ERROR] make[1]: *** [scripts] Error 2
[OHOS ERROR] arch/arm64/Makefile:206: recipe for target 'rk3568-firefly-aioj.img' failed
[OHOS ERROR] make: *** [rk3568-firefly-aioj.img] Error 2
[OHOS INFO] ---------------------------------------------
[OHOS INFO] ccache summary:
[OHOS INFO] cache hit (direct) : 44
[OHOS INFO] cache hit (preprocessed) : 0
[OHOS INFO] cache miss : 344
[OHOS INFO] hit rate: 11.34%
[OHOS INFO] mis rate: 88.66%
[OHOS INFO] ---------------------------------------------
[OHOS INFO] c targets overlap rate statistics
[OHOS INFO] subsystem files NO. percentage builds NO. percentage overlap rate
[OHOS INFO] securec 78 0.5% 117 0.7% 1.50
[OHOS INFO] third_party 8422 57.4% 9624 60.6% 1.14
[OHOS INFO] graphic 73 0.5% 74 0.5% 1.01
[OHOS INFO] aafwk 115 0.8% 115 0.7% 1.00
[OHOS INFO] account 44 0.3% 44 0.3% 1.00
[OHOS INFO] ace 373 2.5% 373 2.3% 1.00
[OHOS INFO] appexecfwk 56 0.4% 56 0.4% 1.00
[OHOS INFO] ark 389 2.7% 389 2.4% 1.00
[OHOS INFO] arkXtest 10 0.1% 10 0.1% 1.00
[OHOS INFO] barrierfree 2 0.0% 2 0.0% 1.00
[OHOS INFO] communication 929 6.3% 929 5.8% 1.00
[OHOS INFO] compileruntime 30 0.2% 30 0.2% 1.00
[OHOS INFO] customization 2 0.0% 2 0.0% 1.00
[OHOS INFO] developtools 312 2.1% 312 2.0% 1.00
[OHOS INFO] deviceprofile 11 0.1% 11 0.1% 1.00
[OHOS INFO] distributeddatamgr 305 2.1% 305 1.9% 1.00
[OHOS INFO] distributedhardware 8 0.1% 8 0.1% 1.00
[OHOS INFO] distributedschedule 20 0.1% 20 0.1% 1.00
[OHOS INFO] filemanagement 52 0.4% 52 0.3% 1.00
[OHOS INFO] global 32 0.2% 32 0.2% 1.00
[OHOS INFO] hdf 431 2.9% 431 2.7% 1.00
[OHOS INFO] hiviewdfx 268 1.8% 268 1.7% 1.00
[OHOS INFO] miscservices 17 0.1% 17 0.1% 1.00
[OHOS INFO] msdp 3 0.0% 3 0.0% 1.00
[OHOS INFO] multimedia 193 1.3% 193 1.2% 1.00
[OHOS INFO] multimodalinput 75 0.5% 75 0.5% 1.00
[OHOS INFO] notification 25 0.2% 25 0.2% 1.00
[OHOS INFO] powermgr 49 0.3% 49 0.3% 1.00
[OHOS INFO] resourceschedule 30 0.2% 30 0.2% 1.00
[OHOS INFO] security 234 1.6% 234 1.5% 1.00
[OHOS INFO] sensors 51 0.3% 51 0.3% 1.00
[OHOS INFO] startup 124 0.8% 124 0.8% 1.00
[OHOS INFO] telephony 40 0.3% 40 0.3% 1.00
[OHOS INFO] test 10 0.1% 10 0.1% 1.00
[OHOS INFO] updater 106 0.7% 106 0.7% 1.00
[OHOS INFO] usb 7 0.0% 7 0.0% 1.00
[OHOS INFO] useriam 109 0.7% 109 0.7% 1.00
[OHOS INFO] utils 206 1.4% 206 1.3% 1.00
[OHOS INFO] web 3 0.0% 3 0.0% 1.00
[OHOS INFO] window 1 0.0% 1 0.0% 1.00
[OHOS INFO] wpa_supplicant-2.9 165 1.1% 165 1.0% 1.00
[OHOS INFO]
[OHOS INFO] c overall build overlap rate: 1.08
[OHOS INFO]
[OHOS INFO]
[OHOS ERROR] Please check build log in /home/openharmony/out/rk3568/build.log
=====build error===== |
-
-
build.rar
33.89 KB, 下载次数: 1, 下载积分: 灯泡 -1 , 经验 -1
|