[cfe-dev] Internal compiler error

Bill Wendling wendling at apple.com
Thu Apr 25 13:38:06 PDT 2013


The command line is in the original message. Attached is the preprocessed file.

-bw

-------------- next part --------------
A non-text attachment was scrubbed...
Name: testcase.ii
Type: application/octet-stream
Size: 184658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130425/5882f278/attachment.obj>
-------------- next part --------------

On Apr 25, 2013, at 1:16 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:

> Can you provide a preprocessed file and clang -cc1 command line?
> 
> On 25 April 2013 16:13, Bill Wendling <wendling at apple.com> wrote:
>> I'm getting this when a ToT clang tries to build compiler-rt. Could someone take a look?
>> 
>> -bw
>> 
>> Assertion failed: (Linkage(CachedLinkage) == LI.getLinkage()), function getLinkageAndVisibility, file /Volumes/Sandbox/llvm/llvm-clean.src/tools/clang/lib/AST/Decl.cpp, line 898.
>> 0  clang                    0x00000001038f0588 llvm::sys::PrintStackTrace(__sFILE*) + 40
>> 1  clang                    0x00000001038f0ae4 SignalHandler(int) + 564
>> 2  libsystem_platform.dylib 0x00007fff898b8f3a _sigtramp + 26
>> 3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1987342560
>> 4  clang                    0x00000001038f0896 abort + 22
>> 5  clang                    0x00000001038f0871 __assert_rtn + 81
>> 6  clang                    0x0000000102b5e91c clang::NamedDecl::getLinkageAndVisibility() const + 124
>> 7  clang                    0x0000000102397201 clang::CodeGen::CodeGenModule::GetOrCreateLLVMGlobal(llvm::StringRef, llvm::PointerType*, clang::VarDecl const*, bool) + 481
>> 8  clang                    0x000000010239869d clang::CodeGen::CodeGenModule::EmitGlobalVarDefinition(clang::VarDecl const*) + 509
>> 9  clang                    0x000000010239566a clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 218
>> 10 clang                    0x000000010239767e clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 782
>> 11 clang                    0x000000010239a5cc clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 1052
>> 12 clang                    0x000000010239d3bb clang::CodeGen::CodeGenModule::EmitLinkageSpec(clang::LinkageSpecDecl const*) + 219
>> 13 clang                    0x000000010239a38c clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 476
>> 14 clang                    0x00000001023bd4ff (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) + 95
>> 15 clang                    0x000000010238a235 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) + 165
>> 16 clang                    0x00000001023cebe3 clang::ParseAST(clang::Sema&, bool, bool) + 419
>> 17 clang                    0x000000010238933a clang::CodeGenAction::ExecuteAction() + 122
>> 18 clang                    0x00000001021522f6 clang::FrontendAction::Execute() + 134
>> 19 clang                    0x000000010212f14d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
>> 20 clang                    0x00000001020f87b5 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4309
>> 21 clang                    0x00000001020eff39 cc1_main(char const**, char const**, char const*, void*) + 825
>> 22 clang                    0x00000001020f5f62 main + 7602
>> 23 libdyld.dylib            0x00007fff899987bd start + 1
>> 24 libdyld.dylib            0x000000000000003d start + 1986427009
>> 0.      Program arguments: /Volumes/Sandbox/llvm/llvm-clean.obj/Release+Asserts/bin/clang -cc1 -triple i386-apple-macosx10 -emit-obj -disable-free -main-file-name asan_interceptors.cc -mrelocation-model pic -pic-level 2 -masm-verbose -munwind-tables -target-cpu yonah -target-linker-version 140 -coverage-file /Volumes/Sandbox/llvm/llvm-clean.obj/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx/i386/SubDir.lib__asan/asan_interceptors.o -resource-dir /Volumes/Sandbox/llvm/llvm-clean.obj/Release+Asserts/bin/../lib/clang/3.3 -D VISIBILITY_HIDDEN -D ASAN_FLEXIBLE_MAPPING_AND_OFFSET=1 -I /Volumes/Sandbox/llvm/llvm-clean.src/projects/compiler-rt/lib -I /Volumes/Sandbox/llvm/llvm-clean.src/projects/compiler-rt/include -O3 -Wall -Werror -fdeprecated-macro -fdebug-compilation-dir /Volumes/Sandbox/llvm/llvm-clean.obj/tools/clang/runtime/compiler-rt -ferror-limit 19 -fmessage-length 267 -fvisibility hidden -stack-protector 1 -mstackrealign -fno-builtin -fblocks -fblocks-runtime-optional !
>> -fno-rtti -fobjc-runtime=macosx-fragile-10.5.0 -fobjc-default-synthesize-properties -fencode-extended-block-signature -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o /Volumes/Sandbox/llvm/llvm-clean.obj/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx/i386/SubDir.lib__asan/asan_interceptors.o -x c++ /Volumes/Sandbox/llvm/llvm-clean.src/projects/compiler-rt/lib/asan/asan_interceptors.cc
>> 1.      /Volumes/Sandbox/llvm/llvm-clean.src/projects/compiler-rt/lib/asan/asan_interceptors.cc:271:1: current parser token 'static'
>> 2.      /Volumes/Sandbox/llvm/llvm-clean.src/projects/compiler-rt/lib/asan/asan_interceptors.cc:249:8: LLVM IR generation of declaration
>> 3.      /Volumes/Sandbox/llvm/llvm-clean.src/projects/compiler-rt/lib/asan/asan_interceptors.cc:250:1 <Spelling=<scratch space>:75:1>: Generating code for declaration 'substitution_mlock'
>> 
>> 
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list