[XeTeX] compiling svn on Mac with icc

Michael Zedler michael.zedler at tum.de
Sun Mar 18 16:49:04 CET 2007


Jonathan Kew schrieb:
> The real problem is going to be this:
>> /opt/intel/cc/9.1.035/include/mmintrin.h(113): error: expected a ")"
>>                    char b3, char b2, char b1, char b0);
>>                         ^
>>
>> /opt/intel/cc/9.1.035/include/mmintrin.h(120): error: expected a ")"
>>                     char b3, char b2, char b1, char b0);
>>                          ^
>>
>> /opt/intel/cc/9.1.035/include/emmintrin.h(342): error: expected a ")"
>>                              char b3, char b2, char b1, char b0);
>>                                   ^
>>
>> /opt/intel/cc/9.1.035/include/emmintrin.h(354): error: expected a ")"
>>                               char b3, char b2, char b1, char b0);
>>                                    ^
>>
>> Is this a compiler bug?
> 
> I think it's a name clash between the parameter names (b0 .. b3)  
> being used in internal icc headers, and preprocessor macros used in  
> web2c; you'll find that texmfmem.h includes the lines
> 
> #define b0 u.B0
> #define b1 u.B1
> #define b2 u.B2
> #define b3 u.B3
> 
> as part of the code used to access the memory_word union from C.
> 
> It should be possible to work around this by ensuring that the web2c  
> definitions are not in effect at the time the icc headers are read,  
> but I'm not going to attempt an actual patch without hands-on access  
> to a compiler where I can try things out.

I got around this by putting copies of (e)mmintrin.h in the local 
directory and changing b0..b3 to different names.
One can get evaluation copies of icc that work for a month. I'm curious 
to see if there's a considerable speedup due to the different compiler ;-)


I also tried to compile xdvipdfmx from the SVN sources. During 
./configure I get
   checking size of char... configure: error: cannot compute sizeof 
(char), 77

This happens with both gcc and icc.

Michael



More information about the XeTeX mailing list