iamjono
Posts: 3
Joined: Sun Mar 10, 2013 10:36 pm
Contact: Website AOL

LLVM build options

Mon Mar 11, 2013 1:52 am

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
--
twitter: @iamjono
aim: [email protected]

OtherCrashOverride
Posts: 582
Joined: Sat Feb 02, 2013 3:25 am

Re: LLVM build options

Mon Mar 11, 2013 12:58 pm

--with-fpu=neon
The Raspberry Pi does not have NEON SIMD. Try using '--with-fpu=vfp' instead.

iamjono
Posts: 3
Joined: Sun Mar 10, 2013 10:36 pm
Contact: Website AOL

Re: LLVM build options

Mon Mar 11, 2013 2:02 pm

Thanks - running new build with that fpu option now :)
--
twitter: @iamjono
aim: [email protected]

bvo
Posts: 6
Joined: Mon Oct 29, 2012 2:37 pm

Re: LLVM build options

Wed Nov 20, 2013 12:48 pm

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:

Return to “General programming discussion”