Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78795 - x11-drm-20040827-r1 failed to build (2.4.28-gentoo-r5, radeon)
Summary: x11-drm-20040827-r1 failed to build (2.4.28-gentoo-r5, radeon)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-20 04:14 UTC by Ian Abbott
Modified: 2006-08-21 18:16 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 Ian Abbott 2005-01-20 04:14:21 UTC
When I try and emerge x11-drm for a 2.4.28-gentoo-r5 kernel with VIDEO_CARDS=radeon, it fails with compiler errors while compiling radeon_drv.c.

It looks like the compiler is seeing the __devexit_p macro as a function as it complains about non-constant initializers.

I have the same problem with the 2.4.28-gentoo-r2 kernel and the x11-drm-2004-08-27 (not -r1) ebuild.

Reproducible: Always
Steps to Reproduce:
1. Point /usr/src/linux to a suitably configured 2.4.28-gentoo-r5 kernel
2. VIDEO_CARDS=radeon emerge x11-drm

Actual Results:  
>>> emerge (1 of 1) x11-base/x11-drm-20040827-r1 to /
>>> md5 src_uri ;-) x11-drm-20040827-gentoo-0.2.tar.bz2
>>> md5 src_uri ;-) linux-drm-20040827-kernelsource.tar.bz2
QA Notice: USE Flag 'video_cards_ffb' not in IUSE for x11-base/x11-drm-20040827-r1
 * Using koutput kernels is now deprecated. If you use a koutput kernel, please
 * switch to kernel >=2.6.6 with a normal build system.
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.4.28-gentoo-r5
 * Using KV_OBJ=o
QA Notice: USE Flag 'video_cards_matrox' not in IUSE for
x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_3dfx' not in IUSE for x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_rage128' not in IUSE for
x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_radeon' not in IUSE for
x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_i810' not in IUSE for x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_i830' not in IUSE for x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_i915' not in IUSE for x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_mach64' not in IUSE for
x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_savage' not in IUSE for
x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_sis' not in IUSE for x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_via' not in IUSE for x11-base/x11-drm-20040827-r1
QA Notice: USE Flag 'video_cards_ffb' not in IUSE for x11-base/x11-drm-20040827-r1
>>> Unpacking source...
>>> Unpacking linux-drm-20040827-kernelsource.tar.bz2 to
/var/tmp/portage/x11-drm-20040827-r1/work
>>> Unpacking x11-drm-20040827-gentoo-0.2.tar.bz2 to
/var/tmp/portage/x11-drm-20040827-r1/work
mv: cannot stat `/var/tmp/portage/x11-drm-20040827-r1/work/patch/*kernel-2.6*':
No such file or directory
 * Updating for standard build...
 * Applying various patches (bugfixes/updates) ...
 *   002_all_dristat-build-fix.patch ...                                    [ok]
 *   003_all_can-2004-1056-lock-checking.patch ...                          [ok]
 * Done with patching
>>> Source unpacked.
 * Building DRM...
make -C //usr/src/linux SUBDIRS=/var/tmp/portage/x11-drm-20040827-r1/work/drm
DRMSRCDIR=/var/tmp/portage/x11-drm-20040827-r1/work/drm modules
make[1]: Entering directory `/usr/src/linux-2.4.28-gentoo-r5'
make -C  /var/tmp/portage/x11-drm-20040827-r1/work/drm CFLAGS="-D__KERNEL__
-I/usr/src/linux-2.4.28-gentoo-r5/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=athlon -fno-unit-at-a-time -DMODULE
-DMODVERSIONS -include
/usr/src/linux-2.4.28-gentoo-r5/include/linux/modversions.h" MAKING_MODULES=1
modules
make[2]: Entering directory `/var/tmp/portage/x11-drm-20040827-r1/work/drm'
gcc -I/var/tmp/portage/x11-drm-20040827-r1/work/drm -D__KERNEL__
-I/usr/src/linux-2.4.28-gentoo-r5/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=athlon -fno-unit-at-a-time -DMODULE
-DMODVERSIONS -include
/usr/src/linux-2.4.28-gentoo-r5/include/linux/modversions.h -DVMAP_4_ARGS
-nostdinc -iwithprefix include -DKBUILD_BASENAME=radeon_drv  -c -o radeon_drv.o
radeon_drv.c
In file included from radeon_drv.c:47:
drm_drv.h: In function `drm_probe':
drm_drv.h:586: error: initializer element is not constant
drm_drv.h:586: error: (near initialization for `drm_driver.remove')
In file included from radeon_drv.c:55:
drm_vm.h:363: error: initializer element is not constant
drm_vm.h:363: error: (near initialization for `radeon_vm_ops.nopage')
drm_vm.h:370: error: initializer element is not constant
drm_vm.h:370: error: (near initialization for `radeon_vm_shm_ops.nopage')
drm_vm.h:372: error: initializer element is not constant
drm_vm.h:372: error: (near initialization for `radeon_vm_shm_ops.close')
drm_vm.h:377: error: initializer element is not constant
drm_vm.h:377: error: (near initialization for `radeon_vm_dma_ops.nopage')
drm_vm.h:384: error: initializer element is not constant
drm_vm.h:384: error: (near initialization for `radeon_vm_sg_ops.nopage')
In file included from radeon_drv.c:56:
drm_stub.h:76: error: initializer element is not constant
drm_stub.h:76: error: (near initialization for `radeon_stub_fops.open')
radeon_drv.c:58: error: parse error at end of input
drm_stub.h:334: warning: unused variable `radeon_stub_info'
radeon_drv.c:58: confused by earlier errors, bailing out
make[2]: *** [radeon_drv.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-drm-20040827-r1/work/drm'
make[1]: *** [_mod_/var/tmp/portage/x11-drm-20040827-r1/work/drm] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5'
make: *** [modules] Error 2
 * Portage could not build the DRM modules. If you see an ACCESS DENIED error,
 * this could mean that you were using an unsupported kernel build system. All
 * 2.4 kernels are supported, but only 2.6 kernels at least as new as 2.6.6
 * are supported.

!!! ERROR: x11-base/x11-drm-20040827-r1 failed.
!!! Function die_error, Line 216, Exitcode 0
!!! Unable to build DRM modules.
!!! If you need support, post the topmost build error, NOT this status message.




Note: I'm still running 2.4.28-gentoo-r2, but was building x11-drm for
2.4.28-gentoo-r5. This is not significant as I can't build x11-drm for
2.4.28-gentoo-r2 either!

Gentoo Base System version 1.6.8
Portage 2.0.51-r13 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.4.28-gentoo-r2 i686)
=================================================================
System uname: 2.4.28-gentoo-r2 i686 AMD Duron(tm) processor
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec 22 2004, 13:06:41)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
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/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
DISTDIR="/work/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups doc encode esd f77 fam
font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6
java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis
opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang
spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode x86 xml2
xmms xv zlib video_cards_radeon linguas_en_GB"
Unset:  LDFLAGS
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-17 17:55:39 UTC
This oughta be closed, this isn't in the tree anymore.
Comment 2 Joshua Baergen (RETIRED) gentoo-dev 2006-08-21 18:16:43 UTC
Agreed.

I'll close as invalid, since we don't support these versions anymore.  Ian, if you have similar difficulties with newer versions, please re-open.