#1923: make utils and simfactory ignore HWLOC=BUILD and try to copy hwloc executables from /usr/bin
| Reporter: | V M |
| Status: | open |
| Milestone: | |
| Version: | development version |
| Type: | bug |
| Priority: | minor |
| Component: | SimFactory |
Comment (by Roland Haas):
Adding what I apparently forgot to post: the reason this happens is the the currently used rules by ExternalLibraries look like this:
$(UTIL_DIR)/%: $(MPI_DIR)/bin/% @echo "Copying $* from $< to $(UTIL_DIR)" -$(MKDIR) $(MKDIRFLAGS) $(UTIL_DIR) 2> /dev/null cp $< $@
it a pattern-rule that says that if you need to build % you can build it assuming you have $(MPI_DIR)/bin/%. Now if $(MPI_DIR)/bin contains a file hwloc-info then make will happily run this recipe instead of say the one that has $(HWLOC_DIR)/bin/%.
The fix (above) is to make the rules more specific.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/1923/make-utils-and-simfactory-ignore-hwloc