[LLVMdev] Can't compile Apple's version on Linux
baldrick at free.fr
Tue Sep 6 00:24:44 PDT 2011
> CFLAGS="-w -m32" CXXFLAGS="$CFLAGS" CPPFLAGS="$CFLAGS" LDFLAGS="-m32"
> ../llvmgcc42-2335.15/configure --target=x86_64-apple-darwin11
you forgot to specify the path to the llvm build directory. This is done
by passing --enable-llvm=path on the configure line.
> Note: Had to comment out an incompatible declaration of mempcpy to get this far.
> c-typeck.o: In function `store_init_value':
> c-typeck.c:(.text+0x950d): undefined reference to `TheTreeToLLVM'
> c-typeck.c:(.text+0x951c): undefined reference to
> collect2: ld returned 1 exit status
> make: *** [cc1-dummy] Error 1
> make: Leaving directory `/home/tatsh/dev/apple-darwin/llvm-build/gcc'
> make: *** [all-gcc] Error 2
> make: Leaving directory `/home/tatsh/dev/apple-darwin/llvm-build'
> make: *** [all] Error 2
> In the file, there's also this line and comment:
> extern void * TheTreeToLLVM; /* llvm-internal.h is not
> available here. Ugh. */
> I had a little bit of trouble getting cctools to work on Linux (and
> it's still patchy/hacky but works). After that, I have distcc working
> on my Mac to ask my more modern system to compile working fine with
> everything except Objective-C/C++ (I'm not entirely sure why yet, it's
> not error 110 and there is no error number). I'd like to continue by
> adding llvm-gcc which is actually what I build with in Xcode (GCC is
> what I use in Gentoo prefix; Macports also uses GCC).
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev