gcc 2.95.3, portage 2.0.43 This is the otput: gcc -c -O2 -pipe -mcpu=750 -fsigned-char -I. -I../include -I../../../exports/include/X11 -I../../../include/extensions -I../../../include/fonts -I../mi -I../render -I../../../programs/Xserver/hw/xfree86/common -I../../../include/fonts -I../../.. -I../../../exports/include -Dlinux -D__powerpc__ -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 -DPIXPRIV -DPANORAMIX -DRENDER -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA -DXvExtension -DXFree86LOADER -DXFree86Server -DXF86VIDMODE -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG -DXResExtension -DX_BYTE_ORDER=X_BIG_ENDIAN -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DMITMISC -DXTEST -DXTRAP -DXSYNC -DXCMISC -DXRECORD -DMITSHM -DBIGREQS -DXF86VIDMODE -DXF86MISC -DDBE -DDPMSExtension -DEVI -DSCREENSAVER -DXV -DXVMC -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA -DFONTCACHE -DRES xf86vmode.c In file included from ../../../programs/Xserver/hw/xfree86/common/xf86.h:17, from xf86vmode.c:47: ../../../programs/Xserver/hw/xfree86/common/xf86str.h:621: parse error before `.' ../../../programs/Xserver/hw/xfree86/common/xf86str.h:1010: warning: This file contains more `}'s than `{'s. In file included from xf86vmode.c:47: ../../../programs/Xserver/hw/xfree86/common/xf86.h:398: warning: This file contains more `}'s than `{'s. make[4]: *** [xf86vmode.o] Error 1 make[4]: Leaving directory `/var/tmp/portage/xfree-4.2.1-r1/work/xc/programs/Xserver/Xext' make[3]: *** [Xext] Error 2 make[3]: Leaving directory `/var/tmp/portage/xfree-4.2.1-r1/work/xc/programs/Xserver' make[2]: *** [install] Error 2 make[2]: Leaving directory `/var/tmp/portage/xfree-4.2.1-r1/work/xc/programs' make[1]: *** [install] Error 2 make[1]: Leaving directory `/var/tmp/portage/xfree-4.2.1-r1/work/xc' make: *** [install] Error 2
trying this on my setup at work right now, with gcc 3.2 (I have no more 2.95.3 boxes)
emerge info output: Portage 2.0.43 (default-ppc-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r7) ================================================================= System uname: 2.4.19-r6 ppc USE="png ppc gnome-libs arts aalib guile scanner oss slang readline gpm berkdb gdbm tcpd pam libwww ssl mitshm perl python esd gif imlib sdl oggvorbis gnome gtk X qt kde motif mozilla truetype vte -alsa bonobo cdr crypth dga dvd evo fbcon flash gb gphoto2 gtkhtml imap java jpeg mpeg nls opengl -pcmcia pdflib quicktime wmf xml xml2 xv zlib doc spell" ARCH="ppc" COMPILER="" CHOST="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" CXXFLAGS="-O2 -pipe -mcpu=750 -mpowerpc-gfxopt -mmultiple -mstring" ACCEPT_KEYWORDS="ppc ~ppc" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" MAKEOPTS="-j2" JDK_HOME="/opt/blackdown-jdk-1.3.1" JAVA_HOME="/opt/blackdown-jdk-1.3.1" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
I am getting a failed patch ATM, can't test. files/4.2.1-r1/108_all_4.2.1-xterm-enable-backspace.patch: no such file or directory ...there is not a 4.2.1-r1 folder, maybe something you are working on azarah?
okie I have that folder now, my bad (stupid cvsrc went missing it seems), testing now
It builds fine on x86 with gcc-2.95.3, so its possible that this is a ppc only problem, or fs corruption? You dont maybe have htree for ext3 enabled, as I ran into some bad mojo myself with HTREE ...
Is the HTREE patch in ppc-sources (2.4.19-r6)? I run a 2.4.19-r6 kernel.
Next is line 618-624 of ${S}/programs/Xserver/hw/xfree86/common/xf86.h : -------------------------------------------------- /* resource record */ typedef struct _resRec *resPtr; typedef struct _resRec { resRange val; int entityIndex; /* who owns the resource */ resPtr next; } resRec; --------------------------------------------------- There is no '.', which wants to add to my suspicion of either data corruption, or a bad gcc bug. Can you attach you copy of: /var/tmp/portage/xfree-4.2.1-r1/work/xc/programs/Xserver/hw/xfree86/common/xf86.h Thanks.
The parse error comes from this group it seems... xc/programs/Xserver/hw/xfree86/common/xf86str.h lines 618-624: define RANGE(r,u,v,t,d) {\ (r).a = (u);\ (r).b = (v);\ (r).type = (t);\ } #endif I've deleted the spaces after line 620 as per azarahs.request, let you know how it goes
Created attachment 5392 [details] xf86.h
the previous ebuild works fine, the only patch that touches that file is 061_ppc_4.2.0-pci-domains-from-cvs.patch which isn't in xfree-4.2.1 which worked fine here, so this *must* be the problem.
Ok, added 110_all_4.2.1-xf86_h-missing-bracket-fix.patch to fix this, thanks guys !
Yep the missing } worked ok, closing this bug
*** Bug 10340 has been marked as a duplicate of this bug. ***
Similar file (spaces removed) worked here too. Thanks all!