<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;">Hi, 
<br>I tried to run the SPEC benchmark suite SPECCPU 2006 with llvm and clang 2.8. When building the <i>perlbench</i>  sources I get these errors (see below) for all the source files. I used a config file (<a href="http://old.nabble.com/file/p30085184/llvm.cfg" target="_top">llvm.cfg</a>) where I specify clang as the compiler. I verified the same sources with llvm-gcc and it works fine. Also, I verified the <i>sjeng</i> benchmark from the same suite and it builds and executes correctly with both front-ends.  
<br>I have run these SPEC benches with llvm 2.7 using clang without any 
problems, but in 2.8 I get these errors. I have tested it both with the 
llvm 2.8 release version and with the svn version, all of them compiled 
from sources. I tried recompiling clang and llvm to make sure they were 
not mis-compiled, but it is all the same.
<br><br>I have a copy of llvm 2.7 on my machine, but I specify the path to the 2.8 executables in my scripts and config files. 
<br>Are there any conflicts between different versions, or is it possible to be a bug in clang?
<br><br>Thank you,
<br>Alexandra
<br><br><br>And here is the error:
<br><br>Hostname.o: In function `gnu_dev_major':
<br>Hostname.c:(.text+0x0): multiple definition of `gnu_dev_major'
<br>av.o:av.c:(.text+0x0): first defined here
<br>Hostname.o: In function `gnu_dev_minor':
<br>Hostname.c:(.text+0x20): multiple definition of `gnu_dev_minor'
<br>av.o:av.c:(.text+0x20): first defined here
<br>Hostname.o: In function `gnu_dev_makedev':
<br>Hostname.c:(.text+0x40): multiple definition of `gnu_dev_makedev'
<br>av.o:av.c:(.text+0x40): first defined here
<br>Hostname.o: In function `tolower':
<br>Hostname.c:(.text+0x80): multiple definition of `tolower'
<br>av.o:av.c:(.text+0x80): first defined here
<br>Hostname.o: In function `toupper':
<br>Hostname.c:(.text+0xb0): multiple definition of `toupper'
<br>av.o:av.c:(.text+0xb0): first defined here
<br>Hostname.o: In function `atof':
<br>Hostname.c:(.text+0xe0): multiple definition of `atof'
<br>av.o:av.c:(.text+0xe0): first defined here
<br>Hostname.o: In function `atoi':
<br>Hostname.c:(.text+0xf0): multiple definition of `atoi'
<br>av.o:av.c:(.text+0xf0): first defined here
<br>Hostname.o: In function `atol':
<br>Hostname.c:(.text+0x110): multiple definition of `atol'
<br>av.o:av.c:(.text+0x110): first defined here
<br>Hostname.o: In function `atoll':
<br>Hostname.c:(.text+0x130): multiple definition of `atoll'
<br>av.o:av.c:(.text+0x130): first defined here
<br>Hostname.o: In function `__strcspn_c1':
<br>Hostname.c:(.text+0x150): multiple definition of `__strcspn_c1'
<br>av.o:av.c:(.text+0x150): first defined here
<br>Hostname.o: In function `__strcspn_c2':
<br>Hostname.c:(.text+0x180): multiple definition of `__strcspn_c2'
<br>av.o:av.c:(.text+0x180): first defined here
<br>Hostname.o: In function `__strcspn_c3':
<br>Hostname.c:(.text+0x1b0): multiple definition of `__strcspn_c3'
<br>av.o:av.c:(.text+0x1b0): first defined here
<br>Hostname.o: In function `__strspn_c1':
<br>Hostname.c:(.text+0x1e0): multiple definition of `__strspn_c1'
<br>av.o:av.c:(.text+0x1e0): first defined here
<br>Hostname.o: In function `__strspn_c2':
<br>Hostname.c:(.text+0x200): multiple definition of `__strspn_c2'
<br>av.o:av.c:(.text+0x200): first defined here
<br>Hostname.o: In function `__strspn_c3':
<br>Hostname.c:(.text+0x230): multiple definition of `__strspn_c3'
<br>av.o:av.c:(.text+0x230): first defined here
<br>Hostname.o: In function `__strpbrk_c2':
<br>Hostname.c:(.text+0x260): multiple definition of `__strpbrk_c2'
<br>av.o:av.c:(.text+0x260): first defined here
<br>Hostname.o: In function `__strpbrk_c3':
<br>Hostname.c:(.text+0x290): multiple definition of `__strpbrk_c3'
<br>av.o:av.c:(.text+0x290): first defined here
<br>Hostname.o: In function `__strtok_r_1c':
<br>Hostname.c:(.text+0x2d0): multiple definition of `__strtok_r_1c'
<br>av.o:av.c:(.text+0x2d0): first defined here
<br>Hostname.o: In function `__strsep_1c':
<br>Hostname.c:(.text+0x320): multiple definition of `__strsep_1c'
<br>av.o:av.c:(.text+0x320): first defined here
<br>Hostname.o: In function `__strsep_2c':
<br>Hostname.c:(.text+0x360): multiple definition of `__strsep_2c'
<br>av.o:av.c:(.text+0x360): first defined here
<br>Hostname.o: In function `__strsep_3c':
<br>Hostname.c:(.text+0x3b0): multiple definition of `__strsep_3c'
<br>av.o:av.c:(.text+0x3b0): first defined here
<br>Hostname.o: In function `__cmsg_nxthdr':
<br>Hostname.c:(.text+0x400): multiple definition of `__cmsg_nxthdr'
<br>av.o:av.c:(.text+0x400): first defined here
<br>Hostname.o: In function `stat':
<br>Hostname.c:(.text+0x450): multiple definition of `stat'
<br>av.o:av.c:(.text+0x450): first defined here
<br>Hostname.o: In function `lstat':
<br>Hostname.c:(.text+0x470): multiple definition of `lstat'
<br>av.o:av.c:(.text+0x470): first defined here
<br>Hostname.o: In function `fstat':
<br>Hostname.c:(.text+0x490): multiple definition of `fstat'
<br>av.o:av.c:(.text+0x490): first defined here
<br>Hostname.o: In function `fstatat':
<br>Hostname.c:(.text+0x4b0): multiple definition of `fstatat'
<br>av.o:av.c:(.text+0x4b0): first defined here
<br>Hostname.o: In function `mknod':
<br>Hostname.c:(.text+0x4d0): multiple definition of `mknod'
<br>av.o:av.c:(.text+0x4d0): first defined here
<br>Hostname.o: In function `mknodat':
<br>Hostname.c:(.text+0x500): multiple definition of `mknodat'
<br>av.o:av.c:(.text+0x500): first defined here
<br>Hostname.o: In function `strtoimax':
<br>Hostname.c:(.text+0x530): multiple definition of `strtoimax'
<br>av.o:av.c:(.text+0x530): first defined here
<br>Hostname.o: In function `strtoumax':
<br>Hostname.c:(.text+0x540): multiple definition of `strtoumax'
<br>av.o:av.c:(.text+0x540): first defined here
<br>Hostname.o: In function `wcstoimax':
<br>Hostname.c:(.text+0x550): multiple definition of `wcstoimax'
<br>av.o:av.c:(.text+0x550): first defined here
<br>Hostname.o: In function `wcstoumax':
<br>Hostname.c:(.text+0x560): multiple definition of `wcstoumax'
<br>av.o:av.c:(.text+0x560): first defined here
<br>Hostname.o: In function `vprintf':
<br>Hostname.c:(.text+0x570): multiple definition of `vprintf'
<br>av.o:av.c:(.text+0x570): first defined here
<br>Hostname.o: In function `getchar':
<br>Hostname.c:(.text+0x590): multiple definition of `getchar'
<br>av.o:av.c:(.text+0x590): first defined here
<br>Hostname.o: In function `fgetc_unlocked':
<br>Hostname.c:(.text+0x5b0): multiple definition of `fgetc_unlocked'
<br>av.o:av.c:(.text+0x5b0): first defined here
<br>Hostname.o: In function `getc_unlocked':
<br>Hostname.c:(.text+0x5e0): multiple definition of `getc_unlocked'
<br>av.o:av.c:(.text+0x5e0): first defined here
<br>Hostname.o: In function `getchar_unlocked':
<br>Hostname.c:(.text+0x610): multiple definition of `getchar_unlocked'
<br>av.o:av.c:(.text+0x610): first defined here
<br>Hostname.o: In function `putchar':
<br>Hostname.c:(.text+0x640): multiple definition of `putchar'
<br>av.o:av.c:(.text+0x640): first defined here
<br>Hostname.o: In function `fputc_unlocked':
<br>Hostname.c:(.text+0x660): multiple definition of `fputc_unlocked'
<br>av.o:av.c:(.text+0x660): first defined here
<br>Hostname.o: In function `putc_unlocked':
<br>Hostname.c:(.text+0x690): multiple definition of `putc_unlocked'
<br>av.o:av.c:(.text+0x690): first defined here
<br>Hostname.o: In function `putchar_unlocked':
<br>Hostname.c:(.text+0x6c0): multiple definition of `putchar_unlocked'
<br>av.o:av.c:(.text+0x6c0): first defined here
<br>Hostname.o: In function `feof_unlocked':
<br>Hostname.c:(.text+0x700): multiple definition of `feof_unlocked'
<br>av.o:av.c:(.text+0x700): first defined here
<br>Hostname.o: In function `ferror_unlocked':
<br>Hostname.c:(.text+0x710): multiple definition of `ferror_unlocked'
<br>av.o:av.c:(.text+0x710): first defined here
<br>Hostname.o: In function `__signbitf':
<br>Hostname.c:(.text+0x720): multiple definition of `__signbitf'
<br>av.o:av.c:(.text+0x720): first defined here
<br>Hostname.o: In function `__signbit':
<br>Hostname.c:(.text+0x730): multiple definition of `__signbit'
<br>av.o:av.c:(.text+0x730): first defined here
<br>Hostname.o: In function `__signbitl':
<br>Hostname.c:(.text+0x740): multiple definition of `__signbitl'
<br>av.o:av.c:(.text+0x740): first defined here
</div><br>

      </body></html>