Skip to content

[LLD] C++20 Modules - unclosed quote #61198

Closed as not planned
Closed as not planned
@kassane

Description

@kassane

As described in the title, it would be the error referring to trying to link using ld.lld, unlike other platforms.

This was a test with Zig (LLVM 15.0.7) toolchain.
https://gist.github.com/kassane/7e9a2da137e13eb6e1dbab726693bdb7

$ zig c++ -std=c++20 -fmodules -fbuiltin-module-map -fmodules-ts -Xclang -emit-module-interface -c moduleTest.cpp -o moduleTest.pcm
LLD Link... ld.lld: error: /home/kassane/.cache/zig/o/ec639bf9d5e7c589c4e222dd65d28017/moduleTest.o:995: unclosed quote

Fix:

$ cp $(zig c++ -std=c++20 -fmodules -fbuiltin-module-map -fmodules-ts -Xclang -emit-module-interface -c moduleTest.cpp -o moduleTest.pcm 2>&1 | grep "ld.lld: error" | sed 's/.*error: \(.*\):[0-9]\+.*/\1/g') moduleTest.pcm

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:modulesC++20 modules and Clang Header ModulesinvalidResolved as invalid, i.e. not a buglld

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions