[compiler-rt] r205256 - InstrProf: Add simple compiler-rt test
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Apr 1 06:54:35 PDT 2014
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).
More information about the llvm-commits
mailing list