[tlbuild] Building on the Macintosh (Part 2)

Richard Koch koch at uoregon.edu
Wed Jan 17 05:10:55 CET 2018


Karl,

This causes an earlier error when compiling poplar:


depbase=`echo poppler-src/goo/gfile.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
	g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../../../libs/poppler  -I../../../libs/poppler/poppler-src -I../../../libs/poppler/poppler-src/goo -I/Users/koch/texlive2018dev/source/Work/libs/zlib/include -DPOPPLER_DATADIR='"."'  -fvisibility=hidden -fvisibility-inlines-hidden -Wno-write-strings -g -O2 -Dchar16_t=uint16_t  -MT poppler-src/goo/gfile.o -MD -MP -MF $depbase.Tpo -c -o poppler-src/goo/gfile.o ../../../libs/poppler/poppler-src/goo/gfile.cc &&\
	mv -f $depbase.Tpo $depbase.Po
In file included from ../../../libs/poppler/poppler-src/goo/gfile.cc:58:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/limits:110:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/type_traits:344:50: error: use of undeclared identifier 'uint16_t'
template <>          struct __libcpp_is_integral<char16_t>           : public true_type {};
                                                 ^
<command line>:3:18: note: expanded from here
#define char16_t uint16_t
                 ^
1 error generated.
make[5]: *** [poppler-src/goo/gfile.o] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [recurse] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1



Could you add Akira Kakuto's patch to XeTeX to the sources, at least temporarily, so I can test it. Here's
the patch:


Norbert says that I must run reautoconf after changing via this diff, but there is no such program on El Capitan, and I'm not very game to changing the compile system if I don't have to.

Dick Koch




	
> On Jan 16, 2018, at 2:56 PM, Karl Berry <karl at freefriends.org> wrote:
> 
> How about
>  env TL_COMPILER_GFLAGS='-g -O2 -Dchar16_t=uint16_t' ./Build -g
> 
> I invented TL_COMPILER_GFLAGS precisely to pass options to the compilers.
> There's also TL_*FLAGS for the individual compilers; if we only want to
> do this for OBJC, set TL_OBJCXXFLAGS. See lines 57ff of Build. It's
> annoyingly verbose but not complicated.
> 
> Alternatively, I could also add a configure test for char16_t and change
> their code to pay attention to the result instead of #if 1. That would
> be a cleaner approach, but means more patches to their code. (Why they
> didn't do this properly in the first place ... argh.)  -k

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tlbuild/attachments/20180116/1db24e5b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xetex.am.diff
Type: application/octet-stream
Size: 248 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20180116/1db24e5b/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tlbuild/attachments/20180116/1db24e5b/attachment-0001.html>


More information about the tlbuild mailing list