[tlbuild] Building TL 2015

Munehiro Yamamoto munepi at greencherry.jp
Tue Dec 23 12:15:34 CET 2014


Dear Richard Koch and everybody,

2014-12-23 19:16 GMT+09:00 Richard Koch <koch at math.uoregon.edu>:
> I looked up Peter’s earlier suggestion to read the tlbuild.pdf document and use
>
>  ./Build --build=i686-apple-darwin9 CC='gcc -m32' CXX='g++ -m32' \
>          OBJCXX='g++ -m32’
>
> I couldn’t get the system to even accept this command. It claimed not to
> understand “m32” or the equivalent “arch i386”.
>
> The command is described in tlbuild.pdf in the “cross compiling” section.
>  I have very deliberately never cross compiled when making TeX Live
> for OS X. I always Build the code on the machine which will be used to
> run it.

I build both universal and x86_64 darwin binaries of tlptexlive, which
is a Japanese local additional repository of TeX Live
(See tlptexlive repository
http://tutimura.ath.cx/ptexlive/?tlptexlive%A5%EA%A5%DD%A5%B8%A5%C8%A5%EA
in details).
I build these darwin binaries with suitable cross-compiling toolchains
of old Xcode 3, 4 on the latest 64 bit Mac OS X (currently Yosemite).
These darwin binaries are the following status:
- universal darwin  (32 bit i686/ppc hybrid fat) binaries works on
10.5 or higher.
- x86_64 darwin binaries works on 10.6 or higher.
where the build (minimal) bash script satisfies bellow:
## BEGIN
U_ARCH=${BUILD_ARCH:-x86_64}
U_RELEASE=`uname -r`
case $U_ARCH in
    x86_64) # compile 10.6+ binaries on OS X 10.10
        MACOSX_DEPLOYMENT_TARGET='10.6'
        U_SDK=/Xcode4/SDKs/MacOSX${MACOSX_DEPLOYMENT_TARGET}.sdk
        CC=/Xcode4/usr/bin/gcc-4.2
        CXX=/Xcode4/usr/bin/g++-4.2
        ;;
    i686|ppc) # cross-compile 10.5+ binaries on OS X 10.10
        MACOSX_DEPLOYMENT_TARGET='10.5'
        U_SDK=/Xcode3/SDKs/MacOSX${MACOSX_DEPLOYMENT_TARGET}.sdk
        CC=/Xcode3/usr/bin/gcc-4.2
        CXX=/Xcode3/usr/bin/g++-4.2
        ;;
    *)
        exit 1
        ;;
esac
CFLAGS="-isysroot ${U_SDK} -arch ${U_ARCH}
-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}"
LDFLAGS="-isysroot ${U_SDK} -Wl,-syslibroot,${U_SDK} -arch ${U_ARCH}
-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}"
CXXFLAGS="${CFLAGS}"

export MACOSX_DEPLOYMENT_TARGET CC CXX CFLAGS CXXFLAGS LDFLAGS

TL_CONFIGURE_ARGS=" \
    --host=${U_ARCH}-apple-darwin${U_RELEASE} \
    --build=x86_64-apple-darwin${U_RELEASE} \
    $TL_CONFIGURE_ARGS"

export TL_CONFIGURE_ARGS
## END

2014-12-23 19:16 GMT+09:00 Richard Koch <koch at math.uoregon.edu>:
> So we are supporting hardware that is at least eight years old
> with the 32 bit compile.The time is coming when we’ll be able
> to drop support for powerpc and for 32 bit Intel code.
For universal-darwin binaries, I agree with you.

Regards,
Munehiro Yamamoto

山本 宗宏 Munehiro "munepi" Yamamoto
Founder, President & CEO, Green Cherry Ltd.    <munepi at greencherry.jp>
http://greencherry.jp/
Public Relations, Project Vine    <munepi at vinelinux.org> http://vinelinux.org/
GPG Key Fingerprint: 61EC 85A8 5F34 5E35 91E8  8AD0 1D28 D5DE C24B 55FD



More information about the tlbuild mailing list