[llvm-bugs] [Bug 43362] New: InterpStack.cpp fails to build with gcc after r371834
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Sep 19 10:03:30 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43362
Bug ID: 43362
Summary: InterpStack.cpp fails to build with gcc after r371834
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: lukebenes at hotmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
After
http://llvm.org/viewvc/llvm-project?view=revision&revision=371834
I cannot build clang with recent builds of gcc. It is failing with the
following errors:
/clang/lib/AST/Interp/InterpStack.cpp:35:31: note: ‘malloc’ is defined in
header ‘<cstdlib>’; did you forget to ‘#include <cstdlib>’?
/clang/lib/AST/Interp/InterpStack.cpp: In member function ‘void
clang::interp::InterpStack::shrink(size_t)’:
/clang/lib/AST/Interp/InterpStack.cpp:67:7: error: ‘free’ was not declared in
this scope
67 | free(Chunk->Next);
| ^~~~
/clang/lib/AST/Interp/InterpStack.cpp:67:7: note: ‘free’ is defined in header
‘<cstdlib>’; did you forget to ‘#include <cstdlib>’?
tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/build.make:1286: recipe for
target
'tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/Interp/InterpStack.cpp.o'
failed
make[3]: ***
[tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/Interp/InterpStack.cpp.o]
Error 1
CMakeFiles/Makefile2:24317: recipe for target
'tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/all' failed
make[2]: *** [tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
--
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/20190919/c1a273ef/attachment-0001.html>
More information about the llvm-bugs
mailing list