[cfe-dev] Does clang work on X86-64 machines?

Török Edwin edwintorok at gmail.com
Fri Feb 29 13:52:31 PST 2008


Santosh Nagarakatte wrote:
> I get the below mentioned errors on compiling the attached file with clang.
> I have installed clang on a x86-64 machine (intel xeon core 2 duo
> 2.66ghz) running Suse linux for X86-64  with kernel 2.6.18.8-0.9
>
> The same program is handled by clang without error messages on the
> same machine running 32bit linux with the same kernel.
>   

I use this to use gcc's headers:

Index: Driver/clang.cpp
===================================================================
--- Driver/clang.cpp    (revision 47285)
+++ Driver/clang.cpp    (working copy)
@@ -891,6 +891,8 @@
     AddPath("/usr/include", System, false, false, false, Headers);
     AddPath("/System/Library/Frameworks", System, true, false, true,
Headers);
     AddPath("/Library/Frameworks", System, true, false, true, Headers);
+    AddPath("/usr/lib/gcc/x86_64-linux-gnu/4.2.3/include", System,
+            false,false,false,Headers);
   }

   // Now that we have collected all of the include paths, merge them al




More information about the cfe-dev mailing list