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: unassignedb...@nondot.org
          Reporter: lukebe...@hotmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to