FWIW, I removed the #include <new> and associated code and the compile completed; but clang++ couldn't build a simple test program.  It couldn't find headers and libs...<br><br>e.g.<br>main.cpp:1:10: fatal error: 'iostream' file not found<div><br><br><br><div class="replyBody">On Nov 01, 2012, <strong>Kostya Serebryany</strong> <kcc@google.com> wrote:<br><blockquote class="email_quote" style="border-left: 2px solid #267fdb; margin: 0 0 0 1.8ex; padding-left: 1ex;"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><div>+samsonovI think it's time to get rid of this #include <new> completely... <br><br><div class="gmail_quote">On Thu, Nov 1, 2012 at 7:12 PM, <a href="mailto:steve@steck.com" target="_blank" class="parsedEmail">steve@steck.com</a> <span dir="ltr"><<a href="mailto:steve@steck.com" target="_blank" class="parsedEmail">steve@steck.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Clanger's,<br><br>When trying to build Clang on a standard Amazon Linux instance in the AWS cloud I received this error:<br><br>  COMPILE:   clang_linux/asan-x86_64/x86_64: /home/ec2-user/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc<br>/home/ec2-user/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:20:10: fatal error: <br>      'new' file not found<br>#include <new><br>         ^<br>1 error generated.<br><br><br>I tried resolving with --with-gcc-toolchain and other config, command line, and environment options but was unable to get it to work, so I resorted to a patch.<br><br>The patch is attached; can someone arrange to review and have the patch checked in if appropriate.  All regression tests worked on both x86_64 and i686 architectures running Amazon Linux.<br><br>Cheers,<br>Steve Steck<br><br><br><br><br><br><br><br><br>_______________________________________________<br>cfe-commits mailing list<br><a href="mailto:cfe-commits@cs.uiuc.edu" target="_blank" class="parsedEmail">cfe-commits@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br><br></blockquote><br></blockquote>