[LLVMbugs] [Bug 11077] New: llvm 'GV doesn't have initializer' assert with using LTO
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 5 15:56:28 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11077
Summary: llvm 'GV doesn't have initializer' assert with using
LTO
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dane at dbsgeo.com
CC: llvmbugs at cs.uiuc.edu
Getting this within a build that works great for the remainder of the source
code, but one small so fails when linking. This is on ubuntu 11.04 with
binutils built from cvs head with the gold linker enabled and clang/llvm trunk
from today.
$ clang++ -O4 -use-gold-plugin -save-temps -o plugins/input/ogr.input -shared
plugins/input/ogr/ogr_converter.os plugins/input/ogr/ogr_datasource.os
plugins/input/ogr/ogr_featureset.os plugins/input/ogr/ogr_index_featureset.os
-Lagg -Lsrc -L/usr/local/lib -L/usr/lib
-L/home/mapnik/projects/mapnik-static-build/sources/lib
-L/home/mapnik/projects/mapnik-static-build/sources -lgdal -lmapnik2 -licuuc
-lboost_system -lboost_filesystem -lproj -lexpat -ljpeg -ltiff -lpng -lz
-lpthread -lm -lrt -ldl
ld: /home/mapnik/src/llvm/include/llvm/GlobalVariable.h:122: llvm::Constant*
llvm::GlobalVariable::getInitializer(): Assertion `hasInitializer() && "GV
doesn't have initializer!"' failed.
clang: error: unable to execute command: Aborted
clang: error: linker command failed due to signal 2 (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is
deprecated
clang: note: diagnostic msg: Error generating preprocessed source(s).
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list