Open agluszak opened 9 months ago
Could you share the contents of the param file passed to gcc
? And where is ld
located on your machine?
➜ bazel-bsp git:(agluszak/refactor-spaghetti) cat bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/protoc-2.params
-o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/protoc
-Wl,-S
-fuse-ld=lld
-B/usr/bin
-Wl,-no-as-needed
-Wl,-z,relro,-z,now
-pass-exit-codes
-Wl,--gc-sections
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc/main.o
-Wl,--start-lib
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/code_generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/command_line_interface.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/enum.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/enum_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/extension.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/file.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/helpers.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/map_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/message.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/message_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/padding_optimizer.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/parse_function_generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/primitive_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/service.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/0/string_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_doc_comment.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_enum.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_enum_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_field_base.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_helpers.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_map_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_message.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_message_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_primitive_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_reflection_class.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_repeated_enum_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_repeated_message_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_repeated_primitive_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_source_generator_base.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/csharp_wrapper_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/context.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/doc_comment.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/enum.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/enum_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/enum_field_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/enum_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/extension.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/extension_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/file.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/generator_factory.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/helpers.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/kotlin_generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/map_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/map_field_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/message.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/message_builder.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/message_builder_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/message_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/message_field_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/message_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/name_resolver.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/primitive_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/primitive_field_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/service.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/shared_code_generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/1/string_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/string_field_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_enum.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_enum_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_extension.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_file.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_helpers.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_map_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_message.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_message_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_oneof.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/objectivec_primitive_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/php_generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/plugin.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/plugin.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/2/generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/2/helpers.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/pyi_generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/ruby_generator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/subprocess.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protoc_lib/zip_writer.o
-Wl,--end-lib
-Wl,--start-lib
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/any.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/any.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/api.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/importer.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/parser.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/descriptor.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/descriptor.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/descriptor_database.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/duration.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/dynamic_message.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/empty.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/extension_set_heavy.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/field_mask.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/generated_message_bases.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/generated_message_reflection.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/generated_message_tctable_full.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/gzip_stream.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/printer.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/tokenizer.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/map_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/message.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/reflection_ops.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/service.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/source_context.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/struct.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/substitute.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/text_format.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/timestamp.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/type.pb.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/unknown_field_set.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/delimited_message_util.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/field_comparator.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/field_mask_util.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/datapiece.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/default_value_objectwriter.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/error_listener.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/field_mask_utility.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/json_escaping.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/json_objectwriter.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/json_stream_parser.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/object_writer.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/proto_writer.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/protostream_objectsource.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/protostream_objectwriter.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/type_info.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/utility.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/json_util.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/message_differencer.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/time_util.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/type_resolver_util.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/wire_format.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf/wrappers.pb.o
-Wl,--end-lib
-Wl,--start-lib
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/any_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/arena.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/arenastring.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/arenaz_sampler.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/extension_set.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/generated_enum_util.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/generated_message_tctable_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/generated_message_util.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/implicit_weak_message.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/inlined_string_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/coded_stream.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/io_win32.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/strtod.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/zero_copy_stream.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/zero_copy_stream_impl.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/zero_copy_stream_impl_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/map.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/message_lite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/parse_context.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/repeated_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/repeated_ptr_field.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/bytestream.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/common.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/int128.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/status.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/statusor.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/stringpiece.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/stringprintf.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/structurally_valid.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/strutil.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/time.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/protobuf~21.7/_objs/protobuf_lite/wire_format_lite.o
-Wl,--end-lib
-Wl,--start-lib
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/adler32.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/compress.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/crc32.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/deflate.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/gzclose.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/gzlib.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/gzread.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/gzwrite.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/infback.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/inffast.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/inflate.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/inftrees.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/trees.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/uncompr.o
bazel-out/k8-opt-exec-ST-13d3ddad9198/bin/external/zlib~1.3/_objs/zlib/zutil.o
-Wl,--end-lib
-lpthread
-lm
-lpthread
-lm
-lpthread
-lm
-lpthread
-lm
-Wl,--push-state,-as-needed
-lstdc++
-Wl,--pop-state
-Wl,--push-state,-as-needed
-lm
-Wl,--pop-state
➜ bazel-bsp git:(agluszak/refactor-spaghetti) which ld
/usr/bin/ld
➜ bazel-bsp git:(agluszak/refactor-spaghetti) ld --version
GNU ld (GNU Binutils for Ubuntu) 2.38
Copyright (C) 2022 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public Licence version 3 or (at your option) a later version.
This program has absolutely no warranty.
I noticed -fuse-ld=lld
, so I'm also pasting this
➜ ~ which lld
/home/linuxbrew/.linuxbrew/opt/llvm@14/bin/lld
➜ ~ lld --version
lld is a generic driver.
Invoke ld.lld (Unix), ld64.lld (macOS), lld-link (Windows), wasm-ld (WebAssembly) instead
➜ ~ ld.lld --version
Homebrew LLD 14.0.6 (compatible with GNU linkers)
➜ ~ echo $PATH
/home/linuxbrew/.linuxbrew/opt/llvm@14/bin:/home/linuxbrew/.linuxbrew/opt/llvm@15/bin:/home/linuxbrew/.linuxbrew/opt/openjdk@17/bin:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/andrzej.gluszak/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/andrzej.gluszak/bin:/home/linuxbrew/.linuxbrew/opt/openjdk@17/libexec/bin:/home/linuxbrew/.linuxbrew/opt/python@3.11/libexec/bin:/home/andrzej.gluszak/.local/share/JetBrains/Toolbox/scripts
This part is buggy:
-fuse-ld=lld
-B/usr/bin
Bazel's toolchain forces use of lld
, but adds the path to ld
to the search path.
cc @comius
@joeleba what's the configurability tie here? i.e. is the toolchain issue about the generic toolchain API or C++-specific?
Description of the bug:
Seems to be related to #20834
When I enable
build --incompatible_strict_action_env
in .bazelrc building our project fails with the following error:Code is available here: https://github.com/JetBrains/bazel-bsp/commit/8a876006fafacf53a5bcd9e574af5724b42e2189
Which category does this issue belong to?
C++ Rules, Core, Local Execution
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
No response
Which operating system are you running Bazel on?
Ubuntu
What is the output of
bazel info release
?release 7.0.2
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response