[cfe-commits] Can't Build Clang on AWS Amazon Linux Instance

steve at steck.com steve at steck.com
Thu Nov 1 08:12:54 PDT 2012


Hello Clanger's,

When trying to build Clang on a standard Amazon Linux instance in the AWS cloud I received this error:

  COMPILE:   clang_linux/asan-x86_64/x86_64: /home/ec2-user/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc
/home/ec2-user/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:20:10: fatal error: 
      'new' file not found
#include <new>
         ^
1 error generated.


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.

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.

Cheers,
Steve Steck







-------------- next part --------------
A non-text attachment was scrubbed...
Name: amazonPatch.diff
Type: application/octet-stream
Size: 751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121101/6cec8b7a/attachment.obj>


More information about the cfe-commits mailing list