Page 1 of 1

LLVM build options

Posted: Mon Mar 11, 2013 1:52 am
by iamjono
I'm seeking clarification of what the best build options are for LLVM 3.2 on Raspbian

I've fetched the LLVM source of 3.2, and my config is:

Code: Select all

cd llvm-3.2.src
./configure --build=armv6-unknown-linux-gnueabi \
--host=armv6-unknown-linux-gnueabi \
--target=armv6-unknown-linux-gnueabi --with-cpu=arm1176jzf-s \
--with-float=hard --with-abi=aapcs-vfp --with-fpu=neon \
--enable-targets=arm --enable-optimized --enable-assertions
make REQUIRES_RTTI=1
sudo make install
I've heard it takes quite a number of hours to build. It's been running a few hours now, happy to just let it run though :)

It's a long term build project so I have no qualms about redoing the build if needed :)

Thanks

Re: LLVM build options

Posted: Mon Mar 11, 2013 12:58 pm
by OtherCrashOverride
--with-fpu=neon
The Raspberry Pi does not have NEON SIMD. Try using '--with-fpu=vfp' instead.

Re: LLVM build options

Posted: Mon Mar 11, 2013 2:02 pm
by iamjono
Thanks - running new build with that fpu option now :)

Re: LLVM build options

Posted: Wed Nov 20, 2013 12:48 pm
by bvo
Hi there,

Did you succeed in buiding llvm 3.2 with REQIRES_RTTI=1 ?
I am having troubles, actually `make test` fails.
I would like to test the "numba" JIT compiler on my raspberry,
so using the deb from testing repository will not work,
because RTTI is disabled :cry: