[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: building at76c503a on a cobalt qube 2 running Sarge fails



On Sat, Feb 11, 2006 at 08:59:39PM +0100, Daniel Rheinbay wrote:
[snip]
> ---snip---
> gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing
> -fno-common -Wno-sign-compare -Wno-unused -D__KERNEL__ -DMODULE
> -DEXPORT_SYMTAB -I/usr/src/kernel-source-2.4.27/include -DMODVERSIONS
> -include /usr/src/kernel-source-2.4.27/include/linux/modversions.h -c
> at76c503.c
> {standard input}: Assembler messages:
> {standard input}:6575: Error: opcode not supported on this processor:
> mips1 (mips1) `ll $4,44($2)'
> {standard input}:6577: Error: opcode not supported on this processor:
> mips1 (mips1) `sc $4,44($2)'
> {standard input}:6582: Error: opcode not supported on this processor:
> mips1 (mips1) `ll $2,44($3)'
> ---snap--- and so on.

gcc misses to pick up the proper compiler flags. They need to be exactly
the same as used for the specific kernel (most obvious is the missing
-fno-pic).

> I figured i should do some research but all I could come up with was to 
> add -mips2 to $CFLAGS in the Makefile of at76c503a, based on some 
> messages I found on a NetBSD mailing list. So, I did the same procedure 
> as described above again, this time using my freshly patched Makefile. 
> My 2nd approach died complaining:
> 
> ---snip---
> gcc -MD -O2 -Wall -Wstrict-prototypes -pipe -fno-strict-aliasing
> -fno-common -Wno-sign-compare -Wno-unused -mips2 -D__KERNEL__ -DMODULE
> -DEXPORT_SYMTAB -I/usr/src/kernel-source-2.4.27/include -DMODVERSIONS
> -include /usr/src/kernel-source-2.4.27/include/linux/modversions.h -c
> at76c503.c
> {standard input}: Assembler messages:
> {standard input}:19052: Error: Cannot branch to symbol in another
> section.
> make[2]: *** [at76c503.o] Error 1
> make[2]: Leaving directory `/usr/src/modules/at76c503a'
> make[1]: *** [build-stamp] Error 2
> make[1]: Leaving directory `/usr/src/modules/at76c503a'
> make: *** [kdist_image] Error 2
> ---snap---

Still the same problem.


Thiemo



Reply to: