[llvm-bugs] [Bug 40939] New: ocaml warning: implicit declaration of function

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 2 23:45:00 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40939

            Bug ID: 40939
           Summary: ocaml   warning: implicit declaration of function
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dmgaust at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Created attachment 21555
  --> https://bugs.llvm.org/attachment.cgi?id=21555&action=edit
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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190303/e5f5dca9/attachment.html>


More information about the llvm-bugs mailing list