This is an archive of the discontinued LLVM Phabricator instance.

Rename fpcmp and timeit custom targets to {fpcmp,timeit}-host.
ClosedPublic

Authored by jlebar on Jan 13 2016, 9:40 AM.

Details

Summary

Ninja is displeased with the binary name matching the custom target name. We get

ninja: warning: multiple rules generate tools/fpcmp. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
ninja: warning: multiple rules generate tools/timeit. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]

followed by many build errors because test-suite-bins/tools/timeit does not exist:

Building CXX object SingleSource/Regression/C++/CMakeFiles/2003-05-14-array-init.dir/2003-05-14-array-init.cpp.o
FAILED: /usr/local/google/home/jlebar/llvm/release/test-suite-bins/tools/timeit --summary SingleSource/Regression/C++/CMakeFiles/2003-05-14-array-init.dir/2003-05-14-array-init.cpp.o.time /usr/local/google/home/jlebar/llvm/release/./bin/clang++   -DNDEBUG  -O3 -DNDEBUG   -w -MMD -MT SingleSource/Regression/C++/CMakeFiles/2003-05-14-array-init.dir/2003-05-14-array-init.cpp.o -MF SingleSource/Regression/C++/CMakeFiles/2003-05-14-array-init.dir/2003-05-14-array-init.cpp.o.d -o SingleSource/Regression/C++/CMakeFiles/2003-05-14-array-init.dir/2003-05-14-array-init.cpp.o -c /usr/local/google/home/jlebar/llvm/src/projects/test-suite/SingleSource/Regression/C++/2003-05-14-array-init.cpp
/bin/sh: /usr/local/google/home/jlebar/llvm/release/test-suite-bins/tools/timeit: No such file or directory

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 44766.Jan 13 2016, 9:40 AM
jlebar retitled this revision from to Rename fpcmp and timeit custom targets to {fpcmp,timeit}-host..
jlebar updated this object.
jlebar added reviewers: rengolin, cmatthews, jmolloy, beanz.
jlebar added a subscriber: llvm-commits.
MatzeB accepted this revision.Jan 13 2016, 11:40 AM
MatzeB added a reviewer: MatzeB.
MatzeB added a subscriber: MatzeB.

Yes I am seeing the same problem here but didn't figure out a fix yet. LGTM.

This revision is now accepted and ready to land.Jan 13 2016, 11:40 AM

Yes I am seeing the same problem here but didn't figure out a fix yet. LGTM.

Hmm these changes make ninja compile fpcmp and timeit again for me but I still get the warning from ninja about multiple rules to generate tools/XXX.

This revision was automatically updated to reflect the committed changes.

Yes I am seeing the same problem here but didn't figure out a fix yet. LGTM.

Hmm these changes make ninja compile fpcmp and timeit again for me but I still get the warning from ninja about multiple rules to generate tools/XXX.

Sorry, race condition, saw this only right after I submitted. Did you start from a completely clean objdir?

Yes I am seeing the same problem here but didn't figure out a fix yet. LGTM.

Hmm these changes make ninja compile fpcmp and timeit again for me but I still get the warning from ninja about multiple rules to generate tools/XXX.

Sorry, race condition, saw this only right after I submitted. Did you start from a completely clean objdir?

Well the commit still improves the situation so no problem. I think the issue disappears for me if I do not mention the full path at the add_custom_command OUTPUT anymore. I will prepare a patch.