View previous topic :: View next topic |
Author |
Message |
lugduweb n00b
Joined: 04 May 2006 Posts: 47
|
Posted: Mon Jun 12, 2006 6:09 am Post subject: XGL / Mesa 060606a emerge problem |
|
|
Hi ! I'm trying to install xgl following gentoo's HOWTO and I'm having troubles
emerging mesa with r200_state_init.c file :
==============================================================
[ebuild N ] media-libs/mesa-6.5.1_alpha20060606 (-3dnow) -debug (-mmx)
-motif +nptl (-sse) -video_cards_i810 -video_cards_mach64 -video_cards_mga
-video_cards_none -video_cards_r128 -video_cards_radeon -video_cards_s3virge
-video_cards_savage -video_cards_sis (-video_cards_sunffb) -video_cards_tdfx
-video_cards_trident -video_cards_via 0 kB [1]
This is the end of error log:
=============================
r200_state_init.c: In function `cmdveclinear':
r200_state_init.c:102: erreur: union n'a pas de membre nommé « veclinear »
r200_state_init.c:102: erreur: « RADEON_CMD_VECLINEAR » non déclaré (première
utilisation dans cette fonction)
r200_state_init.c:102: erreur: (Chaque identificateur non déclaré est rapporté
une seule fois
r200_state_init.c:102: erreur: pour chaque fonction dans laquelle il apparaît.)
r200_state_init.c:103: erreur: union n'a pas de membre nommé « veclinear »
r200_state_init.c:104: erreur: union n'a pas de membre nommé « veclinear »
r200_state_init.c:105: erreur: union n'a pas de membre nommé « veclinear »
r200_state_init.c: In function `r200InitState':
r200_state_init.c:461: erreur: « R200_EMIT_VAP_PVS_CNTL » non déclaré (première
utilisation dans cette fonction)
I've "googled" this error and found that it may come from libdrm.
I was not using the latest, so I've changed package.keywords and now
my current libdrm is "x11-libs/libdrm-2.1_alpha20060406" (which is now the
latest). But I'm still having the same error...
Extra note : I'm running this on a Pegasos PPC computer with a RADEON 9250.
I've tried bugzilla but had this answer :
"We don't care about XGL, it's not in portage. There's also no official Gentoo
howto on this, Gentoo Wiki is not maintained by Gentoo." ... so I guess this is the right place ? |
|
Back to top |
|
|
Test-tools n00b
Joined: 12 Jun 2006 Posts: 6
|
Posted: Mon Jun 12, 2006 9:49 pm Post subject: Think I had that before... |
|
|
Could you post the output of:
pkg-config --cflags xorg-server
Thanks,
Roland |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Mon Jun 12, 2006 10:19 pm Post subject: |
|
|
Holy crap! I have the exact same problem on the same computer with a Radeon 9000.
Code: | pegasos aaron # pkg-config --cflags xorg-server
-DXFree86Server -DIN_MODULE -DXFree86Module -DXFree86LOADER -I/usr/include/xorg |
Here is my emerge --info:
Code: | emerge --info
Portage 2.1 (default-linux/ppc/ppc32/2006.0/G4/Pegasos, gcc-4.1.0/vanilla, glibc-2.3.6-r4, 2.6.17-rc3-no2 ppc)
=================================================================
System uname: 2.6.17-rc3-no2 ppc 7447/7457, altivec supported
Gentoo Base System version 1.12.1
dev-lang/python: 2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/portage/distfiles/"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.osuos1.org/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/portage/packages/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/portage/"
PORTDIR_OVERLAY="/portage/local /usr/portage/local/layman/portage-xgl"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="ppc X a52 aac alsa altivec apache2 apm berkdb bitmap-fonts bonobo cdr cli crypt cups divx4linux dri dvd dvdr eds emboss encode esd ffmpeg flac foomatic foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 gtkhtml hal imlib isdnlog java jpeg ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl png ppds pppd python quicktime readline reflection ruby sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_ati video_cards_radeon"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS |
I have also tried gcc-3.4.5 and different kernel versions--including a 2.6.15 kernel that I know to be stable.
I am currently using mesa-6.5.1_alpha20060524 and I re-installed it just to see if it would go and it compiled successfully. _________________ --Aaron |
|
Back to top |
|
|
Test-tools n00b
Joined: 12 Jun 2006 Posts: 6
|
Posted: Mon Jun 12, 2006 10:37 pm Post subject: |
|
|
Don't really remember how I fixed that, but try:
emerge libdrm
Think I had then added -I/usr/include/drm to CFLAGS in /etc/make.conf |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Tue Jun 13, 2006 2:40 am Post subject: |
|
|
I did both and the compile failed in the same spot.
I'm receptive to any other ideas, otherwise, I'll just wait for the next alpha of mesa. _________________ --Aaron |
|
Back to top |
|
|
Test-tools n00b
Joined: 12 Jun 2006 Posts: 6
|
Posted: Tue Jun 13, 2006 7:58 am Post subject: |
|
|
Track this down now, this will not disappear with newer Mesa, ...
The define we have to look for is RADEON_CMD_VECLINEAR
Is this in /usr/include/drm/radeon_drm.h ?
No=> We have to get a newer version of libdrm
q&d trick:
cd /usr/local/overlays/xgl-coffee/x11-libs/libdrm/
cp libdrm-2.1_alpha20060406.ebuild libdrm-2.1_alpha20060610.ebuild
ebuild libdrm-2.1_alpha20060610.ebuild digest
emerge libdrm
Now we should have a RADEON_CMD_VECLINEAR in /usr/include/drm/radeon_drm.h |
|
Back to top |
|
|
redbeardmcg Apprentice
Joined: 12 Mar 2006 Posts: 171 Location: Suburbia Massachusetts
|
Posted: Tue Jun 13, 2006 4:55 pm Post subject: |
|
|
I am having the EXACT same issue. I tried your fix, but this did not help the problem. Any other ideas? |
|
Back to top |
|
|
redbeardmcg Apprentice
Joined: 12 Mar 2006 Posts: 171 Location: Suburbia Massachusetts
|
Posted: Tue Jun 13, 2006 5:08 pm Post subject: |
|
|
Just to provide some more information, here is the exact error I am getting:
Code: | r200_state_init.c: In function 'cmdveclinear':
r200_state_init.c:102: error: 'drm_radeon_cmd_header_t' has no member named 'veclinear'
r200_state_init.c:102: error: 'RADEON_CMD_VECLINEAR' undeclared (first use in this function)
r200_state_init.c:102: error: (Each undeclared identifier is reported only once
r200_state_init.c:102: error: for each function it appears in.)
r200_state_init.c:103: error: 'drm_radeon_cmd_header_t' has no member named 'veclinear'
r200_state_init.c:104: error: 'drm_radeon_cmd_header_t' has no member named 'veclinear'
r200_state_init.c:105: error: 'drm_radeon_cmd_header_t' has no member named 'veclinear'
r200_state_init.c: In function 'r200InitState':
r200_state_init.c:461: error: 'R200_EMIT_VAP_PVS_CNTL' undeclared (first use in this function)
make[6]: *** [r200_state_init.o] Error 1
make[6]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src/mesa/drivers/dri/r200'
make[5]: *** [subdirs] Error 1
make[5]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src/mesa/drivers/dri'
make[4]: *** [linux-solo] Error 2
make[4]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src/mesa'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src/mesa'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa'
make: *** [linux-dri-x86] Error 2
!!! ERROR: media-libs/mesa-6.5.1_alpha20060606 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
mesa-6.5.1_alpha20060606.ebuild, line 245: Called die
!!! Build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! This ebuild is from an overlay: '/usr/local/overlays/xgl-coffee' |
This is from a FRESH build of gentoo, no X yet, I can't get past MESA
Thanks for any help |
|
Back to top |
|
|
eightbit n00b
Joined: 30 May 2006 Posts: 24
|
Posted: Tue Jun 13, 2006 5:17 pm Post subject: [U] media-libs/mesa-6.5.1_alpha20060606 failed |
|
|
Getting the exact same thing here.
Code: | r200_state_init.c: In function `cmdveclinear':
r200_state_init.c:102: error: union has no member named `veclinear'
r200_state_init.c:102: error: `RADEON_CMD_VECLINEAR' undeclared (first use in this function)
r200_state_init.c:102: error: (Each undeclared identifier is reported only once
r200_state_init.c:102: error: for each function it appears in.)
r200_state_init.c:103: error: union has no member named `veclinear'
r200_state_init.c:104: error: union has no member named `veclinear'
r200_state_init.c:105: error: union has no member named `veclinear'
r200_state_init.c: In function `r200InitState':
r200_state_init.c:461: error: `R200_EMIT_VAP_PVS_CNTL' undeclared (first use in this function)
distcc[16726] ERROR: compile r200_state_init.c on 192.168.1.19 failed
make[6]: *** [r200_state_init.o] Error 1
make[6]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src/mesa/drivers/dri/r200'
make[5]: *** [subdirs] Error 1
make[5]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src/mesa/drivers/dri'
make[4]: *** [linux-solo] Error 2
make[4]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src/mesa'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src/mesa'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/var/tmp/portage/mesa-6.5.1_alpha20060606/work/Mesa'
make: *** [linux-dri-x86] Error 2
!!! ERROR: media-libs/mesa-6.5.1_alpha20060606 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
mesa-6.5.1_alpha20060606.ebuild, line 245: Called die |
EDIT fixed, haven't taken a look at the ebuild so not sure why this worked: was able to install it by doing the following:
cd /usr/portage/local/layman/portage-xgl/x11-libs/libdrm/
cp libdrm-2.1_alpha20060313.ebuild libdrm-2.1_alpha20060610.ebuild
ebuild libdrm-2.1_alpha20060610.ebuild digest
emerge -av libdrm
Last edited by eightbit on Tue Jun 13, 2006 8:01 pm; edited 1 time in total |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Tue Jun 13, 2006 6:37 pm Post subject: |
|
|
Quote: | cp libdrm-2.1_alpha20060406.ebuild libdrm-2.1_alpha20060610.ebuild |
Forgive me if I don't see the point, but how would a mere change in version numbers help? _________________ --Aaron
Last edited by AaronPPC on Tue Jun 13, 2006 7:05 pm; edited 1 time in total |
|
Back to top |
|
|
redbeardmcg Apprentice
Joined: 12 Mar 2006 Posts: 171 Location: Suburbia Massachusetts
|
Posted: Tue Jun 13, 2006 7:01 pm Post subject: |
|
|
I apologize, it did work. You simply either need to unmask that version before you merge, or run the command like this:
Code: | emerge /usr/local/overlays/xgl-coffee/x11-libs/libdrm/libdrm-2.1_alpha20060610.ebuild |
Thanks! |
|
Back to top |
|
|
lugduweb n00b
Joined: 04 May 2006 Posts: 47
|
Posted: Tue Jun 13, 2006 7:23 pm Post subject: |
|
|
Hi !
Thanks for the tip !
Unfortunately it's to late for me !
As I couldn't make it work, I finally emerged another mesa version (6.5r3) but had several other problems (I had to add many many masked packages 20 or 30 or even more ?...). As my portage.keywords was getting very big, I finally stopped thinking that would lead to an unusable system...
So I'm finally going back to a version without xgl to have a stable Gentoo again (atm I can't log in, and X is broken )...
So I will try xgl on Gentoo again later...
But before, I would like to know :
- if you installing xgl on a fresh (or almost fresh) Gentoo's install ? (Mine is a new install)
- if you are following the "HOWTO" tutorial available on Gentoo's wiki (http://gentoo-wiki.com/HOWTO_XGL) ? (I do)
- if you are all on x86 architecture ? (I'm running this on PegasosII/PPC)
- and which kernel do you use ? (I'm using 2.6.15.r1 atm). Some package like splashutils are only emerging with 2.6.16 kernel.
That might help for other future problems...
By the way I saw that there was a bug opened in bugzilla about making xgl a portage ebuild. Are there fresh news about it somewhere ? |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Tue Jun 13, 2006 7:29 pm Post subject: |
|
|
OK, I looked at the ebuild and I see the point of Test-tools solution now.
The solution worked, I just successfully installed mesa.
Quote: | By the way I saw that there was a bug opened in bugzilla about making xgl a portage ebuild. Are there fresh news about it somewhere ? |
It is not going to happen anytime soon. XGL is very alpha. _________________ --Aaron |
|
Back to top |
|
|
lugduweb n00b
Joined: 04 May 2006 Posts: 47
|
Posted: Tue Jun 13, 2006 8:02 pm Post subject: |
|
|
@AAronPPC : and does xgl works ? |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Tue Jun 13, 2006 8:11 pm Post subject: |
|
|
I got it to work once in window mode. Now, I can only get it about half-working. I can't get the window decorations to display. I think the solution is here, so I'm ready to give it another shot. _________________ --Aaron |
|
Back to top |
|
|
lugduweb n00b
Joined: 04 May 2006 Posts: 47
|
Posted: Tue Jun 13, 2006 8:24 pm Post subject: |
|
|
OK...
I guess I must clean my system before trying all this again... It is really in bad state now :/
Did follow the official XGL Howto ?
And did you have to unmask many many packages too ? |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Tue Jun 13, 2006 10:58 pm Post subject: |
|
|
Yes, I followed the Howto.
I had to unmask some, but I run the ~ppc profile so I probably didn't unmask as many as you. _________________ --Aaron |
|
Back to top |
|
|
Manicore n00b
Joined: 15 Jun 2006 Posts: 1
|
Posted: Thu Jun 15, 2006 7:52 am Post subject: |
|
|
had this problem earlier today then found this page with the fix...mesa just got through emerging..thnx for the fix |
|
Back to top |
|
|
lugduweb n00b
Joined: 04 May 2006 Posts: 47
|
Posted: Thu Jun 15, 2006 7:28 pm Post subject: |
|
|
thx for answering, I will try again later. _________________ Pegasos II PPC G4 / ATI RADEON 8500 / Hauppauge PVR350 / Kernel 2.6.15r1
Efika PPC 603e / ATI RADEON 9250 / Kernel 2.6.19r2 |
|
Back to top |
|
|
MixedSoul Tux's lil' helper
Joined: 09 Feb 2006 Posts: 96
|
Posted: Mon Jun 19, 2006 9:36 pm Post subject: |
|
|
I'm sorry, i'm having the exact same problem emerging mesa, but i'm getting the fix to work here, could someone please explain in a few steps what should i do? when i emerge .../.../libdrm-2.1_alpha20060614.ebuild i get:"you need to adjust PORTDIR or PORTDIR_OVERLAY to emerge this package"
thx in advance |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Mon Jun 19, 2006 10:00 pm Post subject: |
|
|
What happens when you just:
_________________ --Aaron |
|
Back to top |
|
|
MixedSoul Tux's lil' helper
Joined: 09 Feb 2006 Posts: 96
|
Posted: Mon Jun 19, 2006 10:47 pm Post subject: |
|
|
it emerged fine, but i still have the other error when i try to emerge Mesa, not the "adjust PORTDIR_OVERLAY" one, but the other posted here... 8| |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Mon Jun 19, 2006 11:47 pm Post subject: |
|
|
Which version of mesa are you trying to install? alpha20060606 or alpha20060614? _________________ --Aaron |
|
Back to top |
|
|
MixedSoul Tux's lil' helper
Joined: 09 Feb 2006 Posts: 96
|
Posted: Tue Jun 20, 2006 12:13 am Post subject: |
|
|
alpha20060614 |
|
Back to top |
|
|
AaronPPC Guru
Joined: 29 May 2005 Posts: 522 Location: Tucson, AZ
|
Posted: Tue Jun 20, 2006 2:36 am Post subject: |
|
|
And you installed libdrm-2.1_alpha20060614?
If so, see what happens when you revdep-rebuild. You can also:
Code: | revdep-rebuild --pretend |
if you want to see what it comes up with before you commit to anything. _________________ --Aaron |
|
Back to top |
|
|
|