[LLVMdev] Problems building LLVM 2.2 for ARM

Tobias Oberstein tobias.oberstein at gmx.de
Tue Feb 19 16:19:26 PST 2008


Hello,

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?

Thx alot,
Tobias

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 
--enable-shared --enable-optimized

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.

http://www.llvm.org/docs/GettingStarted.html#brokengcc
"""

by just going to problematic dirs

llvm-2.2/lib/CodeGen/SelectionDAG
lib/Target/PowerPC

and do

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[0]: 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[0]: Building llvm-config script.
cat: /home/oberstet/build/llvm-2.2/tools/llvm-config/FinalLibDeps.txt: 
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 llvm-dev mailing list