Skip to content

LLVM 20.1 bazel has unresolved cyclic dependency in CodeGen #148702

@corpoverlords

Description

@corpoverlords

Hello,

The Bazel build for LLVM 20.1 seems to have incorrect dep tree compared to the CMake build for CodeGen.

Sometimes I see the error:

bazel-out/k8-fastbuild/bin/external/llvm-project/llvm/libCodeGen.a(ARMException.pic.o)(.data+0x158): error: undefined reference to 'typeinfo for llvm::ARMTargetStreamer'

With single-pass linkers like gold.

This is due to ARMTargetStreamer not in the CodeGen target but in ARMCodeGen target. However, ARMCodeGen depends on CodeGen and there is a cyclic dependency which must be broken.

I don't know what is the best fix...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bazel"Peripheral" support tier build system: utils/bazel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions