[LLVMdev] llvm-as parse error

Arto Vuori avuori at cs.helsinki.fi
Mon Apr 14 14:28:38 PDT 2008


On Apr 14, 2008, at 9:16 PM, Arto Vuori wrote:
> On Apr 14, 2008, at 4:35 PM, code_nf wrote:
>> Hi:
>> I have just started to use llvm and confronted with a problem:
>> when I want to transform something very simple for name.ll to
>> name.bc with llvm-as name.ll, some errors occured:
>>
>> error: parse error, expecting `GLOBAL' or `CONSTANT' while reading
>> token: 'target'
>
> Hi. I am having exactly the same problem. Currently I suspect that
> the reason lies within my Bison version, that is 2.3, and maybe
> within my Flex version, that is 2.5.34. These are the current Bison/
> Flex versions from the Ubuntu hardy universe.

I can confirm this problem went away when I downgraded Bison to 2.1.  
Using Bison 2.3 results in an invalid build of llvm 2.2.

--
Arto Vuori
avuori at cs.helsinki.fi






More information about the llvm-dev mailing list