Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76714 - x11-base/xorg-x11-6.8* compile fails on xcalc.c, actions.h
Summary: x11-base/xorg-x11-6.8* compile fails on xcalc.c, actions.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 77267 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-04 19:06 UTC by Kenyon Ralph
Modified: 2005-01-09 15:44 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenyon Ralph 2005-01-04 19:06:18 UTC
The weird thing is that I already had this version of xorg-x11 installed, I'm just trying to do an emerge -e system, and the compile is failing.  Here is the output:

.....
making all in programs/xcalc...
make[4]: Entering directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc/programs/xcalc'
i686-pc-linux-gnu-gcc -O3 -march=pentium4 -pipe -fomit-frame-pointer -mno-sse2 -mno-sse3 -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w     -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                             -DFUNCPROTO=15 -DNARROWPROTO        -c -o actions.o actions.c
i686-pc-linux-gnu-gcc -O3 -march=pentium4 -pipe -fomit-frame-pointer -mno-sse2 -mno-sse3 -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w     -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                             -DFUNCPROTO=15 -DNARROWPROTO        -c -o math.omath.c
i686-pc-linux-gnu-gcc -O3 -march=pentium4 -pipe -fomit-frame-pointer -mno-sse2 -mno-sse3 -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w     -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                             -DFUNCPROTO=15 -DNARROWPROTO        -c -o xcalc.o xcalc.c
In file included from xcalc.c:56:
actions.h:43: error: parse error before "__asm__"
actions.h:74: error: `nop' undeclared here (not in a function)
actions.h:74: error: initializer element is not constant
actions.h:74: error: (near initialization for `Actions[21].proc')
actions.h:74: error: initializer element is not constant
actions.h:74: error: (near initialization for `Actions[21]')
actions.h:75: error: `off' undeclared here (not in a function)
actions.h:75: error: initializer element is not constant
actions.h:75: error: (near initialization for `Actions[22].proc')
actions.h:75: error: initializer element is not constant
actions.h:75: error: (near initialization for `Actions[22]')
actions.h:76: error: `pi' undeclared here (not in a function)
actions.h:76: error: initializer element is not constant
actions.h:76: error: (near initialization for `Actions[23].proc')
actions.h:76: error: initializer element is not constant
actions.h:76: error: (near initialization for `Actions[23]')
actions.h:77: error: `power' undeclared here (not in a function)
actions.h:77: error: initializer element is not constant
actions.h:77: error: (near initialization for `Actions[24].proc')
actions.h:77: error: initializer element is not constant
actions.h:77: error: (near initialization for `Actions[24]')
actions.h:78: error: `quit' undeclared here (not in a function)
actions.h:78: error: initializer element is not constant
actions.h:78: error: (near initialization for `Actions[25].proc')
actions.h:78: error: initializer element is not constant
actions.h:78: error: (near initialization for `Actions[25]')
actions.h:79: error: `recall' undeclared here (not in a function)
actions.h:79: error: initializer element is not constant
actions.h:79: error: (near initialization for `Actions[26].proc')
actions.h:79: error: initializer element is not constant
actions.h:79: error: (near initialization for `Actions[26]')
actions.h:80: error: `reciprocal' undeclared here (not in a function)
actions.h:80: error: initializer element is not constant
actions.h:80: error: (near initialization for `Actions[27].proc')
actions.h:80: error: initializer element is not constant
actions.h:80: error: (near initialization for `Actions[27]')
actions.h:81: error: `rightParen' undeclared here (not in a function)
actions.h:81: error: initializer element is not constant
actions.h:81: error: (near initialization for `Actions[28].proc')
actions.h:81: error: initializer element is not constant
actions.h:81: error: (near initialization for `Actions[28]')
actions.h:82: error: `roll' undeclared here (not in a function)
actions.h:82: error: initializer element is not constant
actions.h:82: error: (near initialization for `Actions[29].proc')
actions.h:82: error: initializer element is not constant
actions.h:82: error: (near initialization for `Actions[29]')
actions.h:83: error: `scientific' undeclared here (not in a function)
actions.h:83: error: initializer element is not constant
actions.h:83: error: (near initialization for `Actions[30].proc')
actions.h:83: error: initializer element is not constant
actions.h:83: error: (near initialization for `Actions[30]')
actions.h:84: error: `selection' undeclared here (not in a function)
actions.h:84: error: initializer element is not constant
actions.h:84: error: (near initialization for `Actions[31].proc')
actions.h:84: error: initializer element is not constant
actions.h:84: error: (near initialization for `Actions[31]')
actions.h:85: error: `sine' undeclared here (not in a function)
actions.h:85: error: initializer element is not constant
actions.h:85: error: (near initialization for `Actions[32].proc')
actions.h:85: error: initializer element is not constant
actions.h:85: error: (near initialization for `Actions[32]')
actions.h:86: error: `square' undeclared here (not in a function)
actions.h:86: error: initializer element is not constant
actions.h:86: error: (near initialization for `Actions[33].proc')
actions.h:86: error: initializer element is not constant
actions.h:86: error: (near initialization for `Actions[33]')
actions.h:87: error: `squareRoot' undeclared here (not in a function)
actions.h:87: error: initializer element is not constant
actions.h:87: error: (near initialization for `Actions[34].proc')
actions.h:87: error: initializer element is not constant
actions.h:87: error: (near initialization for `Actions[34]')
actions.h:88: error: `store' undeclared here (not in a function)
actions.h:88: error: initializer element is not constant
actions.h:88: error: (near initialization for `Actions[35].proc')
actions.h:88: error: initializer element is not constant
actions.h:88: error: (near initialization for `Actions[35]')
actions.h:89: error: `subtract' undeclared here (not in a function)
actions.h:89: error: initializer element is not constant
actions.h:89: error: (near initialization for `Actions[36].proc')
actions.h:89: error: initializer element is not constant
actions.h:89: error: (near initialization for `Actions[36]')
actions.h:90: error: `sum' undeclared here (not in a function)
actions.h:90: error: initializer element is not constant
actions.h:90: error: (near initialization for `Actions[37].proc')
actions.h:90: error: initializer element is not constant
actions.h:90: error: (near initialization for `Actions[37]')
actions.h:91: error: `tangent' undeclared here (not in a function)
actions.h:91: error: initializer element is not constant
actions.h:91: error: (near initialization for `Actions[38].proc')
actions.h:91: error: initializer element is not constant
actions.h:91: error: (near initialization for `Actions[38]')
actions.h:92: error: `tenpower' undeclared here (not in a function)
actions.h:92: error: initializer element is not constant
actions.h:92: error: (near initialization for `Actions[39].proc')
actions.h:92: error: initializer element is not constant
actions.h:92: error: (near initialization for `Actions[39]')
actions.h:93: error: `XexchangeY' undeclared here (not in a function)
actions.h:93: error: initializer element is not constant
actions.h:93: error: (near initialization for `Actions[40].proc')
actions.h:93: error: initializer element is not constant
actions.h:93: error: (near initialization for `Actions[40]')
make[4]: *** [xcalc.o] Error 1
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc/programs/xcalc'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.1.901/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11-6.8.1.901 failed.
!!! Function src_compile, Line 271, Exitcode 2
!!! make World failed


My emerge --info:
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-cko2 i686)
=================================================================
System uname: 2.6.10-cko2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan  4 2005, 15:44:34)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.8.5-r2, 1.6.3, 1.9.3, 1.5, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://gentoo.mirrors.pair.com/ http://chod.cwru.edu/gentoo http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acl alsa apm audiofile avi berkdb bitmap-fonts caps cdparanoia cdr crypt cups dvd encode fam flac font-server foomaticdb fortran gdbm gif gnome gphoto2 gpm gtk gtk2 guile imlib ipv6 java jikes jpeg junit kde libwww mad mikmod mmx mng mozilla mpeg ncurses nls nptl nvidia offensive oggvorbis opengl pam pdflib perl pic png ppds python qt quicktime readline real samba sdl slang sndfile spell sse ssl svg svga tcpd theora tiff truetypeunicode usb wmf xine xml xml2 xmms xprint xv xvid xvmc zlib"
Comment 1 And Nall 2005-01-05 04:51:19 UTC
This is also occuring on 6.8.0-r3 and earlier too.

It seems to me like gcc is choking on the "nop()" on line 43.
Adding an '#undef nop' before line 38 seems to 'fix' the problem - but there is probally a better solution.
Comment 2 And Nall 2005-01-05 05:08:25 UTC
I should of mentioned WHERE - in actions.h
Comment 3 Kenyon Ralph 2005-01-05 07:52:05 UTC
I've tried rm -rf /var/tmp/portage/xorg*, rm -rf /usr/portage/distfiles/xorg*, setting no MAKEOPTS, changing CFLAGS from -O3 to -O2, and I still get the same error every time.  Very weird, considering I already have this version installed, so it must have compiled successfully before.  At least it's good to see I'm not the only one that has the problem.  I can find nothing in the forums or on google about this.
Comment 4 Slaterson 2005-01-05 10:22:29 UTC
I did a brand new install from stage 1 yesterday (1/4).  When trying to emerge xorg today to finish off my installation, I get this exact error.
Comment 5 Seth Merriman 2005-01-05 10:32:18 UTC
Same problem here with stage 1 install.  linux26_headers and nptl
Comment 6 unl 2005-01-05 11:50:12 UTC
I have execly the same problem.
I have emerged xorg-x11 today at 3:00 am, but glibc havent emerged. at 9 am i have found a bugtruck for glibc, so a did emerge sync, reemerged linux26-headers, then glibc, and then i started to emerge -e world again. Now xorg-x11 doesnt want to compile, also proftpd xinetd and mplayer doesnt want to compile , dunno why :( But it can be something with linux26-headers problems :/
Comment 7 Slaterson 2005-01-05 12:12:23 UTC
i have a the same problem with xinetd also (posted above in comment #6).
Comment 8 Kenyon Ralph 2005-01-05 13:11:56 UTC
Upgrading to critical since there are other bugs that are critical or even blocker that don't sound *that* important...  Also changed summary to reflect that multiple versions are affected by this.
Comment 9 James Kirkham 2005-01-05 13:25:47 UTC
I am also having the same problems on a clean install I did yesterday. Using linux26-headers and nptl.

Emerge Info:
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
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="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://212.219.56.162/sites/www.ibiblio.org/gentoo/ ftp://212.219.56.131/sites/www.ibiblio.org/gentoo/ ftp://212.219.56.162/sites/www.ibiblio.org/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X acl apm arts avi berkdb bitmap-fonts crypt cups encode foomaticdb fortran gdbm gif gnome gtk gtk2 ipv6 jpeg kde libwww mad mikmod mmx motif mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell sse ssl svga tcpd truetype xml2 xmms xv zlib"
Comment 10 James Kirkham 2005-01-05 14:57:31 UTC
Ok you can fix this by re-emerging linux26-headers then glibc.  Emerging x11-xorg should compile fine after... Have fun :P
Comment 11 Slaterson 2005-01-05 14:58:19 UTC
i was able to emerge xorg-x11 after a re-sync of portage (linux26-headers patch(es) were updated today), re-emerging linux26-headers and glibc.  looks like this one has been fixed, at least temporarily.
Comment 12 Kenyon Ralph 2005-01-05 15:05:38 UTC
Great, worked for me too, so I'm marking this as fixed.
Comment 13 Andy Dalton 2005-01-05 20:08:11 UTC
Me too, but it seems odd that the linux26-headers were updated without a version bump.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-09 15:44:51 UTC
*** Bug 77267 has been marked as a duplicate of this bug. ***