[LLVMdev] Clang error compiling
Chad Rosier
mcrosier at apple.com
Mon Jul 9 17:58:26 PDT 2012
Ryan,
See instructions at the bottom for submitting a bug report.
On Jul 9, 2012, at 5:34 PM, Ryan Taylor wrote:
> llvm[1]: Compiling APFloat.cpp for Release+Asserts build
> clang: TargetInfo.cpp:1778: llvm::Type *GetX86_64ByValArgumentPair(llvm::Type *, llvm::Type *, const llvm::TargetData &): Assertion `Lo->isIntegerTy() && "Invalid/unknown lo type"' failed.
> 0 clang 0x0000000001c132ef
> 1 clang 0x0000000001c13804
> 2 libpthread.so.0 0x00002ba7d7eaec60
> 3 libc.so.6 0x00002ba7d8a97d05 gsignal + 53
> 4 libc.so.6 0x00002ba7d8a9bab6 abort + 390
> 5 libc.so.6 0x00002ba7d8a907c5 __assert_fail + 245
> 6 clang 0x00000000007774c7
> 7 clang 0x0000000000775aee
> 8 clang 0x0000000000777d1c
> 9 clang 0x0000000000782550 clang::CodeGen::CodeGenTypes::arrangeFunctionType(clang::CanQual<clang::Type>, llvm::ArrayRef<clang::CanQual<clang::Type> >, clang::FunctionType::ExtInfo const&, clang::CodeGen::RequiredArgs) + 384
> 10 clang 0x0000000000783228 clang::CodeGen::CodeGenTypes::arrangeCXXConstructorDeclaration(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 968
> 11 clang 0x0000000000785289 clang::CodeGen::CodeGenTypes::GetFunctionType(clang::GlobalDecl) + 9
> 12 clang 0x00000000007800df clang::CodeGen::CodeGenModule::TryEmitDefinitionAsAlias(clang::GlobalDecl, clang::GlobalDecl) + 175
> 13 clang 0x000000000078040b clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 123
> 14 clang 0x000000000074fa73 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 419
> 15 clang 0x000000000075126a clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1530
> 16 clang 0x0000000000780312 clang::CodeGen::CodeGenModule::EmitCXXConstructors(clang::CXXConstructorDecl const*) + 98
> 17 clang 0x0000000000757348 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 968
> 18 clang 0x000000000074aa4f
> 19 clang 0x0000000000749e2c
> 20 clang 0x0000000000873592 clang::ParseAST(clang::Sema&, bool) + 306
> 21 clang 0x0000000000749168 clang::CodeGenAction::ExecuteAction() + 184
> 22 clang 0x000000000061ce4d clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 925
> 23 clang 0x0000000000605523 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3379
> 24 clang 0x00000000005fa7cb cc1_main(char const**, char const**, char const*, void*) + 731
> 25 clang 0x0000000000601b9a main + 3482
> 26 libc.so.6 0x00002ba7d8a82eff __libc_start_main + 255
> 27 clang 0x00000000005fa42d
> Stack dump:
> 0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name APFloat.cpp -pic-level 2 -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -coverage-file /home/ryan/llvm/llvm_core/trunk/lib/Support/Release+Asserts/APFloat.o -resource-dir /usr/local/bin/../lib/clang/3.1 -dependency-file /home/ryan/llvm/llvm_core/trunk/lib/Support/Release+Asserts/APFloat.d.tmp -MP -MT /home/ryan/llvm/llvm_core/trunk/lib/Support/Release+Asserts/APFloat.o -MT /home/ryan/llvm/llvm_core/trunk/lib/Support/Release+Asserts/APFloat.d -D _DEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I /home/ryan/llvm/llvm_core/trunk/include -I /home/ryan/llvm/llvm_core/trunk/lib/Support -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/../../../../../include/c++/4.5 -internal-isystem /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/../../../../../include/c++/4.5/x86_64-linux-gnu -internal-isystem /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/../../../../../include/c++/4.5/backward -internal-isystem /usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.1/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Woverloaded-virtual -Wcast-qual -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default -fconst-strings -fdeprecated-macro -fdebug-compilation-dir /home/ryan/llvm/llvm_core/trunk/lib/Support -ferror-limit 19 -fmessage-length 122 -fvisibility-inlines-hidden -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o /home/ryan/llvm/llvm_core/trunk/lib/Support/Release+Asserts/APFloat.o -x c++ APFloat.cpp
> 1. APFloat.cpp:775:1: current parser token 'APFloat'
> 2. APFloat.cpp:768:10: LLVM IR generation of declaration 'llvm::APFloat::APFloat'
> 3. APFloat.cpp:768:10: Generating code for declaration 'llvm::APFloat::APFloat'
> clang: error: unable to execute command: Aborted
> clang: error: clang frontend command failed due to signal (use -v to see invocation)
Specifically, the following:
-------------------
> clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
> clang: note: diagnostic msg: Preprocessed source(s) and associated run script(s) are located at:
> clang: note: diagnostic msg: /tmp/APFloat-5agUDN.ii
> clang: note: diagnostic msg: /tmp/APFloat-5agUDN.sh
-------------------
> /bin/rm: cannot remove `/home/ryan/llvm/llvm_core/trunk/lib/Support/Release+Asserts/APFloat.d.tmp': No such file or directory
> gmake[1]: *** [/home/ryan/llvm/llvm_core/trunk/lib/Support/Release+Asserts/APFloat.o] Error 1
> gmake[1]: Leaving directory `/home/ryan/llvm/llvm_core/trunk/lib/Support'
> gmake: *** [all] Error 1
Also, are you using top of trunk clang? Given the format of the diagnostics message (which I changed recently) I'm guessing you are not.
Chad
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120709/e38c533d/attachment.html>
More information about the llvm-dev
mailing list