[Buildroot] host-flutter-sdk-bin 3.16.8 errors related to Python

Juan A. Rubio jarubio2001 at gmail.com
Mon Apr 1 20:32:39 UTC 2024


On Wed, Mar 27, 2024 at 11:05 PM Arnout Vandecappelle <arnout at mind.be> wrote:
>
>
>
> On 27/03/2024 20:46, Juan A. Rubio wrote:
> > Hi,
> >
> > I'm using Buildroot 2024.02.x branch and I have found this error:
> >
> >  >>> flutter-engine 3.16.8 Downloading
> > Traceback (most recent call last):
> >    File
> > "/home/vagrant/work/starfish/bsp-output/host/share/depot_tools/gclient.py", line
> > 104, in <module>
> >      import gclient_scm
> >    File
> > "/home/vagrant/work/starfish/bsp-output/host/share/depot_tools/gclient_scm.py",
> > line 22, in <module>
> >      import gerrit_util
> >    File
> > "/home/vagrant/work/starfish/bsp-output/host/share/depot_tools/gerrit_util.py",
> > line 12, in <module>
> >      import httplib2
> >    File
> > "/home/vagrant/work/starfish/bsp-output/host/lib/python3.11/site-packages/httplib2/__init__.py", line 41, in <module>
> >      import ssl
> >    File "/home/vagrant/work/starfish/bsp-output/host/lib/python3.11/ssl.py",
> > line 100, in <module>
> >      import _ssl             # if we can't import it, let the error propagate
> >      ^^^^^^^^^^^
> > ModuleNotFoundError: No module named '_ssl'
> >
> > Any ideas on how to resolve this?
>
>   Did you do a clean rebuild? I don't find exactly where, but something in the
> dependency chain enables BR2_PACKAGE_HOST_PYTHON3_SSL, but you have a
> host-python3 without that option.
>
>   Regards,
>   Arnout
>

Thanks Arnout,
HOST_PYTHON3_SSL is pulled by BR2_PACKAGE_HOST_DEPOT_TOOLS, which is
in turn needed by FLUTTER_ENGINE.

You were right, it wasn't a clean build. However, performing a clean
build shows another error related to openssl, this time in
host-systemd:


FAILED: src/shared/libsystemd-shared-254.so
/home/vagrant/work/starfish/bsp-output/host/bin/ccache /usr/bin/gcc
-o src/shared/libsystemd-shared-254.so
-L/home/vagrant/work/starfish/bsp-output/host/li\
b -I/home/vagrant/work/starfish/bsp-output/host/include
-Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC
-Wl,--start-group -Wl,-soname,libsystemd-sha\
red-254.so -Wl,--whole-archive src/shared/libsystemd-shared-254.a
src/basic/libbasic.a src/basic/libbasic-gcrypt.a
src/libsystemd/libsystemd_static.a -Wl,--n\
o-whole-archive -fstack-protector
-Wl,-rpath,/home/vagrant/work/starfish/bsp-output/host/lib -O2
-Wl,-rpath,/home/vagrant/work/starfish/bsp-output/host/lib64\
 -Wl,-rpath-link,/home/vagrant/work/starfish/bsp-output/host/lib64
src/basic/libbasic-compress.a -shared
-Wl,--version-script=/home/vagrant/work/starfish/bsp\
-output/build/host-systemd-254.9/src/shared/libshared.sym -pthread
/home/vagrant/work/starfish/bsp-output/host/lib/libcap.so -lcrypt -ldl
/home/vagrant/work/\
starfish/bsp-output/host/lib/libkmod.so
/home/vagrant/work/starfish/bsp-output/host/lib/libmount.so
/home/vagrant/work/starfish/bsp-output/host/lib64/libssl.\
so /home/vagrant/work/starfish/bsp-output/host/lib64/libcrypto.so -lrt
-Wl,--fatal-warnings -Wl,-z,now -Wl,-z,relro -Wl,--warn-common
-Wl,--gc-sections -lcry\
pt -Wl,--fatal-warnings -Wl,-z,now -Wl,-z,relro -Wl,--warn-common
-Wl,--gc-sections -lm -Wl,--end-group -Wl,--fatal-warnings -Wl,-z,now
-Wl,-z,relro -Wl,--wa\
rn-common -Wl,--gc-sections -Wl,--fatal-warnings -Wl,-z,now
-Wl,-z,relro -Wl,--warn-common -Wl,--gc-sections -Wl,--fatal-warnings
-Wl,-z,now -Wl,-z,relro -Wl\
,--warn-common -Wl,--gc-sections -Wl,--fatal-warnings -Wl,-z,now
-Wl,-z,relro -Wl,--warn-common -Wl,--gc-sections
/usr/bin/ld: src/shared/libsystemd-shared-254.a.p/creds-util.c.o: in
function `sha256_hash_host_and_tpm2_key.constprop.0':
creds-util.c:(.text.sha256_hash_host_and_tpm2_key.constprop.0+0x11c):
undefined reference to `EVP_MD_size'
/usr/bin/ld: src/shared/libsystemd-shared-254.a.p/creds-util.c.o: in
function `encrypt_credential_and_warn':
creds-util.c:(.text.encrypt_credential_and_warn+0x4fc): undefined
reference to `EVP_CIPHER_key_length'
/usr/bin/ld: creds-util.c:(.text.encrypt_credential_and_warn+0x50d):
undefined reference to `EVP_CIPHER_block_size'
/usr/bin/ld: creds-util.c:(.text.encrypt_credential_and_warn+0x52a):
undefined reference to `EVP_CIPHER_iv_length'
/usr/bin/ld: src/shared/libsystemd-shared-254.a.p/creds-util.c.o: in
function `decrypt_credential_and_warn':
creds-util.c:(.text.decrypt_credential_and_warn+0x6b0): undefined
reference to `EVP_CIPHER_key_length'
/usr/bin/ld: creds-util.c:(.text.decrypt_credential_and_warn+0x7d5):
undefined reference to `EVP_CIPHER_block_size'
/usr/bin/ld: src/shared/libsystemd-shared-254.a.p/openssl-util.c.o: in
function `rsa_pkey_to_suitable_key_size':
openssl-util.c:(.text.rsa_pkey_to_suitable_key_size+0x23): undefined
reference to `EVP_PKEY_base_id'
/usr/bin/ld: openssl-util.c:(.text.rsa_pkey_to_suitable_key_size+0x54):
undefined reference to `EVP_PKEY_bits'
/usr/bin/ld: src/shared/libsystemd-shared-254.a.p/openssl-util.c.o: in
function `pubkey_fingerprint':
openssl-util.c:(.text.pubkey_fingerprint+0x249): undefined reference
to `EVP_MD_type'
/usr/bin/ld: openssl-util.c:(.text.pubkey_fingerprint+0x33c):
undefined reference to `EVP_MD_size'
/usr/bin/ld: openssl-util.c:(.text.pubkey_fingerprint+0x3e4):
undefined reference to `EVP_MD_type'
/usr/bin/ld: src/shared/libsystemd-shared-254.a.p/openssl-util.c.o: in
function `string_hashsum':
openssl-util.c:(.text.string_hashsum+0x32): undefined reference to `EVP_MD_size'
collect2: error: ld returned 1 exit status
[576/825] Compiling C object src/nspawn/libnspawn-core.a.p/nspawn-util.c.o
[577/825] Generating src/rpm/triggers.systemd.sh with a custom command
[578/825] Generating src/rpm/systemd-update-helper with a custom command
[579/825] Generating src/rpm/triggers.systemd with a custom command
[580/825] Generating src/rpm/macros.systemd with a custom command
ninja: build stopped: subcommand failed.
make[1]: *** [package/pkg-generic.mk:283:
/home/vagrant/work/starfish/bsp-output/build/host-systemd-254.9/.stamp_built]
Error 1



More information about the buildroot mailing list