llvm-as parse error


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'

Works for me. Please indicate, which LLVM version you're using, how you
compiled it, etc.

I works with llvm2.2 on Ubuntu 7.10
And the compile command is as follows:
To generate hello.ll, I used:
llvm-gcc -O3 -emit-llvm hello.c -S -o hello.ll

and to geneate hello.bc, I used:
llvm-as hello.ll

Thank you for reply.