This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: error: unknown opcode ".uleb128"
- From: Ramana Radhakrishnan <ramana dot radhakrishnan at codito dot com>
- To: jinyong at skymiracle dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 08 Dec 2004 12:22:12 +0530
- Subject: Re: error: unknown opcode ".uleb128"
- References: <002801c4dcf1$cee48b90$6c01010a@143966509ba3e4>
What are the versions you are using? (Versions of GCC , binutils) . The
.uleb128 looks like a dwarf2 opcode. What is the platform you are
attempting to run this on ? This info would help someone help you .
cheers
Ramana
jinyong@skymiracle.com wrote:
> Hi,
>
> When i install the gcc 3.0.2,
> I try to compile a simple c++ program,but get
> error like this:
> /usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6472: error: statement syntax
> /usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6477: error: unknown opcode ".uleb128"
> /usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6477: error: statement syntax
> /usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6480: error: unknown opcode ".uleb128"
> /usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6480: error: statement syntax
> /usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6481: error: unknown opcode ".uleb128"
> /usr/ccs/bin/as: "/var/tmp/ccmqRkgN.s", line 6481: error: statement syntax
>
> But when i compile with the c program, it is ok.
> I do not know why, any help will be appreciated.
> the c++ program ,
>
> #include <iostream.h>
>
> main ()
> {
> cout << "Helo world" << endl;
> }
>
> the c program
> #include <stdio.h>
>
> int main(int argc, char *argv[])
> {
> printf("Hello, world\n");
>
> return 0;
> }
>