See this thread: http://forums.gentoo.org/viewtopic-t-924558-highlight-.html
Please attach your build log and provide emerge --info in a comment. Forum links are not acceptable.
~ git:(master) ✗ emerge --info Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64) ================================================================= System uname: Linux-3.2.12-gentoo-x86_64-Intel-R-_Core-TM-_i3_CPU_M_370_@_2.40GHz-with-gentoo-2.0.3 Timestamp of tree: Sun, 20 May 2012 16:00:01 +0000 app-shells/bash: 4.2_p20 dev-lang/python: 2.7.3-r1, 3.2.2 dev-util/cmake: 2.8.7-r5 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r3 Repositories: gentoo x-lkGentooOverlay gentoo-zh ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=core2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=core2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://mirrors.163.com/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/lkGentooOverlay /var/lib/layman/gentoo-zh" SYNC="rsync://gentoo.tom.com/gentoo-portage" USE="X acl alsa amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm gtk iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre pppd readline session sse sse2 ssl tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
(In reply to comment #1) > Please attach your build log and provide emerge --info in a comment. Forum > links are not acceptable. gist.github.com is accaptable???
Created attachment 314363 [details] emerge output
I miss. The problem is installing wine in 64bit pc. Using +win32 use fail
(In reply to comment #4) >!!! Please attach the following file when seeking support: >!!! /var/tmp/portage/app-emulation/wine-1.5.4/work/wine32/config.log So please attach it.
(In reply to comment #6) > (In reply to comment #4) > >!!! Please attach the following file when seeking support: > >!!! /var/tmp/portage/app-emulation/wine-1.5.4/work/wine32/config.log > > So please attach it. https://gist.github.com/2879701
(In reply to comment #7) > https://gist.github.com/2879701 Attach means "attach to this bug report" (pastebins tend to disappear after a short period, but we need a permanent record because we sometimes refer to bugs months or years later). In this case, however, only the following lines seem relevant: configure:8835: checking for -lGL configure:8860: x86_64-pc-linux-gnu-gcc -m32 -o conftest -O2 -march=core2 -pipe -m32 -Wl,-O1 -Wl,--as-needed -m32 conftest.c -lGL -lX11 -lm >&5 configure:8860: $? = 0 configure:8872: result: not found configure:8874: checking for -lGL configure:8911: result: not found configure:8948: checking for -lGLU configure:8973: x86_64-pc-linux-gnu-gcc -m32 -o conftest -O2 -march=core2 -pipe -m32 -Wl,-O1 -Wl,--as-needed -m32 conftest.c -lGLU -lSM -lICE -lX11 -lm >&5 configure:8973: $? = 0 configure:8985: result: not found configure:9024: error: No OpenGL library found on this system. In other words, a 32-bit libGL.so seems to exist (otherwise, $? would not be 0), but it doesn't seem to get used in the produced executable. Which should not be happening, even with --as-needed :/ What versions of emul-linux-x86-opengl and emul-linux-x86-xlibs do you have installed? Try updating to the latest ones from ~amd64 (i.e. 20120520). What version of app-admin/eselect-opengl do you have? Try updating to the latest one that's not masked (1.2.5-r1), and then run "eselect opengl set xorg-x11". If that doesn't help, please provide the output of "ls -l /usr/lib32/lib*GL* /usr/local/lib32".
Also, are you using gold or ld.bfd as your linker?
I'm getting the same. Log attached. Will attach log. Portage 2.1.10.49 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo x86_64) ================================================================= System uname: Linux-3.2.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-2720QM_CPU_@_2.20GHz-with-gentoo-2.1 Timestamp of tree: Mon, 11 Jun 2012 04:00:01 +0000 app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.3-r1, 3.2.3 dev-util/cmake: 2.8.7-r5 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.10.3, 1.11.1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.6 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 3.1 (virtual/os-headers) sys-libs/glibc: 2.14.1-r3 Repositories: gentoo sunrise kde x-portage ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=n" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/kde /usr/local/portage" SYNC="rsync://macbeth.edespot.com/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 anthy apm bash-completion berkdb bluetooth branding btrfs bzip2 cairo cdda cddb cdparanoia cdr cjk cli consolekit cpudetection cracklib crypt cups cxx dbus declarative device-mapper dirac directfb dmraid dri dts dv dvb dvd dvdr embedded emboss encode exif extras fam fat ffmpeg firefox flac fontconfig fortran fuse gdbm gif gimp git gnome gnutls gpg gphoto2 gpm graphviz gstreamer gtk gudev hddtemp hfs hwdb iconv icu imagemagick imap ipv6 java jfs jp3g2k jpeg jpg kde lame lcms ldap libkms libnotify libv4l lm_sensors lua mad matroska mdadm melt mercurial mikmod mmx mng modules mp3 mp4 mpeg mpg123 mudflap multilib ncurses network nforce2 nls nntp nptl nsplugin ntfs ntfsprogs ntp nvidia ocr ogg openal opengl openmp pam pango pcmcia pcre pdf perl plasma pmu png policykit pop ppds pppd private-headers pulseaudio python qt3support qt4 raw rdesktop readline reiser4 reiserfs samba sdl sensord session sidebar smp smtp sndfile speex spell sql sqlite sse sse2 sse3 ssl ssse3 startup-notification subversion svg tcpd theora threads tiff tk tor-hardening truetype twolame udev udisks unicode upower usb v4l v4l2 vim-syntax vnc vorbis webkit webm wifi win64 winbind wxwidgets x264 xcb xfs xine xml xorg xosd xrandr xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 315053 [details] config.log
It seems I do not add opengl use for xlibs-emul I will try use this use. P330 / # eix emul-linux-x86-xlibs [I] app-emulation/emul-linux-x86-xlibs Available versions: 20120127!s ~20120520!s {development opengl} Installed versions: 20120127!s(10:15:00 PM 05/24/2012)(-development -opengl) Homepage: http://dev.gentoo.org/~pacho/emul.html Description: Provides precompiled 32bit libraries P330 / # eix emul-linux-x86-opengl [I] app-emulation/emul-linux-x86-opengl Available versions: 20120127!s ~20120520!s {development} Installed versions: 20120127!s(07:03:27 PM 06/05/2012)(development) Homepage: http://dev.gentoo.org/~pacho/emul.html Description: Provides precompiled 32bit libraries
add opengl use for xlibs-emul failed. I will try the latest version of emul libs...
(In reply to comment #9) > Also, are you using gold or ld.bfd as your linker? How to check that??
P330 / # ls -l /usr/lib32/lib*GL* /usr/local/lib32 lrwxrwxrwx 1 root root 11 Jun 5 19:03 /usr/lib32/libEGL.so -> libEGL.so.1 lrwxrwxrwx 1 root root 13 Jun 5 19:03 /usr/lib32/libEGL.so.1 -> libEGL.so.1.0 -rwxr-xr-x 1 root root 88204 Jan 27 20:20 /usr/lib32/libEGL.so.1.0 lrwxrwxrwx 1 root root 17 Jun 5 19:03 /usr/lib32/libGLESv1_CM.so -> libGLESv1_CM.so.1 lrwxrwxrwx 1 root root 21 Jun 5 19:03 /usr/lib32/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0 -rwxr-xr-x 1 root root 29728 Jan 27 20:20 /usr/lib32/libGLESv1_CM.so.1.1.0 lrwxrwxrwx 1 root root 14 Jun 5 19:03 /usr/lib32/libGLESv2.so -> libGLESv2.so.2 lrwxrwxrwx 1 root root 18 Jun 5 19:03 /usr/lib32/libGLESv2.so.2 -> libGLESv2.so.2.0.0 -rwxr-xr-x 1 root root 21536 Jan 27 20:20 /usr/lib32/libGLESv2.so.2.0.0 lrwxrwxrwx 1 root root 18 Jun 5 19:03 /usr/lib32/libGLEWmx.so -> libGLEWmx.so.1.6.0 lrwxrwxrwx 1 root root 18 Jun 5 19:03 /usr/lib32/libGLEWmx.so.1.6 -> libGLEWmx.so.1.6.0 -rwxr-xr-x 1 root root 312472 Jan 27 20:22 /usr/lib32/libGLEWmx.so.1.6.0 lrwxrwxrwx 1 root root 16 Jun 5 19:03 /usr/lib32/libGLEW.so -> libGLEW.so.1.6.0 lrwxrwxrwx 1 root root 16 Jun 5 19:03 /usr/lib32/libGLEW.so.1.6 -> libGLEW.so.1.6.0 -rwxr-xr-x 1 root root 345244 Jan 27 20:22 /usr/lib32/libGLEW.so.1.6.0 lrwxrwxrwx 1 root root 32 Jun 5 19:03 /usr/lib32/libGL.so -> opengl/xorg-x11/lib/libGL.so.1.2 lrwxrwxrwx 1 root root 32 Jun 5 19:03 /usr/lib32/libGL.so.1 -> opengl/xorg-x11/lib/libGL.so.1.2 lrwxrwxrwx 1 root root 11 Jun 5 19:03 /usr/lib32/libGLU.so -> libGLU.so.1 lrwxrwxrwx 1 root root 20 Jun 5 19:03 /usr/lib32/libGLU.so.1 -> libGLU.so.1.3.071100 -rwxr-xr-x 1 root root 439816 Jan 27 20:20 /usr/lib32/libGLU.so.1.3.071100 /usr/local/lib32: total 0
lrwxrwxrwx 1 root root 32 Jun 5 19:03 /usr/lib32/libGL.so -> opengl/xorg-x11/lib/libGL.so.1.2
Failed the same: ➜ ~ git:(master) ✗ eix eselect-opengl [I] app-admin/eselect-opengl Available versions: 1.2.1 (~)1.2.3 1.2.4 (~)1.2.5-r1 Installed versions: 1.2.5-r1(03:06:16 PM 06/12/2012) Homepage: http://www.gentoo.org/ Description: Utility to change the OpenGL interface being used ➜ ~ git:(master) ✗ ls -l /usr/lib32/lib*GL* /usr/local/lib32 lrwxrwxrwx 1 root root 11 Jun 12 14:53 /usr/lib32/libEGL.so -> libEGL.so.1 lrwxrwxrwx 1 root root 13 Jun 12 14:53 /usr/lib32/libEGL.so.1 -> libEGL.so.1.0 -rwxr-xr-x 1 root root 88204 May 16 19:58 /usr/lib32/libEGL.so.1.0 lrwxrwxrwx 1 root root 17 Jun 12 14:53 /usr/lib32/libGLESv1_CM.so -> libGLESv1_CM.so.1 lrwxrwxrwx 1 root root 21 Jun 12 14:53 /usr/lib32/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.1.0 -rwxr-xr-x 1 root root 29728 May 16 19:58 /usr/lib32/libGLESv1_CM.so.1.1.0 lrwxrwxrwx 1 root root 14 Jun 12 14:53 /usr/lib32/libGLESv2.so -> libGLESv2.so.2 lrwxrwxrwx 1 root root 18 Jun 12 14:53 /usr/lib32/libGLESv2.so.2 -> libGLESv2.so.2.0.0 -rwxr-xr-x 1 root root 21536 May 16 19:58 /usr/lib32/libGLESv2.so.2.0.0 lrwxrwxrwx 1 root root 18 Jun 12 14:53 /usr/lib32/libGLEWmx.so -> libGLEWmx.so.1.6.0 lrwxrwxrwx 1 root root 18 Jun 12 14:53 /usr/lib32/libGLEWmx.so.1.6 -> libGLEWmx.so.1.6.0 -rwxr-xr-x 1 root root 312472 May 16 20:01 /usr/lib32/libGLEWmx.so.1.6.0 lrwxrwxrwx 1 root root 16 Jun 12 14:53 /usr/lib32/libGLEW.so -> libGLEW.so.1.6.0 lrwxrwxrwx 1 root root 16 Jun 12 14:53 /usr/lib32/libGLEW.so.1.6 -> libGLEW.so.1.6.0 -rwxr-xr-x 1 root root 345244 May 16 20:01 /usr/lib32/libGLEW.so.1.6.0 lrwxrwxrwx 1 root root 32 Jun 12 15:06 /usr/lib32/libGL.so -> opengl/xorg-x11/lib/libGL.so.1.2 lrwxrwxrwx 1 root root 32 Jun 12 15:06 /usr/lib32/libGL.so.1 -> opengl/xorg-x11/lib/libGL.so.1.2 lrwxrwxrwx 1 root root 11 Jun 12 14:53 /usr/lib32/libGLU.so -> libGLU.so.1 lrwxrwxrwx 1 root root 20 Jun 12 14:53 /usr/lib32/libGLU.so.1 -> libGLU.so.1.3.071100 -rwxr-xr-x 1 root root 439816 May 16 19:58 /usr/lib32/libGLU.so.1.3.071100 /usr/local/lib32: total 0
So I figured out what the issue for me was. At some point /lib stopped being a symlink to /lib64. Looks like it was overwritten by some other directory (its contents do not look like what I see in /lib64 or /lib32). I can't say how this happened but the upshot is that while I can compile 32-bit apps (the $? = 0 bit) they do not execute (configure runs ldd on the binary to determine that it linked properly). Restoring this symlink seems to have worked for me.
@Andrew MacKenzie Can you give the details?
(In reply to comment #19) > @Andrew MacKenzie > > Can you give the details? If /lib isn't a symlink to /lib64 then you can do this (it's what I did): # mv /lib /lib.bak # ln -s /lib /lib64 That's all I needed to do. I think 'multilib' needs to be set in USE as well (though I'm not sure whether that's been deprecated or not). I can't vouch for whether this is the "correct" thing to do though but so far so good!
(In reply to comment #20) > (In reply to comment #19) > > @Andrew MacKenzie > > > > Can you give the details? > > If /lib isn't a symlink to /lib64 then you can do this (it's what I did): > > # mv /lib /lib.bak > # ln -s /lib /lib64 > > That's all I needed to do. I think 'multilib' needs to be set in USE as > well (though I'm not sure whether that's been deprecated or not). I can't > vouch for whether this is the "correct" thing to do though but so far so > good! That second line should be: # ln -s /lib64 /lib (sorry!)
Any progress?????
no answer?????
do not post that crap here. people will review & assist when they have time.
(In reply to comment #18) Andrew, thanks, the problem does sound like ldd being unable to find the right libraries. jinleileiking, please provide the output of the following sequence of commands: cat > gltest.c <<__EOF__ char glXCreateContext (); int main () {return glXCreateContext ();} __EOF__ x86_64-pc-linux-gnu-gcc -m32 gltest.c -o gltest -lGLU -lSM -lICE -lX11 -lm ldd -v gltest Also, please attach your /etc/ld.so.conf file.
➜ ~ git:(master) ✗ cat > gltest.c <<__EOF__ heredoc> char glXCreateContext (); heredoc> int main () {return glXCreateContext ();} heredoc> __EOF__ ➜ ~ git:(master) ✗ x86_64-pc-linux-gnu-gcc -m32 gltest.c -o gltest -lGLU -lSM -lICE -lX11 -lm ➜ ~ git:(master) ✗ ldd -v gltest not a dynamic executable ➜ ~ git:(master) ✗ cat /etc/ld.so.conf # ld.so.conf autogenerated by env-update; make all changes to # contents of /etc/env.d directory /usr/local/lib include ld.so.conf.d/*.conf /usr/lib32/opengl/xorg-x11/lib /usr/lib64/opengl/xorg-x11/lib /lib64 /usr/lib64 /usr/local/lib64 /lib32 /usr/lib32 /usr/local/lib32 /lib /usr/lib //usr/lib64/xulrunner-1.9.2 /usr/lib64/qt4 /usr/lib32/qt4 /usr/lib/qt4 I never ran env-update. I will ran it and try again
env-update not work
(In reply to comment #26) > ➜ ~ git:(master) ✗ ldd -v gltest > not a dynamic executable Interesting! So if it's not a dynamic executable, then what is it? What does "file gltest" say? Could you attach the gltest file to this bug?
Created attachment 317252 [details] gltest file
➜ ~ git:(master) ✗ file gltest gltest: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
(In reply to comment #29) The attached file *is* a 32-bit dynamic executable. And it seems valid. And your /etc/ld.so.conf looks reasonable. So it seems that the problem is with ldd itself. With what USE flags was your sys-libs/glibc emerged? I hope you did not try USE=-multilib, for example?
crosstools git:(master) ✗ epv glibc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-libs/glibc-2.14.1-r3 USE="(multilib) -debug -gd (-hardened) -profile (-selinux) -vanilla" 164 kB Total: 1 package (1 reinstall), Size of downloads: 164 kB * IMPORTANT: 6 news items need reading for repository 'gentoo'. * Use eselect news to read news items. glibc seems uses multilib
Do you have 32-bit executable support enabled in your kernel? (Check for CONFIG_IA32_EMULATION=y in /usr/src/linux/.config, or for Executable file formats -> IA32 Emulation in "make menuconfig")
(In reply to comment #33) > Do you have 32-bit executable support enabled in your kernel? (Check for > CONFIG_IA32_EMULATION=y in /usr/src/linux/.config, or for Executable file > formats -> IA32 Emulation in "make menuconfig") Yes. I have...:(((((((((((((((( ➜ ~ git:(master) ✗ cat /usr/src/linux/.config | grep 32 # CONFIG_X86_32 is not set CONFIG_ZONE_DMA32=y CONFIG_INIT_ENV_ARG_LIMIT=32 CONFIG_IA32_EMULATION=y CONFIG_IA32_AOUT=m # CONFIG_NF_NAT_H323 is not set # CONFIG_NET_CLS_U32 is not set CONFIG_NET_EMATCH_STACK=32 # CONFIG_NET_EMATCH_U32 is not set # CONFIG_PATA_NINJA32 is not set # CONFIG_KEYBOARD_LM8323 is not set CONFIG_SERIAL_8250_NR_UARTS=32 # CONFIG_MFD_RDC321X is not set # CONFIG_SND_AZT3328 is not set CONFIG_SND_HDA_CODEC_CA0132=y # CONFIG_SND_RME32 is not set # CONFIG_USB_SERIAL_MCT_U232 is not set # CONFIG_LEDS_PCA9532 is not set # CONFIG_RTC_DRV_DS3232 is not set # CONFIG_RTC_DRV_BQ32K is not set # CONFIG_NLS_CODEPAGE_932 is not set # CONFIG_CRYPTO_CRC32C is not set # CONFIG_CRYPTO_CRC32C_INTEL is not set # CONFIG_CRYPTO_RMD320 is not set CONFIG_CRC32=y # CONFIG_LIBCRC32C is not set
OK, final guess: maybe something wrong with the rtld that ldd is calling. Please provide the output of the following commands: grep -i rtld /usr/bin/ldd ls -l /lib*/ld-linux*
(In reply to comment #35) > OK, final guess: maybe something wrong with the rtld that ldd is calling. > > Please provide the output of the following commands: > > grep -i rtld /usr/bin/ldd > ls -l /lib*/ld-linux* ➜ ~ git:(master) ✗ grep -i rtld /usr/bin/ldd RTLDLIST="/lib/ld-linux.so.2 /lib64/ld-linux-x86-64.so.2" RTLD= for rtld in ${RTLDLIST}; do if test -x $rtld; then verify_out=`${rtld} --verify "$file"` [02]) RTLD=${rtld}; break;; try_trace "$RTLD" "$file" try_trace "$RTLD" "$file" || result=1 echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($ret)" >&2 ➜ ~ git:(master) ✗ ls -l /lib*/ld-linux* lrwxrwxrwx 1 root root 12 May 21 02:38 /lib32/ld-linux.so.2 -> ld-2.14.1.so lrwxrwxrwx 1 root root 12 May 21 02:38 /lib64/ld-linux-x86-64.so.2 -> ld-2.14.1.so lrwxrwxrwx 1 root root 12 May 21 02:38 /lib/ld-linux-x86-64.so.2 -> ld-2.14.1.so
(In reply to comment #36) > ➜ ~ git:(master) ✗ ls -l /lib*/ld-linux* > lrwxrwxrwx 1 root root 12 May 21 02:38 /lib32/ld-linux.so.2 -> ld-2.14.1.so > lrwxrwxrwx 1 root root 12 May 21 02:38 /lib64/ld-linux-x86-64.so.2 -> > ld-2.14.1.so > lrwxrwxrwx 1 root root 12 May 21 02:38 /lib/ld-linux-x86-64.so.2 -> > ld-2.14.1.so Bingo! So the reason for your wine problem is that you are missing /lib64/ld-linux.so.2, which should be a symlink that points to ../lib32/ld-linux.so.2 That symlink should have been installed by sys-libs/glibc. So I am reassigning the bug to glibc maintainers. And until the glibc bug is fixed, you can manually work around it by doing cd /lib64 ln -s ../lib32/ld-linux.so.2 .
(In reply to comment #37) > (In reply to comment #36) > > ➜ ~ git:(master) ✗ ls -l /lib*/ld-linux* > > lrwxrwxrwx 1 root root 12 May 21 02:38 /lib32/ld-linux.so.2 -> ld-2.14.1.so > > lrwxrwxrwx 1 root root 12 May 21 02:38 /lib64/ld-linux-x86-64.so.2 -> > > ld-2.14.1.so > > lrwxrwxrwx 1 root root 12 May 21 02:38 /lib/ld-linux-x86-64.so.2 -> > > ld-2.14.1.so > > Bingo! So the reason for your wine problem is that you are missing > /lib64/ld-linux.so.2, which should be a symlink that points to > ../lib32/ld-linux.so.2 > > That symlink should have been installed by sys-libs/glibc. So I am > reassigning the bug to glibc maintainers. > > And until the glibc bug is fixed, you can manually work around it by doing > > cd /lib64 > ln -s ../lib32/ld-linux.so.2 . Thanks @Alexandre Rostovtsev. Although I nearly do not know what you said. You ARE LIKE GOD!! I LOVE YOU!!!
From your solution, compiled ok . haha
Running Ok. THanks!!!!!!@Alexandre Rostovtsev
run the commands: ls -ld /lib* /usr/lib* qcheck glibc
(In reply to comment #41) > run the commands: > ls -ld /lib* /usr/lib* > qcheck glibc ➜ ~ git:(master) ✗ ls -ld /lib* /usr/lib* lrwxrwxrwx 1 root root 5 May 20 18:16 /lib -> lib64 drwxr-xr-x 3 root root 4096 Jun 12 14:49 /lib32 drwxr-xr-x 9 root root 4096 Jul 6 15:57 /lib64 lrwxrwxrwx 1 root root 5 May 20 18:16 /usr/lib -> lib64 drwxr-xr-x 42 root root 53248 Jul 6 15:52 /usr/lib32 drwxr-xr-x 80 root root 61440 Jul 6 23:20 /usr/lib64 drwxr-xr-x 7 root root 4096 Jun 5 17:38 /usr/libexec ➜ ~ git:(master) ✗ qcheck glibc Checking sys-libs/glibc-2.14.1-r3 ... PERM 4711: /usr/lib32/misc/glibc/pt_chown PERM 4711: /usr/lib64/misc/glibc/pt_chown * 1843 out of 1845 files are good (Unable to digest 2 files) ➜ ~ git:(master) ✗ PS: I have ran the cmd: cd /lib64 ln -s ../lib32/ld-linux.so.2 .
(In reply to comment #42) you should not have to create the ldso files by hand in /lib/. if you did, then your system somehow lost those symlinks, or never had them in the first place. building glibc on a multilib system does this for you.
(In reply to comment #43) > (In reply to comment #42) > > you should not have to create the ldso files by hand in /lib/. if you did, > then your system somehow lost those symlinks, or never had them in the first > place. building glibc on a multilib system does this for you. It is strange: ➜ openrc-0.9.8.4 epv glibc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-libs/glibc-2.14.1-r3 USE="(multilib) -debug -gd (-hardened) -profile (-selinux) -vanilla" 164 kB Total: 1 package (1 reinstall), Size of downloads: 164 kB * IMPORTANT: 6 news items need reading for repository 'gentoo'. * Use eselect news to read news items. My glibc seems broken~~~ ????? I reinstall glibc Finally says: This package will overwrite one or more files that may belong to other * packages (see list below). You can use a command such as `portageq * owners / <filename>` to identify the installed package that owns a * file. If portageq reports that only one package owns a file then do * NOT file a bug report. A bug report is only useful if it identifies at * least two or more packages that are known to install the same file(s). * If a collision occurs and you can not explain where the file came from * then you should simply ignore the collision since there is not enough * information to determine if a real problem exists. Please do NOT file * a bug report at http://bugs.gentoo.org unless you report exactly which * two packages install the same file(s). Once again, please do NOT file * a bug report unless you have completely understood the above message. * * Detected file collision(s): * * /lib64/ld-linux.so.2 * * Searching all installed packages for file collisions... * * Press Ctrl-C to Stop * * None of the installed packages claim the file(s). * * Package 'sys-libs/glibc-2.14.1-r3' merged despite file collisions. If * necessary, refer to your elog messages for the whole content of the * above message.
I remove the link and reinstall glibc. wine seems ok.