[LLVMbugs] [Bug 18329] New: [cmake] LLVM tests fails with 'program used external function '_GLOBAL_OFFSET_TABLE_' which could not be resolved!'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Dec 27 00:42:04 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18329
Bug ID: 18329
Summary: [cmake] LLVM tests fails with 'program used external
function '_GLOBAL_OFFSET_TABLE_' which could not be
resolved!'
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: mgorny at gentoo.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I'm working on switching our LLVM build from autoconf to cmake, and in the most
basic conversion I'm getting a dozen of those issues in LLVM tests (the basic
ones supplied in llvm repo):
FAIL: LLVM :: ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll (5234 of 9490)
******************** TEST 'LLVM ::
ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll' FAILED ********************
Script:
--
/var/tmp/portage/sys-devel/llvm-9999-r1/work/llvm-9999-x86/bin/./lli -use-mcjit
-extra-module=/var/tmp/portage/sys-devel/llvm-9999-r1/work/llvm-9999/test/ExecutionEngine/MCJIT/Inputs/cross-module-b.ll
-relocation-model=pic -code-model=small
/var/tmp/portage/sys-devel/llvm-9999-r1/work/llvm-9999/test/ExecutionEngine/MCJIT/cross-module-sm-pic-a.ll
> /dev/null
--
Exit Code: 1
Command Output (stderr):
--
LLVM ERROR: Program used external function '_GLOBAL_OFFSET_TABLE_' which could
not be resolved!
--
The autotools build does seem to work fine.
cmake command-line:
cmake --no-warn-unused-cli -C
/var/tmp/portage/sys-devel/llvm-9999-r1/work/llvm-9999-x86/gentoo_common_config.cmake
-G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON
-DFFI_INCLUDE_DIR=/usr/lib64/libffi-3.0.13/include -DLLVM_TARGETS_TO_BUILD=all
-DLLVM_ENABLE_FFI=ON -DLLVM_ENABLE_ASSERTIONS=OFF
-DLLVM_BINUTILS_INCDIR=/usr/include -DLLVM_BUILD_TESTS=ON
-DLLVM_LIBDIR_SUFFIX=32 -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF
-DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/sys-devel/llvm-9999-r1/work/llvm-9999-x86/gentoo_rules.cmake
/var/tmp/portage/sys-devel/llvm-9999-r1/work/llvm-9999
autoconf command-line (for comparison):
/var/tmp/portage/sys-devel/llvm-9999/work/llvm-9999/configure --prefix=/usr
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --libdir=/usr/lib32 --disable-timestamps
--enable-keep-symbols --enable-shared --with-optimize-option=
--enable-optimized --disable-assertions --disable-expensive-checks
--enable-terminfo --enable-libffi ac_cv_prog_XML2CONFIG= --enable-targets=all
--enable-bindings=none --with-udis86
--
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/20131227/2c9f8659/attachment.html>
More information about the llvm-bugs
mailing list