external modules issues
Luciano Miguel Ferreira Rocha
strange at nsk.no-ip.org
Thu Jun 24 12:52:25 UTC 2004
On Thu, Jun 24, 2004 at 10:32:10PM +1000, Dennis Gilmore wrote:
> Hi,
>
> im trying to build an external module for kernel 2.6.7-1.441 the module builds
> fine when i insert it i get
>
> /sbin/modprobe spca50x
> FATAL: Error inserting spca50x
> (/lib/modules/2.6.7-1.441/kernel/drivers/usb/media/spca50x.ko): Invalid
> module format
>
> dmesg shows
>
> spca50x: version magic '2.6.7-1.441 686 REGPARM 4KSTACKS gcc-3.3' should be
> '2.6.7-1.441 686 REGPARM 4KSTACKS gcc-3.4'
>
> i changed HOSTCC in /lib/modules/2.6.7-1.441/build/Makefile to be gcc34
> thinking it should then build the module using gcc 3.4 but on rebuild i get
> the same issue. it was working fine not sure when it stopped. ok so the
> kernel in the build system is using gcc 3.4 to build the kernel. but
> changing the external module makefile still seems to use gcc 3.3 do we need
> to change something in the kernel build process so that module building
> works? do we need to change gcc to 3.4? any ideas?
>
> Dennis
HOSTCC is for compilation of host programs, not for the kernel itself or
the modules.
Change the normal CC variable.
Regards,
Luciano Rocha
More information about the devel
mailing list