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

Santosh Nagarakatte santosh.nagarakatte at gmail.com
Fri Feb 29 13:27:59 PST 2008


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.

------------------------------------------------

In file included from memcopy.c:2:
/usr/include/stdio.h:34:11: error: 'stddef.h' file not found
# include <stddef.h>
          ^
In file included from memcopy.c:2:
In file included from /usr/include/stdio.h:36:
/usr/include/bits/types.h:31:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^
In file included from memcopy.c:2:
In file included from /usr/include/stdio.h:72:
In file included from /usr/include/libio.h:32:
/usr/include/_G_config.h:14:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^
In file included from memcopy.c:2:
In file included from /usr/include/stdio.h:72:
In file included from /usr/include/libio.h:32:
In file included from /usr/include/_G_config.h:24:
/usr/include/wchar.h:48:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^
In file included from memcopy.c:2:
In file included from /usr/include/stdio.h:72:
In file included from /usr/include/libio.h:32:
In file included from /usr/include/_G_config.h:44:
In file included from /usr/include/gconv.h:28:
/usr/include/wchar.h:48:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^
In file included from memcopy.c:2:
In file included from /usr/include/stdio.h:72:
In file included from /usr/include/libio.h:32:
In file included from /usr/include/_G_config.h:44:
/usr/include/gconv.h:31:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^
In file included from memcopy.c:2:
In file included from /usr/include/stdio.h:72:
/usr/include/libio.h:53:11: error: 'stdarg.h' file not found
# include <stdarg.h>
          ^
In file included from memcopy.c:3:
/usr/include/stdlib.h:33:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^
In file included from memcopy.c:3:
In file included from /usr/include/stdlib.h:438:
/usr/include/sys/types.h:147:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^
In file included from memcopy.c:3:
In file included from /usr/include/stdlib.h:612:
/usr/include/alloca.h:25:10: error: 'stddef.h' file not found
#include <stddef.h>
         ^
10 diagnostics generated.

-- 

Santosh G Nagarakatte,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memcopy.c
Type: text/x-csrc
Size: 859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080229/d8d4b4da/attachment.c>


More information about the cfe-dev mailing list