Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

Do not use LTO if AR is incompatible with LD #136

@welaunchcn

Description

@welaunchcn

I followed the install steps but the following error is reporeted:
[ 21%] Linking CXX executable brecovery
/usr/bin/cmake -E cmake_link_script CMakeFiles/brecovery.dir/link.txt --verbose=1
/usr/bin/c++ -O2 -g -DNDEBUG CMakeFiles/brecovery.dir/bin/brecovery.cpp.o -o brecovery libbinlog.a
/usr/bin/ld: libbinlog.a: error adding symbols: file format not recognized
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/brecovery.dir/build.make:85: brecovery] Error 1
make[2]: Leaving directory '/home/user/project/public/binlog/Release'
make[1]: *** [CMakeFiles/Makefile2:571: CMakeFiles/brecovery.dir/all] Error 2
make[1]: Leaving directory '/home/user/project/public/binlog/Release'
make: *** [Makefile:141: all] Error 2

libbinlog.a has been generated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions