[OHOS ERROR] ERROR at //third_party/selinux/BUILD.gn:46:5 (//build/toolchain/linux:clang_x64): Script returned non-zero exit code.
[OHOS ERROR] exec_script("/usr/bin/flex",
[OHOS ERROR] ^----------
[OHOS ERROR] Current dir: /home/oo/out/sdk/
[OHOS ERROR] Command: /usr/bin/env /usr/bin/flex -o /home/oo/third_party/selinux/libsepol/cil/src/cil_lexer.c /home/oo/third_party/selinux/libsepol/cil/src/cil_lexer.l
[OHOS ERROR] Returned 127.
[OHOS ERROR] stderr:
[OHOS ERROR]
[OHOS ERROR] /usr/bin/env: ‘/usr/bin/flex’: No such file or directory
[OHOS ERROR]
[OHOS ERROR] See //build/ohos/sdk/sdk.gni:196:27: which caused the file to be included.
[OHOS ERROR] _sdk_modules += [ "${_target_label}(${invoker.sdk_toolchain})" ]
[OHOS ERROR] ^-------------------------------------------
[OHOS ERROR] Traceback (most recent call last):
[OHOS ERROR] File "/home/oo/build/hb/containers/status.py", line 47, in wrapper
[OHOS ERROR] return func(*args, **kwargs)
[OHOS ERROR] ^^^^^^^^^^^^^^^^^^^^^
[OHOS ERROR] File "/home/oo/build/hb/services/gn.py", line 128, in _execute_gn_gen_cmd
[OHOS ERROR] SystemUtil.exec_command(gn_gen_cmd, self.config.log_path)
[OHOS ERROR] File "/home/oo/build/hb/util/system_util.py", line 75, in exec_command
[OHOS ERROR] LogUtil.get_failed_log(log_path)
[OHOS ERROR] File "/home/oo/build/hb/util/log_util.py", line 191, in get_failed_log
[OHOS ERROR] LogUtil.get_gn_failed_log(log_path)
[OHOS ERROR] File "/home/oo/build/hb/util/log_util.py", line 137, in get_gn_failed_log
[OHOS ERROR] raise OHOSException(
[OHOS ERROR] exceptions.ohos_exception.OHOSException: GN Failed! Please check error in /home/oo/out/sdk/error.log, and for more build information in /home/oo/out/sdk/build.log
[OHOS ERROR]
[OHOS ERROR] Code: 3007
[OHOS ERROR]
[OHOS ERROR] Reason: GN Failed! Please check error in /home/oo/out/sdk/error.log, and for more build information in /home/oo/out/sdk/build.log
[OHOS ERROR]
[OHOS ERROR] Error Type: GN build error: No such file or directory
[OHOS ERROR]
[OHOS ERROR] Description: GN build error. The GN build system cannot find the file.
[OHOS ERROR]
[OHOS ERROR] Solution: Please check whether the file exists.
[OHOS ERROR]
[OHOS ERROR] ohos-sdk build failed! You can try to use '--no-prebuilt-sdk' to skip the build of ohos-sdk.