Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66070 - [2.4] kernel 2.4.26-gentoo-r9 compile crashes at USB drivers
Summary: [2.4] kernel 2.4.26-gentoo-r9 compile crashes at USB drivers
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://bugzilla.kernel.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-01 16:13 UTC by Michael Elbaum
Modified: 2004-12-26 07:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
config for 2.4.25-gentoo-r9 kernel (config,27.18 KB, text/plain)
2004-10-02 13:10 UTC, Michael Elbaum
Details
config for 2.4.22-gentoo-r16 kernel (config-2.4.22-gentoo-r16,27.28 KB, text/plain)
2004-10-02 13:14 UTC, Michael Elbaum
Details
config for successful 2.4.20-gentoo-r25 compile (config-2.4.20-gentoo-r25,28.79 KB, text/plain)
2004-10-02 13:19 UTC, Michael Elbaum
Details
config for successful 2.4.20-gentoo-r25 compile (config-2.4.20-gentoo-r25,28.79 KB, text/plain)
2004-10-02 13:19 UTC, Michael Elbaum
Details
/etc/make.conf (make.conf,14.64 KB, text/plain)
2004-10-02 15:04 UTC, Michael Elbaum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Elbaum 2004-10-01 16:13:23 UTC
This looks a bit like bug #40030. I followed the clues there but it didn't help. I tried both 2.4.25-r9 and 2.4.26-r9 with the same crash:


         drivers/acpi/acpi.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o drivers/net/wan/wan.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o drivers/media/media.o \
        net/network.o \
        grsecurity/grsec.o \
        /usr/src/linux-2.4.25-gentoo-r9/arch/i386/lib/lib.a /usr/src/linux-2.4.25-gentoo-r9/lib/lib.a /usr/src/linux-2.4.25-gentoo-r9/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
drivers/usb/usbdrv.o(.text+0x137a8): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0x13820): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0x13892): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0x138df): In function `hidinput_hid_event':
: undefined reference to `input_event'
drivers/usb/usbdrv.o(.text+0x13a89): In function `hidinput_connect':
: undefined reference to `input_register_device'
drivers/usb/usbdrv.o(.text+0x13b0f): In function `hidinput_connect':
: undefined reference to `input_register_device'
drivers/usb/usbdrv.o(.text+0x13c3c): In function `hidinput_disconnect':
: undefined reference to `input_unregister_device'
drivers/usb/usbdrv.o(.text+0x137d6): In function `hidinput_hid_event':
: undefined reference to `input_event'
make: *** [vmlinux] Error 1


I normally work with a 2.6 kernel but the ieee1394 drivers don't recognize my video camera. It works on another machine with a 2.4.20 kernel.

Reproducible: Always
Steps to Reproduce:
1.make menuconfig, make dep && make bzImage modules modules_install
2.
3.



emerge info (from the running kernel, of course!):

Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -mmmx -msse -msse2
-mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d acpi alsa arts avi berkdb bidi bindist bitmap-fonts bonobo bzlib
cdr crypt cscope cups dga div4linux dvd encode esd exif fftw flac flash
foomaticdb ftp gdbm gif ginac gnome gphoto2 gpm gtk gtk2 imagemagick imlib java
jpeg ldap libg++ libwww mad mikmod ming motif mozilla mpeg ncurses nls oggvorbis
opengl oss pam pcmcia pdflib perl png pnp python quicktime radeon readline samba
sdl slang spell sse ssl svga tcltk tcpd tetex theora tiff truetype trusted
unicode usb wmf x86 xinerama xml2 xmms xprint xv xvid zeo zlib"
Comment 1 Michael Elbaum 2004-10-01 16:36:23 UTC
same thing from 2.4.22-gentoo-r16   :-(
Comment 2 Michael Elbaum 2004-10-02 02:19:14 UTC
kernel-2.4.20-gentoo-r25 DOES compile successfully! 
none of the higher ones do.

now that I recall, on my old RH9-PIII laptop installation, I never got a radhat kernel higher than 2.4.20 to recognize the USB mouse in addition to the touchpad. the compile seemed to work there, but the mouse certainly didn't. (I since switched the old one to gentoo as well.)
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-10-02 12:42:12 UTC
Please attach your kernel configuration on which the compile error occurs.
Comment 4 Michael Elbaum 2004-10-02 13:10:02 UTC
Created attachment 40943 [details]
config for 2.4.25-gentoo-r9 kernel

Sorry,	I thought I'd attached it before.
Comment 5 Michael Elbaum 2004-10-02 13:14:45 UTC
Created attachment 40944 [details]
config for 2.4.22-gentoo-r16 kernel

Here is the config for the 2.4.22-gentoo-r16 kernel, which didn't work either.
Comment 6 Michael Elbaum 2004-10-02 13:19:38 UTC
Created attachment 40945 [details]
config for successful 2.4.20-gentoo-r25 compile

Last, the config for the successful 2.4.20-gentoo-r25 kernel compile.
In fact I didn't get the USB mouse to work, but it's probably a matter of
playing with the xorg.conf file. It works in 2.6.
Comment 7 Michael Elbaum 2004-10-02 13:19:53 UTC
Created attachment 40946 [details]
config for successful 2.4.20-gentoo-r25 compile

Last, the config for the successful 2.4.20-gentoo-r25 kernel compile.
In fact I didn't get the USB mouse to work, but it's probably a matter of
playing with the xorg.conf file. It works in 2.6.
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2004-10-02 13:24:58 UTC
Try CONFIG_INPUT_EVDEV=y...
Comment 9 Michael Elbaum 2004-10-02 15:02:49 UTC
not so good...

I went to the 2.4.25 directory and remade the .config with EVDEV as module. (All the input core support was module.) I got the same crash exactly. 

Since then I've been trying all sorts of permutations, like configuring the input core built-in, but the make dep && make bzImage ends with:

gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
make: *** No rule to make target `include/linux/autoconf.h', needed by `include/config/MARKER'.  Stop.


without compiling. I tried "make mrproper" and/or "make clean" (and recopied the .config) before the make dep.

I tried emerging the latest 2.4.26-r9 and got the same crash. I'll attach my /etc/make.conf 
Could there be some incompatibilities lying around because I first built a 2.6 kernel? 
Comment 10 Michael Elbaum 2004-10-02 15:04:32 UTC
Created attachment 40955 [details]
/etc/make.conf
Comment 11 Michael Elbaum 2004-10-02 15:33:53 UTC
after looking on the forums...

"downgrading" the processor type from Pentium IV (gcc>3.1) to Pentium IV lets the compile start proper. sadly, it ends in the original set of errors.
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2004-11-19 12:26:47 UTC
Mind trying vanilla-sources?
Comment 13 Michael Elbaum 2004-11-20 19:52:54 UTC
don't mind at all. the computer is in repair at the moment so it will take a bit longer than it ought to.
Comment 14 Tim Yamin (RETIRED) gentoo-dev 2004-12-22 16:20:34 UTC
Please confirm if this issue exists with the same config on vanilla-sources - if it does, please file a bug at http://bugme.osdl.org; otherwise please reopen this bug. Thanks!
Comment 15 Michael Elbaum 2004-12-23 14:01:49 UTC
I had the same crash for vanilla-sources, 2.4.26 and 2.4.28, so I sent it to bugme as you asked (#3945). Thanks for your attention.
Comment 16 Michael Elbaum 2004-12-26 07:03:23 UTC
The issue was resolved by the kernel maintainers. I had the core input (CONFIG_INPUT) as module, but the USB_HID and USB_HID_INPUT flags as built-in. They appear on different pages in menuconfig. Once I set them all to built-in (or module) the compilation works fine.  Thanks for your follow-ups.