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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs