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

Solved :) [was: benh kernel build error]



OK.

Kernel is ready :)))))))

After the first error in my previous message I got 2 more of them.

My solution to this was to find the kernel compile options that
I thought were related to the errors and unset them.
I'm not a coder, so this was all I could do.

Following the errors how they showed up at the end of
make-kpkg --revision [ ... ]
and the solution for it.

And sorry if my mail program wrapped some of the following lines
so ugly they perhaps might become hardly readable.

Error #1, from my previous message:
..........................................

amd76x_pm.c:687: warning: type defaults to `int' in declaration of
`module_init'
amd76x_pm.c:687: warning: parameter names (without types) in function
declaration
amd76x_pm.c:687: warning: data definition has no type or storage class
amd76x_pm.c:688: warning: type defaults to `int' in declaration of
`module_exit'
amd76x_pm.c:688: warning: parameter names (without types) in function
declaration
amd76x_pm.c:688: warning: data definition has no type or storage class
amd76x_pm.c:482: warning: `activate_amd76x_SLP' defined but not used
make[3]: *** [amd76x_pm.o] Error 1
make[3]: Leaving directory `/usr/src/benh.kernel/drivers/char'
make[2]: *** [_modsubdir_char] Error 2
make[2]: Leaving directory `/usr/src/benh.kernel/drivers'
make[1]: *** [_mod_drivers] Error 2
make[1]: Leaving directory `/usr/src/benh.kernel'
make: *** [stamp-build] Error 2
............................................

Solution:

changed in the menuconfig
---> Character devices:

 <M> AMD 76x native power management (Experimental

to

< > AMD 76x native power management (Experimental)

==========================================================
Error #2:

.......................................
scx200_gpio.c: In function `scx200_gpio_write':
/usr/src/benh.kernel/include/linux/scx200_gpio.h:74: inconsistent operand constraints in an `asm'
/usr/src/benh.kernel/include/linux/scx200_gpio.h:74: inconsistent operand constraints in an `asm'
/usr/src/benh.kernel/include/linux/scx200_gpio.h:74: inconsistent operand constraints in an `asm'
/usr/src/benh.kernel/include/linux/scx200_gpio.h:74: inconsistent operand constraints in an `asm'
make[3]: *** [scx200_gpio.o] Error 1
make[3]: Leaving directory `/usr/src/benh.kernel/drivers/char'
make[2]: *** [_modsubdir_char] Error 2
make[2]: Leaving directory `/usr/src/benh.kernel/drivers'
make[1]: *** [_mod_drivers] Error 2
make[1]: Leaving directory `/usr/src/benh.kernel'
make: *** [stamp-build] Error 2
.......................................

Solution:

changed in

---> Character devices

<M> NatSemi SCx200 GPIO Support

to

< > NatSemi SCx200 GPIO Support

=====================================

last error:
...................................
make[3]: Entering directory `/usr/src/benh.kernel/arch/ppc/lib'
make[3]: Nothing to be done for `modules_install'.
make[3]: Leaving directory `/usr/src/benh.kernel/arch/ppc/lib'
/usr/bin/make -C  arch/ppc/xmon modules_install
make[3]: Entering directory `/usr/src/benh.kernel/arch/ppc/xmon'
make[3]: Nothing to be done for `modules_install'.
make[3]: Leaving directory `/usr/src/benh.kernel/arch/ppc/xmon'
cd /usr/src/linux/debian/tmp-image/lib/modules/2.4.21-ben2; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux/debian/tmp-image -r 2.4.21-ben2; fi
depmod: *** Unresolved symbols in /usr/src/linux/debian/tmp-image/lib/modules/2.4.21-ben2/kernel/drivers/scsi/pcmcia/fdomain_cs.o
depmod:         isa_readb
depmod:         isa_memcpy_fromio
depmod: *** Unresolved symbols in /usr/src/benh.kernel/debian/tmp-image/lib/modules/2.4.21-ben2/kernel/drivers/scsi/pcmcia/fdomain_cs.o
depmod:         isa_readb
depmod:         isa_memcpy_fromio
make[2]: *** [_modinst_post] Error 1
make[2]: Leaving directory `/usr/src/benh.kernel'
make[1]: *** [real_stamp_image] Error 2
make[1]: Leaving directory `/usr/src/benh.kernel'
make: *** [kernel-image-deb] Error 2
.................................

[check this:
/drivers/scsi/fdomain.c]

Solution:

changed in

---> SCSI support

---> PCMCIA SCSI adapter support:

<M>   Future Domain PCMCIA support

to

< >   Future Domain PCMCIA support

=====================================

Hoping it helps (and let's hope there are no mistakes in this mail.
Actually it's too late at night to write more than hello and good-bye in a
mail ... :)

What really saved my ass was the fact that

a) these coders were verbose in the scripts about what the drivers were meant
   for. And
b) that the connection between the wording in the error output and the
   one in menuconfig sometimes was obvious.

Thanks to these folks for that :)

Best Regards
Wolfgang

-- 
Profile, Links:
http://profiles.yahoo.com/wolfgangpfeiffer



Reply to: