I have a 2.6.7-rc2 built with gcc 3.3.? (and all previous kernel) which can perfectly read my partition table. Then Cooker updated gcc (now 3.4.1) and all newer kernels didn't read my partition table on usb memory stick... First I though about the change introduced in 2.6.7-rc3, and then I rebuilt 2.6.7-rc2 with gcc 3.4.1 and I can't read my partition table... I repported it here : http://lkml.org/lkml/2004/6/12/29 Unfortunately, Mandrake Cooker didn't have gcc 3.3.? anymore... Any idea what's should be done ? Thank you very much and have a great day :-)
You know you can download, build, and install GCC 3.3.4, you know? Try that if that does not work, then this is not a GCC bug. Also try GCC 3.2.3 while you are at it.
What could be the gain of recompiling with an older gcc as I already know it works with the old release ? I am sorry, I need some more explanation...
Because it sounds like it is a bug in the kernel rather than gcc and you did not provide a testcase so there is nothing we can do.
I am sorry to ask for more info, I explained that kernel I compiled with gcc prior than 3.4.x works perfectly, and that the one with 3.4.0 and 3.4.1 don't work, then what's the point in compiling again with 3.3.4 as I already know it works ? How should I give a testcase for this ? Just take an Apacer Handy Steno 512Mb memory stick, and try to plug it in a 2.6.6 kernel : compiled with gcc 3.3.4 every thing works perfectly. With gcc 3.4.1 : usb 1-2: new high speed USB device using address 3 scsi3 : SCSI emulation for USB Mass Storage devices Vendor: USB Model: Flash Drive Rev: 1.12 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sdg: 1015805 512-byte hdwr sectors (520 MB) sdg: assuming Write Enabled sdg: assuming drive cache: write through sdg: sdg1 sdg2 sdg3 sdg4 Attached scsi removable disk sdg at scsi3, channel 0, id 0, lun 0 Attached scsi generic sg9 at scsi3, channel 0, id 0, lun 0, type 0 udev[3817]: creating device node '/udev/sg9' scsi.agent[3741]: disk at /devices/pci0000:00/0000:00:1d.7/usb1/1-2/1-2:1.0/h ost3/3:0:0:0 creating device node '/udev/sdg2' creating device node '/udev/sdg4' udev[3759]: creating device node '/udev/sdg1' udev[3753]: creating device node '/udev/sdg' udev[3771]: creating device node '/udev/sdg3' kernel: FAT: unable to read boot sector And of course I can't mount it (sdg4). With 2.6.7-rc2 and gcc 3.3.4 everything is perfect, but compiled with 3.4.1 the partition isn't read at all by the kernel (as reported under http://lkml.org/lkml/2004/6/12/29 ). Please forgive my difficulty in understanding what I should do, I really will do everything needed as soon as I understand what I should do :-)
What we need is documented in http://gcc.gnu.org/bugs.html
Created attachment 6735 [details] 2.6.8-rc1 config file Reading specs from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/specs Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --disable-libunwind-exceptions --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib Thread model: posix gcc version 3.4.1 (Mandrakelinux (Cooker) 3.4.1-1mdk) My computer has an MSI-Max2-BLR motherboard with USB2,P4 under a Mandrake Cooker (up to date) with the following locale: LANG=en_GB.UTF-8 LC_CTYPE=en_GB.UTF-8 LC_NUMERIC=fr_CH.UTF-8 LC_TIME=en_GB.UTF-8 LC_COLLATE=en_GB.UTF-8 LC_MONETARY=fr_CH.UTF-8 LC_MESSAGES=en_GB.UTF-8 LC_PAPER=fr_CH.UTF-8 LC_NAME=fr_CH.UTF-8 LC_ADDRESS=fr_CH.UTF-8 LC_TELEPHONE=fr_CH.UTF-8 LC_MEASUREMENT=fr_CH.UTF-8 LC_IDENTIFICATION=en_GB.UTF-8 And lspci -v gives : 00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 11) Flags: bus master, fast devsel, latency 0 Memory at e0000000 (32-bit, prefetchable) [size=64M] Capabilities: [e4] #09 [a104] Capabilities: [a0] AGP version 2.0 00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 11) (prog-if 00 [Normal decode]) Flags: bus master, 66Mhz, fast devsel, latency 32 Bus: primary=00, secondary=01, subordinate=02, sec-latency=32 Memory behind bridge: dec00000-dfdfffff Prefetchable memory behind bridge: da800000-de9fffff 00:1d.0 USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 01) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd.: Unknown device 3982 Flags: bus master, medium devsel, latency 0, IRQ 16 I/O ports at d400 [size=32] 00:1d.1 USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 01) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd.: Unknown device 3982 Flags: bus master, medium devsel, latency 0, IRQ 19 I/O ports at d800 [size=32] 00:1d.2 USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 01) (prog-if 00 [UHCI]) Subsystem: Micro-Star International Co., Ltd.: Unknown device 3982 Flags: bus master, medium devsel, latency 0, IRQ 18 I/O ports at dc00 [size=32] 00:1d.7 USB Controller: Intel Corp. 82801DB USB2 (rev 01) (prog-if 20 [EHCI]) Subsystem: Micro-Star International Co., Ltd. 845PE Max (MS-6580) Onboard USB EHCI Controller Flags: bus master, medium devsel, latency 0, IRQ 23 Memory at dfffbc00 (32-bit, non-prefetchable) [size=1K] Capabilities: [50] Power Management version 2 Capabilities: [58] #0a [2080] 00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev 81) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=03, subordinate=03, sec-latency=32 I/O behind bridge: 0000a000-0000cfff Memory behind bridge: dfe00000-dfefffff Prefetchable memory behind bridge: dea00000-deafffff 00:1f.0 ISA bridge: Intel Corp. 82801DB LPC Interface Controller (rev 01) Flags: bus master, medium devsel, latency 0 00:1f.1 IDE interface: Intel Corp. 82801DB Ultra ATA Storage Controller (rev 01) (prog-if 8a [Master SecP PriP]) Subsystem: Micro-Star International Co., Ltd.: Unknown device 3982 Flags: bus master, medium devsel, latency 0, IRQ 18 I/O ports at <unassigned> I/O ports at <unassigned> I/O ports at <unassigned> I/O ports at <unassigned> I/O ports at fc00 [size=16] Memory at 40000000 (32-bit, non-prefetchable) [size=1K] 00:1f.3 SMBus: Intel Corp. 82801DB/DBM SMBus Controller (rev 01) Subsystem: Micro-Star International Co., Ltd.: Unknown device 3982 Flags: medium devsel, IRQ 18 I/O ports at 0c00 [size=32] 01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G550 AGP (rev 01) (prog-if 00 [VGA]) Subsystem: Matrox Graphics, Inc. Millennium G550 Dual Head DDR 32Mb Flags: bus master, medium devsel, latency 32, IRQ 16 Memory at dc000000 (32-bit, prefetchable) [size=32M] Memory at dfafc000 (32-bit, non-prefetchable) [size=16K] Memory at df000000 (32-bit, non-prefetchable) [size=8M] Expansion ROM at dfac0000 [disabled] [size=128K] Capabilities: [dc] Power Management version 2 Capabilities: [f0] AGP version 2.0 03:00.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 06) Subsystem: Creative Labs CT4832 SBLive! Value Flags: bus master, medium devsel, latency 32, IRQ 16 I/O ports at b400 [size=32] Capabilities: [dc] Power Management version 1 03:00.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 06) Subsystem: Creative Labs Gameport Joystick Flags: bus master, medium devsel, latency 32 I/O ports at cc00 [size=8] Capabilities: [dc] Power Management version 1 03:01.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01) Subsystem: Technotrend Systemtechnik GmbH: Unknown device 0000 Flags: bus master, medium devsel, latency 32, IRQ 17 Memory at dfefbe00 (32-bit, non-prefetchable) [size=512] 03:02.0 SCSI storage controller: Adaptec AIC-7892A U160/m (rev 02) Subsystem: Adaptec 29160LP Low Profile Ultra160 SCSI Controller Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 18 BIST result: 00 I/O ports at b000 [disabled] [size=256] Memory at dfefa000 (64-bit, non-prefetchable) [size=4K] Expansion ROM at dfec0000 [disabled] [size=128K] Capabilities: [dc] Power Management version 2 03:03.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U Flags: bus master, medium devsel, latency 32, IRQ 19 I/O ports at ac00 [disabled] [size=256] Memory at dfef9000 (32-bit, non-prefetchable) [size=4K] Expansion ROM at dfee0000 [disabled] [size=64K] 03:04.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01) Subsystem: Technotrend Systemtechnik GmbH: Unknown device 0000 Flags: bus master, medium devsel, latency 32, IRQ 16 Memory at dfefbc00 (32-bit, non-prefetchable) [size=512] 03:08.0 Ethernet controller: Intel Corp. 82801BD PRO/100 VE (CNR) Ethernet Controller (rev 81) Subsystem: Intel Corp.: Unknown device 1039 Flags: bus master, medium devsel, latency 32, IRQ 20 Memory at dfef8000 (32-bit, non-prefetchable) [size=4K] I/O ports at a800 [size=64] Capabilities: [dc] Power Management version 2 03:0e.0 RAID bus controller: Promise Technology, Inc. PDC20276 IDE (rev 01) (prog-if 85) Subsystem: Promise Technology, Inc.: Unknown device 1275 Flags: bus master, 66Mhz, slow devsel, latency 32, IRQ 22 I/O ports at c800 [size=8] I/O ports at c400 [size=4] I/O ports at c000 [size=8] I/O ports at bc00 [size=4] I/O ports at b800 [size=16] Memory at dfefc000 (32-bit, non-prefetchable) [size=16K] Capabilities: [60] Power Management version 1 I don't know what other info are needed ?
With 2.6.8-rc1 and gcc-3.4.1 I cannot read the partition table BUT I can mount my device with mount -t vfat /udev/sdg /mnt/usb I have lost the abbility to read the partition table, but I can use it, then I don't really care about the partition table :-)
Still no valid testcase in 3 months so closing.