Module compilation error (sparc64)

Άγγελος Οικονομόπουλος aoiko at cc.ece.ntua.gr
Tue Nov 26 14:35:02 EET 2002


On Tuesday 26 November 2002 14:27, andreou at gin.ee.teiath.gr wrote:
> Geia sou lista!
>
> Exw to akoloy8o ekneyristiko problhma sto Linux 2.2.20pre2 (yparxei kai
> sto 2.2.22 opws mporw na dw). Symbainei otan prospa8w na kanw compile
> ena opoiodhpote module poy katalhgei na kanei include to <asm/page.h>
> (to opoio einai link pros to /usr/src/linux/include/asm-sparc64/page.h).
>
> O 64-bit gcc poy xrhsimopoiw (egcs-2.92.11) stamataei me to akoloy8o
> mhnyma:
>
> In file included from /usr/include/linux/sched.h:18,
>                  from /usr/include/linux/mm.h:4,
>                  from /usr/include/linux/slab.h:14,
>                  from /usr/include/linux/malloc.h:4,
>                  from /usr/include/linux/proc_fs:5,
>                  from procfs.c:9:
> /usr/include/asm/page.h:96: global register variable follows a function
> definition /usr/include/asm/page.h:96: warning: call-clobbered register
> used for global register variable
>
> Sthn kai gyrw apo thn grammh 96, to <asm/page.h> periexei:
>
> #ifndef __ASSEMBLY__
> /* Do prdele, look what happens to be in %g4... */
> register unsigned long page_offset asm("g4"); /* This is line no. 96. */
> #define PAGE_OFFSET             page_offset
> #else
> #define PAGE_OFFSET             0xFFFFF80000000000
> #endif
>
> H entolh gia th metafrash einai:
> egcs64 -D__KERNEL__ -DMODULE -D__SMP__ -O -c -o module.o module.c
>
> (to -D__SMP__ diabasa pws einai apaitoymeno gia pyrhnes me SMP support,
> akomh ki an to mhxanhma exei ena epe3ergasth).
>
> Lambanw epishs kai to akoloy8o mhnyma, to opoiow nomizw pws einai asxeto
> (alla pote den 3ereis me toys kernels):
>
> In file included from /usr/include/linux/sched.h:16,
>                  from /usr/include/linux/mm.h:4,
>                  from /usr/include/linux/slab.h:14,
>                  from /usr/include/linux/malloc.h:4,
>                  from /usr/include/linux/proc_fs.h:5,
>                  from procfs.c:9:
> /usr/include/asm/system.h:25: warning: `sparc_cpu_model' redefined
> /usr/include/linux/modules/sparc_ksyms.ver:2: warning: this is the
> location of the previous definition
>
> O akribws idios kwdikas se Linux 2.2.12-20 me egcs 2.91.66 metafrazetai
> kai doyleyei xwris problhma. De symperilambanw ton kwdika epeidh den exei
> shmasia: arkei na ginetai include to <asm/page.h>, kai to problhma
> emfanizetai.
>
> Opoiadhpote boh8eia 8a ektimh8ei :-) .

oti o egcs 2.91.66 einai o recommended compiler akoma kai gia ton 2.5 sou 
leei kati?

-- 
indent does _not_ solve the problem of:
	* buggers who use Hungarian notation for no good reason and come up
	with structure fields that sound like street names from R'Lyeh

	- Alexander Viro on coding style




More information about the Linux-greek-users mailing list