Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58138 - x11-base/xorg-x11-6.7.0-r2 failed during compile.
Summary: x11-base/xorg-x11-6.7.0-r2 failed during compile.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-23 19:05 UTC by Daniel Weigert
Modified: 2004-07-24 13:52 UTC (History)
2 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 Daniel Weigert 2004-07-23 19:05:57 UTC
gcc -c -O3 -pipe -fomit-frame-pointer -fno-strict-aliasing -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../../../../../../programs/Xserver/mi  -I../../../../../.. -I../../../../../../exports/include   -Dlinux -D__amd64__ -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 -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH-DXFreeXDGA -DXvExtension                                -DXFree86LOADER  -DXFree86Server                                -DXF86VIDMODE                          -DXvMCExtension                          -DSMART_SCHEDULE                       -DBUILDDEBUG -DXResExtension                             -DX_BYTE_ORDER=X_LITTLE_ENDIAN                          -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((7) * 100000) + ((0) * 1000) + 0)" -D_XSERVER64 -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO   -DHAS_MTRR_SUPPORT -DUSESTDRES -DHAVE_SYSV_IPC  -DXVENDORNAME='"The X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"'  lnx_KbdMap.c
In file included 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/current.h: In function `get_current':
/usr/include/asm/current.h:11: error: syntax error before '(' token
/usr/include/asm/current.h:11: error: function definition declared `typedef'
In file included from /usr/include/linux/bitops.h:4,
                 from /usr/include/asm/system.h:7,
                 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/bitops.h: In function `typeof':
/usr/include/asm/bitops.h:270: error: syntax error before "if"
/usr/include/asm/bitops.h:297: error: parameter `set' is initialized
/usr/include/asm/bitops.h:298: error: conflicting types for `res'
/usr/include/asm/bitops.h:268: error: previous declaration of `res'
/usr/include/asm/bitops.h:298: error: parameter `bit' is initialized
/usr/include/asm/bitops.h:298: error: `offset' undeclared (first use in this function)
/usr/include/asm/bitops.h:298: error: (Each undeclared identifier is reported only once
/usr/include/asm/bitops.h:298: error: for each function it appears in.)
/usr/include/asm/bitops.h:300: error: syntax error before "if"
/usr/include/asm/bitops.h:332: error: conflicting types for `res'
/usr/include/asm/bitops.h:298: error: previous declaration of `res'
/usr/include/asm/bitops.h:335: error: syntax error before "__asm__"
/usr/include/asm/bitops.h:358: error: parameter `set' is initialized
/usr/include/asm/bitops.h:358: error: redeclaration of `set'
/usr/include/asm/bitops.h:297: error: `set' previously declared here
/usr/include/asm/bitops.h:358: error: parameter `bit' is initialized
/usr/include/asm/bitops.h:358: error: redeclaration of `bit'
/usr/include/asm/bitops.h:298: error: `bit' previously declared here
/usr/include/asm/bitops.h:358: error: conflicting types for `res'
/usr/include/asm/bitops.h:332: error: previous declaration of `res'
/usr/include/asm/bitops.h:360: error: syntax error before "if"
/usr/include/asm/bitops.h:388: error: storage class specified for parameter `set_bit_string'
/usr/include/asm/bitops.h:388: error: syntax error before '{' token
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/mmsegment.h:6: error: storage class specified for parameter `mm_segment_t'
In file included from /usr/include/asm/processor.h:21,
                 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/personality.h:11: error: storage class specified for parameter `register_exec_domain'
/usr/include/linux/personality.h:12: error: storage class specified for parameter `unregister_exec_domain'
/usr/include/linux/personality.h:13: error: storage class specified for parameter `__set_personality'
/usr/include/linux/personality.h:19: error: storage class specified for parameter `abi_defhandler_coff'
/usr/include/linux/personality.h:20: error: storage class specified for parameter `abi_defhandler_elf'
/usr/include/linux/personality.h:21: error: storage class specified for parameter `abi_defhandler_lcall7'
/usr/include/linux/personality.h:22: error: storage class specified for parameter `abi_defhandler_libcso'
/usr/include/linux/personality.h:23: error: storage class specified for parameter `abi_fake_utsname'
/usr/include/linux/personality.h:79: error: storage class specified for parameter `handler_t'
/usr/include/linux/personality.h:83: error: syntax error before "handler_t"
/usr/include/linux/personality.h:94: error: syntax error before '}' token
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:78: error: storage class specified for parameter `boot_cpu_data'
/usr/include/asm/processor.h:79: error: storage class specified for parameter `init_tss'
/usr/include/asm/processor.h:82: error: storage class specified for parameter `cpu_data'
/usr/include/asm/processor.h:89: error: storage class specified for parameter `ignore_irq13'
/usr/include/asm/processor.h:91: error: storage class specified for parameter `identify_cpu'
/usr/include/asm/processor.h:92: error: storage class specified for parameter `print_cpu_info'
/usr/include/asm/processor.h:93: error: storage class specified for parameter `dodgy_tsc'
/usr/include/asm/processor.h:137: error: storage class specified for parameter `mmu_cr4_features'
/usr/include/asm/processor.h:140: error: storage class specified for parameter `set_in_cr4'
/usr/include/asm/processor.h:140: error: syntax error before '{' token
/usr/include/asm/processor.h:201: error: syntax error before '}' token
/usr/include/asm/processor.h:204: error: field `fxsave' has incomplete type
/usr/include/asm/processor.h:288: error: storage class specified for parameter `release_thread'
/usr/include/asm/processor.h:291: error: storage class specified for parameter `prepare_to_copy'
/usr/include/asm/processor.h:296: error: storage class specified for parameter `kernel_thread'
/usr/include/asm/processor.h:304: error: storage class specified for parameter `get_wchan'
/usr/include/asm/processor.h:328: error: storage class specified for parameter `microcode_t'
/usr/include/asm/processor.h:329: error: storage class specified for parameter `microcode_header_t'
/usr/include/asm/processor.h:372: error: storage class specified for parameter `rep_nop'
/usr/include/asm/processor.h:372: error: syntax error before '{' token
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:62: error: parameter `end' is initialized
/usr/include/linux/prefetch.h:62: error: `addr' undeclared (first use in this function)
/usr/include/linux/prefetch.h:62: error: `len' undeclared (first use in this function)
/usr/include/linux/prefetch.h:64: error: syntax error before "for"
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:50: error: storage class specified for parameter `__list_add'
/usr/include/linux/list.h:50: error: syntax error before '{' token
/usr/include/linux/list.h:262: error: parameter `last' is initialized
/usr/include/linux/list.h:262: error: `list' undeclared (first use in this function)
/usr/include/linux/list.h:263: error: parameter `at' is initialized
/usr/include/linux/list.h:263: error: `head' undeclared (first use in this function)
/usr/include/linux/list.h:265: error: syntax error before "first"
/usr/include/linux/list.h:498: error: storage class specified for parameter `hlist_unhashed'
/usr/include/linux/list.h:498: error: syntax error before '{' token
/usr/include/linux/list.h:510: error: parameter `pprev' is initialized
/usr/include/linux/list.h:510: error: `n' undeclared (first use in this function)
/usr/include/linux/list.h:511: error: syntax error before '*' token
In file included from /usr/include/linux/pid.h:4,
                 from /usr/include/linux/wait.h:13,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/asm/atomic.h:52: error: syntax error before "atomic_t"
/usr/include/asm/atomic.h:53: error: storage class specified for parameter `atomic_add'
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:18: error: syntax error before "atomic_t"
/usr/include/linux/pid.h:22: error: syntax error before '}' token
/usr/include/linux/pid.h:26: error: field `pid_chain' has incomplete type
/usr/include/linux/pid.h:28: error: field `pid' has incomplete type
In file included from /usr/include/linux/spinlock.h:12,
                 from /usr/include/linux/wait.h:15,
                 from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/thread_info.h:18: error: storage class specified for parameter `do_no_restart_syscall'
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:10: error: storage class specified for parameter `printk'
/usr/include/asm/spinlock.h:21: error: storage class specified for parameter `spinlock_t'
/usr/include/asm/spinlock.h:71: error: syntax error before '*' token
/usr/include/asm/spinlock.h:72: error: storage class specified for parameter `_raw_spin_unlock'
/usr/include/asm/spinlock.h:171: error: syntax error before '*' token
/usr/include/asm/spinlock.h:172: error: storage class specified for parameter `_raw_read_lock'
In file included from /usr/include/linux/keyboard.h:4,
                 from lnx_KbdMap.c:108:
/usr/include/linux/wait.h:19: error: syntax error before '*' token
/usr/include/linux/wait.h:19: error: storage class specified for parameter `wait_queue_func_t'
/usr/include/linux/wait.h:20: error: syntax error before '*' token
/usr/include/linux/wait.h:26: error: syntax error before "wait_queue_func_t"
/usr/include/linux/wait.h:27: error: redeclaration of `task_list'
/usr/include/linux/pid.h:20: error: `task_list' previously declared here
/usr/include/linux/wait.h:28: error: syntax error before '}' token
/usr/include/linux/wait.h:31: error: syntax error before "spinlock_t"
/usr/include/linux/wait.h:32: error: redeclaration of `task_list'
/usr/include/linux/wait.h:27: error: `task_list' previously declared here
/usr/include/linux/wait.h:33: error: syntax error before '}' token
/usr/include/linux/wait.h:34: error: storage class specified for parameter `wait_queue_head_t'
/usr/include/linux/wait.h:56: error: syntax error before '*' token
/usr/include/linux/wait.h:57: error: storage class specified for parameter `init_waitqueue_head'
/usr/include/linux/wait.h:83: error: syntax error before '*' token
/usr/include/linux/wait.h:83: error: storage class specified for parameter `add_wait_queue_exclusive'
/usr/include/linux/wait.h:84: error: syntax error before '*' token
/usr/include/linux/wait.h:84: error: storage class specified for parameter `remove_wait_queue'
/usr/include/linux/wait.h:86: error: syntax error before '*' token
/usr/include/linux/wait.h:87: error: storage class specified for parameter `__add_wait_queue'
/usr/include/linux/wait.h:107: error: syntax error before '*' token
/usr/include/linux/wait.h:107: error: storage class specified for parameter `__wake_up_locked'
/usr/include/linux/wait.h:108: error: syntax error before '*' token
/usr/include/linux/wait.h:108: error: storage class specified for parameter `__wake_up_sync'
/usr/include/linux/wait.h:206: error: syntax error before '*' token
/usr/include/linux/wait.h:208: error: storage class specified for parameter `add_wait_queue_exclusive_locked'
/usr/include/linux/wait.h:228: error: syntax error before '*' token
/usr/include/linux/wait.h:228: error: storage class specified for parameter `sleep_on_timeout'
/usr/include/linux/wait.h:230: error: syntax error before '*' token
/usr/include/linux/wait.h:230: error: storage class specified for parameter `interruptible_sleep_on'
/usr/include/linux/wait.h:231: error: syntax error before '*' token
/usr/include/linux/wait.h:231: error: storage class specified for parameter `interruptible_sleep_on_timeout'
/usr/include/linux/wait.h:237: error: syntax error before '*' token
/usr/include/linux/wait.h:239: error: syntax error before '*' token
/usr/include/linux/wait.h:241: error: syntax error before '*' token
/usr/include/linux/wait.h:242: error: syntax error before '*' token
lnx_KbdMap.c:110: error: storage class specified for parameter `linux_to_x'
lnx_KbdMap.c:110: error: parameter `linux_to_x' is initialized
lnx_KbdMap.c:180: error: storage class specified for parameter `at2lnx'
lnx_KbdMap.c:180: error: parameter `at2lnx' is initialized
lnx_KbdMap.c:253: error: storage class specified for parameter `readKernelMapping'
lnx_KbdMap.c:253: error: syntax error before '{' token
lnx_KbdMap.c:258: error: storage class specified for parameter `tbl'
lnx_KbdMap.c:258: error: parameter `tbl' is initialized
lnx_KbdMap.c:275: error: syntax error before "tbl"
lnx_KbdMap.c:292: error: syntax error before "if"
lnx_KbdMap.c:540: error: parameter `special' is initialized
lnx_KbdMap.c:542: error: syntax error before "kbe"


Reproducible: Always
Steps to Reproduce:
1.emerge -UuD world
2.installed linux26-headers-2.6.7-r3
3.emerge new version of x.org

Actual Results:  
The above mentioned error trying to compile x.org

Expected Results:  
x.org should have installed cleanly

ekaterine portage # emerge info
Portage 2.0.50-r9 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.4.20040619-r0,
2.6.7-gentoo-r6)
=================================================================
System uname: 2.6.7-gentoo-r6 x86_64 5
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -fomit-frame-pointer -ffast-math "
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/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="-O3 -pipe -fomit-frame-pointer -ffast-math "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.pair.com/
http://mirror.datapipe.net/gentoo
http://mirror.clarkson.edu/pub/distributions/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm arts avi berkdb cdr crypt encode esd foomaticdb gdbm gif
gnome gpm gtk gtk2 imlib jpeg kde ldap libg++ libwww mikmod motif mozilla mpeg
ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline sdl slang spell ssl tcltk tcpd truetype xml2 xmms xv zlib"
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2004-07-23 19:11:45 UTC
Did you reemerge glibc after emerging linux26-headers?  If not, try that and try again.
Comment 2 E. Papegaaij 2004-07-24 01:58:22 UTC
I've got the same error (also on amd64). Reemerging glibc doesn't help, still the same error.
Comment 3 Daniel Weigert 2004-07-24 05:05:04 UTC
Yes, I did re-emerge glibc.  No it didn't help...

Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-07-24 06:27:27 UTC
Can you "emerge sync" and remerge linux26-headers? I just tried compiling it and it worked fine here...
Comment 5 Daniel Weigert 2004-07-24 09:24:19 UTC
Ok, tried re-emerging the headers, re-building glibc, doing an env-update and sourcing /etc/profile and then re-emerging Xorg.  No go, same error
Comment 6 Daniel Weigert 2004-07-24 09:25:56 UTC
Ok, removed /usr/portage, did an emerge sync, then re-emerged the headers, re-building glibc, doing an env-update and sourcing /etc/profile and then re-emerging Xorg.  No go, same error
Comment 7 Petter Häggholm 2004-07-24 10:15:30 UTC
Were you using linux26-headers-2.6.7? I encountered the same problem (~amd64, gcc 3.4.1, linux26-headers-2.6.7); downgrading linux26-headers to 2.6.6-r1 allowed me to compile. (I have not recompiled glibc with the older headers, nor have I actually run X.org yet -- taken my new system from bootstrapping in the last day or so, but it compiled.)
Comment 8 Daniel Weigert 2004-07-24 11:24:35 UTC
Yes I am using linux26-headers-2.6.7, with gcc 3.3.3 20040412 and am running totally ~amd64.  But that's the point isn't it? ;-)  Because the linux26-headers-2.6.7 was released in the latest portage for ~amd64 we are duty bound to find and report these "little issues".  I had a feeling that I could make things right by downgrading the linux26-headers package, but I want to have my cake and eat it too.  By finding and reprting these problems, I feel I have a fighting chance of making things better for the next person. :-)
Comment 9 Tim Yamin (RETIRED) gentoo-dev 2004-07-24 12:22:06 UTC
sed -i -e 's/typeof(/__typeof__(/' /usr/include/asm/pda.h - that seems to work here. If it doesn't, then please paste your compiler errors... Thanks!
Comment 10 Daniel Weigert 2004-07-24 13:01:32 UTC
Cool, that compiled just fine!  Thank you very much.
Comment 11 Tim Yamin (RETIRED) gentoo-dev 2004-07-24 13:42:21 UTC
linux26-headers-2.6.7-r4 is now in CVS and it should reach Portage within an hour: if you still experience this bug with those headers then please reopen this bug, pasting in the relevant compiler errors. Thanks!