Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] ERROR: x11-base/x11-drm-20080710 failed.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
m_0_r_0_n
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2006
Posts: 78
Location: Duesseldorf, Germany

PostPosted: Sat Sep 13, 2008 10:13 pm    Post subject: [solved] ERROR: x11-base/x11-drm-20080710 failed. Reply with quote

Hi,
I dont understand the following error and how to fix it. Can you help me?


*
* ERROR: x11-base/x11-drm-20080710 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3797: Called src_compile_os
* environment, line 3826: Called src_compile_linux
* environment, line 3818: Called linux-mod_src_compile
* environment, line 2983: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CC=\"$(get-KERNEL_CC)\" LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS= LINUXDIR="/usr/src/linux" DRM_MODULES=" radeon.ko" modules
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-base/x11-drm-20080710/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-base/x11-drm-20080710/temp/environment'.
*
* GNU info directory index is up-to-date.


Last edited by m_0_r_0_n on Mon Sep 15, 2008 2:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 27780
Location: 56N 3W

PostPosted: Sat Sep 13, 2008 11:13 pm    Post subject: Reply with quote

m_0_r_0_n,

Thats not an error message, its a status report, saying it failed.
The error will be in /var/tmp/portage/x11-base/x11-drm-20080710/temp/build.log

Please post that file.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 6828

PostPosted: Sat Sep 13, 2008 11:19 pm    Post subject: Reply with quote

Also, post the output of emerge --info.
Back to top
View user's profile Send private message
m_0_r_0_n
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2006
Posts: 78
Location: Duesseldorf, Germany

PostPosted: Sun Sep 14, 2008 6:41 am    Post subject: Reply with quote

I think I dont need to paste the complete build.log

The error message is:

[...]
/var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/ati_pcigart.c: In Funktion »gart_insert_page_into_table«:
/var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/ati_pcigart.c:49: Warnung: Implizite Deklaration der Funktion »upper_32_bits«
/var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/ati_pcigart.c: In Funktion »drm_ati_pcigart_init«:
/var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/ati_pcigart.c:129: Warnung: Variable »page_base« wird nicht verwendet
CC [M] /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_sman.o
CC [M] /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_hashtab.o
CC [M] /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_mm.o
CC [M] /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_object.o
CC [M] /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_compat.o
/var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_compat.c: In Funktion »drm_bo_vm_fault«:
/var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_compat.c:220: Fehler: Zu wenige Argumente für Funktion »drm_bo_wait«
make[2]: *** [/var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_compat.o] Fehler 1
make[1]: *** [_module_/var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.20-gentoo-r10'
make: *** [modules] Fehler 2
*
* ERROR: x11-base/x11-drm-20080710 failed.
* Call stack:
[...]

It s a message in german. It means that there too few arguments for the funkction drm_bo_wait

emerge --info prints:

Code:

Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-gentoo-r10 i686)
=================================================================
System uname: 2.6.20-gentoo-r10 i686 Intel(R) Pentium(R) M processor 1300MHz
Timestamp of tree: Sat, 13 Sep 2008 21:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apache2 apm audiofile avi berkdb bitmap-fonts bluetooth branding bzip2 cairo cdr cli cracklib crypt ctype cups dba dbus dlloader dri dvd dvdr dvdread eds emboss encode ethereal evo exif expat fam fastbuild firefox foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 isdnlog jpeg kerberos lcms ldap libg++ libnotify libwww mad memlimit midi mikmod mmx mmxext mng motif mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf pdflib perl png posix ppds pppd python qt3support quicktime readline reflection samba sdl session simplexml slang soap sockets spell spl sse sse2 ssl startup-notification svg sysfs tcltk tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs x86 xml xml2 xorg xscreensaver xsl xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
m_0_r_0_n
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2006
Posts: 78
Location: Duesseldorf, Germany

PostPosted: Sun Sep 14, 2008 4:32 pm    Post subject: Reply with quote

The function drm_bo_wait is defined in
/var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_bo.c

int drm_bo_wait(struct drm_buffer_object *bo,
int lazy,
int interruptible,
int no_wait,
int check_unfenced)

Then I changed the function call drm_bo_wait in line 220 of the the file /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_compat.c

from
err = drm_bo_wait(bo, 0, 1, 0);
to
err = drm_bo_wait(bo, 0, 1, 0, 1);

to match the parameters of the defined function. The I tried to emerge all new packages to get an update to date system, but I always get the same error! Then I noticed that my changes were removed. The line 220 tries to call the function with four argumensts again. What the hell! Why does portage ignore my change?
Back to top
View user's profile Send private message
m_0_r_0_n
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2006
Posts: 78
Location: Duesseldorf, Germany

PostPosted: Mon Sep 15, 2008 11:35 am    Post subject: Reply with quote

Thanks for you help so far.

I tried to add a patch as described in http://gentoo-wiki.com/HOWTO_Create_an_Updated_Ebuild#Fixing_a_Patched_Ebuild

1. Rename original feature.c to feature.c.orig

I rename /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_compat.c to /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_compat.c.orig

2. Put feature.c.orig and your new feature.c to the same folder

I copied both files to /root/gentoofix

3. cd /root/gentoofix && diff -u drm_compat.c.orig drm_compat.c > drm_compat-20080815.patch

4. I copied drm_compat-20080815.patch to /usr/portage/x11-base/x11-drm/files/

5. Then I added the line epatch /usr/portage/x11-base/x11-drm/files/drm_compat-20080815.patch to the function src_unpack() { in the file /usr/portage/x11-base/x11-drm/x11-drm-20080710.ebuild

6. ebuild /usr/portage/x11-base/x11-drm/x11-drm-20080710.ebuild digest


The error message is:

Code:

* Failed Patch: drm_compat-20080815.patch !
 *  ( /usr/portage/x11-base/x11-drm/files/drm_compat-20080815.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/x11-base/x11-drm-20080710/temp/drm_compat-20080815.patch-24645.out

 *
 * ERROR: x11-base/x11-drm-20080710 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 3880:  Called epatch 'src_unpack'
 *             environment, line 2013:  Called die
 * The specific snippet of code:
 *                   die "Failed Patch: ${patchname}!";
 *  The die message:
 *   Failed Patch: drm_compat-20080815.patch!


content of file /var/tmp/portage/x11-base/x11-drm-20080710/temp/drm_compat-20080815.patch-24645.out is

***** drm_compat-20080815.patch *****

=====================================

PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/x11-base/x11-drm/files/drm_compat-20080815.patch

=====================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- drm_compat.c.orig 2008-09-15 11:33:16.000000000 +0200
|+++ drm_compat.c 2008-09-15 11:33:42.000000000 +0200
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored


Any idea what went wrong?
Back to top
View user's profile Send private message
m_0_r_0_n
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2006
Posts: 78
Location: Duesseldorf, Germany

PostPosted: Mon Sep 15, 2008 2:10 pm    Post subject: [solved] ERROR: x11-base/x11-drm-20080710 failed. Reply with quote

The problem was that I didnt use aboslute pathnames to the file to patch.


--- /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_compat.c.orig 2008-09-15 15:48:18.000000000 +0200
+++ /var/tmp/portage/x11-base/x11-drm-20080710/work/drm/linux-core/drm_compat.c 2008-09-15 15:55:58.000000000 +0200
@@ -217,7 +217,7 @@

mutex_lock(&bo->mutex);

- err = drm_bo_wait(bo, 0, 1, 0);
+ err = drm_bo_wait(bo, 0, 1, 0, 1);
if (err) {
data->type = (err == -EAGAIN) ?
VM_FAULT_MINOR : VM_FAULT_SIGBUS;
Back to top
View user's profile Send private message
Battousai
Developer
Developer


Joined: 05 Jan 2004
Posts: 7

PostPosted: Mon Sep 15, 2008 7:45 pm    Post subject: Reply with quote

Hello.

Thanks for reporting this. It's been filed as a Gentoo bug now, and will have to go upstream once I've made the patch for it.

This appears to be caused by a compatibility function for rather old kernels (I see you're using 2.6.20) which isn't necessarily triggered by newer ones -- I tested this package with 2.6.25 and didn't encounter it. I guess they missed updating a call to drm_bo_wait() after adding an argument to it.

It will be fixed in portage shortly, and hopefully upstream before too long.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum