Problems building LLVM 2.2 for ARM

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.

Try make VERBOSE=1 first. Perhaps it'll tell us something.

Evan

Try make VERBOSE=1 first. Perhaps it'll tell us something.

Evan

here's the verbose err ..

[sbox-CHINOOK_ARMEL: ~] > cd ~/build/llvm-2.2/tools/llvm-config
[sbox-CHINOOK_ARMEL: ~/build/llvm-2.2/tools/llvm-config] > make VERBOSE=1
llvm[0]: Checking for cyclic dependencies between LLVM libraries.
/scratchbox/tools/bin/perl find-cycles.pl < /home/oberstet/build/llvm-2.2/tools/llvm-config/LibDeps.txt > /home/oberstet/build/llvm-2.2/tools/llvm-config/FinalLibDeps.txt || rm -f /home/oberstet/build/llvm-2.2/tools/llvm-config/FinalLibDeps.txt
find-cycles.pl: Circular dependency between *.a files:
find-cycles.pl: libLLVMCodeGen.a libLLVMScalarOpts.a libLLVMSelectionDAG.a
llvm[0]: Building llvm-config script.
echo 's,@LLVM_CPPFLAGS@, -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS,' > temp.sed
echo 's,@LLVM_CFLAGS@, -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer ,' >> temp.sed
echo 's,@LLVM_CXXFLAGS@, -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -Woverloaded-virtual,' >> temp.sed
echo 's,@LLVM_LDFLAGS@,' >> temp.sed
echo 's,@LLVM_BUILDMODE@,Release,' >> temp.sed
/scratchbox/tools/bin/sed -f temp.sed < llvm-config.in > /home/oberstet/build/llvm-2.2/Release/bin/llvm-config
/scratchbox/tools/bin/rm temp.sed
cat /home/oberstet/build/llvm-2.2/tools/llvm-config/FinalLibDeps.txt >> /home/oberstet/build/llvm-2.2/Release/bin/llvm-config
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] > perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
   Platform:
     osname=linux, osvers=2.6.16-2-686-smp, archname=i686-linux-thread-multi
     uname='linux helusbox 2.6.16-2-686-smp #1 smp sun jul 16 01:23:04 utc 2006 i686 gnulinux '
     config_args='-des -Dcc=/scratchbox/compilers/host-gcc/bin/gcc -specs=/scratchbox/compilers/host-gcc/host-gcc.specs -Accflags=-DAPPLLIB_EXP=\"/host_usr/perl\" -Dldflags=-Xlinker -dynamic-linker -Xlinker /scratchbox/host_shared/lib/ld.so -Xlinker -rpath -Xlinker /scratchbox/host_shared/lib/ -Xlinker -rpath -Xlinker /scratchbox/tools/lib/ -s -Dusethreads -Duselargefiles -Dprefix=/scratchbox/tools -Dvendorprefix=/scratchbox/tools -Dsiteprefix=/scratchbox/tools -Dotherlibdirs=/etc/perl:/usr/local/lib/perl/5.8.4:/usr/local/share/perl/5.8.4:/usr/lib/perl5:/usr/share/perl5:/usr/lib/perl/5.8.4:/usr/share/perl/5.8.4:/usr/local/lib/site_perl:/scratchbox/devkits/debian/lib/perl/:/scratchbox/devkits/perl/lib/perl/:/scratchbox/devkits/doctools/lib/perl/ -Dlocincpth=/host_usr/perl/include -Dloclibpth=/host_usr/perl/lib -Dman1dir=none -Dman3dir=none'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='gcc ', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DAPPLLIB_EXP="/host_usr/perl" -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
     optimize='-O2',
     cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DAPPLLIB_EXP="/host_usr/perl" -fno-strict-aliasing'
     ccversion='', gccversion='3.3.5 (Debian 1:3.3.5-13)', gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
     alignbytes=4, prototype=define
   Linker and Libraries:
     ld='gcc ', ldflags =' -L/usr/local/lib'
     libpth=/lib /usr/lib /usr/local/lib
     libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
     perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
     libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version='2.3.2'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
     cccdlflags='-fpic', lddlflags='-shared'

Characteristics of this binary (from libperl):
   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
   Built under linux
   Compiled at Aug 1 2007 16:46:35
   %ENV:
PERL5LIB="/scratchbox/devkits/maemo3-tools/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi"
   @INC:
     /scratchbox/devkits/perl/lib/perl
     /scratchbox/devkits/perl/lib/perl5
     /scratchbox/devkits/perl/share/perl
     /scratchbox/devkits/perl/share/perl5
     /scratchbox/devkits/debian-etch/lib/perl
     /scratchbox/devkits/debian-etch/lib/perl5
     /scratchbox/devkits/debian-etch/share/perl
     /scratchbox/devkits/debian-etch/share/perl5
     /scratchbox/devkits/maemo3-tools/lib/perl
     /scratchbox/devkits/maemo3-tools/lib/perl5
     /scratchbox/devkits/maemo3-tools/share/perl
     /scratchbox/devkits/maemo3-tools/share/perl5
     /scratchbox/devkits/cputransp/lib/perl
     /scratchbox/devkits/cputransp/lib/perl5
     /scratchbox/devkits/cputransp/share/perl
     /scratchbox/devkits/cputransp/share/perl5
/scratchbox/devkits/maemo3-tools/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
     /host_usr/perl
     /scratchbox/tools/lib/perl5/5.8.4/i686-linux-thread-multi
     /scratchbox/tools/lib/perl5/5.8.4
     /scratchbox/tools/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
     /scratchbox/tools/lib/perl5/site_perl/5.8.4
     /scratchbox/tools/lib/perl5/site_perl
     /scratchbox/tools/lib/perl5/vendor_perl/5.8.4/i686-linux-thread-multi
     /scratchbox/tools/lib/perl5/vendor_perl/5.8.4
     /scratchbox/tools/lib/perl5/vendor_perl
     /etc/perl
     /usr/local/lib/perl/5.8.4
     /usr/local/share/perl/5.8.4
     /usr/lib/perl5
     /usr/share/perl5
     /usr/lib/perl/5.8.4
     /usr/share/perl/5.8.4
     /usr/local/lib/site_perl
     /scratchbox/devkits/debian/lib/perl/
     /scratchbox/devkits/perl/lib/perl/
     /scratchbox/devkits/doctools/lib/perl/
     .
[sbox-CHINOOK_ARMEL: ~/build/llvm-2.2/tools/llvm-config] >