Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62299 - xorg-x11 + linux26-headers triggers build failure
Summary: xorg-x11 + linux26-headers triggers build failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: HPPA All
: High major (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-30 14:57 UTC by SpanKY
Modified: 2004-09-24 11:59 UTC (History)
1 user (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 SpanKY gentoo-dev 2004-08-30 14:57:14 UTC
your account is still active tim on my hppa box ;)
the root account has a session running with this error showing

gcc -c -pipe -O2 -march=1.0 -fno-strict-aliasing -ansi -pedantic -Wno-return-type -w     -I../../../../../../programs/Xs
erver/hw/xfree86/common -I../../../../../../programs/Xserver/hw/xfree86/os-support -I. -I../../../../../../programs/Xser
ver/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__hppa__ -D_POSIX_C_SOURCE=199309L                                -D_POS
IX_SOURCE -D_XOPEN_SOURCE           -D_BSD_SOURCE -D_SVID_SOURCE                              -D_GNU_SOURCE             
        -DSHAPE -DXINPUT -DXKB -DLBX -DXAPPGROUP        -DXCSECURITY -DTOGCUP   -DXF86BIGFONT -DDPMSExtension       -DPI
XPRIV -DPANORAMIX   -DRENDER -DRANDR -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                            -D
XFreeXDGA -DXvExtension                  -DXFree86Server                                 -DXF86VIDMODE                  
         -DXvMCExtension                            -DSMART_SCHEDULE                                -DBUILDDEBUG -DXResE
xtension                               -DX_BYTE_ORDER=X_BIG_ENDIAN       -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((7
) * 100000) + ((0) * 1000) + 0)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO    -DUSESTDRES -DHAVE_SYSV_IPC  -DXVENDORNAME='
"The X.Org Foundation"' -DXVENDORNAMESHORT='"X.Org"'  lnx_KbdMap.c
In file included from /usr/include/asm/hardware.h:4,
                 from /usr/include/asm/processor.h:16,
                 from /usr/include/linux/prefetch.h:15,
                 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/pdc.h:522: error: parse error before "__u64"
/usr/include/asm/pdc.h:538: error: parse error before "__u64"
/usr/include/asm/pdc.h:539: error: ISO C forbids data definition with no type or storage class
/usr/include/asm/pdc.h:540: error: parse error before "sr"
/usr/include/asm/pdc.h:540: error: ISO C forbids data definition with no type or storage class
<snip>
make[7]: *** [lnx_KbdMap.o] Error 1
make[7]: Leaving directory `/var/tmp/portage/xorg-x11-6.7.0-r2/work/xc/programs/Xserver/hw/xfree86/os-support/linux'

Portage 2.0.51_pre20 (default-hppa-2004.0, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.8.1-pa4 parisc PA8500 (PCX-W))
=================================================================
System uname: 2.6.8.1-pa4 parisc PA8500 (PCX-W)
Gentoo Base System version 1.5.3
distcc 2.17 hppa2.0-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.91.0.2
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="hppa ~hppa"    
AUTOCLEAN="yes"                 
CFLAGS="-pipe -O2 -march=2.0 -mschedule=8000 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
CHOST="hppa2.0-unknown-linux-gnu"
COMPILER=""                     
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/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O2 -march=2.0 -mschedule=8000 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache noauto nodoc noinfo sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j5"                  
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="hppa X aalib apache2 crypt cups dedicated encode esd flash foomaticdb gd gd-external gdbm ggi gif gpm gtk gtk2 imap imlib ipv6 joystick jpeg libwww mad maildir mikmod mpeg mysql ncurses offensive oggvorbis opengl oss pam pdflib perl pic plotutils png pnp python qt qtmt quicktime readline samba sasl sdl slp snmp socks5 spell ssl tcltk tcpd tiff truetype xml xml2 xmms xv zlib"
Comment 1 Guy Martin (RETIRED) gentoo-dev 2004-09-23 10:28:56 UTC
I tracked down the problem but I'm not sure what's the cleaner fix.

problem :

in asm/types.h :

#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif

and Xorg compiles with -ansi -pedantic

possible solutions :
1) remove the #if clause but since long long is not part of the ansi standard, it may not be the best solution. However, gcc would only ouput a warning.
2) since only asm/pdc.h uses __u64, we can #ifdef __STRICT_ANSI__ the #include <asm/pdc.h> in asm/hardware.h. That makes pdc headers unavailable when using the ansi std but I don't think any apps need this btw.
3) redefine __u64 to something compatible with the ansi std but I can't see what


Comments ?
Comment 2 SpanKY gentoo-dev 2004-09-23 16:40:34 UTC
xorg-x11 built fine on my box after gmsoft updated the headers with those patches
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-09-24 08:38:39 UTC
Well, I have no objection to removing "&& !defined(__STRICT_ANSI__)" so I'll sort this out in the headers shortly.
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2004-09-24 11:59:09 UTC
Ok, fix is now in CVS; please reopen this bug if problems persist. Thanks!