Skip to content

Kokoro cmake_bazel_linux_x86-* builds are failing to link iree-lld

Closed

Description

This started when #10087 was merged (we don't test Kokoro on presubmit and will soon be turning it down). We should see how those Kokoro builds differ from the GitHub Actions pipelines, and if this indicates some missing test/build coverage in the new pipelines. I think the build_tf_integrations / test_tf_integrations pipelines should be testing roughly the same things as the Kokoro builds.

https://source.cloud.google.com/results/invocations/49ffbbca-a5ab-47d9-913a-2277ba46ee83/targets/iree%2Fgcp_ubuntu%2Fcmake-bazel%2Flinux%2Fx86-swiftshader%2Fmain/log

[4580/4784] Linking C executable compiler/bindings/python/iree/compiler/_mlir_libs/iree-lld
FAILED: compiler/bindings/python/iree/compiler/_mlir_libs/iree-lld
: && /usr/bin/clang-9 -O2 -g -DNDEBUG  compiler/src/iree/compiler/API/python/CMakeFiles/IREECompilerLldTool.dir/LldTool.c.o -o compiler/bindings/python/iree/compiler/_mlir_libs/iree-lld  -Wl,-rpath,"\$ORIGIN:/home/kbuilder/iree/build/tf/compiler/bindings/python/iree/compiler/_mlir_libs:"  compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so && :
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::thlo::GatherOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::TypeRange, mlir::Value, mlir::Value, mlir::Value)'
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::thlo::DynamicBroadcastInDimOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::TypeRange, mlir::Value, mlir::Value, mlir::detail::DenseArrayAttr<long>, mlir::detail::DenseArrayAttr<long>, mlir::detail::DenseArrayAttr<long>)'
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::thlo::ConcatenateOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::Type, mlir::ValueRange, mlir::Value, unsigned long)'
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::detail::TypeIDResolver<mlir::thlo::GatherOp, void>::id'
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::detail::TypeIDResolver<mlir::thlo::ScatterOp, void>::id'
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::detail::TypeIDResolver<mlir::thlo::DynamicBroadcastInDimOp, void>::id'
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::detail::TypeIDResolver<mlir::thlo::ConcatenateOp, void>::id'
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::detail::TypeIDResolver<mlir::thlo::THLODialect, void>::id'
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::thlo::ScatterOp::build(mlir::OpBuilder&, mlir::OperationState&, mlir::TypeRange, mlir::Value, mlir::Value, mlir::Value)'
compiler/bindings/python/iree/compiler/_mlir_libs/libIREECompilerAggregateCAPI.so: undefined reference to `mlir::thlo::THLODialect::THLODialect(mlir::MLIRContext*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't workingSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions