Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox don't run
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
thorero
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2003
Posts: 108
Location: gentoo-brain

PostPosted: Mon Feb 19, 2007 4:57 pm    Post subject: Firefox don't run Reply with quote

I'm a newbie in 64 bits system (I use gentoo without problem for years in 32 bits)

I have this problem when try to execute firefox-bin (32 bits) in my gentoo.

Code:
firefox --version
/usr/libexec/mozilla-launcher: line 460: /opt/firefox/firefox-bin: cannot execute binary file
firefox-bin exited with non-zero status (126)


I have 32 compability on my kernel

Thanks
_________________
Soi un gentooza total

www.gentoo-brain.org

Ayudando a la comunidad hispana de gentoo
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Mon Feb 19, 2007 5:24 pm    Post subject: Reply with quote

What is the output from
Code:

ldd /opt/firefox/firefox-bin


and
Code:

emerge --info

_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
thorero
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2003
Posts: 108
Location: gentoo-brain

PostPosted: Mon Feb 19, 2007 5:45 pm    Post subject: Reply with quote

Code:
ldd /opt/firefox/firefox-bin
/usr/bin/ldd: line 161: /lib/ld-linux.so.2: cannot execute binary file
        not a dynamic executable


and

Code:
 emerge --info
--- Invalid atom in /etc/portage/package.unmask: media-libs/svgalib-1.9.25
Portage 2.1.2-r9 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo x86_64)
=================================================================
System uname: 2.6.20-gentoo x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 19 Feb 2007 13:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.20
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-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/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/splash /etc/terminfo"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://85.25.128.62 ftp://212.219.56.133/sites/www.ibiblio.org/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LINGUAS="es"
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 /usr/local/zugaina-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aac aalib alsa amd64 amuled apache2 avi berkdb bitmap-fonts cli cracklib crypt ctype cups dba dga dlloader dri dvb dvd dvdr encode es esd fam fastbuild fb fbcon flac flash fortran framebuffer ftp gd gdbm ggi gif glitz gpm gstreamer gtk2 iconv imlib ipv6 isdnlog java keyboard latin1 lcms libg++ matroska midi mp3 mp4 mpeg mpm-prefork msn mysql nas ncurses network nls nptl nptlonly nvidia oerl oggvorbis opengl oss pcre perl php4 png posix ppds pppd python quicktime readline reflection remote sdl server session slp spl ssl stats tcpd theora tiff truetype-fonts type1-fonts unicode usb use userlocales vcd vdr x264 xine xinetd xml2 xorg xv xvid yylex 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS


_________________
Soi un gentooza total

www.gentoo-brain.org

Ayudando a la comunidad hispana de gentoo
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Mon Feb 19, 2007 7:39 pm    Post subject: Reply with quote

It looks like your glibc installation is messed up and you're missing some of the 32 bit libraries. You need to re-emerge it and firefox-bin.

Make sure your system is up to date (emerge -auDvN world) before you do so. You may also need to run revdep-rebuild (from gentoolkit)
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Mon Feb 19, 2007 7:51 pm    Post subject: Reply with quote

loftwyr wrote:
It looks like your glibc installation is messed up and you're missing some of the 32 bit libraries. You need to re-emerge it and firefox-bin.

why would you say that?
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Mon Feb 19, 2007 7:54 pm    Post subject: Reply with quote

Code:
If I was only having problems with 32bit programs on my amd64, I would first reinstall the emulation libraries.
The following are required for the firefox binary (on my machine)

emerge -e mozilla-firefox-bin -p | grep emul
[ebuild  N    ] app-emulation/emul-linux-x86-compat-1.0-r1
[ebuild  N    ] app-emulation/emul-linux-x86-baselibs-10.1
[ebuild  N    ] app-emulation/emul-linux-x86-xlibs-7.0-r8  USE="opengl"
[ebuild  N    ] app-emulation/emul-linux-x86-qtlibs-10.0
[ebuild  N    ] app-emulation/emul-linux-x86-gtklibs-2.10.6.3-r3  USE="qt3"

_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Tue Feb 20, 2007 12:59 am    Post subject: Reply with quote

The "not a dynamic" is a sign that it's having problems finding your 32bit glibc libraries or something else basic to your system.

I would make sure you're up to date and revdep-rebuild'd to ensure nothing is missing or mislinked.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Tue Feb 20, 2007 1:07 am    Post subject: Reply with quote

Edit: removed, I was wrong
_________________
emerge: there are no ebuilds to satisfy "moo"


Last edited by coolsnowmen on Tue Feb 20, 2007 7:29 am; edited 1 time in total
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Tue Feb 20, 2007 1:31 am    Post subject: Reply with quote

Thanks but we've been dealing with /opt/firefox/firefox-bin. Read the thread again.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Tue Feb 20, 2007 7:34 am    Post subject: Reply with quote

Did you recently do an in place update of compilers, or convert from a 32 to 64bit system, or something else toolchain specific?
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
thorero
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2003
Posts: 108
Location: gentoo-brain

PostPosted: Tue Feb 20, 2007 2:31 pm    Post subject: Reply with quote

thanks for your answers, but when I try to recompile glibc y have this error

Code:
checking for long double... yes
 checking size of long double... configure: error: cannot compute sizeof (long double), 77


I try to recompile gcc and

Code:
ortage/sys-devel/gcc-4.1.2/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[2]: *** [configure-target-libstdc++-v3] Error 1
make[2]: se sale del directorio `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build'
make[1]: *** [all] Error 2
make[1]: se sale del directorio `/var/tmp/portage/sys-devel/gcc-4.1.2/work/build'
make: *** [profiledbootstrap] Error 2


This is a madness
_________________
Soi un gentooza total

www.gentoo-brain.org

Ayudando a la comunidad hispana de gentoo
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1709

PostPosted: Tue Feb 20, 2007 3:18 pm    Post subject: Reply with quote

This is almost starting to smell like an inside issue, have you recompiled your kernel recently? Also, what are your USE flags for gcc?
Back to top
View user's profile Send private message
thorero
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2003
Posts: 108
Location: gentoo-brain

PostPosted: Tue Feb 20, 2007 3:31 pm    Post subject: Reply with quote

I recompiled my kernel to have ia32 compability

Code:
[ebuild   R   ] sys-devel/gcc-4.1.2  USE="fortran nls (-altivec) -bootstrap -build -doc -gcj -gtk (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla"


my gcc use
_________________
Soi un gentooza total

www.gentoo-brain.org

Ayudando a la comunidad hispana de gentoo
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Tue Feb 20, 2007 3:36 pm    Post subject: Reply with quote

That error usually happens when you try to convert from a no-multilib profile to a multilib profile. If that's hwat's happened it can require a full re-install to fix.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
thorero
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2003
Posts: 108
Location: gentoo-brain

PostPosted: Tue Feb 20, 2007 4:35 pm    Post subject: Reply with quote

but i never had no-multilib profile
_________________
Soi un gentooza total

www.gentoo-brain.org

Ayudando a la comunidad hispana de gentoo
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Tue Feb 20, 2007 6:54 pm    Post subject: Reply with quote

Your toolchain is probably broken. You need to repair/reinstall it. No matter what I would start burning the latest gentoo bootcd.

Short of a full reinstall, You can try packaging up parts of the tool chain from a temporary chroot and hand installing them on your system and then rebooting. I think the tool chain consists of linux-headers, binutils, glibc, gcc, libtool...(and portage uses python)
But many people find this complicated and can be just as time consuming (man hours) as backing up certain directories and reinstalling.
With the config files from /etc, the world file, and the .config kernel config file, you have most of the information necessary to rebuild an entire system quickly.

IF you have the HD space, smart chrooting can make sure you don't loose anything until you have it all back.
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
number_nine
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2005
Posts: 136

PostPosted: Sat Mar 03, 2007 7:36 pm    Post subject: Reply with quote

What leads to a situation like this? I'm having virtually the exact same problem as the original poster on a fresh install. The machine is an Athlon 64 X2 3800, FWIW. I've installed Gentoo on AMD64 many times before. In fact, I'm using the same boot CD and stage3 tarball (well, not the exact same, but same md5sum---same enough!).

I haven't even got to trying firefox, etc out yet. But, for example:

Code:

$ burnK7
-su: /usr/bin/burnK7: cannot execute binary file
$ ldd `which burnK7`
/usr/bin/ldd: line 157: /lib/ld-linux.so.2: cannot execute binary file
/usr/bin/ldd: line 167: /lib/ld-linux.so.2: cannot execute binary file
ldd: /lib/ld-linux.so.2 exited with unknown exit code (126)


I can't even load the IceWM window manager:
Code:

$ ldd `which icewm`
/usr/bin/ldd: line 157: /lib/ld-linux.so.2: cannot execute binary file
        libSM.so.6 => /usr/lib/libSM.so.6 (0x00002b184a241000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0x00002b184a34b000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00002b184a466000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00002b184a670000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00002b184a773000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00002b184a87c000)
        libXft.so.2 => /usr/lib/libXft.so.2 (0x00002b184a98e000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00002b184aaa1000)
        libz.so.1 => /lib/libz.so.1 (0x00002b184ac1b000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00002b184ad30000)
        libImlib.so.1 => /usr/lib/libImlib.so.1 (0x00002b184ae64000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00002b184af91000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x00002b184b0b4000)
        libgif.so.4 => /usr/lib/libgif.so.4 (0x00002b184b20d000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00002b184b316000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6 (0x00002b184b43a000)
        libm.so.6 => /lib/libm.so.6 (0x00002b184b63b000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002b184b790000)
        libc.so.6 => /lib/libc.so.6 (0x00002b184b89e000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00002b184bac9000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00002b184bbcc000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002b184bcd2000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00002b184bdd6000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b184a125000)


I re-emerged binutils, but if I try to emerge glibc:
Code:

$ emerge glibc
...checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long double... yes
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

!!! ERROR: sys-libs/glibc-2.5 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4148:   Called src_compile
...


I'm not opposed to starting the install process again, since it's a new install and I've nothing to lose... but I'm afraid I'd end up in the same situation.

So, how does one get into such a mess? What kind of mistakes could I have made during install that would put my system in this state?

Thanks!
Back to top
View user's profile Send private message
number_nine
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2005
Posts: 136

PostPosted: Sat Mar 03, 2007 8:29 pm    Post subject: Reply with quote

Okay, upon closer inspection, I found one of the machines I previously built has similar issues.

The previous machine in consideration is virtually the exact same hardware as the current. The previous machine is used as a MythTV box for my parents. It's been running reliably (and they really use it often) for months.

However, if I try to use cpuburn, I get the same result as I posted above. Same thing with IceWM.

Here's what threw me: I'm trying to run icewm on my machine; my parents' machine runs fluxbox. Whenever I try to run IceWM on my machine, it immediately segfaults. Looking at the output of ldd icewm above, you can see there's something amiss. Well, ldd of fluxbox on both mine and my parents' computers gives exactly the same suspicious error message. But, fluxbox runs fine on both machines!

The only difference I can see between my parents' machine and my current build, versus my other working AMD64 boxes is that /etc/make.profile points to the "desktop" sub-profile on the working boxes. It just points to the default "2006.1" profile on the broken ones.

Here's what happens when I try to rebuild gcc:
Code:

...
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-gcc... /var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include  -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[2]: *** [configure-target-libstdc++-v3] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.1.1-r3/work/build'
make: *** [profiledbootstrap] Error 2
...


I'm going to try switching the profile. I think it's a long shot, but I don't know what else to try at this point!

Thanks again.
Back to top
View user's profile Send private message
number_nine
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2005
Posts: 136

PostPosted: Sat Mar 03, 2007 9:19 pm    Post subject: Reply with quote

GRRR, simple solution: include IA32 (CONFIG_IA32_EMULATION) emulation support in the kernel!

Figures both mine and my parents' computer would have the same problem---I copied my kernel config from their computer!

At least it's fixed! :)
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Sat Mar 03, 2007 9:36 pm    Post subject: Reply with quote

@number nine
I am glad you found your problem.

I wonder why the emulation libraries don't check to see if there is kernel support...or maybe they do, and you installed a newkernel after the fact....
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
ianomc
n00b
n00b


Joined: 12 Nov 2004
Posts: 21

PostPosted: Thu May 10, 2007 11:04 am    Post subject: Reply with quote

I have the exact same problem. Suddenly last Monday firefox stopped working. I tried updating glibc but I get the same error....

Code:

checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.

!!! ERROR: sys-libs/glibc-2.5-r2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4203:   Called src_compile
  glibc-2.5-r2.ebuild, line 1156:   Called src_compile
  glibc-2.5-r2.ebuild, line 1167:   Called toolchain-glibc_src_compile
  glibc-2.5-r2.ebuild, line 268:   Called glibc_do_configure 'nptl'
  glibc-2.5-r2.ebuild, line 941:   Called die

!!! failed to configure glibc
!!! 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/sys-libs/glibc-2.5-r2/temp/build.log'.


I have IA32 enabled in my kernel :(
What the heck happened?
_________________
---------------------------------
Ian McLoughlin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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