chenleilei 发表于 2023-12-13 18:25:40

RK3568 AIOJ-RK3568 openharmony 源码编译报错

1、参考链接:2. OpenHarmony 手册 — Firefly Wiki (t-firefly.com)

2、x86-ubuntu20_04,docker pull ubuntu18-04版本,在此容器环境下搭建编译环境

3、参考1链接 安装软件同步源码 编译报如下错误!

4、 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"
   also defined at arch/arm64/boot/dts/rockchip/rk3568-firefly-aioj.dtsi:146.13-148.3
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"
   HOSTCCscripts/sorttable
   HOSTCCscripts/selinux/mdp/mdp
   HOSTCCscripts/asn1_compiler
   HOSTCCscripts/extract-cert
scripts/extract-cert.c: In function ‘display_openssl_errors’:
scripts/extract-cert.c:42:6: warning: implicit declaration of function ‘ERR_peek_error’ [-Wimplicit-function-declaration]
   if (ERR_peek_error() == 0)
       ^~~~~~~~~~~~~~
scripts/extract-cert.c:46:14: warning: implicit declaration of function ‘ERR_get_error_line’ [-Wimplicit-function-declaration]
   while ((e = ERR_get_error_line(&file, &line))) {
               ^~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:47:3: warning: implicit declaration of function ‘ERR_error_string’ [-Wimplicit-function-declaration]
    ERR_error_string(e, buf);
    ^~~~~~~~~~~~~~~~
scripts/extract-cert.c: At top level:
scripts/extract-cert.c:72:8: error: unknown type name ‘BIO’
static BIO *wb;
         ^~~
scripts/extract-cert.c:76:24: error: unknown type name ‘X509’
static void write_cert(X509 *x509)
                         ^~~~
scripts/extract-cert.c: In function ‘main’:
scripts/extract-cert.c:94:2: warning: implicit declaration of function ‘OpenSSL_add_all_algorithms’ [-Wimplicit-function-declaration]
   OpenSSL_add_all_algorithms();
   ^~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:95:2: warning: implicit declaration of function ‘ERR_load_crypto_strings’ [-Wimplicit-function-declaration]
   ERR_load_crypto_strings();
   ^~~~~~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:96:2: warning: implicit declaration of function ‘ERR_clear_error’; did you mean ‘clearerr’? [-Wimplicit-function-declaration]
   ERR_clear_error();
   ^~~~~~~~~~~~~~~
   clearerr
scripts/extract-cert.c:115:3: error: unknown type name ‘ENGINE’
    ENGINE *e;
    ^~~~~~
scripts/extract-cert.c:118:4: error: unknown type name ‘X509’
   X509 *cert;
   ^~~~
scripts/extract-cert.c:124:3: warning: implicit declaration of function ‘ENGINE_load_builtin_engines’ [-Wimplicit-function-declaration]
    ENGINE_load_builtin_engines();
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:126:7: warning: implicit declaration of function ‘ENGINE_by_id’ [-Wimplicit-function-declaration]
    e = ENGINE_by_id("pkcs11");
      ^~~~~~~~~~~~
scripts/extract-cert.c:126:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
    e = ENGINE_by_id("pkcs11");
      ^
scripts/extract-cert.c:128:7: warning: implicit declaration of function ‘ENGINE_init’ [-Wimplicit-function-declaration]
    if (ENGINE_init(e))
      ^~~~~~~~~~~
scripts/extract-cert.c:133:9: warning: implicit declaration of function ‘ENGINE_ctrl_cmd_string’ [-Wimplicit-function-declaration]
   ERR(!ENGINE_ctrl_cmd_string(e, "PIN", key_pass, 0), "Set PKCS#11 PIN");
          ^
scripts/extract-cert.c:64:18: note: in definition of macro ‘ERR’
    bool __cond = (cond);   \
                   ^~~~
scripts/extract-cert.c:134:3: warning: implicit declaration of function ‘ENGINE_ctrl_cmd’ [-Wimplicit-function-declaration]
    ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, &parms, NULL, 1);
    ^~~~~~~~~~~~~~~
scripts/extract-cert.c:136:3: warning: implicit declaration of function ‘write_cert’ [-Wimplicit-function-declaration]
    write_cert(parms.cert);
    ^~~~~~~~~~
scripts/extract-cert.c:138:3: error: unknown type name ‘BIO’
    BIO *b;
    ^~~
scripts/extract-cert.c:139:3: error: unknown type name ‘X509’
    X509 *x509;
    ^~~~
scripts/extract-cert.c:141:7: warning: implicit declaration of function ‘BIO_new_file’; did you mean ‘_IO_flockfile’? [-Wimplicit-function-declaration]
    b = BIO_new_file(cert_src, "rb");
      ^~~~~~~~~~~~
      _IO_flockfile
scripts/extract-cert.c:141:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
    b = BIO_new_file(cert_src, "rb");
      ^
scripts/extract-cert.c:145:11: warning: implicit declaration of function ‘PEM_read_bio_X509’ [-Wimplicit-function-declaration]
   x509 = PEM_read_bio_X509(b, NULL, NULL, NULL);
            ^~~~~~~~~~~~~~~~~
scripts/extract-cert.c:145:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   x509 = PEM_read_bio_X509(b, NULL, NULL, NULL);
          ^
scripts/extract-cert.c:147:25: warning: implicit declaration of function ‘ERR_peek_last_error’ [-Wimplicit-function-declaration]
      unsigned long err = ERR_peek_last_error();
                        ^~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:148:9: warning: implicit declaration of function ‘ERR_GET_LIB’ [-Wimplicit-function-declaration]
      if (ERR_GET_LIB(err) == ERR_LIB_PEM &&
          ^~~~~~~~~~~
scripts/extract-cert.c:148:29: error: ‘ERR_LIB_PEM’ undeclared (first use in this function)
      if (ERR_GET_LIB(err) == ERR_LIB_PEM &&
                              ^~~~~~~~~~~
scripts/extract-cert.c:148:29: note: each undeclared identifier is reported only once for each function it appears in
scripts/extract-cert.c:149:9: warning: implicit declaration of function ‘ERR_GET_REASON’ [-Wimplicit-function-declaration]
          ERR_GET_REASON(err) == PEM_R_NO_START_LINE) {
          ^~~~~~~~~~~~~~
scripts/extract-cert.c:149:32: error: ‘PEM_R_NO_START_LINE’ undeclared (first use in this function)
          ERR_GET_REASON(err) == PEM_R_NO_START_LINE) {
                                 ^~~~~~~~~~~~~~~~~~~
scripts/extract-cert.c:159:2: warning: implicit declaration of function ‘BIO_free’; did you mean ‘free’? [-Wimplicit-function-declaration]
   BIO_free(wb);
   ^~~~~~~~
   free
scripts/Makefile.host:95: recipe for target 'scripts/extract-cert' failed
make: *** Error 1
make: *** Waiting for unfinished jobs....
Makefile:1199: recipe for target 'scripts' failed
make: *** Error 2
arch/arm64/Makefile:206: recipe for target 'rk3568-firefly-aioj.img' failed
make: *** Error 2
---------------------------------------------
ccache summary:
cache hit (direct): 44
cache hit (preprocessed): 0
cache miss: 344
hit rate:11.34%
mis rate: 88.66%
---------------------------------------------
c targets overlap rate statistics
subsystem               files NO.        percentage        builds NO.        percentage        overlap rate
securec                       78        0.5%             117        0.7%        1.50
third_party             8422        57.4%          9624        60.6%        1.14
graphic                       73        0.5%              74        0.5%        1.01
aafwk                      115        0.8%             115        0.7%        1.00
account                       44        0.3%              44        0.3%        1.00
ace                          373        2.5%             373        2.3%        1.00
appexecfwk                    56        0.4%              56        0.4%        1.00
ark                          389        2.7%             389        2.4%        1.00
arkXtest                    10        0.1%              10        0.1%        1.00
barrierfree                2        0.0%             2        0.0%        1.00
communication                929        6.3%             929        5.8%        1.00
compileruntime              30        0.2%              30        0.2%        1.00
customization                2        0.0%             2        0.0%        1.00
developtools                 312        2.1%             312        2.0%        1.00
deviceprofile                 11        0.1%              11        0.1%        1.00
distributeddatamgr             305        2.1%             305        1.9%        1.00
distributedhardware             8        0.1%             8        0.1%        1.00
distributedschedule              20        0.1%              20        0.1%        1.00
filemanagement              52        0.4%              52        0.3%        1.00
global                        32        0.2%              32        0.2%        1.00
hdf                          431        2.9%             431        2.7%        1.00
hiviewdfx                    268        1.8%             268        1.7%        1.00
miscservices                  17        0.1%              17        0.1%        1.00
msdp                         3        0.0%             3        0.0%        1.00
multimedia                   193        1.3%             193        1.2%        1.00
multimodalinput               75        0.5%              75        0.5%        1.00
notification                  25        0.2%              25        0.2%        1.00
powermgr                    49        0.3%              49        0.3%        1.00
resourceschedule              30        0.2%              30        0.2%        1.00
security                   234        1.6%             234        1.5%        1.00
sensors                       51        0.3%              51        0.3%        1.00
startup                      124        0.8%             124        0.8%        1.00
telephony                     40        0.3%              40        0.3%        1.00
test                          10        0.1%              10        0.1%        1.00
updater                      106        0.7%             106        0.7%        1.00
usb                          7        0.0%             7        0.0%        1.00
useriam                      109        0.7%             109        0.7%        1.00
utils                      206        1.4%             206        1.3%        1.00
web                          3        0.0%             3        0.0%        1.00
window                       1        0.0%             1        0.0%        1.00
wpa_supplicant-2.9             165        1.1%             165        1.0%        1.00

c overall build overlap rate: 1.08


Please check build log in /home/openharmony/out/rk3568/build.log
=====builderror=====

5、

chenleilei 发表于 2023-12-13 18:29:54

未使用参考链接提供的docker容器镜像,自行创建容器,安装编译环境及同步源码

root@harmony-source:/home/openharmony# repo branch
*firefly                   | in device/hihope, vendor/hihope
页: [1]
查看完整版本: RK3568 AIOJ-RK3568 openharmony 源码编译报错