FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 07-18-2010, 08:43 AM
Geert Stappers
 
Default 2.6.35-rc5 build on MIPS misses asm/agp.h

Hello Debian kernel people,

This E-mail is to report a kernel build failure that I encountered.

On a MIPSEL system I do get this output

| CC [M] drivers/gpu/drm/ttm/ttm_lock.o
| CC [M] drivers/gpu/drm/ttm/ttm_execbuf_util.o
| CC [M] drivers/gpu/drm/ttm/ttm_page_alloc.o
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/gpu/drm/ttm/ttm_page_alloc.c:43:21: error: asm/agp.h: No such file or directory
| make[9]: *** [drivers/gpu/drm/ttm/ttm_page_alloc.o] Error 1
| make[8]: *** [drivers/gpu/drm/ttm] Error 2
| make[7]: *** [drivers/gpu/drm] Error 2
| make[6]: *** [drivers/gpu] Error 2
| make[5]: *** [drivers] Error 2
| make[4]: *** [sub-make] Error 2
| make[3]: *** [all] Error 2
| make[3]: Leaving directory
| `/usr/src/Linux/debian-svn/debian/build/build_mipsel_none_4kc-malta'
| make[2]: *** [debian/stamps/build_mipsel_none_4kc-malta_plain] Error 2
| make[2]: Leaving directory `/usr/src/Linux/debian-svn'
| make[1]: *** [build_mipsel_none_4kc-malta_real] Error 2
| make[1]: Leaving directory `/usr/src/Linux/debian-svn'
| make: *** [debian/stamps/build-base] Error 2

What I did to get there comes mostly from the kernel-handbook.
This is what I exactly ( # comment added afterwars ) did:

| svn co svn://svn.debian.org/svn/kernel/dists/trunk/linux-2.6 debian-svn
| cd debian-svn
| svn log # checked that work for http://bugs.debian.org/583689 is included
| cd ..
| apt-get source -d linux-2.6
| cd debian-svn/
| debian/rules orig # failed, it asked for 2.6.32~rc5
| cd ..
| wget http://ftp.debian.org/pool/main/l/linux-2.6/linux-2.6_2.6.35~rc5.orig.tar.gz
| cd -
| debian/rules orig
| debian/rules debian/control
| fakeroot debian/rules binary


Information about the "build host"

| stappers@fulong:/usr/src/Linux/debian-svn
| $ pwd
| /usr/src/Linux/debian-svn
| stappers@fulong:/usr/src/Linux/debian-svn
| $ uname -a
| Linux fulong 2.6.27.7 #1 Fri Mar 6 15:20:56 CST 2009 mips64 GNU/Linux
| stappers@fulong:/usr/src/Linux/debian-svn
| $ uname -m
| mips64
| stappers@fulong:/usr/src/Linux/debian-svn
| $ dpkg-architecture
| DEB_BUILD_ARCH=mipsel
| DEB_BUILD_ARCH_OS=linux
| DEB_BUILD_ARCH_CPU=mipsel
| DEB_BUILD_GNU_CPU=mipsel
| DEB_BUILD_GNU_SYSTEM=linux-gnu
| DEB_BUILD_GNU_TYPE=mipsel-linux-gnu
| DEB_HOST_ARCH=mipsel
| DEB_HOST_ARCH_OS=linux
| DEB_HOST_ARCH_CPU=mipsel
| DEB_HOST_GNU_CPU=mipsel
| DEB_HOST_GNU_SYSTEM=linux-gnu
| DEB_HOST_GNU_TYPE=mipsel-linux-gnu
| stappers@fulong:/usr/src/Linux/debian-svn
| $ svn info
| Path: .
| URL: svn://svn.debian.org/svn/kernel/dists/trunk/linux-2.6
| Repository Root: svn://svn.debian.org/svn/kernel
| Repository UUID: 510b9475-24dd-0310-9b6c-e0eefe99d49f
| Revision: 15990
| Node Kind: directory
| Schedule: normal
| Last Changed Author: benh
| Last Changed Rev: 15985
| Last Changed Date: 2010-07-14 07:26:01 +0800 (Wed, 14 Jul 2010)
|
| stappers@fulong:/usr/src/Linux/debian-svn
| $ svn update
| At revision 15992.
| stappers@fulong:/usr/src/Linux/debian-svn
| $


What can I do to get beyond
| /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/gpu/drm/ttm/ttm_page_alloc.c:43:21: error: asm/agp.h: No such file or directory
???


Groeten
Geert Stappers
 
Old 07-18-2010, 12:10 PM
Ben Hutchings
 
Default 2.6.35-rc5 build on MIPS misses asm/agp.h

On Sun, 2010-07-18 at 10:43 +0200, Geert Stappers wrote:
> Hello Debian kernel people,
>
> This E-mail is to report a kernel build failure that I encountered.
>
> On a MIPSEL system I do get this output
>
> | CC [M] drivers/gpu/drm/ttm/ttm_lock.o
> | CC [M] drivers/gpu/drm/ttm/ttm_execbuf_util.o
> | CC [M] drivers/gpu/drm/ttm/ttm_page_alloc.o
> | /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/gpu/drm/ttm/ttm_page_alloc.c:43:21: error: asm/agp.h: No such file or directory
> | make[9]: *** [drivers/gpu/drm/ttm/ttm_page_alloc.o] Error 1
> | make[8]: *** [drivers/gpu/drm/ttm] Error 2
> | make[7]: *** [drivers/gpu/drm] Error 2
> | make[6]: *** [drivers/gpu] Error 2
> | make[5]: *** [drivers] Error 2
> | make[4]: *** [sub-make] Error 2
> | make[3]: *** [all] Error 2
> | make[3]: Leaving directory
> | `/usr/src/Linux/debian-svn/debian/build/build_mipsel_none_4kc-malta'
> | make[2]: *** [debian/stamps/build_mipsel_none_4kc-malta_plain] Error 2
> | make[2]: Leaving directory `/usr/src/Linux/debian-svn'
> | make[1]: *** [build_mipsel_none_4kc-malta_real] Error 2
> | make[1]: Leaving directory `/usr/src/Linux/debian-svn'
> | make: *** [debian/stamps/build-base] Error 2
[...]

Try adding this patch:

--- a/drivers/gpu/drm/ttm/ttm_page_alloc.c
+++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c
@@ -40,7 +40,9 @@
#include <linux/slab.h>

#include <asm/atomic.h>
+#ifdef TTM_HAS_AGP
#include <asm/agp.h>
+#endif

#include "ttm/ttm_bo_driver.h"
#include "ttm/ttm_page_alloc.h"
--- END ---

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 07-18-2010, 07:56 PM
Geert Stappers
 
Default 2.6.35-rc5 build on MIPS misses asm/agp.h

Op 20100718 om 13:10 schreef Ben Hutchings:
> On Sun, 2010-07-18 at 10:43 +0200, Geert Stappers wrote:
> >
> > This E-mail is to report a kernel build failure that I encountered.
> >
> > On a MIPSEL system I do get this output
> >
> > | CC [M] drivers/gpu/drm/ttm/ttm_lock.o
> > | CC [M] drivers/gpu/drm/ttm/ttm_execbuf_util.o
> > | CC [M] drivers/gpu/drm/ttm/ttm_page_alloc.o
> > | /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/drivers/gpu/drm/ttm/ttm_page_alloc.c:43:21: error: asm/agp.h: No such file or directory
>
> Try adding this patch:
>
> --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c
> +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c
> @@ -40,7 +40,9 @@
> #include <linux/slab.h>
>
> #include <asm/atomic.h>
> +#ifdef TTM_HAS_AGP
> #include <asm/agp.h>
> +#endif
>
> #include "ttm/ttm_bo_driver.h"
> #include "ttm/ttm_page_alloc.h"
> --- END ---

Yes! That got me further o/

Output:
| CALL /usr/src/Linux/debian-svn/debian/build/source_mipsel_none/scripts/checksyscalls.sh
| CHK include/generated/compile.h
| CC [M] drivers/gpu/drm/ttm/ttm_page_alloc.o
| LD [M] drivers/gpu/drm/ttm/ttm.o
| LD drivers/gpu/drm/via/built-in.o
| CC [M] drivers/gpu/drm/via/via_irq.o
[and more]


> Ben.

Thank you!

Cheers
Geert Stappers


--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100718195614.GC11909@gpm.stappers.nl">http://lists.debian.org/20100718195614.GC11909@gpm.stappers.nl
 

Thread Tools




All times are GMT. The time now is 11:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org