Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54542 - linux-headers-2.6.7 break xfree-4.3.0-r5
Summary: linux-headers-2.6.7 break xfree-4.3.0-r5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 54873 55114 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-20 11:23 UTC by Vincent van de Camp
Modified: 2004-07-26 20:45 UTC (History)
5 users (show)

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


Attachments
$FILESDIR/linux-headers-2.6.7-appCompat.patch.diff (linux-headers-2.6.7-appCompat.patch.diff,1.30 KB, patch)
2004-06-27 15:05 UTC, Tuan Van (RETIRED)
Details | Diff
FILESDIR/linux-headers-2.6.7-appCompat.patch.diff (linux-headers-2.6.7-appCompat.patch.diff,1.30 KB, patch)
2004-06-27 18:21 UTC, Tuan Van (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent van de Camp 2004-06-20 11:23:33 UTC
Using linux-headers-2.6.7 on an nptl cause xfree-4.3.0-r5 emerge to fail:

make[6]: Entering directory `/var/tmp/portage/xfree-4.3.0-r5/work/xc/programs/Xserver/hw/xfree86/os-support/linux'
rm -f lnx_KbdMap.o
gcc -c -mno-mmx -ansi -pedantic -Wno-return-type -w    -fno-merge-constants -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I. -I../../../../../../programs/Xserver/include            -I../../../.
./../../exports/include/X11 -I../../../../../../include/extensions -I../../../../../../programs/Xserver/hw/xfree86/os-support/shared  -I../../../../../.. -I../../../../../../exports/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L                         -
D_POSIX_SOURCE -D_XOPEN_SOURCE                          -D_BSD_SOURCE -D_SVID_SOURCE                             -D_GNU_SOURCE                           -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP       -DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension    -DPIX
PRIV -DPANORAMIX         -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                                 -DXFreeXDGA -DXvExtension                               -DXFree86LOADER  -DXFree86Server                                -DXF86VIDMODE 
-DXvMCExtension                                                                 -DSMART_SCHEDULE                                -DBUILDDEBUG -DXResExtension                            -DX_BYTE_ORDER=X_LITTLE_ENDIAN -DNDEBUG  -DFUNCPROTO=15 -DNARROWPROTO   -DHAS_
MTRR_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC   lnx_KbdMap.c
In file included from /usr/include/linux/bitops.h:4,
                 from /usr/include/asm/cpufeature.h:10,
                 from /usr/include/asm/processor.h:18,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/bitops.h:242: error: syntax error before "int"
In file included from /usr/include/asm/cpufeature.h:10,
                 from /usr/include/asm/processor.h:18,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/bitops.h:12: error: syntax error before "int"
/usr/include/linux/bitops.h:87: error: syntax error before "unsigned"
/usr/include/linux/bitops.h:96: error: syntax error before "unsigned"
/usr/include/linux/bitops.h:104: error: syntax error before "unsigned"
/usr/include/linux/bitops.h:111: error: syntax error before "unsigned"
/usr/include/linux/bitops.h:127: error: syntax error before "unsigned"
In file included from /usr/include/asm/processor.h:19,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/msr.h:27: error: syntax error before "void"
In file included from /usr/include/asm/processor.h:20,
                 from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/system.h:134: error: syntax error before "unsigned"
/usr/include/asm/system.h:166: error: syntax error before "void"
/usr/include/asm/system.h:182: error: syntax error before "void"
/usr/include/asm/system.h:190: error: syntax error before "void"
/usr/include/asm/system.h:211: error: syntax error before "unsigned"
/usr/include/asm/system.h:246: error: syntax error before "unsigned"
In file included from /usr/include/linux/prefetch.h:14,
                 from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/processor.h:130: error: syntax error before "void"
/usr/include/asm/processor.h:143: error: syntax error before "unsigned"
/usr/include/asm/processor.h:153: error: syntax error before "unsigned"
/usr/include/asm/processor.h:163: error: syntax error before "unsigned"
/usr/include/asm/processor.h:173: error: syntax error before "unsigned"
/usr/include/asm/processor.h:211: error: syntax error before "void"
/usr/include/asm/processor.h:221: error: syntax error before "void"
/usr/include/asm/processor.h:273: error: syntax error before "void"
/usr/include/asm/processor.h: In function `__monitor':
/usr/include/asm/processor.h:277: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:277: error: (Each undeclared identifier is reported only once
/usr/include/asm/processor.h:277: error: for each function it appears in.)
/usr/include/asm/processor.h:277: error: syntax error before "volatile"
/usr/include/asm/processor.h: At top level:
/usr/include/asm/processor.h:282: error: syntax error before "void"
/usr/include/asm/processor.h: In function `__mwait':
/usr/include/asm/processor.h:285: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:285: error: syntax error before "volatile"
/usr/include/asm/processor.h: At top level:
/usr/include/asm/processor.h:457: error: syntax error before "void"
/usr/include/asm/processor.h:554: error: syntax error before "void"
/usr/include/asm/processor.h:629: error: syntax error before "void"
/usr/include/asm/processor.h: In function `prefetch':
/usr/include/asm/processor.h:631: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:631: error: syntax error before "volatile"
/usr/include/asm/processor.h: At top level:
/usr/include/asm/processor.h:643: error: syntax error before "void"
/usr/include/asm/processor.h: In function `prefetchw':
/usr/include/asm/processor.h:645: error: `asm' undeclared (first use in this function)
/usr/include/asm/processor.h:645: error: syntax error before "volatile"
In file included from /usr/include/linux/list.h:5,
                 from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/prefetch.h: At top level:
/usr/include/linux/prefetch.h:58: error: syntax error before "void"
In file included from /usr/include/linux/wait.h:12,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/list.h:45: error: syntax error before "void"
/usr/include/linux/list.h:63: error: syntax error before "void"
/usr/include/linux/list.h:76: error: syntax error before "void"
/usr/include/linux/list.h:87: error: syntax error before "void"
/usr/include/linux/list.h:113: error: syntax error before "void"
/usr/include/linux/list.h:134: error: syntax error before "void"
/usr/include/linux/list.h:147: error: syntax error before "void"
/usr/include/linux/list.h:159: error: syntax error before "void"
/usr/include/linux/list.h:190: error: syntax error before "void"
/usr/include/linux/list.h:200: error: syntax error before "void"
/usr/include/linux/list.h:211: error: syntax error before "void"
/usr/include/linux/list.h:222: error: syntax error before "void"
/usr/include/linux/list.h:233: error: syntax error before "int"
/usr/include/linux/list.h:250: error: syntax error before "int"
/usr/include/linux/list.h:256: error: syntax error before "void"
/usr/include/linux/list.h:275: error: syntax error before "void"
/usr/include/linux/list.h:288: error: syntax error before "void"
/usr/include/linux/list.h:495: error: syntax error before "int"
/usr/include/linux/list.h:500: error: syntax error before "int"
/usr/include/linux/list.h:505: error: syntax error before "void"
/usr/include/linux/list.h:514: error: syntax error before "void"
/usr/include/linux/list.h:540: error: syntax error before "void"
/usr/include/linux/list.h:546: error: syntax error before "void"
/usr/include/linux/list.h:556: error: syntax error before "void"
/usr/include/linux/list.h:586: error: syntax error before "void"
/usr/include/linux/list.h:599: error: syntax error before "void"
/usr/include/linux/list.h:608: error: syntax error before "void"
In file included from /usr/include/linux/wait.h:13,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/pid.h:37: error: syntax error before '(' token
/usr/include/linux/pid.h:39: error: syntax error before '(' token
/usr/include/linux/pid.h:44: error: syntax error before '(' token
/usr/include/linux/pid.h:50: error: syntax error before '(' token
/usr/include/linux/pid.h:53: error: syntax error before '(' token
In file included from /usr/include/linux/spinlock.h:39,
                 from /usr/include/linux/wait.h:15,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/spinlock.h:72: error: syntax error before "void"
/usr/include/asm/spinlock.h:104: error: syntax error before "int"
/usr/include/asm/spinlock.h:114: error: syntax error before "void"
/usr/include/asm/spinlock.h:172: error: syntax error before "void"
/usr/include/asm/spinlock.h: In function `_raw_read_lock':
/usr/include/asm/spinlock.h:177: error: `asm' undeclared (first use in this function)
/usr/include/asm/spinlock.h:177: error: syntax error before "volatile"
/usr/include/asm/spinlock.h: At top level:
/usr/include/asm/spinlock.h:180: error: syntax error before "void"
/usr/include/asm/spinlock.h: In function `_raw_write_lock':
/usr/include/asm/spinlock.h:185: error: `asm' undeclared (first use in this function)
/usr/include/asm/spinlock.h:185: error: syntax error before "volatile"
/usr/include/asm/spinlock.h: At top level:
/usr/include/asm/spinlock.h:191: error: syntax error before "int"
In file included from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/wait.h:56: error: syntax error before "void"
/usr/include/linux/wait.h:62: error: syntax error before "void"
/usr/include/linux/wait.h:69: error: syntax error before "void"
/usr/include/linux/wait.h:77: error: syntax error before "int"
/usr/include/linux/wait.h:86: error: syntax error before "void"
/usr/include/linux/wait.h:94: error: syntax error before "void"
/usr/include/linux/wait.h:100: error: syntax error before "void"
/usr/include/linux/wait.h:206: error: syntax error before "void"
/usr/include/linux/wait.h:216: error: syntax error before "void"
make[6]: *** [lnx_KbdMap.o] Error 1
make[6]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r5/work/xc/programs/Xserver/hw/xfree86/os-support/linux'
make[5]: *** [linux] Error 2
make[5]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r5/work/xc/programs/Xserver/hw/xfree86/os-support'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r5/work/xc/programs/Xserver/hw/xfree86'
make[3]: *** [hw/xfree86] Error 2
make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r5/work/xc/programs/Xserver'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r5/work/xc/programs'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r5/work/xc'
make: *** [install] Error 2

!!! ERROR: x11-base/xfree-4.3.0-r5 failed.
!!! Function src_install, Line 632, Exitcode 2
!!! (no error message)


real    84m3.282s
user    71m6.358s
sys     11m1.832s


Reproducible: Always
Steps to Reproduce:
1. Set up a machine using nptl
2. Emerge your favorite desktop environment
3. Emerge fails on xfree-4.3.0-r5



Expected Results:  
Emerge should work

Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-tbird -mmmx -m3dnow -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-tbird -mmmx -m3dnow -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X apm avi berkdb crypt cups encode esd foomatic foomaticdb gdbm gif gnome
gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls nptl
oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang
spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-20 14:39:14 UTC
Try xorg-x11.
Comment 2 Selecter 2004-06-21 04:18:03 UTC
Don't try - xorg-x11 gives the same error. Also I can't compile cdrdao-1.1.8 with linux-headers-2.6.7
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-06-21 15:18:45 UTC
Possibly a dup of bug #54531 ?
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-21 15:36:49 UTC
Ideas?
Comment 5 Vincent van de Camp 2004-06-21 16:53:45 UTC
Reverting to linux-headers-2.6.6 works. Methinketh the key to the solution is in one of the header files that's mentioned in the error message. Apparently quite a few ebuilds broke by making linux-headers-2.6.7 the -* choice (see f.i. 54531 and 54532). Especially list.h and keyboard.h seem suspicious if you ask me but I'm not fluent enough in kernel hacking to make any further comments and/or suggestions.
Comment 6 Jerry McBride 2004-06-21 17:29:25 UTC
Same error here also. 2.6.7 headers, xfree-4.3.0-r6... bitops.h...

I'm terrible at c, but to me the bitops.h looks fine as do the others...

I really hate this... Back tracking to 2.6.6 headers work fine.

Good luck all...
Comment 7 SpanKY gentoo-dev 2004-06-21 20:52:11 UTC
this also causes twin to fail ... looking at the header, there's no reason at all for linux/keyboard.h to include linux/wait.h ...

keyboard.h is just a whole lot of defines (none of which require any external files), and the little section that is #ifdef __KERNEL__ is just a bunch of types (which also dont require any external files) ...

i'd vote for just removing this include from the file or #ifdef-ing it out via __KERNEL__
Comment 8 Tim Yamin (RETIRED) gentoo-dev 2004-06-22 10:08:16 UTC
OK. I've had a look at this and the issue is that <linux/compiler.h> got semi-carelessly butchered upstream between the 2.6.6 >> 2.6.7 releases; and an inline fix for GCC 3.x. was moved over to the GCC 4.x. file, <linux/compiler-gcc+.h> instead of being a GCC 3.1+ fix as it should be.

Please edit /usr/include/linux/compiler.h and add the following:

<snip>
#if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
#define inline          __inline__ __attribute__((always_inline))
#define __inline__      __inline__ __attribute__((always_inline))
#define __inline        __inline__ __attribute__((always_inline))
#ifndef asm
#  define asm           __asm__
#endif
#ifndef volatile
#  define volatile      __volatile__
#endif
#endif
</snip>

... after line 18 which closes the #endif from #ifdef __CHECKER__. If it still fails to compile further on then please paste in your compiler errors. Thanks!
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-23 02:52:35 UTC
*** Bug 54873 has been marked as a duplicate of this bug. ***
Comment 10 Michael Crawford (ali3nx) 2004-06-23 02:54:21 UTC
*** Bug 54873 has been marked as a duplicate of this bug. ***
Comment 11 Michael Crawford (ali3nx) 2004-06-23 03:00:47 UTC
currently performing compile testing with the header fix in place.. i'll relay success / failures after it's all done
Comment 12 Michael Crawford (ali3nx) 2004-06-23 03:43:57 UTC
I've corrected the header per the above directions and recompiled xorg once again and it worked fine. good job
Comment 13 Selecter 2004-06-23 04:06:03 UTC
Didn't work for me (xfree). Correct me if I did something wrong
/usr/include/linux/compiler.h:

#ifndef __LINUX_COMPILER_H
#define __LINUX_COMPILER_H

#ifdef __CHECKER__
# define __user         __attribute__((noderef, address_space(1)))
# define __kernel       /* default address space */
# define __safe         __attribute__((safe))
# define __force        __attribute__((force))
extern void __chk_user_ptr(void __user *);
#else
# define __user
# define __kernel
# define __safe
# define __force
# define __chk_user_ptr(x) (void)0
#endif

#ifdef __KERNEL__
#if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
#define inline          __inline__ __attribute__((always_inline))
#define __inline__      __inline__ __attribute__((always_inline))
#define __inline        __inline__ __attribute__((always_inline))
#ifndef asm
#  define asm           __asm__
#endif
#ifndef volatile
#  define volatile      __volatile__
#endif
#endif

#ifndef __ASSEMBLY__
#if __GNUC__ > 3
# include <linux/compiler-gcc+.h>       /* catch-all for GCC 4, 5, etc. */
#elif __GNUC__ == 3
# include <linux/compiler-gcc3.h>
#elif __GNUC__ == 2
# include <linux/compiler-gcc2.h>
#else
# error Sorry, your compiler is too old/not recognized.
#endif
#endif

/* Intel compiler defines __GNUC__. So we will overwrite implementations
 * coming from above header files here
 */
#ifdef __INTEL_COMPILER
# include <linux/compiler-intel.h>
#endif

/*
 * Generic compiler-dependent macros required for kernel
 * build go below this comment. Actual compiler/compiler version
 * specific implementations come from the above header files
 */

#define likely(x)       __builtin_expect(!!(x), 1)
#define unlikely(x)     __builtin_expect(!!(x), 0)

/* Optimization barrier */
#ifndef barrier
# define barrier() __memory_barrier()
#endif

#ifndef RELOC_HIDE
# define RELOC_HIDE(ptr, off)                                   \
  ({ unsigned long __ptr;                                       \
     __ptr = (unsigned long) (ptr);                             \
    (typeof(ptr)) (__ptr + (off)); })
#endif

#endif /* __KERNEL__ */

/*
 * Allow us to mark functions as 'deprecated' and have gcc emit a nice
 * warning for each use, in hopes of speeding the functions removal.
 * Usage is:
 *              int __deprecated foo(void)
 */
#ifndef __deprecated
# define __deprecated           /* unimplemented */
#endif

/*
 * Allow us to avoid 'defined but not used' warnings on functions and data,
 * as well as force them to be emitted to the assembly file.
 *
 * As of gcc 3.3, static functions that are not marked with attribute((used))
 * may be elided from the assembly file.  As of gcc 3.3, static data not so
 * marked will not be elided, but this may change in a future gcc version.
 *
 * In prior versions of gcc, such functions and data would be emitted, but
 * would be warned about except with attribute((unused)).
 */
#ifndef __attribute_used__
# define __attribute_used__     /* unimplemented */
#endif

/*
 * From the GCC manual:
 *
 * Many functions have no effects except the return value and their
 * return value depends only on the parameters and/or global
 * variables.  Such a function can be subject to common subexpression
 * elimination and loop optimization just as an arithmetic operator
 * would be.
 * [...]
 */
#ifndef __attribute_pure__
# define __attribute_pure__     /* unimplemented */
#endif

/*
 * From the GCC manual:
 *
 * Many functions do not examine any values except their arguments,
 * and have no effects except the return value.  Basically this is
 * just slightly more strict class than the `pure' attribute above,
 * since function is not allowed to read global memory.
 *
 * Note that a function that has pointer arguments and examines the
 * data pointed to must _not_ be declared `const'.  Likewise, a
 * function that calls a non-`const' function usually must not be
 * `const'.  It does not make sense for a `const' function to return
 * `void'.
 */
#ifndef __attribute_const__
# define __attribute_const__    /* unimplemented */
#endif

#ifndef noinline
#define noinline
#endif

#endif /* __LINUX_COMPILER_H */
Comment 14 Derryth 2004-06-23 07:42:20 UTC
Can confirm xorg compiles with this fix. Selecter, the line "#ifdef __KERNEL__" is supposed to be under the added code.
Comment 15 Selecter 2004-06-23 09:14:23 UTC
Confirm a successful build of xfree with Tim's patch.
Thanks, Tim! :-)
Comment 16 Tim Yamin (RETIRED) gentoo-dev 2004-06-24 02:08:05 UTC
Fixed in CVS. If you "emerge sync" in an hour and re-merge your 2.6.7 headers you'll get the patch. Thanks!
Comment 17 Vincent van de Camp 2004-06-24 06:03:32 UTC
Tim's patch didn't fix this on at least one of my machines. Other machine is still building.

I get exactly the same error that I originally posted.
Comment 18 Tim Yamin (RETIRED) gentoo-dev 2004-06-24 06:24:52 UTC
Can I please have ``md5sum /usr/include/linux/compiler.h'' on the machine on which you are getting this error?
Comment 19 Vincent van de Camp 2004-06-24 08:32:00 UTC
412fd7330b658da6262209aa791c2756  /usr/include/linux/compiler.h
Comment 20 Tim Yamin (RETIRED) gentoo-dev 2004-06-24 08:40:23 UTC
Hm; can I please have your ``emerge info''?
Comment 21 Vincent van de Camp 2004-06-24 10:07:25 UTC
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -mmmx -msse -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -mmmx -msse -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache fixpackages sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.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 alsa apm avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 22 Scott Amort 2004-06-24 18:52:49 UTC
I gave this a try, and it fixed the original errors, however I now have the following error:

lisp.c: In function 'LispMark':
lisp.c:2275: sorry, unimplemented: inlining failed in call to 'LispMark': recursive inlining
lisp.c:2288: sorry, unimplemented: called from here
lisp.c:2275: sorry, unimplemented: inlining failed in call to 'LispMark': recursive inlining
lisp.c:2332: sorry, unimplemented: called from here
lisp.c:2275: sorry, unimplemented: inlining failed in call to 'LispMark': recursive inlining
lisp.c:2340: sorry, unimplemented: called from here
lisp.c:2275: sorry, unimplemented: inlining failed in call to 'LispMark': recursive inlining
lisp.c:2350: sorry, unimplemented: called from here
lisp.c:2275: sorry, unimplemented: inlining failed in call to 'LispMark': recursive inlining
lisp.c:2392: sorry, unimplemented: called from here
lisp.c:2275: sorry, unimplemented: inlining failed in call to 'LispMark': recursive inlining
lisp.c:2413: sorry, unimplemented: called from here
make[5]: *** [lisp.o] Error 1
make[5]: Leaving directory '/home/portage/portage/xorg-x11-6.7.0-r1/work/xc/programs/xedit/lisp'
make[4]: *** [lisp] Error 2
make[4]: Leaving directory '/home/portage/portage/xorg-x11-6.7.0-r1/work/xc/programs/xedit'
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/portage/portage/xorg-x11-6.7.0-r1/work/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/portage/portage/xorg-x11-6.7.0-r1/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory '/home/portage/portage/xorg-x11-6.7.0-r1/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11-6.7.0-r1 failed.
!!! function src_compile, Line 682, Exitcode 2
!!! (no error message)

I'm using gcc-3.4.0-r6, glibc-2.3.3.20040420.
Comment 23 SpanKY gentoo-dev 2004-06-24 18:59:15 UTC
scott: perhaps your CFLAGS are too aggressive ... i cant tell because you didnt post `emerge info` :p
Comment 24 Scott Amort 2004-06-24 20:29:48 UTC
I have to copy everything by hand (no X!), so if you do need the entire emerge info, let me know.  But, for now:

CFLAGS='-O2 -march=pentium-m -pipe -fomit-frame-pointer'
Comment 25 Rav 2004-06-24 21:52:27 UTC
I kept reciveing the same bug w/ xorg when using that patch. However circomvented it by commenting out the "#if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)" when compiling xorg. 
Annoying '-ansi' flag.
Comment 26 Donnie Berkholz (RETIRED) gentoo-dev 2004-06-25 01:01:35 UTC
*** Bug 55114 has been marked as a duplicate of this bug. ***
Comment 27 Daniel Hurt 2004-06-25 02:37:30 UTC
*** Bug 55114 has been marked as a duplicate of this bug. ***
Comment 28 jason wohlgemuth 2004-06-25 12:17:05 UTC
I tried to compile Xorg-x11 r1 with 2.6.7 headers and it eventually fails saying that /usr/include/linux/autoconf.h was missing. So I copied the autoconf.h from 2.6.4 and am trying to remerge it.
Comment 29 Vincent van de Camp 2004-06-25 14:08:55 UTC
On the machine that failed the xfree build with Tim's patch, glibc hadn't yet been compiled using the 2.6.7 headers, but were still (presumably) based on 2.6.6 (or older) headers. Rebuilding glibc fixed this. Xfree-4.3.0-r5 has now succesfully been built on all my machines using linux-headers-2.6.7.
Comment 30 Tuan Van (RETIRED) gentoo-dev 2004-06-27 15:05:32 UTC
Created attachment 34304 [details, diff]
$FILESDIR/linux-headers-2.6.7-appCompat.patch.diff

Apply the attached diff to $FILESDIR/linux-headers-2.6.7-appCompat.patch allow
packages that uses linux-headers-2.6.7 with gcc-3.4.
Comment 31 Tuan Van (RETIRED) gentoo-dev 2004-06-27 18:21:47 UTC
Created attachment 34312 [details, diff]
FILESDIR/linux-headers-2.6.7-appCompat.patch.diff

sorry, typo in previous diff.
Comment 32 Tim Yamin (RETIRED) gentoo-dev 2004-06-28 09:38:04 UTC
If you happen to be having issues with GCC 3.4 and 2.6.7 headers can you please try out 2.6.7-r1 headers and tell me if they fix the issue? Thanks...
Comment 33 Scott Amort 2004-07-03 07:36:36 UTC
I gave the 2.6.7-r1 headers and gcc-3.4.0-r6 a go, and it worked fine (xorg-x11-6.7.0-r1).
Comment 34 Daniel Hurt 2004-07-05 12:38:04 UTC
Worked here on two different computers.  Thanks.
Comment 35 Donnie Berkholz (RETIRED) gentoo-dev 2004-07-26 20:45:29 UTC
Fixed.