Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7237 - GCC 3.x fails to build kernel's O_DIRECT correctly on i586 platforms
Summary: GCC 3.x fails to build kernel's O_DIRECT correctly on i586 platforms
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-29 17:10 UTC by Michael Best
Modified: 2003-04-15 18:15 UTC (History)
1 user (show)

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


Attachments
odirect.c (odirect.c,1.74 KB, text/plain)
2002-08-29 17:11 UTC, Michael Best
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Best 2002-08-29 17:10:07 UTC
Tested on 

GCC 3.1.1, GCC 3.2
Pentium, Pentium MMX, K6

The kernel will compile correctly with GCC 2.95.4

The test program was compiled with:
gcc -g -O2 -pipe odirect.c -o odirect

And requires a partition with 512M+ of free space.

This apparently does not affect all kernels, but does affect the Vanilla kernel,
and the XFS CVS Kernel.  The gentoo-2.4.19-r7 kernel did not seems to be
affected on my machine, which may be due to some patching of O_DIRECT in the -aa
or other kernel trees.
Comment 1 Michael Best 2002-08-29 17:11:02 UTC
Created attachment 3544 [details]
odirect.c
Comment 2 Michael Best 2002-08-29 20:31:51 UTC
This affects XFS, ext3 and all other kernel systems using O_DIRECT.  XFS is hit
particularly bad because of the it's xfs_fsr defragmentation utility.
Comment 3 Brandon Low (RETIRED) gentoo-dev 2002-09-06 18:26:25 UTC
hrm... can you check this out with xfs-sources-2.4.19-r1 and
gentoo-sources-2.4.19-r9 please?
Comment 4 Michael Best 2002-09-09 00:02:40 UTC
O_DIRECT definiately doesn't work with the 3.2 GCC compiled xfs-sources-2.4.19-r1
kernel.

The gentoo-sources-2.4.19-r9 doesn't contain XFS support which is required for
my i586 Box.
Comment 5 Brandon Low (RETIRED) gentoo-dev 2002-10-21 18:21:38 UTC
IIRC the fixes for O_DIRECT have been merged into mainstream from -ac now... 
next kernel should fixor this.
Comment 6 Andrew Baudouin 2003-02-15 23:13:11 UTC
Works fine here on 

root@azeroth andrew # cat /proc/version
Linux version 2.4.20-pre10-mjc2 (root@cdimage) (gcc version 3.2.1) #1 Sat Jan 18 15:24:34 CST 2003

P5/166Mhz MMX machine running ReiserFS.



Comment 7 Jay Pfeifer (RETIRED) gentoo-dev 2003-04-15 18:15:08 UTC
this appears to be fixed in the 2.4.20 based xfs-sources/gentoo-sources. 
 
closing. 
 
Jay