* Error building for rm5231 due to multiple page size support
@ 2004-01-22 0:14 Narendra Sankar
2004-01-22 1:18 ` Thiemo Seufer
0 siblings, 1 reply; 2+ messages in thread
From: Narendra Sankar @ 2004-01-22 0:14 UTC (permalink / raw)
To: linux-mips
hi
I am trying to build the 2.4 32-bit (both HEAD and 2_4_23) kernel for the
rm5231 cpu - both the cobalt and the ite8172 configurations (just using the
default configurations from arch/mips/). I get the
following error due to the changes made to support multiple page sizes.
Looking at the code, this probably affects all configurations except for the
ones that use MIPS32 (it seems that these configurations - for example the
malta, actually do not ever use _PTE_T_LOG2) which include tlbex-mips32.S.
The code from offset.c
seems to generate a offset.h which has _PTE_T_LOG2 defined to be $2. Here is
the snippet from the offset.h -
#define _PGD_T_LOG2 $2
#define _PMD_T_LOG2 $2
#define _PTE_T_LOG2 $2
mipsel-linux-gcc -D__ASSEMBLY__ -D__KERNEL__
-I/home/naren/lnxsrc/linux-2.4.23/linux/include
-I /home/naren/lnxsrc/linux-2.4.23/linux/include/asm/gcc -G 0 -mno-abicalls
-fno-pic -pipe -mcpu=r5000 -mips2 -Wa,--trap -c -o tlbex-r4k.o
tlbex-r4k.S
tlbex-r4k.S: Assembler messages:
tlbex-r4k.S:178: Error: Instruction srl requires absolute expression
tlbex-r4k.S:178: Warning: Improper shift amount (4294967295)
tlbex-r4k.S:206: Error: Instruction srl requires absolute expression
tlbex-r4k.S:206: Warning: Improper shift amount (4294967295)
tlbex-r4k.S:242: Error: Instruction srl requires absolute expression
tlbex-r4k.S:242: Warning: Improper shift amount (4294967295)
tlbex-r4k.S:274: Error: Instruction srl requires absolute expression
tlbex-r4k.S:274: Warning: Improper shift amount (4294967295)
tlbex-r4k.S:465: Error: Instruction srl requires absolute expression
tlbex-r4k.S:493: Error: Instruction srl requires absolute expression
tlbex-r4k.S:520: Error: Instruction srl requires absolute expression
make[2]: *** [tlbex-r4k.o] Error 1
Is something wrong with the code, or with my configuration?
Thanks
Naren Sankar
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Error building for rm5231 due to multiple page size support
2004-01-22 0:14 Error building for rm5231 due to multiple page size support Narendra Sankar
@ 2004-01-22 1:18 ` Thiemo Seufer
0 siblings, 0 replies; 2+ messages in thread
From: Thiemo Seufer @ 2004-01-22 1:18 UTC (permalink / raw)
To: Narendra Sankar; +Cc: linux-mips
Narendra Sankar wrote:
> hi
>
> I am trying to build the 2.4 32-bit (both HEAD and 2_4_23) kernel for the
> rm5231 cpu - both the cobalt and the ite8172 configurations (just using the
> default configurations from arch/mips/). I get the
> following error due to the changes made to support multiple page sizes.
> Looking at the code, this probably affects all configurations except for the
> ones that use MIPS32 (it seems that these configurations - for example the
> malta, actually do not ever use _PTE_T_LOG2) which include tlbex-mips32.S.
> The code from offset.c
> seems to generate a offset.h which has _PTE_T_LOG2 defined to be $2. Here is
> the snippet from the offset.h -
>
> #define _PGD_T_LOG2 $2
> #define _PMD_T_LOG2 $2
> #define _PTE_T_LOG2 $2
>
>
> mipsel-linux-gcc -D__ASSEMBLY__ -D__KERNEL__
> -I/home/naren/lnxsrc/linux-2.4.23/linux/include
> -I /home/naren/lnxsrc/linux-2.4.23/linux/include/asm/gcc -G 0 -mno-abicalls
> -fno-pic -pipe -mcpu=r5000 -mips2 -Wa,--trap -c -o tlbex-r4k.o
> tlbex-r4k.S
> tlbex-r4k.S: Assembler messages:
> tlbex-r4k.S:178: Error: Instruction srl requires absolute expression
> tlbex-r4k.S:178: Warning: Improper shift amount (4294967295)
> tlbex-r4k.S:206: Error: Instruction srl requires absolute expression
> tlbex-r4k.S:206: Warning: Improper shift amount (4294967295)
> tlbex-r4k.S:242: Error: Instruction srl requires absolute expression
> tlbex-r4k.S:242: Warning: Improper shift amount (4294967295)
> tlbex-r4k.S:274: Error: Instruction srl requires absolute expression
> tlbex-r4k.S:274: Warning: Improper shift amount (4294967295)
> tlbex-r4k.S:465: Error: Instruction srl requires absolute expression
> tlbex-r4k.S:493: Error: Instruction srl requires absolute expression
> tlbex-r4k.S:520: Error: Instruction srl requires absolute expression
> make[2]: *** [tlbex-r4k.o] Error 1
>
>
> Is something wrong with the code, or with my configuration?
The new gcc options selection code in arch/mips/Makefile seems to
erraneously filter out -finline-limit=100000, which prevents the
misgeneration of offset.h.
Thiemo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-22 1:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-22 0:14 Error building for rm5231 due to multiple page size support Narendra Sankar
2004-01-22 1:18 ` Thiemo Seufer
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.