[LLVMbugs] [Bug 22816] New: "error:=?UTF-8?Q?=20=E2=80=98trunk=E2=80=99=20was=20not=20declared=20in=20this=20scope?=" while compiling clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 5 22:42:53 PST 2015


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

            Bug ID: 22816
           Summary: "error: ‘trunk’ was not declared in this scope" while
                    compiling clang
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andreas at fink.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

System: stock debian7 64bit

checkout from SVN: llvm, clang, lldb, extra, compiler-rt

configure like this:

CC=gcc CXX=g++ ../llvm/configure --enable-targets=all


fails to compile:

llvm[4]: Compiling ASTWriter.cpp for Debug+Asserts build
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp: In member
function ‘void clang::ASTWriter::WriteControlBlock(clang::Preprocessor&,
clang::ASTContext&, llvm::StringRef, const string&)’:
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:1155:20:
error: ‘trunk’ was not declared in this scope
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:1156:39:
error: no matching function for call to ‘llvm::SmallVector<long unsigned int,
64u>::push_back()’
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:1156:39:
note: candidate is:
In file included from /Users/afink/llvm/llvm/include/llvm/ADT/ArrayRef.h:14:0,
                 from /Users/afink/llvm/llvm/include/llvm/ADT/APInt.h:19,
                 from /Users/afink/llvm/llvm/include/llvm/ADT/APFloat.h:20,
                 from
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/../../include/clang/AST/APValue.h:18,
                 from
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/../../include/clang/AST/Decl.h:17,
                 from
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/../../include/clang/Serialization/ASTWriter.h:18,
                 from
/Users/afink/llvm/llvm/tools/clang/lib/Serialization/ASTWriter.cpp:14:
/Users/afink/llvm/llvm/include/llvm/ADT/SmallVector.h:328:8: note: void
llvm::SmallVectorTemplateBase<T, true>::push_back(const T&) [with T = long
unsigned int]
/Users/afink/llvm/llvm/include/llvm/ADT/SmallVector.h:328:8: note:   candidate
expects 1 argument, 0 provided
/bin/rm: cannot remove
`/Users/afink/llvm/llvm-build/tools/clang/lib/Serialization/Debug+Asserts/ASTWriter.d.tmp':
No such file or directory


trying to compile using CMAKE fails too but with other errors (will open other
ticket)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150306/db95c5a6/attachment.html>


More information about the llvm-bugs mailing list