<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ocaml warning: implicit declaration of function"
   href="https://bugs.llvm.org/show_bug.cgi?id=40939">40939</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ocaml   warning: implicit declaration of function
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dmgaust@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21555" name="attach_21555" title="error files for the build">attachment 21555</a> <a href="attachment.cgi?id=21555&action=edit" title="error files for the build">[details]</a></span>
error files for the build

The follow errors stops the build of Clang 7 source by the Clang 7 compiler on
Ubuntu 18.04 LTS 64Bit. This build is for a cross-compiler. The errors are in
the llvm bindings for ocaml. A file is not build because of the errors. So the
build fails consistently at this point. 

Errors:

/home/zorronten/MyStuff/builds/aros-bld-clang6d/bin/linux-x86_64/gen/host/tools/crosstools/llvm/bindings/ocaml/transforms/scalar_opts/scalar_opts_ocaml.c:
In function ‘llvm_add_lower_switch’:
/home/zorronten/MyStuff/builds/aros-bld-clang6d/bin/linux-x86_64/gen/host/tools/crosstools/llvm/bindings/ocaml/transforms/scalar_opts/scalar_opts_ocaml.c:138:3:
warning: implicit declaration of function ‘LLVMAddLowerSwitchPass’; did you
mean ‘LLVMAddLoopUnswitchPass’? [-Wimplicit-function-declaration]
   LLVMAddLowerSwitchPass(PM);
   ^~~~~~~~~~~~~~~~~~~~~~
   LLVMAddLoopUnswitchPass
/home/zorronten/MyStuff/builds/aros-bld-clang6d/bin/linux-x86_64/gen/host/tools/crosstools/llvm/bindings/ocaml/transforms/scalar_opts/scalar_opts_ocaml.c:
In function ‘llvm_add_promote_memory_to_register’:
/home/zorronten/MyStuff/builds/aros-bld-clang6d/bin/linux-x86_64/gen/host/tools/crosstools/llvm/bindings/ocaml/transforms/scalar_opts/scalar_opts_ocaml.c:144:3:
warning: implicit declaration of function ‘LLVMAddPromoteMemoryToRegisterPass’;
did you mean ‘LLVMAddDemoteMemoryToRegisterPass’?
[-Wimplicit-function-declaration]
   LLVMAddPromoteMemoryToRegisterPass(PM);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   LLVMAddDemoteMemoryToRegisterPass
CMake Error at bindings/ocaml/llvm/cmake_install.cmake:49 (file):
  file INSTALL cannot copy file
 
"/home/zorronten/MyStuff/builds/aros-bld-clang6d/bin/linux-x86_64/gen/host/tools/crosstools/llvm/bindings/ocaml/llvm/llvm.mli"
  to "/usr/lib/ocaml/llvm/llvm.mli".
Call Stack (most recent call first):
  bindings/ocaml/cmake_install.cmake:42 (include)
  cmake_install.cmake:67 (include)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>