[LLVMbugs] [Bug 12585] New: Can't build precompiled headers including libstdc++ 4.7 <future>

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Apr 18 07:01:58 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12585

             Bug #: 12585
           Summary: Can't build precompiled headers including libstdc++
                    4.7 <future>
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: llvm-bugs at quasiparticle.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


"#include <future>" is enough. My frontend will crash with the following trace:

clang: /srv/build/clang-svn/src/llvm/tools/clang/lib/AST/DeclBase.cpp:669: void
clang::Decl::CheckAccessDeclContext() const: Assertion `Access != AS_none &&
"Access specifier is AS_none inside a record decl"' failed.
0  clang           0x00000000018a232f
1  clang           0x00000000018a2844
2  libpthread.so.0 0x00007f235f386140
3  libc.so.6       0x00007f235e5f8c35 gsignal + 53
4  libc.so.6       0x00007f235e5fa0b8 abort + 328
5  libc.so.6       0x00007f235e5f1c12
6  libc.so.6       0x00007f235e5f1cc2
7  clang           0x0000000000f3a3a5
8  clang           0x00000000006fd298
clang::ASTDeclWriter::VisitDecl(clang::Decl*) + 488
9  clang           0x0000000000701aa7
clang::ASTDeclWriter::VisitRedeclarableTemplateDecl(clang::RedeclarableTemplateDecl*)
+ 167
10 clang           0x0000000000701b39
clang::ASTDeclWriter::VisitClassTemplateDecl(clang::ClassTemplateDecl*) + 25
11 clang           0x00000000006fcfc3 clang::ASTDeclWriter::Visit(clang::Decl*)
+ 19
12 clang           0x0000000000706198
clang::ASTWriter::WriteDecl(clang::ASTContext&, clang::Decl*) + 1176
13 clang           0x00000000006f2e09
clang::ASTWriter::WriteASTCore(clang::Sema&, clang::MemorizeStatCalls*,
llvm::StringRef, std::string const&, clang::Module*) + 8505
14 clang           0x00000000006f0c97 clang::ASTWriter::WriteAST(clang::Sema&,
clang::MemorizeStatCalls*, std::string const&, clang::Module*, llvm::StringRef,
bool) + 775
15 clang           0x0000000000712ff2
clang::PCHGenerator::HandleTranslationUnit(clang::ASTContext&) + 98
16 clang           0x0000000000847295 clang::ParseAST(clang::Sema&, bool, bool)
+ 389
17 clang           0x00000000005e96fd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 973
18 clang           0x00000000005d1b6b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3307
19 clang           0x00000000005c6fdb cc1_main(char const**, char const**, char
const*, void*) + 619
20 clang           0x00000000005ce22a main + 3498
21 libc.so.6       0x00007f235e5e5455 __libc_start_main + 245
22 clang           0x00000000005c6cad
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu
-emit-pch -disable-free -main-file-name foo.hpp -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.22.0.20120323
-momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.1 -I
/home/dhivael/github/libmore -fmodule-cache-path /var/tmp/clang-module-cache
-internal-isystem
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0
-internal-isystem
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/x86_64-unknown-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.1/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -Wall -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /dev/shm -ferror-limit 19 -fmessage-length 70
-mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o foo -x c++-header foo.hpp 
1.    <eof> parser at end of file
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (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: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/foo-VLfhwL.ii
clang: note: diagnostic msg: /tmp/foo-VLfhwL.sh

-- 
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