All of lore.kernel.org
 help / color / mirror / Atom feed
* HELP: opcode not supported on this processor
@ 2006-09-29  9:35 David Lee
  2006-09-29  9:47 ` Freddy Spierenburg
  2006-09-29 11:08 ` Thiemo Seufer
  0 siblings, 2 replies; 7+ messages in thread
From: David Lee @ 2006-09-29  9:35 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 2096 bytes --]

Hi,

I am trying to port some code over to MIPSEL from i386. However, I got the
following error:

gcc -I/usr/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB
-I/usr/src/linux/drivers/net -Wal
l -I. -Wstrict-prototypes -fomit-frame-pointer
-I/usr/src/linux/drivers/net/wan -I /usr/src/li
nux/include -I/usr/src/linux/include/net -DMODVERSIONS -include
/usr/src/linux-2.4/include/lin
ux/modversions.h  zip.c
/tmp/ccwOZSG3.s: Assembler messages:
/tmp/ccwOZSG3.s:5143: Error: opcode not supported on this processor: mips1
(mips1) `ll $4,16($2)'
/tmp/ccwOZSG3.s:5145: Error: opcode not supported on this processor: mips1
(mips1) `sc $4,16($2)'
/tmp/ccwOZSG3.s:5175: Error: opcode not supported on this processor: mips1
(mips1) `ll $4,16($13)'
/tmp/ccwOZSG3.s:5177: Error: opcode not supported on this processor: mips1
(mips1) `sc $4,16($13)'
/tmp/ccwOZSG3.s:5232: Error: opcode not supported on this processor: mips1
(mips1) `ll $4,16($8)'
/tmp/ccwOZSG3.s:5234: Error: opcode not supported on this processor: mips1
(mips1) `sc $4,16($8)'
/tmp/ccwOZSG3.s:5523: Error: opcode not supported on this processor: mips1
(mips1) `ll $4,16($17)'
/tmp/ccwOZSG3.s:5525: Error: opcode not supported on this processor: mips1
(mips1) `sc $4,16($17)'
/tmp/ccwOZSG3.s:6525: Error: opcode not supported on this processor: mips1
(mips1) `ll $4,16($2)'
/tmp/ccwOZSG3.s:6527: Error: opcode not supported on this processor: mips1
(mips1) `sc $4,16($2)'
/tmp/ccwOZSG3.s:6553: Error: opcode not supported on this processor: mips1
(mips1) `ll $4,16($2)'
/tmp/ccwOZSG3.s:6555: Error: opcode not supported on this processor: mips1
(mips1) `sc $4,16($2)'
/tmp/ccwOZSG3.s:6595: Error: opcode not supported on this processor: mips1
(mips1) `ll $4,16($6)'
/tmp/ccwOZSG3.s:6597: Error: opcode not supported on this processor: mips1
(mips1) `sc $4,16($6)'
/tmp/ccwOZSG3.s:6645: Error: opcode not supported on this processor: mips1
(mips1) `ll $4,16($7)'
/tmp/ccwOZSG3.s:6647: Error: opcode not supported on this processor: mips1
(mips1) `sc $4,16($7)'

Please advise what should be the appropriate opcodes for MIPS.

Thanks.

David

[-- Attachment #2: Type: text/html, Size: 2348 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: HELP: opcode not supported on this processor
  2006-09-29  9:35 HELP: opcode not supported on this processor David Lee
@ 2006-09-29  9:47 ` Freddy Spierenburg
  2006-09-29  9:59   ` David Lee
  2006-09-29 11:08 ` Thiemo Seufer
  1 sibling, 1 reply; 7+ messages in thread
From: Freddy Spierenburg @ 2006-09-29  9:47 UTC (permalink / raw)
  To: David Lee; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

Hi David,

On Fri, Sep 29, 2006 at 05:35:48PM +0800, David Lee wrote:
> /tmp/ccwOZSG3.s:5143: Error: opcode not supported on this processor: mips1
> (mips1) `ll $4,16($2)'
> /tmp/ccwOZSG3.s:5145: Error: opcode not supported on this processor: mips1
> (mips1) `sc $4,16($2)'

Are you sure you want to assemble for the mips1 target?

I know these both opcodes are valid MIPS32 opcodes, but don't
know if they exist for the mips1 target.

You might want to look for something like

	http://www.cs.cornell.edu/courses/cs314/2005FA/resources/MIPS_Vol2.pdf

but this one is for MIPS32. If you need mips1 you better search
for a likewise document.


-- 
$ cat ~/.signature
Freddy Spierenburg <freddy@dusktilldawn.nl>  http://freddy.snarl.nl/
GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
$ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: HELP: opcode not supported on this processor
  2006-09-29  9:47 ` Freddy Spierenburg
@ 2006-09-29  9:59   ` David Lee
  2006-09-29 11:11     ` David Lee
  0 siblings, 1 reply; 7+ messages in thread
From: David Lee @ 2006-09-29  9:59 UTC (permalink / raw)
  To: Freddy Spierenburg; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]

HI Freddy,

Thanks a lot for your help.

my target is a MIPS32. Based on what you advised, it must be a wrong
configuration in Linux header files. I'll check and see what'll happen.

Thanks again.

David


On 9/29/06, Freddy Spierenburg <freddy@dusktilldawn.nl> wrote:
>
> Hi David,
>
> On Fri, Sep 29, 2006 at 05:35:48PM +0800, David Lee wrote:
> > /tmp/ccwOZSG3.s:5143: Error: opcode not supported on this processor:
> mips1
> > (mips1) `ll $4,16($2)'
> > /tmp/ccwOZSG3.s:5145: Error: opcode not supported on this processor:
> mips1
> > (mips1) `sc $4,16($2)'
>
> Are you sure you want to assemble for the mips1 target?
>
> I know these both opcodes are valid MIPS32 opcodes, but don't
> know if they exist for the mips1 target.
>
> You might want to look for something like
>
>
> http://www.cs.cornell.edu/courses/cs314/2005FA/resources/MIPS_Vol2.pdf
>
> but this one is for MIPS32. If you need mips1 you better search
> for a likewise document.
>
>
> --
> $ cat ~/.signature
> Freddy Spierenburg <freddy@dusktilldawn.nl>  http://freddy.snarl.nl/
> GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
> $ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
>
> iD8DBQFFHOuxbxf9XXlB0eERAjTjAKCisVWs1p8ViEDGQnWexpfoQ6c3kACgxn/y
> GRv42zeXJWfW62Iy6eC54dI=
> =I9OS
> -----END PGP SIGNATURE-----
>
>
>

[-- Attachment #2: Type: text/html, Size: 2135 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: HELP: opcode not supported on this processor
  2006-09-29  9:35 HELP: opcode not supported on this processor David Lee
  2006-09-29  9:47 ` Freddy Spierenburg
@ 2006-09-29 11:08 ` Thiemo Seufer
  2006-09-29 13:32   ` David Lee
  1 sibling, 1 reply; 7+ messages in thread
From: Thiemo Seufer @ 2006-09-29 11:08 UTC (permalink / raw)
  To: David Lee; +Cc: linux-mips

David Lee wrote:
> Hi,
> 
> I am trying to port some code over to MIPSEL from i386. However, I got the
> following error:
> 
> gcc -I/usr/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB
> -I/usr/src/linux/drivers/net -Wal
> l -I. -Wstrict-prototypes -fomit-frame-pointer
> -I/usr/src/linux/drivers/net/wan -I /usr/src/li
> nux/include -I/usr/src/linux/include/net -DMODVERSIONS -include
> /usr/src/linux-2.4/include/lin
> ux/modversions.h  zip.c

You need to use the exactly same compilation options as used for the
kernel. This will fix the problem you see, plus many others you haven't
seen yet.


Thiemo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: HELP: opcode not supported on this processor
  2006-09-29  9:59   ` David Lee
@ 2006-09-29 11:11     ` David Lee
  0 siblings, 0 replies; 7+ messages in thread
From: David Lee @ 2006-09-29 11:11 UTC (permalink / raw)
  To: Freddy Spierenburg; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 2383 bytes --]

I added compiler flag "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" .
however I got the following error:

{standard input}: Assembler messages:
{standard input}:8068: Error: Cannot branch to symbol in another section.
{standard input}:8100: Error: Cannot branch to symbol in another section.
{standard input}:8161: Error: Cannot branch to symbol in another section.
{standard input}:8344: Error: Cannot branch to symbol in another section.
{standard input}:8452: Error: Cannot branch to symbol in another section.
{standard input}:8539: Error: Cannot branch to symbol in another section.
{standard input}:8571: Error: Cannot branch to symbol in another section.

I have no platform specific knowledge. Most of my time are on Intel
environment. It does not mean anythign to me. How can this be rectified?

Thanks.
David

David Lee <receive4me@gmail.com> wrote:

> HI Freddy,
>
> Thanks a lot for your help.
>
> my target is a MIPS32. Based on what you advised, it must be a wrong
> configuration in Linux header files. I'll check and see what'll happen.
>
> Thanks again.
>
> David
>
>
>  On 9/29/06, Freddy Spierenburg <freddy@dusktilldawn.nl> wrote:
>
> > Hi David,
> >
> > On Fri, Sep 29, 2006 at 05:35:48PM +0800, David Lee wrote:
> > > /tmp/ccwOZSG3.s:5143: Error: opcode not supported on this processor:
> > mips1
> > > (mips1) `ll $4,16($2)'
> > > /tmp/ccwOZSG3.s:5145: Error: opcode not supported on this processor:
> > mips1
> > > (mips1) `sc $4,16($2)'
> >
> > Are you sure you want to assemble for the mips1 target?
> >
> > I know these both opcodes are valid MIPS32 opcodes, but don't
> > know if they exist for the mips1 target.
> >
> > You might want to look for something like
> >
> >        http://www.cs.cornell.edu/courses/cs314/2005FA/resources/MIPS_Vol2.pdf
> >
> >
> > but this one is for MIPS32. If you need mips1 you better search
> > for a likewise document.
> >
> >
> > --
> > $ cat ~/.signature
> > Freddy Spierenburg <freddy@dusktilldawn.nl >  http://freddy.snarl.nl/
> > GnuPG: 0x7941D1E1=C948 5851 26D2 FA5C 39F1  E588 6F17 FD5D 7941 D1E1
> > $ # Please read http://www.ietf.org/rfc/rfc2015.txt before complain!
> >
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.5 (GNU/Linux)
> >
> > iD8DBQFFHOuxbxf9XXlB0eERAjTjAKCisVWs1p8ViEDGQnWexpfoQ6c3kACgxn/y
> > GRv42zeXJWfW62Iy6eC54dI=
> > =I9OS
> > -----END PGP SIGNATURE-----
> >
> >
> >
>

[-- Attachment #2: Type: text/html, Size: 3986 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: HELP: opcode not supported on this processor
  2006-09-29 11:08 ` Thiemo Seufer
@ 2006-09-29 13:32   ` David Lee
  2006-09-29 19:17     ` Jim Wilson
  0 siblings, 1 reply; 7+ messages in thread
From: David Lee @ 2006-09-29 13:32 UTC (permalink / raw)
  To: Thiemo Seufer; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 862 bytes --]

I could not figure it out in more than 2 hours. I don't even know what
compliantion options used for kernel. I need more instructions and help.

Thanks.
David

On 9/29/06, Thiemo Seufer <ths@networkno.de> wrote:
>
> David Lee wrote:
> > Hi,
> >
> > I am trying to port some code over to MIPSEL from i386. However, I got
> the
> > following error:
> >
> > gcc -I/usr/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB
> > -I/usr/src/linux/drivers/net -Wal
> > l -I. -Wstrict-prototypes -fomit-frame-pointer
> > -I/usr/src/linux/drivers/net/wan -I /usr/src/li
> > nux/include -I/usr/src/linux/include/net -DMODVERSIONS -include
> > /usr/src/linux-2.4/include/lin
> > ux/modversions.h  zip.c
>
> You need to use the exactly same compilation options as used for the
> kernel. This will fix the problem you see, plus many others you haven't
> seen yet.
>
>
> Thiemo
>

[-- Attachment #2: Type: text/html, Size: 1311 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: HELP: opcode not supported on this processor
  2006-09-29 13:32   ` David Lee
@ 2006-09-29 19:17     ` Jim Wilson
  0 siblings, 0 replies; 7+ messages in thread
From: Jim Wilson @ 2006-09-29 19:17 UTC (permalink / raw)
  To: David Lee; +Cc: linux-mips

On Fri, 2006-09-29 at 21:32 +0800, David Lee wrote:
> I could not figure it out in more than 2 hours. I don't even know what
> compliantion options used for kernel. I need more instructions and
> help.

To elaborate on what Thiemo said, take a look at
    http://www.linux-mips.org/wiki/Modules
In particular, see the fourth sentence of the first paragraph.  I think
this solves your problem.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-09-29 19:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-29  9:35 HELP: opcode not supported on this processor David Lee
2006-09-29  9:47 ` Freddy Spierenburg
2006-09-29  9:59   ` David Lee
2006-09-29 11:11     ` David Lee
2006-09-29 11:08 ` Thiemo Seufer
2006-09-29 13:32   ` David Lee
2006-09-29 19:17     ` Jim Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.