[compiler-rt] r205256 - InstrProf: Add simple compiler-rt test

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Apr 1 07:22:22 PDT 2014


On 2014 Apr 1, at 07:00, Alexey Samsonov <samsonov at google.com> wrote:

> $ ld -v
> 
> @(#)PROGRAM:ld  PROJECT:ld64-224.1
> configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 armv6m armv7m armv7em
> LTO support using: LLVM version 3.3svn, from Apple Clang 5.0 (build 500.2.79)
> 
> $ /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm_build64/bin/clang -fprofile-instr-generate -o /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build/test/profile/Output/instrprof-basic.c.tmp -O3 -flto  /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm/projects/compiler-rt/test/profile/instrprof-basic.c -###
> 
> clang version 3.5.0 (205309)
> Target: x86_64-apple-darwin13.1.0
> Thread model: posix
>  "/Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm_build64/bin/clang-3.5" "-cc1" "-triple" "x86_64-apple-macosx10.9.0" "-emit-llvm-bc" "-disable-free" "-main-file-name" "instrprof-basic.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mdisable-fp-elim" "-masm-verbose" "-munwind-tables" "-target-cpu" "core2" "-fprofile-instr-generate" "-resource-dir" "/Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm_build64/bin/../lib/clang/3.5.0" "-O3" "-fdebug-compilation-dir" "/Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build" "-ferror-limit" "19" "-fmessage-length" "212" "-stack-protector" "1" "-mstackrealign" "-fblocks" "-fobjc-runtime=macosx-10.9.0" "-fencode-extended-block-signature" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp" "-o" "/var/tmp/instrprof-basic-c10d1f.o" "-x" "c" "/Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm/projects/compiler-rt/test/profile/instrprof-basic.c"
>  "/usr/bin/ld" "-dynamic" "-arch" "x86_64" "-macosx_version_min" "10.9.0" "-o" "/Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build/test/profile/Output/instrprof-basic.c.tmp" "/var/tmp/instrprof-basic-c10d1f.o" "/Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm_build64/bin/../lib/clang/3.5.0/lib/darwin/libclang_rt.profile_osx.a" "-lSystem"
> 
> cmake version 2.8.10
> 

I'll have a closer look when I get to work (an hour or so), but the
only thing I see on inspection is that our cmake versions don't
match (I have 2.8.9).

Can you also send the cmake configure line the buildbot used?
Maybe also the cmake output?

> 
> On Tue, Apr 1, 2014 at 5:54 PM, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote:
> 
> On 2014 Apr 1, at 06:50, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote:
> 
> >
> > On 2014 Apr 1, at 01:12, Alexey Samsonov <samsonov at google.com> wrote:
> >
> >> Hi Duncan,
> >> We see the following error on our (still private) Mac buildbot. Do you have an idea what might be wrong?
> >>
> >> Script:
> >> --
> >> /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm_build64/bin/clang -fprofile-instr-generate -o /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build/test/profile/Output/instrprof-basic.c.tmp -O3 -flto  /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm/projects/compiler-rt/test/profile/instrprof-basic.c
> >> env LLVM_PROFILE_FILE=/Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build/test/profile/Output/instrprof-basic.c.tmp.profraw /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build/test/profile/Output/instrprof-basic.c.tmp
> >> llvm-profdata merge -o /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build/test/profile/Output/instrprof-basic.c.tmp.profdata /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build/test/profile/Output/instrprof-basic.c.tmp.profraw
> >> /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm_build64/bin/clang -fprofile-instr-use=/Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build/test/profile/Output/instrprof-basic.c.tmp.profdata -o - -S -emit-llvm /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm/projects/compiler-rt/test/profile/instrprof-basic.c | FileCheck /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm/projects/compiler-rt/test/profile/instrprof-basic.c
> >> --
> >> Exit Code: 1
> >>
> >> Command Output (stderr):
> >> --
> >> ld: warning: ignoring file /var/tmp/instrprof-basic-164f0d.o, lto file was built for x86_64 which is not the architecture being linked (x86_64): /var/tmp/instrprof-basic-164f0d.o
> >> Undefined symbols for architecture x86_64:
> >>  "_main", referenced from:
> >>     implicit entry/start for main executable
> >> ld: symbol(s) not found for architecture x86_64
> >> clang-3.5: error: linker command failed with exit code 1 (use -v to see invocation)
> >
> > Mysterious.  I'm on 10.9 myself and I'm not seeing that error.
> >
> > If you send me the output of:
> >
> >    $ ld -v
> >    $ /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm_build64/bin/clang -fprofile-instr-generate -o /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/compiler_rt_build/test/profile/Output/instrprof-basic.c.tmp -O3 -flto  /Users/buildbot/src/llvm-buildbot/slave/mac10.9-cmake/build/llvm/projects/compiler-rt/test/profile/instrprof-basic.c -###
> 
> Please also send me the cmake line you used, as well as:
> 
>     $ cmake --version
> 
> > I can look into it.
> >
> > If this is blocking you, go ahead and remove -flto from the test
> > until we sort this out (please add a FIXME though).
> 
> 
> 
> 
> -- 
> Alexey Samsonov, MSK





More information about the llvm-commits mailing list