-
Notifications
You must be signed in to change notification settings - Fork 10
Description
I tried all listed builds:
bazel build --config=host //src:scrample
Fails due to score_logging error:
`scode ➜ /workspaces/scrample (main) $ bazel build --config=host //src:scrample
WARNING: For repository 'rules_python', the root module requires module version rules_python@1.4.1, but got rules_python@1.5.1 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'googletest', the root module requires module version googletest@1.17.0, but got googletest@1.17.0.bcr.2 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'rules_rust', the root module requires module version rules_rust@0.61.0, but got rules_rust@0.63.0 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'rules_cc', the root module requires module version rules_cc@0.2.1, but got rules_cc@0.2.14 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'aspect_rules_lint', the root module requires module version aspect_rules_lint@1.5.3, but got aspect_rules_lint@1.10.2 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'score_baselibs', the root module requires module version score_baselibs@0.1.3, but got score_baselibs@0.2.2 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'score_communication', the root module requires module version score_communication@0.1.1, but got score_communication@0.1.2 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: For repository 'score_bazel_platforms', the root module requires module version score_bazel_platforms@0.0.2, but got score_bazel_platforms@0.0.3 in the resolved dependency graph. Please update the version in your MODULE.bazel or set --check_direct_dependencies=off
WARNING: /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/score_logging+/score/mw/log/detail/data_router/shared_memory/BUILD:17:11: in cc_library rule @@score_logging+//score/mw/log/detail/data_router/shared_memory:common: target '@@score_logging+//score/mw/log/detail/data_router/shared_memory:common' depends on deprecated target '@@score_baselibs+//score/os/utils:high_resolution_steady_clock': Deprecated, please use //platform/aas/mw/time/HighPrecisionLocalSteadyClock instead
WARNING: /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/score_baselibs+/score/mw/log/detail/file_recorder/BUILD:9:11: in cc_library rule @@score_baselibs+//score/mw/log/detail/file_recorder:file_recorder: target '@@score_baselibs+//score/mw/log/detail/file_recorder:file_recorder' depends on deprecated target '@@score_baselibs+//score/os/utils:high_resolution_steady_clock': Deprecated, please use //platform/aas/mw/time/HighPrecisionLocalSteadyClock instead
WARNING: /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/score_baselibs+/score/mw/log/detail/text_recorder/BUILD:22:11: in cc_library rule @@score_baselibs+//score/mw/log/detail/text_recorder:text_recorder: target '@@score_baselibs+//score/mw/log/detail/text_recorder:text_recorder' depends on deprecated target '@@score_baselibs+//score/os/utils:high_resolution_steady_clock': Deprecated, please use //platform/aas/mw/time/HighPrecisionLocalSteadyClock instead
WARNING: /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/score_logging+/score/mw/log/detail/file_recorder/BUILD:23:11: in cc_library rule @@score_logging+//score/mw/log/detail/file_recorder:file_recorder: target '@@score_logging+//score/mw/log/detail/file_recorder:file_recorder' depends on deprecated target '@@score_baselibs+//score/os/utils:high_resolution_steady_clock': Deprecated, please use //platform/aas/mw/time/HighPrecisionLocalSteadyClock instead
INFO: Analyzed target //src:scrample (286 packages loaded, 8273 targets configured).
ERROR: /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/score_logging+/score/mw/log/detail/data_router/BUILD:18:11: Compiling score/mw/log/detail/data_router/data_router_message_client_impl.cpp failed: (Exit 1): gcc failed: error executing CppCompile command (from target @@score_logging+//score/mw/log/detail/data_router:data_router_backend) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++17' -MD -MF ... (remaining 195 arguments skipped)Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/score_logging+/score/mw/log/detail/data_router/data_router_message_client_impl.cpp: In member function 'void score::mw::log::detail::DatarouterMessageClientImpl::ConnectToDatarouter()':
external/score_logging+/score/mw/log/detail/data_router/data_router_message_client_impl.cpp:92:66: error: 'kFailedToCreateMessagePassingClient' is not a member of 'score::mw::log::detail::Error'
92 | ReportInitializationError(score::mw::log::detail::Error::kFailedToCreateMessagePassingClient,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Target //src:scrample failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 9.699s, Critical Path: 5.05s
INFO: 23 processes: 452 action cache hit, 9 internal, 14 processwrapper-sandbox.
ERROR: Build did NOT complete successfully`
bazel build --config=x86_64-qnx //src:scrample
Fails to fetch the toolchains.
vscode ➜ /workspaces/scrample (main) $ bazel build --config=x86_64-qnx //src:scrample WARNING: Build options --extra_toolchains, --incompatible_strict_action_env, and --platforms have changed, discarding analysis cache (this can be expensive, see https://bazel.build/advanced/performance/iteration-speed). WARNING: Download from https://www.qnx.com/download/download/79858/installation.tgz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Checksum was ed7327aa32376686c1506298c75f3b69c9d940dd8c2fae5d939ce409df2eb9e8 but wanted f2e0cb21c6baddbcb65f6a70610ce498e7685de8ea2e0f1648f01b327f6bac63 INFO: Repository score_toolchains_qnx++toolchains_qnx+toolchains_qnx_sdp instantiated at: <builtin>: in <toplevel> Repository rule http_archive defined at: /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/bazel_tools/tools/build_defs/repo/http.bzl:394:31: in <toplevel> ERROR: /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/bazel_tools/tools/build_defs/repo/http.bzl:139:45: An error occurred during the fetch of repository 'score_toolchains_qnx++toolchains_qnx+toolchains_qnx_sdp': Traceback (most recent call last): File "/var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/bazel_tools/tools/build_defs/repo/http.bzl", line 139, column 45, in _http_archive_impl download_info = ctx.download_and_extract( Error in download_and_extract: java.io.IOException: Error downloading [https://www.qnx.com/download/download/79858/installation.tgz] to /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/score_toolchains_qnx++toolchains_qnx+toolchains_qnx_sdp/temp2237011420455974621/installation.tgz: Checksum was ed7327aa32376686c1506298c75f3b69c9d940dd8c2fae5d939ce409df2eb9e8 but wanted f2e0cb21c6baddbcb65f6a70610ce498e7685de8ea2e0f1648f01b327f6bac63 ERROR: no such package '@@score_toolchains_qnx++toolchains_qnx+toolchains_qnx_sdp//': java.io.IOException: Error downloading [https://www.qnx.com/download/download/79858/installation.tgz] to /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/score_toolchains_qnx++toolchains_qnx+toolchains_qnx_sdp/temp2237011420455974621/installation.tgz: Checksum was ed7327aa32376686c1506298c75f3b69c9d940dd8c2fae5d939ce409df2eb9e8 but wanted f2e0cb21c6baddbcb65f6a70610ce498e7685de8ea2e0f1648f01b327f6bac63 ERROR: /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/score_toolchains_qnx++toolchains_qnx+toolchains_qnx_qcc/BUILD:26:20: @@score_toolchains_qnx++toolchains_qnx+toolchains_qnx_qcc//:qcc_toolchain_config_x86_64 depends on @@score_toolchains_qnx++toolchains_qnx+toolchains_qnx_sdp//:cxx_builtin_include_directories in repository @@score_toolchains_qnx++toolchains_qnx+toolchains_qnx_sdp which failed to fetch. no such package '@@score_toolchains_qnx++toolchains_qnx+toolchains_qnx_sdp//': java.io.IOException: Error downloading [https://www.qnx.com/download/download/79858/installation.tgz] to /var/cache/bazel/519c138356ee3624bc3b67ea8434791e/external/score_toolchains_qnx++toolchains_qnx+toolchains_qnx_sdp/temp2237011420455974621/installation.tgz: Checksum was ed7327aa32376686c1506298c75f3b69c9d940dd8c2fae5d939ce409df2eb9e8 but wanted f2e0cb21c6baddbcb65f6a70610ce498e7685de8ea2e0f1648f01b327f6bac63 ERROR: Analysis of target '//src:scrample' failed; build aborted: Analysis failed INFO: Elapsed time: 3.823s INFO: 0 processes. ERROR: Build did NOT complete successfully
Using the official devcontainer enviroment.