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

Re: Compiling kernel modules



On 2001.05.04 13:47:18 Lars Viklund wrote:
> The errors you see is probably caused by -mlinux, which implies 
> -fno-leading-underscore, which in turn requires that register 
> names in assembler code is prefixed with a '$'. Some of the
> files you include (e.g. uaccess.h) contains inline assembler 
> that does not have the register names prefixed with '$'.
> 
> This is consistant with the fact that it works if you assemble
> separately without -mlinux.
> 
> Try to just remove -mlinux since this option is intended for
> user space applications (note that the kernel is _not_ built 
> with -mlinux).

I did that, and then I got about 10-15 errors in the file
linux/include/linux/coda.h

here is the error output, if somebody knows anything about it:

----
In file included from /opt/Etrax/linux/include/linux/coda_fs_i.h:14,
                 from /opt/Etrax/linux/include/linux/fs.h:292,
                 from /opt/Etrax/linux/include/linux/capability.h:17,
                 from /opt/Etrax/linux/include/linux/binfmts.h:5,
                 from /opt/Etrax/linux/include/linux/sched.h:9,
                 from /opt/Etrax/linux/include/asm/uaccess.h:47,
                 from smem.c:5:
/opt/Etrax/linux/include/linux/coda.h:259: parse error before `u_quad_t'
/opt/Etrax/linux/include/linux/coda.h:259: warning: no semicolon at end of
struct or union
/opt/Etrax/linux/include/linux/coda.h:267: parse error before `va_bytes'
/opt/Etrax/linux/include/linux/coda.h:267: warning: type defaults to `int'
in declaration of `va_bytes'
/opt/Etrax/linux/include/linux/coda.h:267: warning: data definition has no
type or storage class
/opt/Etrax/linux/include/linux/coda.h:268: parse error before `va_filerev'
/opt/Etrax/linux/include/linux/coda.h:268: warning: type defaults to `int'
in declaration of `va_filerev'
/opt/Etrax/linux/include/linux/coda.h:268: warning: data definition has no
type or storage class
/opt/Etrax/linux/include/linux/coda.h:411: field `attr' has incomplete type
/opt/Etrax/linux/include/linux/coda.h:419: field `attr' has incomplete type
/opt/Etrax/linux/include/linux/coda.h:461: field `attr' has incomplete type
/opt/Etrax/linux/include/linux/coda.h:470: field `attr' has incomplete type
/opt/Etrax/linux/include/linux/coda.h:515: field `attr' has incomplete type
/opt/Etrax/linux/include/linux/coda.h:522: field `attr' has incomplete type
/opt/Etrax/linux/include/linux/coda.h:542: field `attr' has incomplete type
In file included from smem.c:5:
/opt/Etrax/linux/include/asm/uaccess.h: In function `strnlen_user':
/opt/Etrax/linux/include/asm/uaccess.h:1019: warning: unused variable
`tmp2'
make: *** [etrax] Error 1

-----

And if I try with -fno-leading-underscore, I get the same results as
above.

Thank you anyway,

 Jonas