[LLVMdev] Problems building LLVM 2.2 for ARM
tobias.oberstein at gmx.de
Tue Feb 19 18:19:26 CST 2008
I'd like to do some initial experiments with LLVM on embedded ARM
(Nokia N800), but ran into a build issue. Could s.o. give me a tip?
P.S.: just as sidenote, LLVM 2.2 builds cleanly on GCC 4.2.3 / Linux.
I'm building on Ubuntu/Scratchbox/ARMEL using GCC 3.4.4 (CodeSourcery
ARM 2005q3-2) using
./configure --prefix=$HOME/local/llvm-2.2 --enable-jit --enable-threads
I could reproduce, but overcome the problems described in dox
regarding optimized built:
GCC 3.4.4 (CodeSourcery ARM 2005q3-2): this compiler miscompiles LLVM
when building with optimizations enabled. It appears to work with "make
ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O1" or build a debug build.
by just going to problematic dirs
make ENABLE_OPTIMIZED=1 OPTIMIZE_OPTION=-O1
However, much later, the build stops with
[sbox-CHINOOK_ARMEL: ~/build/llvm-2.2/tools/llvm-config] > make
llvm: Checking for cyclic dependencies between LLVM libraries.
find-cycles.pl: Circular dependency between *.a files:
find-cycles.pl: libLLVMCodeGen.a libLLVMScalarOpts.a libLLVMSelectionDAG.a
llvm: Building llvm-config script.
No such file or directory
make: *** [/home/oberstet/build/llvm-2.2/Release/bin/llvm-config] Error 1
[sbox-CHINOOK_ARMEL: ~/build/llvm-2.2/tools/llvm-config] >
which leaves me pretty lost. Whats the prob?
More information about the LLVMdev