Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60295 - xorg-x11- radeon driver fails to build on big-endian systems
Summary: xorg-x11- radeon driver fails to build on big-endian systems
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC All
: High normal (vote)
Assignee: Gentoo X packagers
Depends on:
Blocks: 60292
  Show dependency tree
Reported: 2004-08-14 00:22 UTC by SpanKY
Modified: 2005-11-20 11:19 UTC (History)
4 users (show)

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

Patch for Bigendian Radeon compile problem (promised in Comment 2) (Radeon-BigEndian-,777 bytes, patch)
2004-08-19 13:08 UTC, Ferris McCormick (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2004-08-14 00:22:24 UTC
on my ppc, i get this failure:

gcc -O2 -pipe -mcpu=7450 -fno-strict-aliasing -fsigned-char    -fno-merge-constants -I. -I../../../../../../programs/Xserver/hw/xfree86/common -I../../../../../../programs/X
server/hw/xfree86/os-support -I../../../../../../programs/Xserver/hw/xfree86            -I../../../../../../programs/Xserver/hw/xfree86/vbe -I../../../../../../programs/Xser
ver/hw/xfree86/int10            -I../../../../../../programs/Xserver/hw/xfree86/ddc -I../../../../../../programs/Xserver/hw/xfree86/i2c            -I../../../../../../progra
ms/Xserver/hw/xfree86/rac -I../../../../../../programs/Xserver/hw/xfree86/ramdac            -I../../../../../../programs/Xserver/hw/xfree86/shadowfb -I../../../../../../prog
rams/Xserver/hw/xfree86/xaa            -I../../../../../../programs/Xserver/hw/xfree86/xf4bpp -I../../../../../../programs/Xserver/hw/xfree86/xf1bpp            -I../../../..
/../../programs/Xserver/hw/xfree86/vgahw -I../../../../../../programs/Xserver/hw/xfree86/fbdevhw            -I../../../../../../programs/Xserver/mfb -I../../../../../../programs/Xserver/fb -I../../../../../../programs/Xserver/mi            -I../../../../../../programs/Xserver/miext/shadow            -I../../../../../../programs/Xserver/render -I../../../../../../programs/Xserver/Xext -I../../../../../../programs/Xserver/include            -I../../../../../../programs/Xserver/GL/dri -I../../../../../../lib/GL/dri -I../../../../../../include               -I../../../../../../extras/drm/shared -I../../../../../../include/fonts -I../../../../../../include/extensions -I../../../../../../exports/include/X11  -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 -DRANDR       -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE -DGCCUSESGAS -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH                             -DXFreeXDGA -DXvExtension                      -DXFree86LOADER  -DXFree86Server                                 -DXF86VIDMODE  -DXvMCExtension                          -DSMART_SCHEDULE                       -DBUILDDEBUG -DXResExtension                             -DX_BYTE_ORDER=X_BIG_ENDIAN                             -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((7) * 100000) + ((99) * 1000) + 2)" -DNDEBUG   -DFUNCPROTO=15 -DNARROWPROTO  -DIN_MODULE -DXFree86Module -DAVOID_CPIO  -DAVOID_NON_PCI -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA    -c radeon_accel.c
In file included from radeon_accel.c:426:
radeon_render.c: In function `R100SetupTextureCP':
radeon_render.c:389: error: redeclaration of `RADEONMMIO'
radeon_render.c:387: error: `RADEONMMIO' previously declared here
radeon_render.c: In function `R200SetupTextureCP':
radeon_render.c:701: error: redeclaration of `RADEONMMIO'
radeon_render.c:699: error: `RADEONMMIO' previously declared here
make[7]: *** [radeon_accel.o] Error 1
make[7]: Leaving directory `/var/tmp/portage/xorg-x11-'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/var/tmp/portage/xorg-x11-'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/var/tmp/portage/xorg-x11-'
make[4]: *** [hw/xfree86] Error 2
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11- failed.
!!! Function src_compile, Line 608, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Portage 2.0.51_pre17 (default-ppc-2004.1, gcc-3.3.3, glibc-, 2.6.7-rc3 ppc 7455, altivec supported)
System uname: 2.6.7-rc3 ppc 7455, altivec supported
Gentoo Base System version 1.5.2
distcc 2.16 powerpc-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-
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
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 /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
FEATURES="ccache noauto noinfo sandbox"
USE="X alsa altivec apache2 apm cdr crypt cups curl dedicated dga directfb dvd encode esd etheral fam fbcon flac flash foomaticdb gd gd-external gdbm gif gnome-libs gps gtk gtk2 imagemagick imap imlib ipv6 joystick jpeg mad maildir mikmod mitshm mpeg mysql ncurses nls oggvorbis opengl pam pcmcia perl png pnp ppc python readline samba sdl snmp socks5 spell ssl tcltk tcpd tiff truetype unicode usb xml xml2 xmms xosd xv zlib video_cards_radeon"
Comment 1 David Holm (RETIRED) gentoo-dev 2004-08-14 05:42:44 UTC
Remove the following lines from /var/tmp/portage/xorg-x11- (line 387 and 699) and it should compile:
    unsigned char *RADEONMMIO = info->MMIO;
Comment 2 Ferris McCormick (RETIRED) gentoo-dev 2004-08-19 13:03:25 UTC
Also on sparc. Adding sparc to CC list & adding a little patch incorporating the effect
of Comment #1.  See bug 60305 for how I use it.
Comment 3 Ferris McCormick (RETIRED) gentoo-dev 2004-08-19 13:08:55 UTC
Created attachment 37757 [details, diff]
Patch for Bigendian Radeon compile problem (promised in Comment 2)

Little patch promised in Comment 2.  Gets rid of the double declaration of
when you are--
Comment 4 Adam Jackson 2004-08-21 22:50:33 UTC
reported upstream as
Comment 5 Adam Jackson 2004-08-22 10:42:52 UTC
proposed patch at

could you test please?
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2004-08-26 21:43:01 UTC
Committed upstream.
Comment 7 Ferris McCormick (RETIRED) gentoo-dev 2004-08-30 12:49:31 UTC
Radeon drivers all build on sparc64 with out of the box.  So, no longer a problem on sparc.
Comment 8 Hardave Riar (RETIRED) gentoo-dev 2004-09-01 22:12:49 UTC compiles without error on mips.
Comment 9 Luca Barbato gentoo-dev 2004-09-06 08:02:58 UTC
looks like mergefb isn't working as supposed and X -configure lead to a nice sig11 w/out apparent reason.
Comment 10 Joshua Baergen (RETIRED) gentoo-dev 2005-11-20 11:19:27 UTC
The build problem is fixed.
Comment 11 Joshua Baergen (RETIRED) gentoo-dev 2005-11-20 11:19:54 UTC
Fixed for all current versions.