What is profiler lib on mac os?

recently , build rust codes , report errors , but can't find what is the profiler library..

note: ld: library not found for -lprofiler
clang: error: linker command failed with exit code 1 (use -v to see invocation)

note: "cc" "-m64" "-L" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "/Users/duanyanming/Documents/cita/target/debug/deps/jsonrpc-7145e411dd503773.__rustc_fallback_codegen_unit.rcgu.o"
....................... ....................... ....................... ....................... ....................... .......
"/Users/duanyanming/Documents/cita/target/debug/deps/libfnv-cba1e9041757a23f.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-9c726f4b1a437e1c.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-a334846082e78d44.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc_jemalloc-0ad29d16fcd32c9d.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-188aa0ebcea0db6a.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc_system-26fa05cc3a26f9f7.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-6983e3f3e8e4e18b.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-55c59e7f8bd2abb2.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd_unicode-b7b2b431ab3635f0.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-0a5d2b40281ba660.rlib" "/Users/duanyanming/.rustup/toolchains/nightly-2017-12-25-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-3faf5d80682709fd.rlib" "-l" "profiler" "-l" "ssl" "-l" "crypto" "-l" "snappy" "-l" "c++" "-l" "System" "-l" "resolv" "-l" "pthread" "-l" "c" "-l" "m"
= note: ld: library not found for -lprofiler
clang: error: linker command failed with exit code 1 (use -v to see invocation)

somebody face the problew ,how to fix it ?


os version
Darwin Kernel Version 17.5.0

configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS)
LTO support using: LLVM version 9.1.0, (clang-902.0.39.1) (static support for 21, runtime is 21)
TAPI support using: Apple TAPI version 9.1.0 (tapi-902.0.9)

rustc version
rustc 1.24.0-nightly (c284f8807 2017-12-24)
binary: rustc
commit-hash: c284f8807eb3a1d728242bb6a767b0306d6f6bd5
commit-date: 2017-12-24
host: x86_64-apple-darwin
release: 1.24.0-nightly
LLVM version: 4.0

1 Like

Looks like the profiler from the google performance tools.