[LLVMbugs] [Bug 14083] New: during `make install`, regen-ocamldoc has wrong arg to find

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 15 02:51:53 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=14083

             Bug #: 14083
           Summary: during `make install`, regen-ocamldoc has wrong arg to
                    find
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: cppljevans at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When there is more than 1 flavor (e.g. Release+Profile and Debug+Asserts),
and an attempt is made to install the Release+Profile flavor, the
Makefile aborts with error:

make[2]: Leaving directory
`/home/evansl/download/llvm/svn/build/bindings/ocaml'
Fatal error: exception Failure("There are two interfaces of module
Llvm_analysis.")
make[1]: *** [regen-ocamldoc] Error 2
make[1]: Leaving directory `/home/evansl/download/llvm/svn/build/docs'

This is apparently because the Makefile with target regen-ocamldoc has the
wrong
argument to the $(FIND) command:

  `$(FIND) $(LEVEL)/bindings/ocaml -name "*.odoc" -exec echo -load '{}' ';'`

However, when this is changed to select only 1 flavor, as in:

  `$(FIND) $(LEVEL)/bindings/ocaml -path "*/$(BuildMode)/*.odoc" -exec echo
-load '{}' ';'`

the problem seems to disappear.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list