| View previous topic :: View next topic |
| Author |
Message |
Bigun Advocate


Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jul 10, 2006 1:31 pm Post subject: mesa-progs will not compile |
|
|
| Code: | 64lappy / # emerge xorg-x11
Calculating dependencies... done!
>>> Emerging (1 of 2) x11-apps/mesa-progs-6.4.2 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking MesaLib-6.4.2.tar.bz2 ;-)
>>> checking MesaDemos-6.4.2.tar.bz2 ;-)
>>> Unpacking source...
>>> Unpacking MesaLib-6.4.2.tar.bz2 to /var/tmp/portage/mesa-progs-6.4.2/work
>>> Unpacking MesaDemos-6.4.2.tar.bz2 to /var/tmp/portage/mesa-progs-6.4.2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2 ...
x86_64-pc-linux-gnu-gcc -I../../include -Wall -march=k8 -pipe -O2 -m64 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DUSE_X86_64_ASM -std=c99 -ffast-math glxinfo.c -L../../lib64 -lglut -lGLU -lGL -lm -o glxinfo
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [glxinfo] Error 1
!!! ERROR: x11-apps/mesa-progs-6.4.2 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
mesa-progs-6.4.2.ebuild, line 68: Called die
!!! glxinfo failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
I've tried several things, including emerg mesa.
Is there anyone that can help me with this or at least tell me how to avoid this package from now on as I don't use mesa at all? _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
| Back to top |
|
 |
Bigun Advocate


Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jul 10, 2006 5:21 pm Post subject: |
|
|
This is the only package keeping me from finishing things up... Almost there
emerge --info
| Code: | *bump*64lappy / # emerge --info
Portage 2.1-r1 (default-linux/amd64/2005.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r11 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python: 2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
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-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/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="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://sync.cybergrunge.com/gentoo-portage"
USE="X acpi aim alsa amd64 apache2 avi bash-completion berkdb bitmap-fonts bluetooth cdr cli crypt cups dbase dga divx4linux dlloader doc dri dvd dvdr dvdread eds emboss encode ethereal flash foomaticdb fortran freetype ftp gb gif gnome gphoto2 gpm gstreamer gtk gtk2 icq imlib ipv6 isdnlog jabber java javascript joystick jpeg kde lzw lzw-tiff mozilla mp3 mpeg msn ncurses nls nsplugin nvidia ogg oggvorbis opengl oscar oss pam pcmcia pcre pda pdflib perl php png pnp pppd python qt qt3 qt4 quicktime readline reflection samba scanner sdl session smartcard spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts usb vcd videos wifi xinerama xml2 xmms xorg xpm xv xvid yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nvidia"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS |
_________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
| Back to top |
|
 |
Bigun Advocate


Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jul 10, 2006 6:12 pm Post subject: |
|
|
Interesting....
It says the temp directory for compilation is here
| Code: | | >>> Compiling source in /var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2 ... |
So I tried seeing if it will compile manually:
| Code: | 64lappy ~ # cd /var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2
64lappy Mesa-6.4.2 # make
make[1]: Entering directory `/var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2/src'
Making sources for linux-dri-x86-64
mkdir ../lib64
make[2]: Entering directory `/var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2/src/glx/x11'
Makefile:94: depend: No such file or directory
touch depend
/usr/X11R6/bin/makedepend -fdepend -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa/main -I../../../src/mesa/glapi -I../../../src/mesa/drivers/dri/common `pkg-config --cflags libdrm` -I/usr/X11R6/include ../../../src/mesa/glapi/glapi.c ../../../src/mesa/glapi/glthread.c ../../../src/mesa/main/dispatch.c glcontextmodes.c clientattrib.c compsize.c eval.c glxcmds.c glxext.c glxextensions.c indirect.c indirect_init.c indirect_size.c indirect_window_pos.c indirect_transpose_matrix.c indirect_vertex_array.c indirect_vertex_program.c pixel.c pixelstore.c render2.c renderpix.c single2.c singlepix.c vertarr.c xfont.c glx_pbuffer.c glx_query.c glx_texture_compression.c dri_glx.c XF86dri.c ../../../src/mesa/x86-64/glapi_x86-64.S
|
There's more code, but it seems to be compiling ok manually.... why would portage fubar it? _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
| Back to top |
|
 |
Bigun Advocate


Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jul 10, 2006 6:14 pm Post subject: |
|
|
Woop... nevermind:
| Code: | mklib: Making Linux shared library: libGL.so.1.2
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: ../../../src/mesa/glapi/glapi.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../../../src/mesa/glapi/glapi.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
mklib: Installing libGL.so.1.2 libGL.so.1 libGL.so in ../../../lib64
mv: cannot stat `libGL.so.1.2': No such file or directory
make[2]: *** [../../../lib64/libGL.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2/src/glx/x11'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2/src'
make: *** [default] Error 1 |
_________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
| Back to top |
|
 |
Bigun Advocate


Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jul 10, 2006 6:23 pm Post subject: |
|
|
I added -fPIC to my compile flags like the error message told me, then portage warned me:
| Code: | 64lappy Mesa-6.4.2 # emerge mesa-progs
Calculating dependencies... done!
>>> Emerging (1 of 1) x11-apps/mesa-progs-6.4.2 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking MesaLib-6.4.2.tar.bz2 ;-)
>>> checking MesaDemos-6.4.2.tar.bz2 ;-)
* Your CFLAGS contains "-fPIC" which can break packages.
* Your CXXFLAGS contains "-fPIC" which can break packages.
*
* Before you file a bug, please remove these flags and
* re-compile the package in question as well as all its dependencies
|
Then I cancelled the build...
What do I do? _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
| Back to top |
|
 |
Bigun Advocate


Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jul 10, 2006 6:32 pm Post subject: |
|
|
I went ahead and had portage do it's thing and it still failed, same error, same place.
*BUT*, I went into the source directory and attempted to compile manually, and it finished with no errors.
Do I need to file a bug for this? _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
| Back to top |
|
 |
Bigun Advocate


Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jul 10, 2006 6:44 pm Post subject: |
|
|
Bug Filed _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
| Back to top |
|
 |
Bigun Advocate


Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jul 10, 2006 8:07 pm Post subject: |
|
|
According to the bugzilla peeps I need to install mesa before compiling this... but alas:
| Code: | 64lappy Mesa-6.4.2 # emerge -p mesa
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] media-libs/mesa-6.4.2-r2
|
It's already installed. As I had read that solution before, and it has not helped.
Perhaps an issue with mesa? *shrug* _________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
| Back to top |
|
 |
Bigun Advocate


Joined: 21 Sep 2003 Posts: 2198
|
Posted: Mon Jul 10, 2006 8:20 pm Post subject: |
|
|
Alrighty:
| Code: | 64lappy Mesa-6.4.2 # eselect opengl set nvidia
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Switching to nvidia OpenGL interface...ln: creating symbolic link `./libGL.so' to `/usr/lib32/opengl/nvidia/lib/libGL.so': No such file or directory
!!! Error: Failed to create /usr/lib32/libGL.so
exiting.
64lappy Mesa-6.4.2 # eselect opengl set xorg-x11
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Switching to xorg-x11 OpenGL interface...ln: creating symbolic link `./libGL.so' to `/usr/lib32/opengl/xorg-x11/lib/libGL.so': No such file or directory
!!! Error: Failed to create /usr/lib32/libGL.so
exiting.
|
Dear God someone help...
*EDIT*
Somehow me being in the source directory effected things....
| Code: |
64lappy ~ # eselect opengl set xorg-x11
Switching to xorg-x11 OpenGL interface... done
64lappy ~ # emerge mesa-progs
Calculating dependencies... done!
>>> Emerging (1 of 1) x11-apps/mesa-progs-6.4.2 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking MesaLib-6.4.2.tar.bz2 ;-)
>>> checking MesaDemos-6.4.2.tar.bz2 ;-)
>>> Unpacking source...
>>> Unpacking MesaLib-6.4.2.tar.bz2 to /var/tmp/portage/mesa-progs-6.4.2/work
>>> Unpacking MesaDemos-6.4.2.tar.bz2 to /var/tmp/portage/mesa-progs-6.4.2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2 ...
x86_64-pc-linux-gnu-gcc -I../../include -Wall -march=k8 -pipe -O2 -m64 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DUSE_X86_64_ASM -std=c99 -ffast-math glxinfo.c -L../../lib64 -lglut -lGLU -lGL -lm -o glxinfo
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [glxinfo] Error 1
!!! ERROR: x11-apps/mesa-progs-6.4.2 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
mesa-progs-6.4.2.ebuild, line 68: Called die
!!! glxinfo failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
64lappy ~ # eselect opengl set nvidia
Switching to nvidia OpenGL interface... done
64lappy ~ # emerge mesa-progs
Calculating dependencies... done!
>>> Emerging (1 of 1) x11-apps/mesa-progs-6.4.2 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking MesaLib-6.4.2.tar.bz2 ;-)
>>> checking MesaDemos-6.4.2.tar.bz2 ;-)
>>> Unpacking source...
>>> Unpacking MesaLib-6.4.2.tar.bz2 to /var/tmp/portage/mesa-progs-6.4.2/work
>>> Unpacking MesaDemos-6.4.2.tar.bz2 to /var/tmp/portage/mesa-progs-6.4.2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/mesa-progs-6.4.2/work/Mesa-6.4.2 ...
x86_64-pc-linux-gnu-gcc -I../../include -Wall -march=k8 -pipe -O2 -m64 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DUSE_X86_64_ASM -std=c99 -ffast-math glxinfo.c -L../../lib64 -lglut -lGLU -lGL -lm -o glxinfo
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [glxinfo] Error 1
!!! ERROR: x11-apps/mesa-progs-6.4.2 failed.
Call stack:
ebuild.sh, line 1539: Called dyn_compile
ebuild.sh, line 939: Called src_compile
mesa-progs-6.4.2.ebuild, line 68: Called die
!!! glxinfo failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
|
_________________ "It's ok, they might have guns but we have flowers." - Perpetual Victim |
|
| Back to top |
|
 |
weibullguy n00b

Joined: 11 Apr 2006 Posts: 6 Location: Kalamazoo
|
Posted: Wed Jul 19, 2006 1:59 am Post subject: |
|
|
Yeah, I was having the same problem for a couple of days. I re-emerged mesa, no luck. Here's what I did to solve it.
First, this bug talks about lib, lib32, and lib64 setup not being corect. Mine was correct iaw the bug report. Next thing...
| Code: | weibullguy ~ # eselect opengl list
Available OpenGL implementations:
[1] nvidia *
[2] xorg-x11
weibullguy ~ # eselect opengl set xorg-x11
Switching to xorg-x11 OpenGL interface... done
weibullguy ~ # eselect opengl list
Available OpenGL implementations:
[1] nvidia
[2] xorg-x11 * |
Followed by emerge --ask --verbose --update --deep world to get the last three packages. The key was changing to the xorg-X11 Open GL interface. Good to go for now. Hope this helps. _________________ Registered Linux user #413054. I did it here! -> www.counter.li.org |
|
| Back to top |
|
 |
supercollider n00b

Joined: 21 Apr 2005 Posts: 19
|
Posted: Wed Jul 19, 2006 6:41 am Post subject: |
|
|
| Take it easy guys. I never got mesa-progs to compile either, but it's not really important. I worked around it pretty easily. Just emerge the rest of the individual xorg packages, then do 'emerge --nodeps xorg-x11' to convince portage that everything is installed. Then just 'etc-update', deal with your configs, and 'startx'. |
|
| Back to top |
|
 |
Krieg n00b

Joined: 24 Feb 2004 Posts: 36
|
Posted: Thu Sep 14, 2006 7:58 am Post subject: |
|
|
| Unmerge glut and then emerge mesa-progs. This will emerge freeglut instead of the old glut. |
|
| Back to top |
|
 |
Konsti l33t


Joined: 10 Dec 2002 Posts: 691
|
Posted: Sat Sep 16, 2006 10:40 am Post subject: |
|
|
No it won't. Fresh amd64 system here and I stuck on mesa or glx with or without nvidia also:
| Code: |
x86_64-pc-linux-gnu-gcc -shared libglut_la-freeglut_callbacks.lo libglut_la-freeglut_cursor.lo libglut_la-freeglut_display.lo libglut_la-freeglut_ext.lo libglut_la-freeglut_font.lo libglut_la-freeglut_glutfont_definitions.lo libglut_la-freeglut_font_data.lo libglut_la-freeglut_stroke_roman.lo libglut_la-freeglut_stroke_mono_roman.lo libglut_la-freeglut_gamemode.lo libglut_la-freeglut_geometry.lo libglut_la-freeglut_init.lo libglut_la-freeglut_joystick.lo libglut_la-freeglut_main.lo libglut_la-freeglut_menu.lo libglut_la-freeglut_misc.lo libglut_la-freeglut_overlay.lo libglut_la-freeglut_state.lo libglut_la-freeglut_structure.lo libglut_la-freeglut_teapot.lo libglut_la-freeglut_videoresize.lo libglut_la-freeglut_window.lo -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib -L/usr/lib64 -L/usr/lib -lm -lGL /usr/lib/libGLU.so /usr/lib64/libXext.so /usr/lib64/libX11.so /usr/lib64/libXxf86vm.so -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-soname -Wl,libglut.so.3 -o .libs/libglut.so.3.8.0
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
|
| Code: |
# > eselect opengl list
exiting.
|
|
|
| Back to top |
|
 |
Bobnoxous Apprentice


Joined: 03 May 2005 Posts: 240
|
Posted: Fri Sep 29, 2006 6:49 pm Post subject: |
|
|
FYI, I also had this problem. My problem was that opengl was using the X11 setting. I thought I read somewhere (on a previous emerge problem?) that I needed to use the X11 setting for opengl.
I changed it to nvidia (my video card is an nvidia, obviously) and was then able to comple mesa-progs. _________________ "The problem with the world is that fools and fanatics are always so sure of themselves while wiser people are so full of doubt."
- Bertrand Russell |
|
| Back to top |
|
 |
Konsti l33t


Joined: 10 Dec 2002 Posts: 691
|
Posted: Sat Sep 30, 2006 12:23 pm Post subject: |
|
|
Yes this was the problem with my machine also.
The root problem was that eselect opengl didn't wor with my eselect version which is solved meanwhile.
With eselect-opengl working I can compile all opengl stuff now fine. |
|
| Back to top |
|
 |
devadar n00b

Joined: 30 Sep 2006 Posts: 1
|
Posted: Sat Sep 30, 2006 1:17 pm Post subject: Agreed |
|
|
Same thing for me. I think there's a problem with the current version of eselect.
I did
ACCEPT_KEYWORDS="~x86" emerge eselect
and
ACCEPT_KEYWORDS="~x86" emerge mesa
And everything compiled after that. |
|
| Back to top |
|
 |
|