[LLVMbugs] [Bug 23144] New: Problem during "llvm-c-test" build
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Apr 7 06:39:20 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23144
Bug ID: 23144
Summary: Problem during "llvm-c-test" build
Product: Build scripts
Version: 3.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: petr_aleksandrov at mail.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 14163
--> https://llvm.org/bugs/attachment.cgi?id=14163&action=edit
CMake cache used during build
During build the following errors occurs:
[5/785] Linking C executable bin/llvm-c-test
FAILED: : && /opt/develop/bin/cc -fPIC -Wall -W -Wno-unused-parameter
-Wwrite-strings -Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-comment -ffunction-sections -fdata-sections -std=gnu99 -Wstrict-prototypes
-O3 -DNDEBUG -Wl,-allow-shlib-undefined -Wl,-O3 -Wl,--gc-sections
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/disassemble.c.o
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/helpers.c.o
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/include-all.c.o
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/main.c.o
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/module.c.o
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/metadata.c.o
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/object.c.o
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/targets.c.o -o bin/llvm-c-test
-rdynamic lib/libLLVM.so -Wl,-rpath,"\$ORIGIN/../lib" && :
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o:calc.c:function
build_from_tokens: error: undefined reference to 'LLVMInt64Type'
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o:calc.c:function
build_from_tokens: error: undefined reference to 'LLVMConstInt'
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o:calc.c:function
build_from_tokens: error: undefined reference to 'LLVMBuildGEP'
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o:calc.c:function
build_from_tokens: error: undefined reference to 'LLVMBuildLoad'
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o:calc.c:function
build_from_tokens: error: undefined reference to 'LLVMBuildRet'
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o:calc.c:function
build_from_tokens: error: undefined reference to 'LLVMBuildBinOp'
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o:calc.c:function
handle_line: error: undefined reference to 'LLVMModuleCreateWithName'
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o:calc.c:function
handle_line: error: undefined reference to 'LLVMInt64Type'
tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/calc.c.o:calc.c:function
handle_line: error: undefined reference to 'LLVMPointerType'
...
I have switched "BUILD_SHARED_LIBS" on. Ubuntu 14.10.
--
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/20150407/0bdcc821/attachment.html>
More information about the llvm-bugs
mailing list