Yeah this is a known issue. On Mac OS X things should work but on Linux and Windows LLVM has changed how section labels are handled and so this is the problem.

A work around is this. Put the attached script on your path before the system 'as' program so it runs instead. Basically the script runs sed over the assembly to fix up the labels before running 'as' as usual.

Otherwise you'll have to wait for the next GHC release. LLVM 2.9 works fine otherwise. I actually helped fix 2 fairly major bugs in the RC's to make sure of this.

Yeah this is a known issue. On Mac OS X things should work but on Linux and Windows LLVM has changed how section labels are handled and so this is the problem.

A work around is this. Put the attached script on your path before the system 'as' program so it runs instead. Basically the script runs sed over the assembly to fix up the labels before running 'as' as usual.

Otherwise you'll have to wait for the next GHC release. LLVM 2.9 works fine otherwise. I actually helped fix 2 fairly major bugs in the RC's to make sure of this.

Do you mean that GHC HEAD should work fine? I tried but it failed with the same error.

I don't put any effort into support pre-released versions of LLVM sorry. So your on your own there, however the error is the same error as with 2.9, so the 'as' hack should work. Its a very hacky hack though so you probably need to modify it for your particular machine as tener in the comments above.