[cfe-dev] clang + compiler-rt aren't buildable on OS X since r157062; how to proceed?

Nico Weber thakis at chromium.org
Tue Jun 5 07:53:09 PDT 2012


On Tue, Jun 5, 2012 at 2:25 AM, Jean-Daniel Dupas <devlists at shadowlab.org>wrote:

> Le 5 juin 2012 à 03:32, Rafael Espíndola a écrit :
>
> > On 31 May 2012 20:29, Jim Grosbach <grosbach at apple.com> wrote:
> >> Daniel is the right person for that. We'll see what we can do.
> >>
> >> A bit more context, FWIW. #1 is an option, but feels kinda rude to make
> that a hard requirement. It's available for anyone who wants to re-enable
> it locally, but we need something better for default use-cases. #2 doesn't
> quite work out, as it's not the deployment target that's the limiting
> factor in this scenario, but rather the version of the host-side tools.
> There's not a solid way to check those versions. #3 is viable as it
> isolates the public builds of supported open source targets from any
> weirdness of Apple side stuff.
> >
> > This is still broken.
> >
> > The attached patches are a hack to drop arm completely. I am not sure
> > what is the best way to optionally add them back, but this lets anyone
> > that doesn't need ios support build compiler-rt again.
> >
> > We should finish llvm-ar one day :-)
>
>
> How are you building clang on you machine ?
>

http://llvm.org/bugs/show_bug.cgi?id=12950 has a build log with the steps I
run.

# llvm contains llvm, clang, compiler-rt
mkdir llvm-bootstrap
cd llvm-bootstrap
../llvm/configure --enable-optimized --enable-targets=host-only
--disable-threads --disable-pthreads --without-llvmgcc --without-llvmgxx
MACOSX_DEPLOYMENT_TARGET=10.5 make -j16
make check-all
cd ..
mkdir llvm-build
cd llvm-build
export CC=$PWD/../llvm-bootstrap/Release+Asserts/bin/clang
export CXX=$PWD/../llvm-bootstrap/Release+Asserts/bin/clang++
../llvm/configure --enable-optimized --disable-threads --disable-pthreads
--without-llvmgcc --without-llvmgxx
MACOSX_DEPLOYMENT_TARGET=10.5 make -j16
make check-all



> I'm on 10.7, and work with clang ToT.
> I'm building it first with llvm-gcc-4.2 with the X86 backend only and then
> I rebuild it with itself and with ARM + X86 backend and I don't have any
> trouble.
>
> -- Jean-Daniel
>
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120605/c660e3bc/attachment.html>


More information about the cfe-dev mailing list