You are not logged in.
http://dri.freedesktop.org/wiki/Building
ok so i'm on this step: http://dri.freedesktop.org/wiki/Buildin … 5ae2efe516
I go to linux-core and type in make. here is what I get:
[neo93@neo-arch linux-core]$ make DRM_MODULES="r300 radeon"
sh ../scripts/create_linux_pci_lists.sh < ../shared-core/drm_pciids.txt
make -C /lib/modules/2.6.29/source SUBDIRS=`/bin/pwd` DRMSRCDIR=`/bin/pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6'
CC [M] /home/neo93/devel/drm/linux-core/drm_auth.o
In file included from /home/neo93/devel/drm/linux-core/drmP.h:84,
from /home/neo93/devel/drm/linux-core/drm_auth.c:36:
/home/neo93/devel/drm/linux-core/drm_os_linux.h:36: error: conflicting types for 'irqreturn_t'
include/linux/irqreturn.h:14: error: previous declaration of 'irqreturn_t' was here
make[2]: *** [/home/neo93/devel/drm/linux-core/drm_auth.o] Error 1
make[1]: *** [_module_/home/neo93/devel/drm/linux-core] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6'
make: *** [modules] Error 2
Now if I reboot, I will lose X until I recieve instructions on how to get passed this error meaning I can't turn off my computer without restoring everything all over again by hand (might as well just reinstall as it will be quicker) so please help.
If I type make DRM_MODULES="whatever" or make or anything to do with make, I get the exact same error.
Last edited by Neo_The_User (2009-04-02 19:03:21)
AMD Phenom II X4 955 with Optimized Kernel
5 GB DDR2 RAM
320 GB SATA Hard Drive + 160 GB SATA Hard Drive
ATi RadeonHD 5830 GIGABYTE
Offline
/home/neo93/devel/drm/linux-core/drm_os_linux.h:36: error: conflicting types for 'irqreturn_t'
you are talking about different module dependencies. In fact this is explained well on the web page (you have provided link)
1) make (modules)
2) copy modules
3) run depmod -a -> This is optional step (rebooting will do)
Obviously check header error. (everything build from the sources indicated at http://dri.freedesktop.org/wiki/Building ?)
Last edited by broch (2009-04-02 03:57:33)
Offline
but its not building so there is nothing to install. only what is compiling can be installed (applies to almost everything)
AMD Phenom II X4 955 with Optimized Kernel
5 GB DDR2 RAM
320 GB SATA Hard Drive + 160 GB SATA Hard Drive
ATi RadeonHD 5830 GIGABYTE
Offline
of course is not building
/home/neo93/devel/drm/linux-core/drm_os_linux.h:36: error: conflicting types for 'irqreturn_t'
the above is your problem (I pointed this above), I don't use ATI, so I can't help maybe ask dri maintainer what you should to?
however I was also referring to your other post where you have been complaining about make dep.
Last edited by broch (2009-04-02 04:25:40)
Offline
edit: the kernel does not actually replace linux-core however it works with http://pastebin.com/m171d72d9
<Neo_The_User> anholt: do you do any development for linux-core in the drm code?
<stillunknown> linux-core has been abondened by most people
<Neo_The_User> ah. whats the new replacement?
<agd5f> Neo_The_User: the kernel itself
<Neo_The_User> and which kernel consists of the latest drm code? the linus git tree or airlied's tree?
<agd5f> airlied's tree more or less
* mvo has quit ("Ex-Chat")
<Neo_The_User> does his tree have the 5,000 lines taken out of it for the r300 cards?
<Neo_The_User> by that i was referring to: http://airlied.livejournal.com/65755.html
<Neo_The_User> or is that article related to the mesa code?
<glisse> mesa code
<Neo_The_User> thank you stillunknown, glisse, and agd5f for the information. i really appreciate all your guys's time.
<agd5f> Neo_The_User: you want the radeon_rewrite branch of mesa
<Neo_The_User> right. git checkout --track -b radeon-rewrite origin/radeon-rewrite right?
<Neo_The_User> or do i just do git checkout radeon-rewrite origin/radeon-rewrite? whats the best way to go about?
<agd5f> either way should be fine
<Neo_The_User> oh ok.
<agd5f> newer versions of git will track automatically if the branches have the same name IIRC
Last edited by Neo_The_User (2009-04-07 04:19:36)
AMD Phenom II X4 955 with Optimized Kernel
5 GB DDR2 RAM
320 GB SATA Hard Drive + 160 GB SATA Hard Drive
ATi RadeonHD 5830 GIGABYTE
Offline
edit: fixed.
changed irqreturn.h file to http://pastebin.com/m171d72d9 in kernel source. XD
Last edited by Neo_The_User (2009-04-07 04:19:17)
AMD Phenom II X4 955 with Optimized Kernel
5 GB DDR2 RAM
320 GB SATA Hard Drive + 160 GB SATA Hard Drive
ATi RadeonHD 5830 GIGABYTE
Offline
The pastebin is gone, so here is a diff that I used and it seamed to work.
diff --git a/linux-core/drm_os_linux.h b/linux-core/drm_os_linux.h
index 8921944..2510853 100644
--- a/linux-core/drm_os_linux.h
+++ b/linux-core/drm_os_linux.h
@@ -51,7 +51,7 @@
#define DRM_IRQ_ARGS int irq, void *arg
/** backwards compatibility with old irq return values */
#ifndef IRQ_HANDLED
-typedef void irqreturn_t;
+#include <linux/irqreturn.h>
#define IRQ_HANDLED /* nothing */
#define IRQ_NONE /* nothing */
#endif
Offline