Skip to content

Windows build failure with -DLLVM_EXPORT_SYMBOLS_FOR_PLUGINS: too many symbols exported #60109

@glandium

Description

@glandium

Issue #56109 is back.

$ wc -l ./tools/clang/tools/clang-repl/clang-repl.symbols
66002 ./tools/clang/tools/clang-repl/clang-repl.symbols

It's worth noting that the link.exe error is almost inscrutable (LINK : fatal error LNK1189: library limit of 65535 objects exceeded), while the llvm-link.exe error is more useful (lld-link: error: too many exported symbols (got 66002, max 65535))

Random observation: there are 3k+ symbols __xmm@something that are exported, and I'm not sure they need to be.

The number is also different between cross and native compiles (66002 vs. 66119)

It's also worth noting that clang.def is approaching the limit too, with 64420 lines.

The clang-repl.def from my cross build can be found here: https://gist.githubusercontent.com/glandium/79352c2fb0cc63589a3b308a0b25b0f6/raw/0f2e4586baade767df4f0f4c68a2e7c63522ca7d/clang-repl.def

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions