[tlbuild] trial builds for TL'13

Mojca Miklavec mojca.miklavec.lists at gmail.com
Mon Mar 25 23:01:31 CET 2013


Hello,

The sources don't compile with clang on Mac OS X because of a bug in
clang. (The bug has been fixed, but getting the latest clang to users
will take a while.)

This is not particularly important since gcc and llvm-gcc work fine,
but there is one option for a workaround. Modifying
     Work/texk/web2c/xetexd.h
by adding one extra line: inclusion of ApplicationServices.h before
texmfmp.h is loaded:
     #define XETEXCOERCE
   + #include <ApplicationServices/ApplicationServices.h>
     #include "texmfmp.h"
solves the problem. (I'm not sure about the origin of xetexd.h though
and I didn't test the complete compilation yet.) It just makes sure
that xmmintrin.h is included before texmfmph.

Khaled said that he would worry about this once transition away from
Carbon was complete.

I'm not saying that this should necessary be fixed. After all, it's a
compiler bug. But I believe that anyone compiling on Mac should be
aware of this. If nothing else, MacPorts will want to use clang for
compiling XeTeX.

Mojca


Here's the error:

> clang -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./w2c  -I/Users/texlive/build/Work/texk -I/Users/texlive/texk -I../../../texk/web2c/xetexdir -DXETEX_BUILD_DATE="\"`date +%Y%m%d%H`\"" -DU_STATIC_IMPLEMENTATION -I/Users/texlive/build/Work/libs/icu/include -I/Users/texlive/build/Work/libs/freetype2/freetype2 -I/Users/texlive/build/Work/libs/freetype2 -I/Users/texlive/build/Work/libs/teckit/include -I/Users/texlive/build/Work/libs/harfbuzz/include -I/Users/texlive/build/Work/libs/graphite2/include -DGRAPHITE2_STATIC -DXETEX_MAC  -I/Users/texlive/build/Work/libs/zlib/include   -arch i386 -MT xetexdir/libxetex_a-XeTeX_ext.o -MD -MP -MF xetexdir/.deps/libxetex_a-XeTeX_ext.Tpo -c -o xetexdir/libxetex_a-XeTeX_ext.o `test -f 'xetexdir/XeTeX_ext.c' || echo '../../../texk/web2c/'`xetexdir/XeTeX_ext.c
In file included from ../../../texk/web2c/xetexdir/XeTeX_ext.c:58:
In file included from ./xetexd.h:571:
In file included from ./xetexcoerce.h:1202:
In file included from ../../../texk/web2c/xetexdir/xetex.h:103:
In file included from ../../../texk/web2c/xetexdir/XeTeXOTMath.h:36:
In file included from ../../../texk/web2c/xetexdir/XeTeX_ext.h:63:
In file included from
/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20:
In file included from
/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21:
In file included from
/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:129:
In file included from
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32:
In file included from
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:29:
In file included from /usr/bin/../lib/clang/3.1/include/xmmintrin.h:985:
/usr/bin/../lib/clang/3.1/include/emmintrin.h:1100:133: error: expected ')'
_mm_set_epi8(char b15, char b14, char b13, char b12, char b11, char
b10, char b9, char b8, char b7, char b6, char b5, char b4, char b3,
...

                                                             ^
../../../texk/web2c/texmfmem.h:171:13: note: expanded from macro 'b3'
#define b3 u.B3
            ^
/usr/bin/../lib/clang/3.1/include/emmintrin.h:1100:13: note: to match this '('
_mm_set_epi8(char b15, char b14, char b13, char b12, char b11, char
b10, char b9, char b8, char b7, char b6, char b5, char b4, char b3,
...
            ^
/usr/bin/../lib/clang/3.1/include/emmintrin.h:1102:30: error: member
reference base type 'char' is not a structure or union
  return (__m128i)(__v16qi){ b0, b1, b2, b3, b4, b5, b6, b7, b8, b9,
b10, b11, b12, b13, b14, b15 };
                             ^~
../../../texk/web2c/texmfmem.h:168:14: note: expanded from macro 'b0'
#define b0 u.B0
           ~ ^



More information about the tlbuild mailing list