Skip to content

"Invalid summary version 6, 1, 2, 3 or 4 expected" error message could be improved #40005

@sylvestre

Description

@sylvestre
Bugzilla Link 40659
Version unspecified
OS Linux
Blocks #40566
CC @zmodem,@pcc,@rui314,@smithp35

Extended Description

echo "int foo(void) { return 0; }"> foo.c
echo "int foo(void); int main() {foo(); return 0;}">main.c

$ clang-7 -fuse-ld=lld -flto -O2 foo.c main.c -o foo
=> works fine

$ clang-8 -fuse-ld=lld -flto -O2 foo.c main.c -o foo
ld.lld: error: Invalid summary version 6, 1, 2, 3 or 4 expected
ld.lld: error: Invalid summary version 6, 1, 2, 3 or 4 expected
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Maybe it is intended but if this is the case, the error message should be improved

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillalld

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions