Skip to content

[compiler-rt lsan] lipo error when building llvm 16.0.4 from source #63085

Open
@susugagalala

Description

@susugagalala

I encountered the following build error when building LLVM 16.0.4 on a macOS x86_64 host. The source code was taken from here:

https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-16.0.4.tar.gz

fatal error: /Library/Developer/CommandLineTools/usr/bin/lipo: /var/folders/gn/s0ng0p2x0lvcknxk20tp3nsc0000gp/T/lsan-0f8184/lsan-x86_64.out and /var/folders/gn/s0ng0p2x0lvcknxk20tp3nsc0000gp/T/lsan-2300a3/lsan-x86_64h.out have the same architectures (x86_64) and can't be in the same fat output file
clang++: error: lipo command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/clang/16/lib/darwin/libclang_rt.lsan_osx_dynamic.dylib] Error 1
make[1]: *** [projects/compiler-rt/lib/lsan/CMakeFiles/clang_rt.lsan_osx_dynamic.dir/all] Error 2
make: *** [all] Error 2

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