[llvm-dev] Assertion `GV->use_empty() && "program cannot use initializer list"' failed

Mike Aizatsky via llvm-dev llvm-dev at lists.llvm.org
Mon Nov 23 15:49:33 PST 2015


I'm trying to build some chromium tests with LTO and I'm getting following
crypting assertion from the gold plugin:

FAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++
-Wl,--fatal-warnings -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro
-B../../third_party/binutils/Linux_x64/Release/bin -fuse-ld=gold -flto
-Wl,-plugin=LLVMgold.so -pthread -m64 -Wl,-O1 -Wl,--gc-sections
-Wl,-rpath=\$ORIGIN/ -Wl,-rpath-link= -Wl,--disable-new-dtags
-Wl,-u_sanitizer_options_link_helper -fsanitize=address -L. -o "./re2c"
-Wl,--start-group @"./re2c.rsp"  -Wl,--end-group  -ldl -lc -lgcc_s -lm
-lpthread -lrt
ld.gold:

/usr/local/google/home/aizatsky/src/chrome/src/third_party/llvm/lib/Linker/LinkModules.cpp:1258:
void upgradeGlobalArray(llvm::GlobalVariable*): Assertion `GV->use_empty()
&& "program cannot use initializer list"' failed.
clang-3.8: error: unable to execute command: Aborted (core dumped)

What does this assertion mean? I believe I'm use tip-of-the-tree clang and
"GNU gold (GNU Binutils 2.25) 1.11" gold plugin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151123/b5da9a2e/attachment.html>


More information about the llvm-dev mailing list