llc fails to generate code for arm

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

llc fails to generate code for arm

Arvind Ayyangar
Hi all,
     I had little success installing llvm inside scratchbox for an ARM
build so have been trying to generate assembly code for arm using the
llc utility. However, llc fails to generate code for arm. Output is as
below...


arvind@zeus:~/tools/llvm/del$ llc main.bc -o mainarm -filetype=asm
-march=arm  -f
llc: ARMISelDAGToDAG.cpp:73: llvm::SDOperand
LowerCALL(llvm::SDOperand, llvm::SelectionDAG&): Assertion `isVarArg
== false && "VarArg not supported"' failed.
llc[0x85335ac]
[0xffffe420]
[0xffffe410]
/lib/tls/i686/cmov/libc.so.6(gsignal+0x50)[0xb7d5bdf0]
/lib/tls/i686/cmov/libc.so.6(abort+0x101)[0xb7d5d641]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0xfb)[0xb7d5543b]
llc[0x82aaeed]
Aborted (core dumped)
arvind@zeus:~/tools/llvm/del$

However, i manage to generate code for other architectures like sparc,
ppc, etc.. Is any additional setup required ?


Thanks in advance


--
Arvind
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: llc fails to generate code for arm

Lauro Ramos Venancio
HI Arvind,

I think you are using an old llc version. VarArg support was
implemented a long time ago.

Lauro

2008/1/28, Arvind Ayyangar <[hidden email]>:

> Hi all,
>      I had little success installing llvm inside scratchbox for an ARM
> build so have been trying to generate assembly code for arm using the
> llc utility. However, llc fails to generate code for arm. Output is as
> below...
>
>
> arvind@zeus:~/tools/llvm/del$ llc main.bc -o mainarm -filetype=asm
> -march=arm  -f
> llc: ARMISelDAGToDAG.cpp:73: llvm::SDOperand
> LowerCALL(llvm::SDOperand, llvm::SelectionDAG&): Assertion `isVarArg
> == false && "VarArg not supported"' failed.
> llc[0x85335ac]
> [0xffffe420]
> [0xffffe410]
> /lib/tls/i686/cmov/libc.so.6(gsignal+0x50)[0xb7d5bdf0]
> /lib/tls/i686/cmov/libc.so.6(abort+0x101)[0xb7d5d641]
> /lib/tls/i686/cmov/libc.so.6(__assert_fail+0xfb)[0xb7d5543b]
> llc[0x82aaeed]
> Aborted (core dumped)
> arvind@zeus:~/tools/llvm/del$
>
> However, i manage to generate code for other architectures like sparc,
> ppc, etc.. Is any additional setup required ?
>
>
> Thanks in advance
>
>
> --
> Arvind
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: llc fails to generate code for arm

Arvind Ayyangar
Hi

  Sorry for the late reply..
  I managed to build the latest release of llvm.
Now I get the following error  when I try creating the bitcode file:

llvm-gcc: --emit-llvm is not supported in this configuration.

The configure options were :
 /home/arvind/llvm/llvm-gcc4.2-2.1.source/configure
--prefix=/opt/llvm/ --enable-threads --disable-nls --disable-shared
--enable-languages=c --enable-sjlj-exceptions --program-prefix=llvm-




On Jan 28, 2008 8:18 PM, Lauro Ramos Venancio <[hidden email]> wrote:

> HI Arvind,
>
> I think you are using an old llc version. VarArg support was
> implemented a long time ago.
>
> Lauro
>
> 2008/1/28, Arvind Ayyangar <[hidden email]>:
>
> > Hi all,
> >      I had little success installing llvm inside scratchbox for an ARM
> > build so have been trying to generate assembly code for arm using the
> > llc utility. However, llc fails to generate code for arm. Output is as
> > below...
> >
> >
> > arvind@zeus:~/tools/llvm/del$ llc main.bc -o mainarm -filetype=asm
> > -march=arm  -f
> > llc: ARMISelDAGToDAG.cpp:73: llvm::SDOperand
> > LowerCALL(llvm::SDOperand, llvm::SelectionDAG&): Assertion `isVarArg
> > == false && "VarArg not supported"' failed.
> > llc[0x85335ac]
> > [0xffffe420]
> > [0xffffe410]
> > /lib/tls/i686/cmov/libc.so.6(gsignal+0x50)[0xb7d5bdf0]
> > /lib/tls/i686/cmov/libc.so.6(abort+0x101)[0xb7d5d641]
> > /lib/tls/i686/cmov/libc.so.6(__assert_fail+0xfb)[0xb7d5543b]
> > llc[0x82aaeed]
> > Aborted (core dumped)
> > arvind@zeus:~/tools/llvm/del$
> >
> > However, i manage to generate code for other architectures like sparc,
> > ppc, etc.. Is any additional setup required ?
> >
> >
> > Thanks in advance
> >
> >
> > --
> > Arvind
> > _______________________________________________
> > LLVM Developers mailing list
> > [hidden email]         http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> >
> _______________________________________________
> LLVM Developers mailing list
> [hidden email]         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



--
Cheers
Arvind
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: llc fails to generate code for arm

Duncan Sands
Hi,

> Now I get the following error  when I try creating the bitcode file:
>
> llvm-gcc: --emit-llvm is not supported in this configuration.
>
> The configure options were :
>  /home/arvind/llvm/llvm-gcc4.2-2.1.source/configure
> --prefix=/opt/llvm/ --enable-threads --disable-nls --disable-shared
> --enable-languages=c --enable-sjlj-exceptions --program-prefix=llvm-

you forgot
        --enable-llvm=path_to_llvm_objects

Ciao,

Duncan.
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev