[LLVMdev] Can't compile Apple's version on Linux (original) (raw)
Eli Friedman eli.friedman at gmail.com
Mon Sep 5 21:34:59 PDT 2011
- Previous message: [LLVMdev] Can't compile Apple's version on Linux
- Next message: [LLVMdev] Can't compile Apple's version on Linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Sep 5, 2011 at 8:42 PM, Andrew Udvare <audvare at gmail.com> wrote:
Filed a bug with Apple 10073924 but I'm wondering if anyone else knows what to fix here:
Summary: Building a Darwin cross compiler so I can use distcc with my Mac. Host: x8664-gnu-linux with GCC 4.5.3. Steps to Reproduce: Download tar ball tar xvf llvmgcc42-2335.15.tar.gz mkdir gcc-build cd gcc-build CFLAGS="-w -m32" CXXFLAGS="$CFLAGS" CPPFLAGS="$CFLAGS" LDFLAGS="-m32" ../llvmgcc42-2335.15/configure --target=x8664-apple-darwin11 --with-sysroot=/home/tatsh/usr/x8664-apple-darwin11 --prefix=/home/tatsh/usr/x8664-apple-darwin11 --enable-languages=objc,c++,obj-c++ make
You can't build llvm-gcc like that. There's a build_gcc script (in the root of the llvm-gcc source) that does a proper build the way that Apple does it. No idea if it will work as-is on Linux, but you should start there. See also README.LLVM (in the same place), although there are some extra complications in the build_gcc script because of the driver-driver.
-Eli
- Previous message: [LLVMdev] Can't compile Apple's version on Linux
- Next message: [LLVMdev] Can't compile Apple's version on Linux
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]