#20 kernel 2.6.24 build error

open
Joseph Jezak
5
2008-04-19
2008-04-19
Federico Corradi
No

I just upgraded my kernel from 2.6.19 to 2.6.24 and I can't compile anymore the MOL kernel modules.

this is my system:
Ibook g4
--------
gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.1/include/g++-v4 --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --enable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r3)

and this is the error I got:

...
+ Entering accel
Compiling mol.o
Compiling molaccel.o
Linking libaccel.a
Linking libbootx.a
Compiling .dummy.o
* Preparing mol module
LD /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/built-in.o
CC [M] /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.o
CC [M] /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_fault.o
In file included from /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/kernel_vars.h:22,
from /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_fault.c:19:
/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/mac_registers.h:114:1: warning: "BIT" redefined
In file included from include/linux/kernel.h:15,
from /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/archinclude.h:44,
from /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_fault.c:17:
include/linux/bitops.h:6:1: warning: this is the location of the previous definition
CC [M] /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.o
In file included from /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/kernel_vars.h:22,
from /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.c:28:
/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/mac_registers.h:114:1: warning: "BIT" redefined
In file included from include/linux/kernel.h:15,
from /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/archinclude.h:44,
from /var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.c:17:
include/linux/bitops.h:6:1: warning: this is the location of the previous definition
/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.c: In function 'find_physical_rom':
/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.c:76: error: implicit declaration of function 'find_devices'
/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.c:76: warning: assignment makes pointer from integer without a cast
/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.c:76: error: implicit declaration of function 'find_type_devices'
/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.c:76: warning: assignment makes pointer from integer without a cast
/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.c:79: error: implicit declaration of function 'get_property'
make[2]: *** [/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod/_dev.o] Error 1
make[1]: *** [_module_/var/tmp/portage/app-emulation/mol-0.9.72/work/mol-0.9.72/obj-ppc/build/src/kmod] Error 2
nm: '../../../obj-ppc/build/src/kmod/Linux/..//mol.ko': No such file
nm: '../../../obj-ppc/build/src/kmod/Linux/..//mol.ko': No such file
checker.pl failed
rm: cannot remove `../../../obj-ppc/build/src/kmod/Linux/..//mol.ko': No such file or directory
make: *** [all-local] Error 1

I may have done something wrong, or this is a bug.
do you have any suggestions?

thanks in advance

federico

Discussion

  • Logged In: NO

    Same problem here, iBook G4, kernel 2.6.24

    System:

    gcc -v
    Using built-in specs.
    Target: powerpc-unknown-linux-gnu
    Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.2/include/g++-v4 --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --enable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
    Thread model: posix
    gcc version 4.1.2 (Gentoo 4.1.2 p1.1)